Fix cosh spurious underflows from expm1 (bug 16354), inaccurate results near 0 (bug...
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #16354]
4         [BZ #17061]
5         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
6         small arguments before calling __expm1.
7         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
8         small arguments before calling __expm1f.
9         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
10         small arguments before calling __expm1l.
11         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
12         Likewise.
13         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
14         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
15         spurious underflow for some cosh tests.
16         * math/auto-libm-test-out: Regenerated.
17         * sysdeps/i386/fpu/libm-test-ulps: Update.
18
19         [BZ #17050]
20         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
21         (__ieee754_y1): Set errno if return value overflows.
22         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
23         (__ieee754_y1f): Set errno if return value overflows.
24         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
25         (__ieee754_y1l): Set errno if return value overflows.
26         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
27         (__ieee754_y1l): Set errno if return value overflows.
28         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29         * math/auto-libm-test-out: Regenerated.
30
31         * math/gen-auto-libm-tests.c: Document use of
32         ignore-zero-inf-sign.
33         (input_flag_type): Add value flag_ignore_zero_inf_sign.
34         (input_flags): Add ignore-zero-inf-sign.
35         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
36         * math/gen-libm-test.pl (generate_testfile): Handle
37         ignore-zero-inf-sign.
38         * math/auto-libm-test-in: Mark some cpow tests with
39         ignore-zero-inf-sign and some with xfail-rounding.
40         * math/auto-libm-test-out: Regenerated.
41         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
42         * sysdeps/i386/fpu/libm-test-ulps: Update.
43         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44
45         [BZ #16315]
46         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
47         overflowing or underflowing operations take place with sign of
48         result.
49         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
50         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
51         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
52         (__ieee754_pow): Recompute overflowing and underflowing results in
53         original rounding mode.
54         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
55         (__powl_helper): Allow negative argument X and scale negated value
56         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
57         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
58         overflowing or underflowing operations take place with sign of
59         result.
60         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
61         Include <math.h>.
62         * math/auto-libm-test-in: Add more tests of pow.
63         * math/auto-libm-test-out: Regenerated.
64         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
65         (pow_tonearest_test_data): Remove.
66         (pow_test_tonearest): Likewise.
67         (pow_towardzero_test_data): Likewise.
68         (pow_test_towardzero): Likewise.
69         (pow_downward_test_data): Likewise.
70         (pow_test_downward): Likewise.
71         (pow_upward_test_data): Likewise.
72         (pow_test_upward): Likewise.
73         (main): Don't call removed functions.
74         * sysdeps/i386/fpu/libm-test-ulps: Update.
75         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76
77 2014-06-23  Roland McGrath  <roland@hack.frob.com>
78
79         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
80         Moved ...
81         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
82         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
83         Moved ...
84         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
85         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
86         Moved ...
87         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
88         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
89         Moved ...
90         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
91         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
92         File removed.
93         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
94         File removed.
95         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
96         File removed.
97         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
98         File removed.
99         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
100         File removed.
101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
102         File removed.
103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
104         File removed.
105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
106         File removed.
107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
108         File removed.
109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
110         File removed.
111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
112         File removed.
113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
114         File removed.
115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
116         Moved ...
117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
119         Moved ...
120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
121         ... here.
122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
123         Moved ...
124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
126         Moved ...
127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
129         Moved ...
130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
132         Moved ...
133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
135         Moved ...
136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
138         Moved ...
139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
141         Moved ...
142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
145         ... here.
146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
147         Moved ...
148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
150         Moved ...
151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
152         ... here.
153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
154         Moved ...
155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
156         ... here.
157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
158         Moved ...
159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
160         ... here.
161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
162         Moved ...
163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
165         Moved ...
166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
170         Moved ...
171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
172         ... here.
173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
174         Moved ...
175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
176         ... here.
177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
178         Moved ...
179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
181         Moved ...
182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
184         Moved ...
185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
187         Moved ...
188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
190         Moved ...
191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
192         ... here.
193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
194         Moved ...
195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
197         Moved ...
198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
200         Moved ...
201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
203         Moved ...
204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
208         Moved ...
209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
211         Moved ...
212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
214         Moved ...
215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
216         ... here.
217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
218         Moved ...
219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
220         ... here.
221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
222         Moved ...
223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
224         ... here.
225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
226         Moved ...
227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
229         Moved ...
230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
232         Moved ...
233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
235         Moved ...
236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
237         ... here.
238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
239         Moved ...
240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
241         ... here.
242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
243         Moved ...
244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
245         ... here.
246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
247         Moved ...
248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
250         Moved ...
251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
252
253 2014-06-23  Will Newton  <will.newton@linaro.org>
254             Wilco  <wdijkstr@arm.com>
255
256         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
257         implementation.  Include get-rounding-mode.h.
258         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
259         [!libc_feholdsetround_noex_ctx]: Define
260         libc_feholdsetround_noex_ctx.
261         [!libc_feholdsetround_noexf_ctx]: Define
262         libc_feholdsetround_noexf_ctx.
263         [!libc_feholdsetround_noexl_ctx]: Define
264         libc_feholdsetround_noexl_ctx.
265         (libc_feholdsetround_ctx): New function.
266         (libc_feresetround_ctx): New function.
267         (libc_feholdsetround_noex_ctx): New function.
268         (libc_feresetround_noex_ctx): New function.
269
270 2014-06-23  Roland McGrath  <roland@hack.frob.com>
271
272         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
273         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
274         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
275         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
276         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
277         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
278
279         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
280         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
281         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
282         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
283         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
284         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
285         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
286         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
287         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
288         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
289         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
290         Moved ...
291         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
292         ... here.
293         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
294         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
295         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
296         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
297         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
298         Moved ...
299         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
300         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
301         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
302         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
303         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
304         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
305         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
306         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
307         Moved ...
308         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
309         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
310         Moved ...
311         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
312         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
313         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
314         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
315         Moved ...
316         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
317         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
318         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
319         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
320         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
321         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
322         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
323         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
324         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
325         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
326         Moved ...
327         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
328         ... here.
329         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
330         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
331         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
332         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
333         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
334         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
335         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
336         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
337         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
338         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
339         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
340         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
341         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
342         Moved ...
343         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
344         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
345         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
346         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
347         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
348         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
349         Moved ...
350         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
351         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
352         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
353         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
354         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
355
356         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
357         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
358         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
359         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
360         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
361         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
362         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
363         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
364         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
365         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
366         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
367         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
368         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
369         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
370         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
371         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
372         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
373         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
374         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
375         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
376         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
377         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
378         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
379         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
380         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
381         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
382         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
383         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
384
385 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
386
387         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
388         (FALLOC_FL_COLLAPSE_RANGE): New macro.
389         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
390         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
391         (IPV6_PMTUDISC_INTERFACE): Likewise.
392         (IPV6_PMTUDISC_OMIT): Likewise.
393
394 2014-06-23  Andreas Schwab  <schwab@suse.de>
395
396         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
397         Remove unused errout label.
398
399 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
400
401         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
402         macro: hardware supports Vector Crypto instructions.
403
404 2014-06-23  Will Newton  <will.newton@linaro.org>
405
406         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
407         rather than __builtin_expect.
408
409         * elf/dl-lookup.c (undefined_msg): Remove variable.
410         (_dl_lookup_symbol_x): Replace undefined_msg with string
411         literal.
412
413         * elf/dl-lookup.c (do_lookup_unique): New function.
414         (do_lookup_x): Move STB_GNU_UNIQUE handling code
415         to a separate function.
416
417 2014-06-23  Andreas Schwab  <schwab@suse.de>
418
419         [BZ #17079]
420         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
421         before reading the next line.
422
423 2014-06-23  Will Newton  <will.newton@linaro.org>
424
425         * test-skeleton.c (signal_handler): Use printf and %m
426         rather than perror.  Use printf rather than fprintf to
427         stderr.  Use puts rather than fputs to stderr.
428         (main): Likewise.
429
430 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
431
432         * nscd/nscd.c (thread_info_t): Remove typedef.
433         (thread_info): Remove variable.
434
435 2014-06-21  Allan McRae  <allan@archlinux.org>
436
437         * NEWS: Mention CVE-2014-4043.
438
439 2014-06-20  Roland McGrath  <roland@hack.frob.com>
440
441         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
442         * nptl/smp.h: ... here.
443
444         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
445
446         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
447         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
448         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
449         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
450
451         * nptl/allocatestack.c: Include <stack-aliasing.h>.
452         * nptl/stack-aliasing.h: New file.
453         * sysdeps/i386/i686/stack-aliasing.h: New file.
454         * sysdeps/i386/i686/nptl/Makefile: File removed.
455         * sysdeps/x86_64/stack-aliasing.h: New file.
456         * sysdeps/x86_64/nptl/Makefile
457         (CFLAGS-pthread_create.c): Variable removed.
458
459         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
460         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
461         old file.
462         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
463         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
464         old file.
465
466 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
467
468         * sysdeps/unix/sysv/linux/arm/kernel-features.h
469         (__ASSUME_SIGFRAME_V2): Remove macro.
470         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
471         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
472         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
473         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
474         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
475         Declare as function.  Remove conditional macro definitions.
476         (__default_rt_sa_restorer): Likewise.
477         (__default_sa_restorer_v1): Remove declaration.
478         (__default_sa_restorer_v2): Likewise.
479         (__default_rt_sa_restorer_v1): Likewise.
480         (__default_rt_sa_restorer_v2): Likewise.
481         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
482         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
483         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
484
485 2014-06-20  Roland McGrath  <roland@hack.frob.com>
486
487         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
488         (libpthread-routines): Add sysdep.
489         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
490         * sysdeps/unix/sysv/linux/sparc/Versions
491         (libpthread: GLIBC_2.3.3): New version set.
492         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
493         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
494         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
495         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
496         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
497         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
498         Moved ...
499         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
500         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
501         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
502         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
503         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
504         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
505         * sysdeps/sparc/nptl/sem_init.c: ... here.
506         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
507         * sysdeps/sparc/nptl/sem_post.c: ... here.
508         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
509         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
510         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
511         * sysdeps/sparc/nptl/sem_wait.c: ... here.
512         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
513         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
514         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
515         (libpthread-routines): Add cpu_relax.
516         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
517         File removed.
518         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
519         (librt: GLIBC_2.3.3): New version set.
520         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
521         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
522         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
523         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
524         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
525         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
526         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
527         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
528         Moved ...
529         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
530         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
531         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
532         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
533         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
534         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
535         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
536         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
537         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
538         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
539         Moved ...
540         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
541         Update #include.
542         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
543         Moved ...
544         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
545         Update #include.
546         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
547         Moved ...
548         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
549         Update #include.
550         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
551         Moved ...
552         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
553         Update #include.
554         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
555         Moved ...
556         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
557         Update #include.
558         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
559         Moved ...
560         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
561         Update #include.
562         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
563         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
564         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
565         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
566         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
567         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
568         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
569         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
570         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
571         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
572         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
573         Moved ...
574         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
575         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
576         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
577         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
578         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
579
580 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
581
582         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
583         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
584         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
585         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
586         * nscd/nscd.c: Likewise.
587         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
588         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
589         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
590         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
591
592         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
593         <kernel-features.h>.
594         (init_mq_netlink): Remove conditional have_sock_cloexec
595         definitions.  Remove code conditional on have_sock_cloexec < 0.
596         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
597         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
598         * sysdeps/unix/sysv/linux/opensock.c: Do not include
599         <kernel-features.h>.
600         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
601         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
602
603 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
604
605         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
606         Add tests for memset_chk and memset.
607
608         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
609         with AVX2_Usable.
610
611 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
612
613         [BZ #16046]
614         * elf/tst-dl-iter-static.c: New file.
615         * elf/Makefile (tests-static): Add tst-dl-iter-static.
616
617         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
618         error.
619
620 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
621
622         * sysdeps/unix/sysv/linux/kernel-features.h
623         (__ASSUME_F_GETOWN_EX): Remove macro.
624         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
625         <kernel-features.h>.
626         (miss_F_GETOWN_EX): Remove variable or macro.
627         (do_fcntl): Do not check miss_F_GETOWN_EX.
628         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
629
630         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
631         Remove macro.
632         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
633         [!__ASSUME_AT_RANDOM]: Remove conditional code.
634         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
635
636         * sysdeps/unix/sysv/linux/kernel-features.h
637         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
638         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
639         [ADJ_OFFSET_SS_READ]: Make code unconditional.
640         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
641
642 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
643
644         [BZ #17075]
645         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
646         Fix calculation of the symbol's value.
647         * sysdeps/arm/tst-armtlsdescloc.c: New file.
648         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
649         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
650         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
651         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
652         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
653         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
654         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
655         (modules-names): Add `tst-armtlsdescmod',
656         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
657         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
658         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
659         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
660         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
661         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
662         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
663         ($(objpfx)tst-armtlsdescloc): New dependency.
664         ($(objpfx)tst-armtlsdescextnow): Likewise.
665         ($(objpfx)tst-armtlsdescextlazy): Likewise.
666         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
667         TLS scheme support.
668         * sysdeps/arm/configure: Regenerate.
669
670 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
671
672         * include/fcntl.h (__atfct_seterrno): Remove prototype.
673         (__atfct_seterrno_2): Likewise.
674         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
675         <kernel-features.h>.
676         (__ASSUME_ATFCTS): Do not undefine and redefine.
677         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
678         (__have_atfcts): Remove conditional definition.
679         (__fxstatat([__NR_fstatat64]: Make code unconditional.
680         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
681         unreachable if [__ASSUME_ATFCTS].
682         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
683         not undefine and redefine.
684         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
685         <kernel-features.h>.
686         (faccessat) [__NR_faccessat]: Make code unconditional.
687         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
688         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
689         <kernel-features.h>.
690         (fchmodat) [__NR_fchmodat]: Make code unconditional.
691         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
692         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
693         <kernel-features.h>.
694         (fchownat) [__NR_fchownat]: Make code unconditional.
695         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
696         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
697         <kernel-features.h>.
698         (futimesat) [__NR_futimesat]: Make code unconditional.
699         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
700         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
701         <kernel-features.h>.
702         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
703         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
704         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
705         <kernel-features.h>.
706         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
707         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
708         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
709         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
710         <kernel-features.h>.
711         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
712         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
713         * sysdeps/unix/sysv/linux/linkat.c: Do not include
714         <kernel-features.h>.
715         (linkat) [__NR_linkat]: Make code unconditional.
716         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
717         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
718         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
719         <kernel-features.h>.
720         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
721         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
722         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
723         <kernel-features.h>.
724         (mkdirat) [__NR_mkdirat]: Make code unconditional.
725         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
726         * sysdeps/unix/sysv/linux/openat.c: Do not include
727         <kernel-features.h>.
728         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
729         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
730         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
731         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
732         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
733         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
734         <kernel-features.h>.
735         (readlinkat) [__NR_readlinkat]: Make code unconditional.
736         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
737         result of INLINE_SYSCALL directly, not via int variable.
738         * sysdeps/unix/sysv/linux/renameat.c: Do not include
739         <kernel-features.h>.
740         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
741         (renameat) [__NR_renameat]: Make code unconditional.
742         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
743         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
744         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
745         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
746         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
747         (__ASSUME_ATFCTS): Do not undefine and redefine.
748         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
749         <kernel-features.h>.
750         (symlinkat) [__NR_symlinkat]: Make code unconditional.
751         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
752         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
753         <kernel-features.h>.
754         (unlinkat) [__NR_unlinkat]: Make code unconditional.
755         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
756         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
757         (__ASSUME_ATFCTS): Do not undefine and redefine.
758         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
759         <kernel-features.h>.
760         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
761         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
762         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
763         <kernel-features.h>.
764         (__xmknodat) [__NR_mknodat]: Make code unconditional.
765         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
766
767 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
768
769         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
770
771 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
772
773         [BZ #17069]
774         * posix/regcomp.c (parse_reg_exp): Deallocate partially
775         constructed tree before returning error.
776         * posix/bug-regexp36.c: Expand test case.
777
778 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
779
780         [BZ #6803]
781         * math/libm-test.inc (scalbln_test_date):
782         Add errno expectations.
783         * math/w_scalblnf.c: New File.
784         Add wrapper which checks for setting errno to ERANGE.
785         Add weak_alias for corresponding scalbln function.
786         * math/w_scalbln.c: Likewise.
787         * math/w_scalblnl.c: Likewise.
788         * math/Makefile (libm-calls): Add w_scalbln.
789         * sysdeps/ieee754/flt-32/s_scalblnf.c:
790         Remove weak_alias for corresponding scalbln function.
791         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
792         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
793         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
794         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
795         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
796         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
797         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
798         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
799         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
800         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
801         Remove long_double_symbol for scalblnl function in libm, libc.
802         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
803         Add wrapper which checks for setting errno to ERANGE.
804         Add long_double_symbol for scalblnl function in libm, libc.
805         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
806         Remove long_double_symbol for scalblnl in libm.
807         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
808         Add wrapper which checks for setting errno to ERANGE.
809         Add long_double_symbol for scalblnl function in libm.
810         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
811         Do not use wrapper because of own implementation.
812
813 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
814
815         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
816         3 bytes for __pad1 for x32.
817         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
818
819 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
820             H.J. Lu  <hongjiu.lu@intel.com>
821
822         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
823         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
824         * sysdeps/x86_64/multiarch/memset.S: Likewise.
825         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
826         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
827
828 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
829
830         [BZ #17069]
831         * posix/regcomp.c (parse_expression): Deallocate partially
832         constructed tree before returning error.
833         * posix/Makefile.c (tests): Add bug-regex36.
834         (generated): Add bug-regex36.mtrace.
835         (tests-special): Add $(objpfx)bug-regex36-mem.out
836         (bug-regex36-ENV): New variable.
837         ($(objpfx)bug-regex36-mem.out): New rule.
838         * posix/bug-regex36.c: New file.
839
840 2014-06-19  Will Newton  <will.newton@linaro.org>
841
842         * malloc/malloc.c (systrim): If extra is zero then return
843         early.
844
845 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
846
847         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
848
849 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
850
851         * sysdeps/aarch64/strchr.S: New file.
852
853 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
854
855         [BZ #17022]
856         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
857         from arguments -2 or below.
858         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
859         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
860
861 2014-06-18  Andreas Schwab  <schwab@suse.de>
862
863         [BZ #17062]
864         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
865         of a bracket expr not to run off the end of the string.
866         * posix/Makefile (tests): Add tst-fnmatch3.
867         * posix/tst-fnmatch3.c: New file.
868
869 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
870
871         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
872         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
873         [$(cross-compiling) = no]: Likewise.
874         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
875         [$(cross-compiling) = no]: Likewise.
876
877 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
878
879         [BZ #17031]
880         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
881         double, adjusted for any remainder from the high double.
882         * math/libm-test.inc (nearbyint): Add tests.
883         (rint): Likewise.
884
885 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
886
887         * nptl/sysdeps/powerpc/Makefile: Moved ...
888         * sysdeps/powerpc/nptl/Makefile: ... here.
889         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
890         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
891         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
892         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
893         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
894         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
895         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
896         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
897         * nptl/sysdeps/powerpc/tls.h: Moved ...
898         * sysdeps/powerpc/nptl/tls.h: ... here.
899
900 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
901
902         [BZ #16681]
903         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
904         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
905         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
906         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
907         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
908         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
909         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
910         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
911         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
912
913 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
914
915         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
916
917 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
918
919         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
920         defined operator.
921
922         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
923         $TIMEOUTFACTOR.
924
925 2014-06-16  Florian Weimer  <fweimer@redhat.com>
926
927         [BZ #17058]
928         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
929         non-executed part of the test.
930
931 2014-06-16  Andreas Schwab  <schwab@suse.de>
932
933         * string/bits/string2.h (strdup, strndup): Update feature guard.
934
935 2014-06-14  David S. Miller  <davem@davemloft.net>
936
937         * sysdeps/sparc/fpu/libm-test-ulps: Update.
938
939 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
940
941         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
942         that was previously under [RESET_PID].
943         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
944
945         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
946         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
947         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
948         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
949         (__libc_vfork): New strong alias.
950         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
951
952 2014-06-14 Andi Kleen  <ak@linux.intel.com>
953
954         * sysdeps/generic/elide.h: New file.
955
956 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
957
958         * Makefile (installed-headers): Adjust path of pthread.h header.
959
960 2014-06-13  Roland McGrath  <roland@hack.frob.com>
961
962         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
963         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
964         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
965         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
966
967         * nptl/sysdeps/s390/Makefile: Moved ...
968         * sysdeps/s390/nptl/Makefile: ... here.
969         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
970         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
971         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
972         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
973         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
974         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
975         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
976         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
977         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
978         * sysdeps/s390/nptl/pthreaddef.h: ... here.
979         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
980         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
981         * nptl/sysdeps/s390/tls.h: Moved ...
982         * sysdeps/s390/nptl/tls.h: ... here.
983
984         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
985         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
986
987 2014-06-13  David S. Miller  <davem@davemloft.net>
988
989         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
990         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
991         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
992         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
993         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
994         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
995         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
996         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
997         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
998         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
999         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1000         Remove RESET_PID cpp guards.
1001         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1002         Remove RESET_PID cpp guards.
1003         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
1004
1005 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
1006
1007         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
1008         __sp to uintptr_t.
1009
1010 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1011
1012         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
1013         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
1014         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
1015         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
1016         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
1017         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
1018         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
1019         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
1020         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
1021         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
1022         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
1023         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
1024         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
1025         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
1026         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
1027         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
1028         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
1029         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
1030         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
1031         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
1032
1033         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
1034         (pthread_rwlock_rdlock): Add elision.
1035         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
1036         (pthread_rwlock_wrlock): Add elision.
1037         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
1038         (pthread_rwlock_trywrlock): Add elision.
1039         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
1040         (pthread_rwlock_tryrdlock): Add elision.
1041         * nptl/pthread_rwlock_unlock.c: Include elide.h.
1042         (pthread_rwlock_tryrdlock): Add elision unlock.
1043         * nptl/sysdeps/pthread/pthread.h:
1044         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
1045         (PTHREAD_RWLOCK_INITIALIZER,
1046         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
1047         Handle new elision field.
1048         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
1049         * sysdeps/arm/nptl/bits/pthreadtypes.h
1050         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1051         * sysdeps/sh/nptl/bits/pthreadtypes.h
1052         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1053         * sysdeps/tile/nptl/bits/pthreadtypes.h
1054         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1055         * sysdeps/a/nptl/bits/pthreadtypes.h
1056         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1057         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
1058         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1059         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
1060         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1061         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
1062         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1063         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
1064         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1065         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
1066         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1067         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
1068         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1069         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
1070         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1071         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
1072         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1073         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
1074         (elision_init): Set try_xbegin to zero when no RTM.
1075         * sysdeps/x86/nptl/bits/pthreadtypes.h
1076         (pthread_rwlock_t): Change __pad1 to __rwelision.
1077         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1078
1079 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1080
1081         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
1082         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
1083         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
1084         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
1085
1086 2014-06-13  Meador Inge  <meadori@codesourcery.com>
1087
1088         [BZ #16996]
1089         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
1090         that the cached result has been set before returning it.
1091
1092 2014-06-12  Roland McGrath  <roland@hack.frob.com>
1093
1094         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
1095         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
1096         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
1097         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
1098         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
1099         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
1100
1101         * nptl/sysdeps/sparc/Makefile: Moved ...
1102         * sysdeps/sparc/nptl/Makefile: ... here.
1103         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
1104         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
1105         * nptl/sysdeps/sparc/tls.h: Moved ...
1106         * sysdeps/sparc/nptl/tls.h: ... here.
1107         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
1108         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
1109         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
1110         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
1111         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
1112         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
1113         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
1114         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
1115         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
1116         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
1117         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
1118         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
1119         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
1120         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
1121         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
1122         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
1123         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
1124         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
1125         Update #include.
1126         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
1127         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
1128         Update #include.
1129         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
1130         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
1131         Update #include.
1132         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
1133         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
1134         Update #include.
1135
1136         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1137
1138         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
1139         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
1140
1141         * sysdeps/pthread/posix-timer.h: Include <list.h>.
1142         (struct list_links): Type removed.
1143         (struct thread_node, struct timer_node): Replace struct list_links
1144         with struct list_head.
1145         (list_unlink_ip): Likewise.
1146         * sysdeps/pthread/timer_routines.c
1147         (timer_free_list, thread_free_list, thread_active_list): Likewise.
1148         (list_append, list_insbefore): Likewise.
1149         (list_init): Function removed.
1150         (thread_init, init_module): Use INIT_LIST_HEAD instead.
1151         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
1152         * sysdeps/pthread/Makefile: ... here, new file.
1153
1154         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
1155         * sysdeps/nptl/Implies: ... here.
1156         * sysdeps/unix/sysv/linux/Implies: Add nptl.
1157         * nptl/sysdeps/pthread/list.h: Moved ...
1158         * include/list.h: ... here.
1159         * nptl/sysdeps/pthread/createthread.c: Moved ...
1160         * nptl/createthread.c: ... here.
1161         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
1162         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
1163         * nptl/pt-longjmp.c: ... here.
1164         * nptl/sysdeps/pthread/Makefile: Moved ...
1165         * sysdeps/nptl/Makefile: ... here.
1166         * nptl/sysdeps/pthread/Subdirs: Moved ...
1167         * sysdeps/nptl/Subdirs: ... here.
1168         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
1169         * sysdeps/nptl/aio_misc.h: ... here.
1170         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
1171         * sysdeps/nptl/bits/libc-lock.h: ... here.
1172         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
1173         * sysdeps/nptl/bits/libc-lockP.h: ... here.
1174         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
1175         * sysdeps/nptl/bits/stdio-lock.h: ... here.
1176         * nptl/sysdeps/pthread/configure: Moved ...
1177         * sysdeps/nptl/configure: ... here.
1178         * nptl/sysdeps/pthread/configure.ac: Moved ...
1179         * sysdeps/nptl/configure.ac: ... here.
1180         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
1181         * sysdeps/nptl/gai_misc.h: ... here.
1182         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
1183         * sysdeps/nptl/librt-cancellation.c: ... here.
1184         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
1185         * sysdeps/nptl/malloc-machine.h: ... here.
1186         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
1187         * sysdeps/nptl/pthread-functions.h: ... here.
1188         * nptl/sysdeps/pthread/pthread.h: Moved ...
1189         * sysdeps/nptl/pthread.h: ... here.
1190         * nptl/sysdeps/pthread/setxid.h: Moved ...
1191         * sysdeps/nptl/setxid.h: ... here.
1192         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
1193         * sysdeps/nptl/sigfillset.c: ... here.
1194         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
1195         * sysdeps/nptl/tcb-offsets.h: ... here.
1196         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
1197         * sysdeps/nptl/tst-mqueue8x.c: ... here.
1198         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
1199         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
1200         * nptl/sysdeps/pthread/allocalim.h: Moved ...
1201         * sysdeps/pthread/allocalim.h: ... here.
1202         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
1203         * sysdeps/pthread/bits/sigthread.h: ... here.
1204         * nptl/sysdeps/pthread/flockfile.c: Moved ...
1205         * sysdeps/pthread/flockfile.c: ... here.
1206         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
1207         * sysdeps/pthread/ftrylockfile.c: ... here.
1208         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
1209         * sysdeps/pthread/funlockfile.c: ... here.
1210         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
1211         * sysdeps/pthread/posix-timer.h: ... here.
1212         * nptl/sysdeps/pthread/timer_create.c: Moved ...
1213         * sysdeps/pthread/timer_create.c: ... here.
1214         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
1215         * sysdeps/pthread/timer_delete.c: ... here.
1216         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
1217         * sysdeps/pthread/timer_getoverr.c: ... here.
1218         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
1219         * sysdeps/pthread/timer_gettime.c: ... here.
1220         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
1221         * sysdeps/pthread/timer_routines.c: ... here.
1222         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
1223         * sysdeps/pthread/timer_settime.c: ... here.
1224         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
1225         * sysdeps/pthread/tst-timer.c: ... here.
1226         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
1227         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
1228
1229         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
1230         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
1231
1232         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
1233         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
1234         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
1235         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
1236         Update #include target.
1237         * nptl/sysdeps/i386/i686/Makefile: Moved ...
1238         * sysdeps/i386/i686/nptl/Makefile: ... here.
1239         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
1240         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
1241         Update #include target.
1242         * nptl/sysdeps/i386/i686/tls.h: Moved ...
1243         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
1244         * nptl/sysdeps/i386/Makefile: Moved ...
1245         * sysdeps/i386/nptl/Makefile: ... here.
1246         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
1247         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
1248         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
1249         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
1250         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
1251         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
1252         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
1253         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
1254         * sysdeps/i386/nptl/pthreaddef.h: ... here.
1255         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
1256         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
1257         * nptl/sysdeps/i386/tls.h: Moved ...
1258         * sysdeps/i386/nptl/tls.h: ... here.
1259
1260         * sysdeps/sh/Makefile [$(subdir) = csu]
1261         (gen-as-const-headers): Add tcb-offsets.sym.
1262         * nptl/sysdeps/sh/Makefile: File removed.
1263         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
1264         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
1265         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
1266         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
1267         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
1268         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
1269         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
1270         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
1271         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
1272         * sysdeps/sh/nptl/pthreaddef.h: ... here.
1273         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
1274         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
1275         * nptl/sysdeps/sh/tls.h: Moved ...
1276         * sysdeps/sh/nptl/tls.h: ... here.
1277         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
1278         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
1279         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
1280         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
1281         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
1282         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
1283         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
1284         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
1285         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
1286         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
1287         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
1288         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
1289         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
1290         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
1291         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
1292         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
1293         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
1294         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
1295         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
1296         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
1297         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
1298         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
1299         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
1300         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
1301         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
1302         Moved ...
1303         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
1304         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
1305         Moved ...
1306         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
1307         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
1308         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
1309         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
1310         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
1311         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
1312         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
1313         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
1314         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
1315         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
1316         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
1317         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
1318         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
1319         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
1320         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
1321         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
1322         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
1323         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
1324         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
1325
1326 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
1327
1328         * posix/spawn_faction_addopen.c: Include string.h.
1329
1330 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1331
1332         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
1333         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
1334         * nptl/sysdeps/x86_64/Makefile: Moved ...
1335         * sysdeps/x86_64/nptl/Makefile: ... here.
1336         * nptl/sysdeps/x86_64/configure: Moved ...
1337         * sysdeps/x86_64/nptl/configure: ... here.
1338         * nptl/sysdeps/x86_64/configure.ac: Moved ...
1339         * sysdeps/x86_64/nptl/configure.ac: ... here.
1340         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
1341         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
1342         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
1343         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
1344         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
1345         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
1346         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
1347         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
1348         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
1349         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
1350         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
1351         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
1352         * nptl/sysdeps/x86_64/tls.h: Moved ...
1353         * sysdeps/x86_64/nptl/tls.h: ... here.
1354         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
1355         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
1356         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
1357         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
1358
1359         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
1360
1361 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1362
1363         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1364
1365 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
1366
1367         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
1368         type.
1369         [POSIX] (off_t): Likewise.
1370         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
1371         [POSIX] (S_ISBLK): Require macro.
1372         [POSIX] (S_ISCHR): Likewise.
1373         [POSIX] (S_ISDIR): Likewise.
1374         [POSIX] (S_ISFIFO): Likewise.
1375         [POSIX] (S_ISREG): Likewise.
1376         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
1377         optional-macro.
1378         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
1379         type.
1380         [POSIX] (time_t): Likewise.
1381         [POSIX] (timer_t): Likewise.
1382
1383 2014-06-11  Florian Weimer  <fweimer@redhat.com>
1384
1385         [BZ #17048]
1386         * posix/spawn_int.h (struct __spawn_action): Make the path string
1387         non-const to support deallocation.
1388         * posix/spawn_faction_addopen.c
1389         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
1390         * posix/spawn_faction_destroy.c
1391         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
1392         path in all spawn_do_open actions.
1393         * posix/tst-spawn.c (do_test): Exercise the copy operation in
1394         posix_spawn_file_actions_addopen.
1395
1396 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
1397
1398         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
1399         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
1400         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
1401         conditional code always true.
1402         (__libc_vfork): New alias.
1403
1404 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1405
1406         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1407         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
1408
1409         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
1410
1411         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1412         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
1413
1414         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1415         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
1416
1417         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1418         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
1419
1420 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1421
1422         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
1423         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
1424         multiarch strcmp for PPC64.
1425         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
1426         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
1427         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
1428         multiarch optimizations.
1429         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1430         (__libc_ifunc_impl_list): Likewise.
1431
1432 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1433
1434         * benchtests/scripts/validate_benchout.py: New script.
1435         * benchtests/Makefile (bench-func): Call it.
1436         * benchtests/scripts/benchout.schema.json: New file.
1437
1438 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
1439
1440         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
1441         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
1442         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
1443         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
1444         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
1445         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
1446         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
1447         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
1448         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
1449         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
1450         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
1451         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
1452         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
1453         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
1454         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
1455         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
1456         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
1457         Moved ...
1458         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
1459         ... here.
1460         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
1461         Moved ...
1462         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
1463         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
1464         Moved ...
1465         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
1466         ... here.
1467         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
1468         Moved ...
1469         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
1470         ... here.
1471         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
1472         Moved ...
1473         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
1474         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
1475         Moved ...
1476         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
1477         ... here.
1478         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
1479         Moved ...
1480         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
1481         ... here.
1482         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
1483         Moved ...
1484         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
1485         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
1486         Moved ...
1487         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
1488         ... here.
1489         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
1490         Moved ...
1491         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
1492         ... here.
1493         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
1494         Moved ...
1495         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
1496         ... here.
1497         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
1498         Moved ...
1499         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
1500         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
1501         Moved ...
1502         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
1503         ... here.
1504         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
1505         Moved ...
1506         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
1507         ... here.
1508         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
1509         Moved ...
1510         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
1511         ... here.
1512         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
1513         Moved ...
1514         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
1515         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
1516         Moved ...
1517         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
1518         ... here.
1519         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
1520         Moved ...
1521         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
1522         ... here.
1523         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
1524         Moved ...
1525         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
1526         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
1527         Moved ...
1528         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
1529         ... here.
1530         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
1531         Moved ...
1532         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
1533         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
1534         Moved ...
1535         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
1536         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
1537         Moved ...
1538         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
1539         ... here.
1540         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
1541         Moved ...
1542         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
1543         ... here.
1544         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
1545         Moved ...
1546         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
1547         ... here.
1548         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
1549         Moved ...
1550         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
1551         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
1552         Moved ...
1553         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
1554         ... here.
1555         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
1556         Moved ...
1557         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
1558         ... here.
1559         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
1560         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
1561         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
1562         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
1563         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
1564         Moved ...
1565         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
1566         ... here.
1567         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
1568         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
1569         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
1570         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
1571         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
1572         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
1573         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
1574         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
1575         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
1576         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
1577         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
1578         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
1579         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
1580         Moved ...
1581         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
1582         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
1583         Moved ...
1584         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
1585         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
1586         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
1587         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
1588         Moved ...
1589         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
1590         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
1591         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
1592         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
1593         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
1594         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
1595         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
1596
1597 2014-06-10  Wilco  <wdijkstr@arm.com>
1598
1599         * math/test-fenv-return.c: New file.
1600         * math/Makefile: Add new test test-fenv-return.
1601
1602 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
1603
1604         [BZ #17042]
1605         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
1606         when x - 1 is zero.
1607         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
1608         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1609         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
1610         0.0L for an argument of 1.0L.
1611         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
1612         Likewise.
1613         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
1614         value when x - 1 is zero.
1615         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
1616         * sysdeps/i386/fpu/libm-test-ulps: Update.
1617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1618
1619 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
1620
1621         [BZ #15119]
1622         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
1623
1624 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1625
1626         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
1627         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
1628
1629 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1630
1631         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1632         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
1633
1634         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1635         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
1636
1637         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1638         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
1639
1640         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1641         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
1642
1643         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
1644         if not already defined.
1645         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
1646         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
1647         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
1648         (TLS_INIT_TP): Use it.
1649         (TLS_DEFINE_INIT_TP): New macro.
1650         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
1651
1652 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
1653
1654         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
1655         constant.
1656         [POSIX] (IXANY): Likewise.
1657         [POSIX] (OLCUC): Likewise.
1658         [POSIX || POSIX2008] (CBAUD): Do not allow.
1659         [POSIX || POSIX2008] (DEFECHO): Likewise.
1660         [POSIX || POSIX2008] (ECHOCTL): Likewise.
1661         [POSIX || POSIX2008] (ECHOKE): Likewise.
1662         [POSIX || POSIX2008] (ECHOPRT): Likewise.
1663         [POSIX || POSIX2008] (EXTA): Likewise.
1664         [POSIX || POSIX2008] (EXTB): Likewise.
1665         [POSIX || POSIX2008] (FLUSHO): Likewise.
1666         [POSIX || POSIX2008] (LOBLK): Likewise.
1667         [POSIX || POSIX2008] (PENDIN): Likewise.
1668         [POSIX || POSIX2008] (SWTCH): Likewise.
1669         [POSIX || POSIX2008] (VDISCARD): Likewise.
1670         [POSIX || POSIX2008] (VDSUSP): Likewise.
1671         [POSIX || POSIX2008] (VLNEXT): Likewise.
1672         [POSIX || POSIX2008] (VREPRINT): Likewise.
1673         [POSIX || POSIX2008] (VSTATUS): Likewise.
1674         [POSIX || POSIX2008] (VWERASE): Likewise.
1675         (B*): Change to B[0123456789]*.
1676         * conform/data/time.h-data [POSIX || UNIX98]
1677         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
1678         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
1679         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
1680         [POSIX] (tm_*): Do not allow.
1681
1682 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
1683
1684         * Makefile (install): Don't set LANGUAGE.
1685         * Makefile.in (install): Likewise.
1686         * assert/Makefile (test-assert-ENV): Remove variable.
1687         (test-assert-perr-ENV): Likewise.
1688         * elf/Makefile (neededtest4-ENV): Likewise.
1689         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1690         [$(cross-compiling) = no]: Don't set LANGUAGE.
1691         * io/ftwtest-sh (LANG): Remove variable.
1692         * libio/Makefile (tst-widetext-ENV): Likewise.
1693         * manual/install.texi (Running make install): Don't refer to
1694         environment settings for make install.
1695         * INSTALL: Regenerated.
1696         * nptl/tst-tls6.sh: Don't set LANG.
1697         * posix/globtest.sh (LANG): Remove variable.
1698         * string/Makefile (tester-ENV): Likewise.
1699         (inl-tester-ENV): Likewise.
1700         (noinl-tester-ENV): Likewise.
1701         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1702         [$(cross-compiling) = no]: Don't set LANGUAGE.
1703         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
1704         without explicit environment settings.
1705
1706 2014-06-06  Roland McGrath  <roland@hack.frob.com>
1707
1708         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
1709         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
1710         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
1711         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
1712
1713 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
1714
1715         * crypt/crypt-private.h [DOS]: Add some includes taken from the
1716         other files in the crypt directory.
1717         * crypt/crypt.c: Remove duplicate includes.
1718         * crypt/crypt-entry.c: Likewise.
1719         * crypt/crypt_util.c: Likewise.
1720
1721 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
1722
1723         * Makeconfig (run-program-env): New variable.
1724         (run-program-prefix-before-env): Likewise.
1725         (run-program-prefix-after-env): Likewise.
1726         (run-program-prefix): Define in terms of new variables.
1727         (built-program-cmd-before-env): New variable.
1728         (built-program-cmd-after-env): Likewise.
1729         (built-program-cmd): Define in terms of new variables.
1730         (test-program-prefix-before-env): New variable.
1731         (test-program-prefix-after-env): Likewise.
1732         (test-program-prefix): Define in terms of new variables.
1733         (test-program-cmd-before-env): New variable.
1734         (test-program-cmd-after-env): Likewise.
1735         (test-program-cmd): Define in terms of new variables.
1736         * Rules (make-test-out): Use $(run-program-env).
1737         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
1738         (help): Do not mention environment variables.  Mention
1739         --timeoutfactor option.
1740         (timeoutfactor): New variable.
1741         (blacklist_exports): Remove function.
1742         (exports): Remove variable.
1743         (command): Do not include ${exports}.
1744         * manual/install.texi (Configuring and compiling): Do not mention
1745         test wrappers preserving environment variables.  Mention that last
1746         assignment to a variable must take precedence.
1747         * INSTALL: Regenerated.
1748         * benchtests/Makefile (run-bench): Use $(run-program-env).
1749         * catgets/Makefile ($(objpfx)test1.cat): Use
1750         $(built-program-cmd-before-env), $(run-program-env) and
1751         $(built-program-cmd-after-env).
1752         ($(objpfx)test2.cat): Do not specify environment variables
1753         explicitly.
1754         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
1755         $(run-program-env) and $(built-program-cmd-after-env).
1756         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
1757         $(run-program-env) and $(test-program-cmd-after-env).
1758         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
1759         explicitly.
1760         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
1761         run_program_env and test_program_cmd_after_env arguments.
1762         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
1763         * elf/tst-pathopt.sh: Use run_program_env argument.
1764         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
1765         $(test-wrapper-env) and $(run-program-env).
1766         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
1767         run_program_env arguments.
1768         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
1769         * intl/Makefile ($(objpfx)tst-gettext.out): Use
1770         $(test-program-prefix-before-env), $(run-program-env) and
1771         $(test-program-prefix-after-env).
1772         ($(objpfx)tst-gettext2.out): Likewise.
1773         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
1774         run_program_env and test_program_prefix_after_env arguments.
1775         * intl/tst-gettext2.sh: Likewise.
1776         * intl/tst-gettext4.sh: Do not set environment variables
1777         explicitly.
1778         * intl/tst-gettext6.sh: Likewise.
1779         * intl/tst-translit.sh: Likewise.
1780         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
1781         $(test-program-prefix-before-env), $(run-program-env) and
1782         $(test-program-prefix-after-env).
1783         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
1784         run_program_env and test_program_prefix_after_env arguments.
1785         * math/Makefile (run-regen-ulps): Use $(run-program-env).
1786         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
1787         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
1788         explicitly with each use of ${test_wrapper_env}.
1789         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
1790         $(test-program-prefix-before-env), $(run-program-env) and
1791         $(test-program-prefix-after-env).
1792         * posix/tst-getconf.sh: Do not set environment variables
1793         explicitly.
1794         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
1795         run_program_env and test_program_prefix_after_env arguments.
1796         * stdio-common/tst-printf.sh: Do not set environment variables
1797         explicitly.
1798         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
1799         $(test-program-prefix-before-env), $(run-program-env) and
1800         $(test-program-prefix-after-env).
1801         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
1802         run_program_env and test_program_prefix_after_env arguments.
1803         Split $test calls into $test_pre and $test.
1804         * timezone/Makefile (build-testdata): Use
1805         $(built-program-cmd-before-env), $(run-program-env) and
1806         $(built-program-cmd-after-env).
1807
1808 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1809
1810         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
1811         strlen for non SHARED builds.
1812
1813 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1814
1815         * nptl/allocatestack.c (check_list): Inlined function...
1816         (__reclaim_stacks): ... here.
1817
1818 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1819
1820         [BZ #15698]
1821         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
1822         memory overrun.
1823
1824 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
1825
1826         * Rules (make-test-out): Include
1827         LOCPATH=$(common-objpfx)localedata in default environment.
1828         * debug/Makefile (tst-chk1-ENV): Remove variable.
1829         (tst-chk2-ENV): Likewise.
1830         (tst-chk3-ENV): Likewise.
1831         (tst-chk4-ENV): Likewise.
1832         (tst-chk5-ENV): Likewise.
1833         (tst-chk6-ENV): Likewise.
1834         (tst-lfschk1-ENV): Likewise.
1835         (tst-lfschk2-ENV): Likewise.
1836         (tst-lfschk3-ENV): Likewise.
1837         (tst-lfschk4-ENV): Likewise.
1838         (tst-lfschk5-ENV): Likewise.
1839         (tst-lfschk6-ENV): Likewise.
1840         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
1841         (tst-iconv7-ENV): Likewise.
1842         * intl/Makefile (LOCPATH-ENV): Likewise.
1843         (tst-codeset-ENV): Likewise.
1844         (tst-gettext3-ENV): Likewise.
1845         (tst-gettext5-ENV): Likewise.
1846         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
1847         (tst-fopenloc-ENV): Likewise.
1848         (tst-fgetws-ENV): Remove variable.
1849         (tst-ungetwc1-ENV): Likewise.
1850         (tst-ungetwc2-ENV): Likewise.
1851         (bug-ungetwc2-ENV): Likewise.
1852         (tst-swscanf-ENV): Likewise.
1853         (bug-ftell-ENV): Likewise.
1854         (tst-fgetwc-ENV): Likewise.
1855         (tst-fseek-ENV): Likewise.
1856         (tst-ftell-partial-wide-ENV): Likewise.
1857         (tst-ftell-active-handler-ENV): Likewise.
1858         (tst-ftell-append-ENV): Likewise.
1859         * posix/Makefile (tst-fnmatch-ENV): Likewise.
1860         (tst-regexloc-ENV): Likewise.
1861         (bug-regex1-ENV): Likewise.
1862         (tst-regex-ENV): Likewise.
1863         (tst-regex2-ENV): Likewise.
1864         (bug-regex5-ENV): Likewise.
1865         (bug-regex6-ENV): Likewise.
1866         (bug-regex17-ENV): Likewise.
1867         (bug-regex18-ENV): Likewise.
1868         (bug-regex19-ENV): Likewise.
1869         (bug-regex20-ENV): Likewise.
1870         (bug-regex22-ENV): Likewise.
1871         (bug-regex23-ENV): Likewise.
1872         (bug-regex25-ENV): Likewise.
1873         (bug-regex26-ENV): Likewise.
1874         (bug-regex30-ENV): Likewise.
1875         (bug-regex32-ENV): Likewise.
1876         (bug-regex33-ENV): Likewise.
1877         (bug-regex34-ENV): Likewise.
1878         (bug-regex35-ENV): Likewise.
1879         (tst-rxspencer-ENV): Likewise.
1880         (tst-rxspencer-no-utf8-ENV): Likewise.
1881         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
1882         (tst-sscanf-ENV): Likewise.
1883         (tst-swprintf-ENV): Likewise.
1884         (tst-swscanf-ENV): Likewise.
1885         (test-vfprintf-ENV): Likewise.
1886         (scanf13-ENV): Likewise.
1887         (bug14-ENV): Likewise.
1888         (tst-grouping-ENV): Likewise.
1889         * stdlib/Makefile (tst-strtod-ENV): Likewise.
1890         (tst-strtod3-ENV): Likewise.
1891         (tst-strtod4-ENV): Likewise.
1892         (tst-strtod5-ENV): Likewise.
1893         (testmb2-ENV): Likewise./
1894         * string/Makefile (tst-strxfrm-ENV): Likewise.
1895         (tst-strxfrm2-ENV): Likewise.
1896         (bug-strcoll1-ENV): Likewise.
1897         (test-strcasecmp-ENV): Likewise.
1898         (test-strncasecmp-ENV): Likewise.
1899         * time/Makefile (tst-strptime-ENV): Likewise.
1900         (tst-ftime_l-ENV): Likewise.
1901         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
1902         (tst-mbrtowc-ENV): Likewise.
1903         (tst-wcrtomb-ENV): Likewise.
1904         (tst-mbrtowc2-ENV): Likewise.
1905         (tst-c16c32-1-ENV): Likewise.
1906         (tst-mbsnrtowcs-ENV): Likewise.
1907
1908 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1909
1910         * manual/resource.texi (How to get information about the memory
1911         subsystem?): Fix typo.
1912         Reported by Peon de la Parra Ivan <peon@keba.com>
1913
1914 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
1915
1916         [BZ #16882]
1917         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
1918         (pthread_spin_lock): Branch out of spin loop to proper location.
1919         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
1920         (pthread_spin_lock): Likewise.
1921
1922         * nptl/tst-spin4.c: New test.
1923         * nptl/Makefile (tests): Add tst-spin4.
1924
1925 2014-06-03  Andreas Schwab  <schwab@suse.de>
1926
1927         [BZ #15946]
1928         * resolv/res_send.c (send_dg): Reload file descriptor after
1929         calling reopen.
1930
1931 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
1932
1933         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1934
1935 2014-06-03  Richard Henderson  <rth@redhat.com>
1936
1937         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
1938         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
1939         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
1940         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
1941         in the SAVE_PID block.
1942         (__libc_vfork): New alias.
1943         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
1944
1945         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
1946         child in registers, not on the stack.  Remove RESET_PID conditionals.
1947         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
1948
1949 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1950
1951         * sysdeps/aarch64/libm-test-ulps: Regenerate.
1952
1953 2014-06-03  Wilco  <wdijkstr@arm.com>
1954
1955         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
1956         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
1957         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1958         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
1959         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
1960         Likewise.
1961
1962 2014-06-03  Wilco  <wdijkstr@arm.com>
1963
1964         * sysdeps/aarch64/fpu/math_private.h
1965         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
1966         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
1967         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
1968         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1969         Fix declarations.
1970
1971 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
1972
1973         * crypt/crypt-private.h: Include ufc-crypt.h.
1974         (__b64_from_24bit): Declare extern.
1975         * crypt/crypt_util.c(__b64_from_24bit): New function.
1976         (b64t): New static const variable.
1977         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
1978         (b64t): Remove variable.
1979         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
1980         * crypt/sha256-crypt.c: Include crypt-private.h.
1981         (b64t): Remove variable.
1982         (__sha256_crypt_r): Remove b64_from_24bit and replace
1983         with __b64_from_24bit.
1984         * crypt/sha512-crypt.c: Likewise.
1985
1986 2014-06-02  Roland McGrath  <roland@hack.frob.com>
1987
1988         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
1989         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
1990         Label the code __libc_vfork rather than __vfork.
1991         [!NOT_IN_libc] (vfork): Define as weak alias.
1992         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
1993         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
1994         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
1995
1996 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1997
1998         * malloc/malloc.c (malloc_info): Fix format specifier for
1999         n_mmaps.
2000
2001 2014-06-02  Wilco  <wdijkstr@arm.com>
2002
2003         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
2004         FPCR write.
2005
2006 2014-06-02  Wilco  <wdijkstr@arm.com>
2007
2008         [BZ #17009]
2009         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
2010         Rewrite to reduce FPCR/FPSR accesses.
2011
2012 2014-06-01  David S. Miller  <davem@davemloft.net>
2013
2014         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2015
2016 2014-05-31  David S. Miller  <davem@davemloft.net>
2017
2018         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
2019         to occur in round to nearest mode when |x| >= 2.0
2020
2021 2014-05-30  Richard Henderson  <rth@twiddle.net>
2022
2023         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
2024         (PSEUDO_RET_NOERRNO): Remove.
2025         (ret): Don't redefine.
2026         (ret_NOERRNO): Define in terms of ret.
2027         (ret_ERRVAL): Likewise.
2028
2029         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
2030         use of PSEUDO_RET; perform the error check directly.
2031
2032 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
2033
2034         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
2035         with __int128_t.
2036
2037 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2038
2039         * malloc/malloc (malloc_info): Fix formatting.
2040
2041 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2042             Roland McGrath  <roland@hack.frob.com>
2043
2044         * malloc/malloc (malloc_info): Also print mmapped statistics.
2045
2046 2014-05-30  Roland McGrath  <roland@hack.frob.com>
2047
2048         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
2049         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
2050
2051 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
2052
2053         * malloc/malloc.c (malloc_info): Inline mi_arena.
2054
2055 2014-05-29  Richard Henderson  <rth@twiddle.net>
2056
2057         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
2058         Remove comma before expanding ASM_ARGS_##nr.
2059         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
2060         Make _x0 a strict output; make _x8 a strict input; adjust expansion
2061         of ASM_ARGS_##nr.
2062         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
2063         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
2064         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
2065         (ASM_ARGS_1): Add leading comma.
2066
2067         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
2068         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
2069         to __errno_location.
2070         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
2071         Remove the expected plt for __errno_location.
2072
2073         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2074         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
2075         call to __read_tp.
2076
2077         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2078         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
2079         it and break it down.
2080         (DOCARGS_0, DOCARGS_1): Do nothing.
2081         (DOCARGS_2): Update to store into the new stack frame.
2082         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
2083         (UNDOCARGS_1): Update to restore from the new stack frame.
2084         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
2085         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
2086
2087         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2088         (SINGLE_THREAD_P): New parameter for result regno.
2089         (PSEUDO): Update to match; use cbz instead of beq.
2090
2091         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2092         Use ENTRY to define the _nocancel entry point.  Share the syscall
2093         and syscall error check paths with the cancel path.
2094         (PSEUDO_END): New.
2095
2096         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
2097         whitespace; tabs before and after asm mnemonics.
2098
2099 2014-05-29  Eric Wong  <normalperson@yhbt.net>
2100
2101         [BZ #15132]
2102         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2103         Call fstat64 or stat64 internally, depending on arguments passed.
2104         Replace stat buffer argument with file descriptor argument.
2105         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
2106         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
2107         Pass fd to __internal_statvfs instead of calling fstat64.
2108         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
2109         Pass fd to __internal_statvfs64 instead of calling fstat64.
2110         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
2111         Pass -1 to __internal_statvfs instead of calling stat64.
2112         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
2113         Pass -1 to __internal_statvfs64 instead of calling stat64.
2114
2115 2014-05-28  Roland McGrath  <roland@hack.frob.com>
2116
2117         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
2118         that was previously under [RESET_PID].
2119         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
2120
2121         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
2122         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
2123
2124 2014-05-27  Roland McGrath  <roland@hack.frob.com>
2125
2126         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
2127
2128         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
2129         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
2130
2131 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
2132
2133         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
2134
2135 2014-05-27  Andreas Schwab  <schwab@suse.de>
2136
2137         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
2138         TLS_INIT_TP macro.
2139         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2140         * elf/rtld.c (init_tls, dl_main): Likewise.
2141         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
2142         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
2143         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
2144         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
2145         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
2146         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2147         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
2148         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
2149         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
2150         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
2151         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
2152         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
2153         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
2154         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
2155         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
2156         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
2157         * sysdeps/generic/tls.h: Update description.
2158
2159 2014-05-27  Will Newton  <will.newton@linaro.org>
2160
2161         [BZ #16990]
2162         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
2163         and restore r2 rather than just restoring.
2164
2165 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2166
2167         [BZ #16724]
2168         * libio/tst-ftell-append.c: New test case.
2169         * libio/Makefile (tests): Add test case.
2170         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
2171         append mode.
2172         * libio/wfileops.c (do_ftell_wide): Likewise.
2173
2174 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2175
2176         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2177
2178         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
2179         ...
2180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
2181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
2182         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
2183         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
2184         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
2185         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
2186         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
2187         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
2188         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
2189         Moved ...
2190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
2191         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
2192         Moved ...
2193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
2194         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
2195         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
2196         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
2197         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
2198         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
2199         ...
2200         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
2201         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
2202         Moved ...
2203         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
2204         here.
2205         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
2206         ...
2207         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
2208         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
2209         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
2210
2211         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
2212         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
2213         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
2214         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
2215
2216         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
2217         merge into ...
2218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
2219         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
2220         ...
2221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
2222         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
2223         ...
2224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
2225         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2226         Moved ...
2227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
2228         here.
2229         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2230         Moved ...
2231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
2232         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2233         Moved ...
2234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
2235
2236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
2237         conditional [RESET_PID].
2238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
2239         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
2240         removed.
2241         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
2242         removed.
2243
2244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
2245         <tcb-offsets.h>.
2246         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2247         (__libc_vfork): New strong alias.
2248         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
2249         removed.
2250         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
2251         Removed.
2252
2253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
2254         <tcb-offsets.h>.
2255         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
2256         (__libc_vfork): New strong alias.
2257         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
2258         removed.
2259         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
2260         removed.
2261
2262 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
2263
2264         * malloc/malloc.c (mi_arena): New function.
2265         (malloc_info): Remove nested function mi_arena. Call non-nosted
2266         function mi_arena.
2267
2268 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2269
2270         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
2271         by insrwi.
2272         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2273         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2274         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
2275         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
2276         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
2277         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
2278         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
2279
2280 2014-05-26  Andreas Schwab  <schwab@suse.de>
2281
2282         [BZ #16984]
2283         * locale/programs/repertoire.c (repertoire_read): Add slash
2284         between I18NPATH element and file name.
2285         * locale/programs/locfile.c (locfile_read): Likewise.
2286
2287 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2288
2289         * nptl/pthread_mutexattr_settype.c
2290         (__pthread_mutexattr_settype):
2291         Disable lock elision for PTHREAD_MUTEX_NORMAL.
2292
2293 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2294
2295         * nptl/tst-mutex5 (do_test):
2296         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
2297
2298 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2299
2300         * benchtests/README: Document 'init' directive.
2301         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
2302         BENCH_INIT.
2303         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
2304         (parse_file): Recognize 'init' directive.
2305
2306 2014-05-26  Kyle McMartin  <kyle@redhat.com>
2307
2308         [BZ #16796]
2309         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
2310         alignment of struct pthread.
2311
2312 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2313
2314         [BZ #16878]
2315         * nscd/netgroupcache.c (addgetnetgrentX): Look for
2316         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2317         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
2318         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2319
2320 2014-05-25  Richard Henderson  <rth@twiddle.net>
2321
2322         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2323         (SINGLE_THREAD_P_PIC): Remove.
2324         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
2325         (SINGLE_THREAD_P_PIC): Remove.
2326
2327         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
2328         branch to syscall error ...
2329         (PSEUDO): ... here.
2330         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
2331         from __local_syscall_error to .Lsyscall_error.
2332         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
2333         (SYSCALL_ERROR): Update label name.
2334
2335         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2336         Do not use DOARGS/UNDOARGS.
2337         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
2338         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
2339         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
2340         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
2341         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
2342
2343         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
2344         block comment.
2345
2346         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
2347         define if !NOT_IN_libc.
2348         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
2349         define with non-default symbol versions.
2350
2351 2014-05-23  Richard Henderson  <rth@twiddle.net>
2352
2353         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
2354         (vfork, __vfork): Define via compat_symbol.
2355
2356         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
2357         [!HAVE_IFUNC] (vfork_compat): Remove.
2358         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
2359
2360 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2361
2362         [BZ #16978]
2363         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
2364         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
2365         variable.
2366
2367 2014-05-23  Richard Henderson  <rth@twiddle.net>
2368
2369         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
2370         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
2371         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
2372         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
2373
2374         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
2375         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
2376         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
2377         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
2378         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
2379         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
2380         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
2381         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
2382         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
2383         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
2384         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
2385         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
2386         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
2387         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
2388         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
2389         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
2390         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
2391         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
2392         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
2393         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
2394         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
2395         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
2396         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
2397         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
2398         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
2399         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
2400         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
2401         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
2402         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
2403         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
2404         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
2405         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
2406         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
2407         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
2408         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
2409         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
2410         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
2411         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
2412         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
2413         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
2414         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
2415         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
2416         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
2417         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
2418         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
2419         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
2420         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
2421         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
2422         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
2423         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
2424         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
2425         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
2426         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
2427         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
2428         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
2429         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
2430
2431         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
2432         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
2433         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
2434         before exiting on error.
2435         (__libc_vfork): New strong alias.
2436         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
2437         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
2438
2439         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
2440         that was previously under [RESET_PID].
2441         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
2442
2443         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
2444
2445 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2446
2447         [BZ #16977]
2448         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
2449         value when x - 1 is zero.
2450         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
2451         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
2452         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
2453         0.0L for an argument of 1.0L.
2454         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
2455         Likewise.
2456         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
2457         value when x - 1 is zero.
2458         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
2459         * sysdeps/i386/fpu/libm-test-ulps: Update.
2460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2461
2462 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
2463
2464         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
2465         alphasort and versionsort.
2466
2467 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2468
2469         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
2470         macro.
2471         [copysignf]: Likewise.
2472
2473 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2474
2475         * crypt/md5-crypt.c: Fix formatting.
2476
2477 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2478
2479         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
2480         (b64_from_24bit): New function.
2481
2482 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2483
2484         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
2485         libc_hidden_builtin_def to ifunc.
2486         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
2487         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
2488
2489 2014-05-21  Roland McGrath  <roland@hack.frob.com>
2490
2491         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
2492         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
2493
2494 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
2495
2496         * nscd/Depend (linuxthreads): Remove.
2497         (nptl): Add.
2498         * resolv/Depend (linuxthreads): Remove.
2499         * rt/Depend (linuxthreads): Remove.
2500
2501         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
2502         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
2503         $(common-objpfx)elf/.
2504         (link-libc-before-gnulib): Likewise.
2505         (elfobjdir): Remove variable.
2506         * Makefile (install): Use $(elf-objpfx) instead of
2507         $(common-objpfx)elf/.
2508         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
2509         $(elfobjdir)/.
2510         (link-libc-deps): Likewise.
2511         ($(common-objpfx)libc.so): Likewise.
2512         ($(common-objpfx)linkobj/libc.so): Likewise.
2513         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
2514         instead of $(common-objpfx)elf/.
2515         (symbolic-link-list): Likewise.
2516         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2517         [$(cross-compiling) = no]: Likewise.
2518         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
2519         $(elfobjdir)/.
2520         (static-gnulib-arch): Likewise.
2521         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2522         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
2523         $(common-objpfx)elf/.
2524
2525 2014-05-21  Richard Henderson  <rth@redhat.com>
2526
2527         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2528         (SINGLE_THREAD_P): Use the correct width load.  Fold
2529         into the ldr offset.
2530
2531         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
2532         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
2533
2534 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
2535
2536         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
2537         (libgcc_s_resume): Use __attribute_used__.
2538         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
2539         Likewise.
2540
2541 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2542
2543         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
2544         optimization when used with float constants.
2545
2546         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2547
2548 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
2549
2550         [BZ #16915]
2551         * locale/nl_langinfo_l.c: Make direct reference to every
2552         _nl_current_CATEGORY symbol.
2553         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
2554         (tests-static): Add tst-langinfo-static.
2555         (tests-special): Add tst-langinfo-static.out.
2556         ($(objpfx)tst-langinfo.out): Redirect output.
2557         ($(objpfx)tst-langinfo-static.out): New.
2558         * localedata/tst-langinfo.sh: Send output to stdout.
2559         * localedata/tst-langinfo-static.c: New file.
2560
2561         [BZ #16965]
2562         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
2563         when the shift amount is modulo the limb size.
2564
2565 2014-05-20  Richard Henderson  <rth@redhat.com>
2566
2567         [BZ #16967]
2568         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
2569         Change type of sa_flags from unsigned int to int.
2570
2571         [BZ #16966]
2572         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
2573
2574         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
2575
2576 2014-05-20  Will Newton  <will.newton@linaro.org>
2577
2578         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2579         Test the return value of the system call in the nocancel case.
2580
2581 2014-05-20  Will Newton  <will.newton@linaro.org>
2582             Yvan Roux  <yvan.roux@linaro.org>
2583
2584         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
2585         #include of asm/ptrace.h.
2586         (PTRACE_GET_THREAD_AREA): Remove #undef.
2587         (PTRACE_GETHBPREGS): Likewise.
2588         (PTRACE_SETHBPREGS): Likewise.
2589         (struct user_regs_struct): New structure.
2590         (struct user_fpsimd_struct): New structure.
2591         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
2592         #include of asm/ptrace.h and second #include of sys/user.h.
2593         (PTRACE_GET_THREAD_AREA): Remove #undef.
2594         (PTRACE_GETHBPREGS): Likewise.
2595         (PTRACE_SETHBPREGS): Likewise.
2596         (ELF_NGREG): Use new struct user_regs_struct.
2597         (elf_fpregset_t): Use new struct user_fpsimd_struct.
2598
2599 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2600
2601         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
2602         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
2603
2604 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2605
2606         [BZ #16958]
2607         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
2608         membar to avoid block loads/stores to overlap previous stores.
2609
2610 2014-05-17  Richard Henderson  <rth@redhat.com>
2611
2612         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
2613         Create the __##syscall_name##_nocancel entry point.
2614         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
2615         Remove; let the sysdep-cancel.h code create it.
2616
2617 2014-05-17  David S. Miller  <davem@davemloft.net>
2618
2619         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
2620         Protect with __USE_GNU.
2621         (TIOCSET_TEMPT): Likewise.
2622         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
2623         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
2624         these are already provided in bits/ioctl-types.h
2625
2626 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2627
2628         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
2629         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
2630
2631         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
2632         Use wait4 regardless of [__NR_waitpid].
2633
2634 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2635
2636         PR libgcc/60166
2637         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
2638         (_FP_NANSIGN_Q): Set the quiet bit.
2639
2640 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
2641
2642         * benchtests/Makefile
2643         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
2644         not $(common-objpfx)math/libm.so.
2645         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
2646         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
2647         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
2648         $(common-objpfx)dlfcn/libdl.so.
2649         ($(objpfx)tst-audit8): Depend on $(libm), not
2650         $(common-objpfx)math/libm.so.
2651         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
2652         not $(common-objpfx)dlfcn/libdl.so.
2653         * math/Makefile
2654         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2655         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
2656         [$(build-shared) = yes].
2657         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
2658         $(common-objpfx)nptl/libpthread.so.
2659         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
2660         $(common-objpfx)math/libm.so$(libm.so-version) or
2661         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
2662         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
2663         $(common-objpfx)dlfcn/libdl.so.
2664         * setjmp/Makefile (link-libm): Remove variable.
2665         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
2666         * stdio-common/Makefile (link-libm): Remove variable.
2667         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
2668         * stdlib/Makefile (link-libm): Remove variable.
2669         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
2670         ($(objpfx)tst-strtod-round): Likewise.
2671         ($(objpfx)tst-tininess): Likewise.
2672         ($(objpfx)tst-strtod-underflow): Likewise.
2673         ($(objpfx)tst-strtod6): Likewise.
2674         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
2675         $(libdl), not $(common-objpfx)nptl/libpthread.so and
2676         $(common-objpfx)dlfcn/libdl.so.
2677
2678 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2679
2680         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
2681         BSD terminal modes definitions.
2682
2683 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2684
2685         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
2686         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
2687
2688         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
2689         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
2690         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
2691         Don't do #include_next.
2692         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
2693         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
2694         Don't do #include_next.
2695         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
2696         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
2697         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
2698         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
2699
2700 2014-05-16  Allan McRae  <allan@archlinux.org>
2701
2702         * po/sv.po: Update Swedish translation from translation project.
2703
2704         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
2705         in sed expression.
2706
2707 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
2708
2709         [BZ #16917]
2710         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
2711         errno if the TIOCGPTN ioctl fails with an error different than
2712         EINVAL.
2713         * login/tst-ptsname.c: New file.
2714         * login/Makefile (tests): Add tst-ptsname.
2715
2716         [BZ #16943]
2717         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
2718         and prlimit64.
2719
2720 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2721
2722         [BZ #16849]
2723         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
2724         herrno to return EAI_AGAIN.
2725
2726 2014-05-14  Roland McGrath  <roland@hack.frob.com>
2727
2728         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
2729         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
2730         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
2731         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
2732         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
2733         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
2734         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
2735         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
2736         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
2737         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
2738         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
2739         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
2740         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
2741         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
2742         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
2743         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
2744         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
2745         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
2746         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
2747         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
2748         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
2749         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
2750         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
2751         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
2752         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
2753         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
2754         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
2755         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
2756         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
2757         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
2758         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
2759         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
2760         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
2761         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
2762         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2763         Moved ...
2764         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
2765         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
2766         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
2767         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
2768         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
2769         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
2770         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
2771         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
2772         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
2773         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
2774         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
2775         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
2776         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
2777         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
2778         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
2779         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
2780         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
2781         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
2782         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
2783         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
2784         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
2785         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
2786         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
2787         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
2788         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
2789         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
2790         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
2791         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2792         Moved ...
2793         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
2794         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
2795         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
2796         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
2797         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
2798         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
2799         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
2800         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
2801         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
2802         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
2803         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
2804         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
2805         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
2806         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
2807         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
2808         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
2809         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
2810         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
2811         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
2812         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2813         Moved ...
2814         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
2815         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
2816         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
2817
2818         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
2819         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
2820         (libpthread-sysdep_routines): Add elision-related stuff here instead.
2821         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
2822         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
2823         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
2824         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
2825         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
2826         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
2827         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
2828         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
2829         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
2830         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
2831         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
2832         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
2833         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
2834         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
2835         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
2836         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
2837         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
2838         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
2839         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
2840         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
2841         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
2842         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
2843         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
2844         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
2845         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
2846         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
2847         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
2848         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
2849
2850         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
2851         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
2852
2853         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
2854         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
2855         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
2856         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
2857         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
2858         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
2859         Moved ...
2860         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
2861         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
2862         Moved ...
2863         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
2864         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
2865         Moved ...
2866         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
2867         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
2868         Moved ...
2869         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
2870         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
2871         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
2872         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
2873         Moved ...
2874         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
2875         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
2876         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
2877         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
2878         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
2879         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
2880         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
2881         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
2882         Moved ...
2883         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
2884         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2885         Moved ...
2886         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2887         ... here.
2888         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
2889         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
2890         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
2891         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
2892         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2893         Moved ...
2894         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2895         ... here.
2896         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
2897         Moved ...
2898         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
2899         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
2900         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
2901         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
2902         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
2903         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2904         Moved ...
2905         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
2906         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2907         Moved ...
2908         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
2909         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
2910         Moved ...
2911         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
2912         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2913         Moved ...
2914         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
2915         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
2916         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
2917         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2918         Moved ...
2919         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
2920         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
2921         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
2922         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
2923         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
2924         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
2925         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
2926         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2927         Moved ...
2928         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
2929         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2930         Moved ...
2931         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2932         ... here.
2933         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
2934         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
2935         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
2936         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
2937         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2938         Moved ...
2939         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2940         ... here.
2941         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
2942         Moved ...
2943         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
2944         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
2945         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
2946         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
2947         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
2948         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
2949         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
2950         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
2951         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
2952         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
2953         Moved ...
2954         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
2955         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
2956         Moved ...
2957         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
2958         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
2959         Moved ...
2960         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
2961         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
2962         Moved ...
2963         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
2964         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
2965         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
2966         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
2967         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
2968         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
2969         Moved ...
2970         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
2971         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
2972         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
2973         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
2974         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
2975         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
2976         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
2977         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
2978         Moved ...
2979         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
2980         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2981         Moved ...
2982         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2983         ... here.
2984         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
2985         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
2986         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
2987         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
2988         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2989         Moved ...
2990         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2991         ... here.
2992         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
2993         Moved ...
2994         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
2995         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
2996         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
2997         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
2998         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
2999         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
3000         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
3001         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
3002         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
3003         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
3004         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
3005
3006         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
3007         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
3008
3009         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
3010         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
3011
3012         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
3013         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
3014         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
3015         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
3016         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
3017         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
3018         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
3019         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
3020         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
3021         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
3022         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
3023         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
3024         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
3025         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
3026         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
3027         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
3028         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
3029         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3030         Moved ...
3031         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
3032         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
3033         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
3034         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3035         Moved ...
3036         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
3037         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
3038         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
3039         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
3040         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
3041         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
3042         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
3043         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3044         Moved ...
3045         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
3046         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3047         Moved ...
3048         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
3049         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
3050         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
3051         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
3052         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
3053         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
3054         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
3055         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
3056         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
3057         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
3058         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
3059         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
3060         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
3061         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
3062         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
3063         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
3064         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
3065
3066         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
3067         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
3068         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
3069         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
3070         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
3071
3072         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
3073         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
3074         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
3075         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
3076         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
3077         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
3078         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
3079         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
3080         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
3081         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
3082
3083         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
3084         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
3085
3086         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
3087         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
3088         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
3089         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
3090         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
3091         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
3092         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
3093         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
3094         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
3095         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
3096         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
3097         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
3098         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
3099         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
3100         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
3101         Update #include.
3102         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
3103         Likewise.
3104         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
3105         Likewise.
3106         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
3107         Likewise.
3108         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
3109         Likewise.
3110         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
3111         Likewise.
3112         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
3113         Likewise.
3114         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
3115         Likewise.
3116         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
3117         Likewise.
3118         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
3119         Likewise.
3120         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
3121         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
3122         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
3123         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
3124         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
3125         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
3126         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
3127         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
3128         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
3129         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
3130         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
3131         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
3132         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
3133         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
3134         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
3135
3136         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
3137         that was previously under [RESET_PID].
3138         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3139         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
3140         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
3141
3142         * sysdeps/i386/nptl/Implies: New file.
3143         * sysdeps/x86_64/nptl/Implies: New file.
3144         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
3145         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
3146         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
3147         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
3148
3149         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
3150         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3151         (__libc_vfork): New strong alias.
3152         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
3153         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
3154
3155         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
3156         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3157         (__libc_vfork): New strong alias.
3158         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
3159         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
3160
3161         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
3162         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3163         (__libc_vfork): New strong alias.
3164         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
3165         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
3166         * nptl/pt-vfork.c: New file.
3167         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
3168         (libpthread: GLIBC_2.20): New version set (empty).
3169
3170 2014-05-14  Will Newton  <will.newton@linaro.org>
3171
3172         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
3173         rather than #if.
3174
3175 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3176
3177         [BZ #16564]
3178         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
3179         arguments with exponent 65 or above.
3180         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
3181         arguments 0x1p113L or above.
3182         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
3183         to arguments 0x1p107L or above.
3184         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
3185         positive arguments with exponent 65 or above.
3186         * math/auto-libm-test-in: Add more tests of log1p.
3187         * math/auto-libm-test-out: Regenerated.
3188
3189         [BZ #16928]
3190         * math/s_cacos.c (__cacos): Ensure zero real part of result from
3191         non-finite arguments is +0.
3192         * math/s_cacosf.c (__cacosf): Likewise.
3193         * math/s_cacosl.c (__cacosl): Likewise.
3194         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
3195         * sysdeps/i386/fpu/libm-test-ulps: Update.
3196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3197
3198         [BZ #16927]
3199         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
3200         value.
3201         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
3202         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
3203         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
3204         for explicit high bit of mantissa when testing for argument equal
3205         to 1.
3206         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
3207         * sysdeps/i386/fpu/libm-test-ulps: Update.
3208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3209
3210         [BZ #16516]
3211         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
3212         (__erf): Scale by 16 instead of 8 in potentially underflowing
3213         case.  Ensure exception if result actually underflows.
3214         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
3215         (__erff): Scale by 16 instead of 8 in potentially underflowing
3216         case.  Ensure exception if result actually underflows.
3217         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
3218         (efx8): Remove variable.
3219         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3220         case.  Ensure exception if result actually underflows.
3221         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
3222         (efx8): Remove variable.
3223         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3224         case.  Ensure exception if result actually underflows.
3225         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
3226         (efx8): Remove variable.
3227         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3228         case.  Ensure exception if result actually underflows.
3229         * math/auto-libm-test-in: Add more tests of erf.
3230         * math/auto-libm-test-out: Regenerated.
3231
3232 2014-05-14  Andreas Schwab  <schwab@suse.de>
3233
3234         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
3235         Remove code conditionalized on USE___THREAD.
3236
3237         * config.h.in (HAVE_PT_CHOWN): Define as 0.
3238         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
3239         not definedness.
3240
3241 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3242
3243         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
3244         Define unconditionally.
3245         (__ASSUME_O_CLOEXEC): Likewise.
3246         (__ASSUME_SOCK_CLOEXEC): Likewise.
3247         (__ASSUME_IN_NONBLOCK): Likewise.
3248         (__ASSUME_PIPE2): Likewise.
3249         (__ASSUME_EVENTFD2): Likewise.
3250         (__ASSUME_SIGNALFD4): Likewise.
3251         (__ASSUME_DUP3): Likewise.
3252         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
3253         (__ASSUME_DUP3): Do not define.
3254         (__ASSUME_EVENTFD2): Likewise.
3255         (__ASSUME_IN_NONBLOCK): Likewise.
3256         (__ASSUME_O_CLOEXEC): Likewise.
3257         (__ASSUME_PIPE2): Likewise.
3258         (__ASSUME_SIGNALFD4): Likewise.
3259         (__ASSUME_SOCK_CLOEXEC): Likewise.
3260         (__ASSUME_UTIMES): Undefine.
3261         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3262         (__ASSUME_UTIMES): Do not define.
3263         (__ASSUME_O_CLOEXEC): Likewise.
3264         (__ASSUME_SOCK_CLOEXEC): Likewise.
3265         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
3266         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
3267         0x020621].
3268         (__ASSUME_PIPE2): Likewise.
3269         (__ASSUME_EVENTFD2): Likewise.
3270         (__ASSUME_SIGNALFD4): Likewise.
3271         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
3272         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
3273         Do not define.
3274         (__ASSUME_EVENTFD2): Likewise.
3275         (__ASSUME_SIGNALFD4): Likewise.
3276         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3277         (__ASSUME_32BITUIDS): Likewise.
3278         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3279         (__ASSUME_IPC64): Likewise.
3280         (__ASSUME_ST_INO_64_BIT): Likewise.
3281         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
3282         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
3283         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3284         (__ASSUME_UTIMES): Do not define.
3285         (__ASSUME_PSELECT): Likewise.
3286         (__ASSUME_PPOLL): Likewise.
3287         (__ASSUME_O_CLOEXEC): Likewise.
3288         (__ASSUME_SOCK_CLOEXEC): Likewise.
3289         (__ASSUME_IN_NONBLOCK): Likewise.
3290         (__ASSUME_PIPE2): Likewise.
3291         (__ASSUME_EVENTFD2): Likewise.
3292         (__ASSUME_SIGNALFD4): Likewise.
3293         (__ASSUME_DUP3): Likewise.
3294         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3295         (__ASSUME_UTIMES): Likewise.
3296         (__ASSUME_O_CLOEXEC): Likewise.
3297         (__ASSUME_SOCK_CLOEXEC): Likewise.
3298         (__ASSUME_IN_NONBLOCK): Likewise.
3299         (__ASSUME_PIPE2): Likewise.
3300         (__ASSUME_EVENTFD2): Likewise.
3301         (__ASSUME_SIGNALFD4): Likewise.
3302         (__ASSUME_DUP3): Likewise.
3303         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3304         (__ASSUME_UTIMES): Likewise.
3305         (__ASSUME_O_CLOEXEC): Likewise.
3306         (__ASSUME_SOCK_CLOEXEC): Likewise.
3307         (__ASSUME_IN_NONBLOCK): Likewise.
3308         (__ASSUME_PIPE2): Likewise.
3309         (__ASSUME_EVENTFD2): Likewise.
3310         (__ASSUME_SIGNALFD4): Likewise.
3311         (__ASSUME_DUP3): Likewise.
3312         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
3313         Likewise.
3314         (__ASSUME_UTIMES): Likewise.
3315         (__ASSUME_EVENTFD2): Likewise.
3316         (__ASSUME_SIGNALFD4): Likewise.
3317         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3318         (__ASSUME_O_CLOEXEC): Likewise.
3319         (__ASSUME_SOCK_CLOEXEC): Likewise.
3320         (__ASSUME_IN_NONBLOCK): Likewise.
3321         (__ASSUME_PIPE2): Likewise.
3322         (__ASSUME_EVENTFD2): Likewise.
3323         (__ASSUME_SIGNALFD4): Likewise.
3324         (__ASSUME_DUP3): Likewise.
3325         (__ASSUME_UTIMES): Undefine.
3326
3327         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
3328         feclearexcept.  Remove symbol versioning code.
3329         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
3330         symbol versioning code.
3331         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
3332         symbol versioning code.
3333         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
3334         feupdateenv.  Remove symbol versioning code.
3335         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
3336         fegetexceptflag.  Remove symbol versioning code.
3337         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
3338         fesetexceptflag.  Remove symbol versioning code.
3339         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
3340         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
3341         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
3342         (__posix_fadvise64_l32): Remove prototype.
3343         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
3344         code.
3345
3346 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3347
3348         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
3349         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
3350         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
3351         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
3352
3353 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
3354
3355         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
3356         current working directory
3357
3358 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3359
3360         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
3361         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
3362         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
3363         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
3364         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
3365         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
3366         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
3367         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
3368         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
3369         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
3370         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
3371         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
3372         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
3373         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
3374         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
3375         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
3376         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
3377         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
3378         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
3379         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
3380         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
3381         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
3382         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
3383         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
3384         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
3385         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
3386         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
3387         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
3388         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
3389         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
3390         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
3391         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
3392         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
3393         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
3394         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
3395         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
3396         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
3397         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
3398         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
3399         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
3400         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
3401         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
3402
3403         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
3404         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
3405
3406         * sysdeps/unix/sysv/linux/arm/Makefile
3407         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
3408         Add rt-aeabi_unwind_cpp_pr1.
3409         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
3410         Add nptl-aeabi_unwind_cpp_pr1.
3411         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
3412         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
3413         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
3414         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
3415         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
3416         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
3417
3418         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
3419         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
3420         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
3421         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
3422
3423         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
3424         Deconditionalize the code that was previously under [RESET_PID].
3425         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
3426
3427         * sysdeps/generic/exit-thread.h: New file.
3428         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
3429         * include/unistd.h (__exit_thread): Remove declaration.
3430         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
3431         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
3432         * csu/libc-start.c: Include <exit-thread.h>.
3433         (LIBC_START_MAIN): Pass no argument to __exit_thread.
3434         * nptl/pthread_create.c: Include <exit-thread.h>.
3435         (start_thread): Call __exit_thread in place of __exit_thread_inline.
3436         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
3437         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
3438         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
3439         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
3440         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
3441         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
3442         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
3443         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
3444         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
3445         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
3446         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
3447         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
3448         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
3449         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
3450         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
3451         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
3452
3453 2014-05-13  Andreas Schwab  <schwab@suse.de>
3454
3455         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
3456
3457 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
3458
3459         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
3460         (__ASSUME_UTIMES): Do not condition on kernel version.
3461         (__ASSUME_PSELECT): Define unconditionally.
3462         (__ASSUME_PPOLL): Likewise.
3463         (__ASSUME_ATFCTS): Likewise.
3464         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
3465         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
3466         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
3467         (__ASSUME_UTIMENSAT): Define unconditionally.
3468         (__ASSUME_PRIVATE_FUTEX): Likewise.
3469         (__ASSUME_FALLOCATE): Likewise.
3470         (__ASSUME_O_CLOEXEC): Likewise.
3471         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
3472         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
3473         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
3474         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
3475         (__ASSUME_IN_NONBLOCK): Likewise.
3476         (__ASSUME_PIPE2): Likewise.
3477         (__ASSUME_EVENTFD2): Likewise.
3478         (__ASSUME_SIGNALFD4): Likewise.
3479         (__ASSUME_DUP3): Likewise.
3480         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3481         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
3482         (__ASSUME_AT_RANDOM): Likewise.
3483         (__ASSUME_PREADV): Likewise.
3484         (__ASSUME_PWRITEV): Likewise.
3485         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
3486         (__ASSUME_F_GETOWN_EX): Define unconditionally.
3487         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
3488         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3489         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
3490         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3491         (__ASSUME_O_CLOEXEC): Define unconditionally.
3492         (__ASSUME_PSELECT): Do not undefine conditionally.
3493         (__ASSUME_PPOLL): Likewise.
3494         (__ASSUME_ATFCTS): Likewise.
3495         (__ASSUME_SET_ROBUST_LIST): Likewise.
3496         (__ASSUME_UTIMENSAT): Likewise.
3497         (__ASSUME_FDATASYNC): Define unconditionally.
3498         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3499         (__ASSUME_SIGFRAME_V2): Likewise.
3500         )__ASSUME_EVENTFD2): Likewise.
3501         (__ASSUME_SIGNALFD4): Likewise.
3502         (__ASSUME_PSELECT): Do not undefine conditionally.
3503         (__ASSUME_PPOLL): Likewise.
3504         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3505         (__ASSUME_PSELECT): Define unconditionally.
3506         (__ASSUME_PPOLL): Likewise.
3507         (__ASSUME_O_CLOEXEC): Likewise.
3508         (__ASSUME_SOCK_CLOEXEC): Likewise.
3509         (__ASSUME_IN_NONBLOCK): Likewise.
3510         (__ASSUME_PIPE2): Likewise.
3511         (__ASSUME_EVENTFD2): Likewise.
3512         (__ASSUME_SIGNALFD4): Likewise.
3513         (__ASSUME_DUP3): Likewise.
3514         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3515         (__ASSUME_O_CLOEXEC): Likewise.
3516         (__ASSUME_SOCK_CLOEXEC): Likewise.
3517         (__ASSUME_IN_NONBLOCK): Likewise.
3518         (__ASSUME_PIPE2): Likewise.
3519         (__ASSUME_EVENTFD2): Likewise.
3520         (__ASSUME_SIGNALFD4): Likewise.
3521         (__ASSUME_DUP3): Likewise.
3522         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3523         (__ASSUME_EVENTFD2): Likewise.
3524         (__ASSUME_SIGNALFD4): Likewise.
3525         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3526
3527 2014-05-12  Andreas Schwab  <schwab@suse.de>
3528
3529         [BZ #16932]
3530         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
3531         (_nss_nis_gethostbyname4_r): Return error if item length is larger
3532         than maximum RPC packet size.
3533         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
3534         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3535         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
3536         (_nss_nis_getservbyport_r): Likewise.
3537
3538 2014-05-12  Will Newton  <will.newton@linaro.org>
3539
3540         * malloc/Makefile (tests): Add tst-mallopt.
3541         * malloc/tst-mallopt.c: New file.
3542
3543 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3544
3545         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
3546         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
3547
3548 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3549
3550         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
3551         (tst-tlsmod6.so): Likewise.
3552
3553 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3554
3555         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
3556
3557 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
3558
3559         [BZ #16064]
3560         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
3561         and <dl-procinfo.h>.
3562         (__fegetenv): Save SSE state in envp->__eip if supported.
3563         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
3564         envp->__eip if supported.
3565         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
3566         and <dl-procinfo.h>.
3567         (__fesetenv): Always set __eip, __cs_selector, __opcode,
3568         __data_offset and __data_selector in environment to 0.  Set SSE
3569         state if supported.
3570         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
3571         test-fenv-sse.
3572         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
3573         -mfpmath=sse.
3574         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
3575
3576 2014-05-09  Will Newton  <will.newton@linaro.org>
3577
3578         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
3579         and libc_relro_required for ARM.
3580         * sysdeps/arm/preconfigure: Regenerate.
3581
3582 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3583             Stefan Liebler  <stli@linux.vnet.ibm.com>
3584
3585         * config.make.in (enable-lock-elision): New Makefile variable.
3586         * configure.ac: Likewise.
3587         * configure: Regenerate.
3588         * sysdeps/s390/configure.ac:
3589         Add check for gcc transactions support.
3590         * sysdeps/s390/configure: Regenerate.
3591         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
3592         Build elision files if enabled.
3593         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
3594         Add lock elision support for s390.
3595         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
3596         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
3597         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
3598         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
3599         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
3600         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
3601         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
3602         Likewise.
3603         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
3604         Likewise.
3605         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
3606         Likewise.
3607         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
3608         Likewise.
3609         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
3610         (__lll_timedlock_elision, __lll_lock_elision)
3611         (__lll_unlock_elision, __lll_trylock_elision)
3612         (lll_timedlock_elision, lll_lock_elision)
3613         (lll_unlock_elision, lll_trylock_elision): Add.
3614         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3615         (pthread_mutex_t): Add lock elision support for s390.
3616
3617 2014-05-14  Wilco  <wdijkstr@arm.com>
3618
3619         * sysdeps/arm/fclrexcpt.c: Cleanup.
3620         * sysdeps/arm/fedisblxcpt.c: Cleanup.
3621         * sysdeps/arm/feenablxcpt.c: Cleanup.
3622         * sysdeps/arm/fegetenv.c: Cleanup.
3623         * sysdeps/arm/fegetexcept.c: Cleanup.
3624         * sysdeps/arm/fegetround.c: Cleanup.
3625         * sysdeps/arm/feholdexcpt.c: Cleanup.
3626         * sysdeps/arm/fesetenv.c: Cleanup.
3627         * sysdeps/arm/fesetround.c: Cleanup.
3628         * sysdeps/arm/feupdateenv.c: Cleanup.
3629         * sysdeps/arm/fgetexcptflg.c: Cleanup.
3630         * sysdeps/arm/fraiseexcpt.c: Cleanup.
3631         * sysdeps/arm/fsetexcptflg.c: Cleanup.
3632         * sysdeps/arm/ftestexcept.c: Cleanup.
3633         * sysdeps/arm/get-rounding-mode.h: Cleanup.
3634         * sysdeps/arm/setfpucw.c: Cleanup.
3635
3636 2014-05-09  Will Newton  <will.newton@linaro.org>
3637
3638         * sysdeps/arm/armv7/strcmp.S: New file.
3639         * NEWS: Mention addition of ARMv7 optimized strcmp.
3640
3641 2014-05-08  Roland McGrath  <roland@hack.frob.com>
3642
3643         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
3644         look for %.ac rather than %.in.
3645
3646         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
3647         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
3648         * sysdeps/mach/hurd/configure: Regenerated.
3649         * sysdeps/unix/sysv/linux/configure: Regenerated.
3650
3651         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
3652
3653 2014-05-07  Steve Ellcey  <sellcey@mips.com>
3654
3655         [BZ# 16922]
3656         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
3657         (LONG_SUB): Ditto.
3658         (PTR_SUB): Ditto.
3659
3660 2014-05-07  Andreas Schwab  <schwab@suse.de>
3661
3662         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
3663         when skipping over non-matching result from nscd.
3664
3665 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
3666
3667         [BZ #16876]
3668         * nptl/sockperf.c (client): Check socket return value.
3669
3670         [BZ #16877]
3671         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
3672         nscd security class.
3673
3674 2014-05-06  Roland McGrath  <roland@hack.frob.com>
3675
3676         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
3677         * sysdeps/arm/unwind.h: ... here.
3678
3679 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
3680
3681         [BZ# 16916]
3682         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
3683         Define.
3684
3685 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3686
3687         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
3688         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
3689         multiarch strncpy for PPC64.
3690         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
3691         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
3692         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
3693         multiarch optimizations.
3694         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3695         (__libc_ifunc_impl_list): Likewise.
3696         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
3697         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
3698         multiarch stpncpy for PPC64.
3699         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
3700         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
3701
3702 2014-05-06  Andreas Schwab  <schwab@suse.de>
3703
3704         [BZ #16912]
3705         * gmon/mcount.c (_MCOUNT_DECL): Use
3706         atomic_compare_and_exchange_bool_acq instead of
3707         catomic_compare_and_exchange_bool_acq.
3708
3709 2014-05-05  Roland McGrath  <roland@hack.frob.com>
3710
3711         * elf/Makefile (others, install-bin): Remove pldd.
3712         (pldd-modules): Variable removed.
3713         ($(objpfx)pldd): Target removed.
3714         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
3715         (others, install-bin): Append pldd here.
3716         ($(objpfx)pldd): New target.
3717
3718         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
3719         to 0, so the first #if test emitted later doesn't see it undefined.
3720         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
3721         * sysdeps/gnu/errlist.c: Regenerated.
3722
3723 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3724
3725         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3726         [libc_hidden_builtin_def]: Define to empty value.
3727         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
3728         [libc_hidden_builtin_def]: Likewise.
3729         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
3730         [libc_hidden_builtin_def]: Likewise.
3731         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
3732         [libc_hidden_builtin_def]: Likewise.
3733         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
3734         __redirect_memcpy and define ifunc as default hidden symbol.
3735         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
3736         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
3737
3738 2014-05-04  Adam Conrad  <adconrad@0c3.net>
3739
3740         * locale/iso-4217.def: Reintroduce XDR currency.
3741
3742 2014-05-04  Allan McRae  <allan@archlinux.org>
3743
3744         * po/eo.po: Update Esperanto translation from translation project.
3745
3746 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
3747
3748         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
3749         and FEATURE_INDEX_MAX to 1.
3750         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
3751
3752 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3753
3754         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
3755         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
3756         * iconvdata/big5.c (ONE_DIRECTION): Define.
3757         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
3758         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
3759         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
3760         * iconvdata/cp932.c (ONE_DIRECTION): Define.
3761         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
3762         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
3763         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
3764         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
3765         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
3766         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
3767         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
3768         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
3769         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
3770         * iconvdata/gbk.c (ONE_DIRECTION): Define.
3771         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
3772         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
3773         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
3774         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
3775         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
3776         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
3777         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
3778         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
3779         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
3780         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
3781         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
3782         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
3783         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
3784         * iconvdata/iso646.c (ONE_DIRECTION): Define.
3785         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
3786         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
3787         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
3788         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
3789         * iconvdata/johab.c (ONE_DIRECTION): Define.
3790         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
3791         * iconvdata/sjis.c (ONE_DIRECTION): Define.
3792         * iconvdata/t.61.c (ONE_DIRECTION): Define.
3793         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
3794         * iconvdata/tscii.c (ONE_DIRECTION): Define.
3795         * iconvdata/uhc.c (ONE_DIRECTION): Define.
3796         * iconvdata/unicode.c (ONE_DIRECTION): Define.
3797         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
3798         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
3799         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
3800
3801 2014-05-01  Roland McGrath  <roland@hack.frob.com>
3802
3803         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
3804         (_IO_JUMPS_OFFSET): Define to 0.
3805
3806         * nptl/sysdeps/pthread/bits/libc-lock.h
3807         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3808         (__libc_lock_define_initialized_recursive): Always define using
3809         initializer.  Modern compilers treat uninitialized (implicit zero) and
3810         explicit zero initializers the same (i.e. put the datum in bss).
3811
3812 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3813
3814         * nscd/nscd-client.h: Include <string.h>.
3815
3816 2014-05-01  David S. Miller  <davem@davemloft.net>
3817
3818         [BZ #16885]
3819         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
3820         multiple zero bytes exist at the end of a string.
3821         Reported by Aurelien Jarno <aurelien@aurel32.net>
3822
3823         * string/test-strcmp.c (check): Add explicit test for situations where
3824         there are multiple zero bytes after the first.
3825
3826 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3827
3828         [BZ #16890]
3829         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
3830         when compiling wprintf.
3831         * stdio-common/tstdiomisc.c (t3): New function.
3832         (main): Call it.
3833
3834 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3835
3836         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
3837         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
3838         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
3839         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
3840
3841 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3842
3843         * stdlib/longlong.h: Updated from GCC.
3844
3845 2014-05-01  Will Newton  <will.newton@linaro.org>
3846             Bernard Ogden  <bernie.ogden@linaro.org>
3847
3848         * NEWS: Update fixed bug list.
3849
3850         [BZ #15119]
3851         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
3852
3853 2014-04-30  David S. Miller  <davem@davemloft.net>
3854
3855         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
3856         (libc_feholdexcept_setround_sparc_ctx): New function.
3857         (libc_fesetenv_sparc_ctx): Likewise.
3858         (libc_feupdateenv_sparc_ctx): Likewise.
3859         (libc_feholdsetround_sparc_ctx): Likewise.
3860         (libc_feholdexcept_setround_ctx): Define.
3861         (libc_feholdexcept_setroundf_ctx): Likewise.
3862         (libc_feholdexcept_setroundl_ctx): Likewise.
3863         (libc_fesetenv_ctx): Likewise.
3864         (libc_fesetenvf_ctx): Likewise.
3865         (libc_fesetenvl_ctx): Likewise.
3866         (libc_feupdateenv_ctx): Likewise.
3867         (libc_feupdateenvf_ctx): Likewise.
3868         (libc_feupdateenvl_ctx): Likewise.
3869         (libc_feresetround_ctx): Likewise.
3870         (libc_feresetroundf_ctx): Likewise.
3871         (libc_feresetroundl_ctx): Likewise.
3872         (libc_feholdsetround_ctx): Likewise.
3873         (libc_feholdsetroundf_ctx): Likewise.
3874         (libc_feholdsetroundl_ctx): Likewise.
3875
3876         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3877         with __USE_GNU instead of XOPEN cpp guards.
3878
3879         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
3880         0.
3881
3882         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3883         with XOPEN cpp guards.
3884
3885 2014-04-30  Julian Brown  <julian@codesourcery.com>
3886
3887         [BZ #16888]
3888         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
3889         handling.
3890
3891 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
3892
3893         [BZ #9894]
3894         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
3895         Change to 2.6.32.
3896         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
3897         * sysdeps/unix/sysv/linux/configure: Regenerated.
3898         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
3899         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
3900         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
3901         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
3902         * README: Update reference to required Linux kernel version.
3903         * manual/install.texi (Linux): Update reference to required Linux
3904         kernel headers version.
3905         * INSTALL: Regenerated.
3906
3907         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
3908         header inclusion.
3909         [POSIX] (limits.h): Likewise.
3910         [POSIX] (math.h): Likewise.
3911         [POSIX] (sys/wait.h): Likewise.
3912         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
3913         function.
3914         [POSIX] (stddef.h): Do not allow header inclusion.
3915
3916 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3917
3918         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
3919
3920 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
3921
3922         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
3923         Return immediately after lll_futex_wake.
3924
3925 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3926
3927         [BZ #16791]
3928         * nscd/nscd-client.h (datahead_init_common): Initialize entire
3929         structure.
3930         (datahead_init_pos): Call datahead_init_common early.
3931         (datahead_init_neg): Likewise.
3932
3933         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
3934         datahead_init_neg): New functions.
3935         * nscd/aicache.c (addhstaiX): Use them.
3936         * nscd/grpcache.c (cache_addgr): Likewise.
3937         * nscd/hstcache.c (cache_addhst): Likewise.
3938         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3939         * nscd/netgroupcache.c (do_notfound): Likewise.
3940         (addgetnetgrentX): Likewise.
3941         (addinnetgrX): Likewise.
3942         * nscd/pwdcache.c (cache_addpw): Likewise.
3943         * nscd/servicescache.c (cache_addserv): Likewise.
3944
3945 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3946             Atsushi Onoe  <atsushi@onoe.org>
3947
3948         [BZ #14308]
3949         [BZ #12994]
3950         [BZ #13651]
3951         * resolv/res_query.c (__libc_res_nsearch): Return if at least
3952         one response is valid.
3953         * resolv/res_send.c (send_dg): Check for validity of other
3954         response if the current response is a referral.
3955
3956 2014-04-29  Steve Ellcey  <sellcey@mips.com>
3957
3958         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
3959
3960 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
3961
3962         [BZ #16823]
3963         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
3964         Always divide by positive zero when computing -Inf result.
3965         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
3966         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
3967
3968 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3969
3970         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
3971         FPSCR if value do not change.
3972         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3973         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
3974         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
3975         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3976         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
3977         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
3978         function.
3979
3980 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
3981
3982         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
3983         * sysdeps/unix/sysv/linux/hppa: Move directory from
3984         ports/systeps/unix/sysv/linux/hppa.
3985         * README: Update listing for hppa-*-linux-gnu.
3986
3987 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
3988
3989         [BZ #16754]
3990         * manual/stdio.texi (Hook functions): Fix types of stream hook
3991         functions.
3992         [BZ #16854]
3993         * socket/sys/socket.h: Fix typo in comment.
3994
3995 2014-04-28  Wilco  <wdijkstr@arm.com>
3996
3997         * sysdeps/arm/fenv_private.h: New file.
3998         * sysdeps/arm/math_private.h: New file.
3999         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
4000
4001 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
4002
4003         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
4004         with __int128_t.
4005         (La_x86_64_retval): Likewise.
4006
4007 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
4008
4009         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
4010         fpsr if value didn't change.
4011         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
4012         to fpcr if value didn't change.
4013         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
4014         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
4015         fpsr or fpcr if value didn't change.
4016         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
4017         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
4018         fpcr if value didn't change.
4019         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
4020         to fpsr if value didn't change.
4021
4022 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4023
4024         * nptl/tst-sem3.c: Use test-skeleton.c
4025         (main): Rename to do_test.  Use return instead of
4026         exit.
4027         * nptl/tst-sem4.c: Use test-skeleton.c
4028         (main): Rename to do_test.
4029
4030 2014-04-22  David S. Miller  <davem@davemloft.net>
4031
4032         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
4033         (struct sigaction): New struct member __glibc_reserved0, change
4034         type of sa_flags to int.
4035
4036 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
4037
4038         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
4039         (COUNT_LEADING_ZEROS_0): Define for AArch64.
4040
4041 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4042
4043         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
4044         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
4045
4046 2014-04-22  Will Newton  <will.newton@linaro.org>
4047             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
4048
4049         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
4050         (__longjmp): Add longjmp and longjmp_target SystemTap
4051         probes.
4052         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
4053         (__sigsetjmp): Add setjmp SystemTap probe.
4054
4055 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
4056
4057         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
4058         match manual order.
4059
4060 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4061
4062         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
4063
4064         * sysdeps/powerpc/fpu/fenv_private.h
4065         (libc_feholdexcept_setroundl_ctx): Define to
4066         libc_feholdexcept_setround_ppc_ctx.
4067         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
4068         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
4069         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
4070         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
4071
4072 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4073
4074         * sysdeps/aarch64/math-tests.h: New file.
4075
4076 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
4077
4078         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
4079         New.
4080         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4081         Check and set bit_AVX2_Usable.
4082         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
4083         macro.
4084         (bit_AVX2): Likewise.
4085         (index_AVX2_Usable): Likewise.
4086         (CPUID_AVX2): Likewise.
4087         (HAS_AVX2): Likewise.
4088
4089 2014-04-17  Will Newton  <will.newton@linaro.org>
4090
4091         * manual/setjmp.texi (System V contexts): Add note that
4092         calling setcontext on a context created by a call to a
4093         signal handler is undefined.  Update text to note that
4094         setcontext from a signal handler is possible but not
4095         recommended.
4096
4097         [BZ #16629]
4098         * stdlib/tst-setcontext.c: Include signal.h.
4099         (main): Check that the signal stack before and
4100         after swapcontext is the same.
4101
4102         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
4103         Re-implement to restore registers in user code and avoid
4104         rt_sigreturn system call.
4105
4106 2014-04-17  Wilco  <wdijkstr@arm.com>
4107
4108         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
4109         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
4110         * math/test-fenv.c: Skip exception trap tests on targets which only
4111         support non-stop mode.
4112
4113 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4114             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4115
4116         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
4117         (libc_feholdsetround_aarch64_ctx)
4118         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
4119         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
4120         (libc_feresetround_ctx, libc_feresetroundf_ctx)
4121         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
4122         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
4123         (libc_feresetround_noexl_ctx): Define.
4124
4125 2014-04-16  Richard Henderson  <rth@redhat.com>
4126
4127         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
4128
4129         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
4130         unwind tables.
4131
4132         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
4133         const from the non-libc, non-ldso copy.
4134
4135         * sysdeps/alpha/libm-test-ulps: Regenerate.
4136
4137 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
4138             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4139
4140         * sysdeps/aarch64/fpu/math_private.h: New file.
4141
4142 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4143
4144         * sysdeps/aarch64/libm-test-ulps: Regenerate.
4145
4146 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
4147
4148         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
4149         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
4150         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
4151         Intel MPX bound registers before _dl_profile_fixup.
4152         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
4153         registers after _dl_profile_fixup.  Save and restore bound
4154         registers bnd0/bnd1 when calling _dl_call_pltexit.
4155         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
4156         (LR_BND_OFFSET): Likewise.
4157         (LRV_BND0_OFFSET): Likewise.
4158         (LRV_BND1_OFFSET): Likewise.
4159
4160 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4161
4162         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
4163         to...
4164         * sysdeps/mach/hurd/i386/tls.h: ... here.
4165         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
4166         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
4167         fields.
4168
4169 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4170
4171         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
4172
4173 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4174
4175         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4176
4177 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4178
4179         [BZ #14770]
4180         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
4181         * sysdeps/s390/configure: Regenerate.
4182
4183         [BZ #16824]
4184         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
4185         Set round-to-nearest internally to reduce error accumulation.
4186
4187 2014-04-16  Alan Modra  <amodra@gmail.com>
4188
4189         [BZ #16740]
4190         [BZ #16619]
4191         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
4192         * math/libm-test.inc (frexp_test_data): Add tests.
4193         * NEWS: Update fixed bug list.
4194
4195 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4196
4197         * benchtests/Makefile: Depend on libraries in build directory.
4198         (bench-math): Separate out math tests.
4199         (bench-pthread): Separate out pthread tests.
4200         (bench): Include math and pthread tests.
4201
4202 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
4203
4204         [BZ #16831]
4205         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
4206         _dl_debug_initialize.
4207
4208         * configure.ac: Remove SELinux header check.
4209         * configure: Regenerate.
4210         * nscd/selinux.c (perms): Array of const char* to permission names.
4211         (nscd_request_avc_has_perm): Call security_deny_unknown to find
4212         default policy. Call string_to_security_class and string_to_av_perm to
4213         translate strings. Enforce default policy and call avs_has_perm with
4214         results of translated strings.
4215
4216 2014-04-13  David S. Miller  <davem@davemloft.net>
4217
4218         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4219
4220 2014-04-12  Allan McRae  <allan@archlinux.org>
4221
4222         [BZ #16838]
4223         * manual/string.texi (Collation Functions): Fix qsort argument
4224         order in example.
4225         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4226
4227 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
4228
4229         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
4230         Make the test a no-op if there are no exceptions defined.
4231
4232 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
4233
4234         * elf/Makefile (tests): make tst-dlopen-aout conditional on
4235         enable-hardcoded-path-in-tests
4236
4237 2014-04-11  Will Newton  <will.newton@linaro.org>
4238
4239         * benchtests/Makefile (extra-objs): Add json-lib.o.
4240         (bench-func): Tidy up JSON output.
4241         * benchtests/bench-skeleton.c: Include json-lib.h.
4242         (main): Use JSON library functions to do output of
4243         benchmark results.
4244         * benchtests/bench-timing-type.c (main): Output the
4245         timing type simply, leaving formatting to the user.
4246         * benchtests/json-lib.c: New file.
4247         * benchtests/json-lib.h: Likewise.
4248
4249 2014-04-11  Torvald Riegel  <triegel@redhat.com>
4250
4251         [BZ #15215]
4252         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
4253         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
4254         memory barriers.  Add comments.
4255         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
4256         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
4257         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
4258         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
4259         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
4260         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
4261
4262 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
4263
4264         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
4265         * sysdeps/s390/s390-64/configure.ac: ... this ...
4266         * sysdeps/s390/configure.ac: ... to here.
4267         * sysdeps/s390/s390-32/configure: Delete file.
4268         * sysdeps/s390/s390-64/configure: Delete file.
4269         * sysdeps/s390/configure: Regenerate.
4270
4271 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
4272
4273         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
4274
4275 2014-04-11  Will Newton  <will.newton@linaro.org>
4276
4277         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
4278         to zero if it is not defined elsewhere.  (mtrim): Test
4279         the value of MALLOC_DEBUG with #if rather than #ifdef.
4280
4281 2014-04-10 Torvald Riegel  <triegel@redhat.com>
4282
4283         * benchtests/pthread_once-inputs: New file.
4284         * benchtests/pthread_once-source.c: New file.
4285         * benchtests/README: Update documentation.
4286
4287 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
4288             H.J. Lu  <hongjiu.lu@intel.com>
4289
4290         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
4291         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
4292         * sysdeps/x86_64/configure: Regenerated.
4293         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
4294         macro.
4295         (REGISTER_SAVE_RAX): Likewise.
4296         (REGISTER_SAVE_RCX): Likewise.
4297         (REGISTER_SAVE_RDX): Likewise.
4298         (REGISTER_SAVE_RSI): Likewise.
4299         (REGISTER_SAVE_RDI): Likewise.
4300         (REGISTER_SAVE_R8): Likewise.
4301         (REGISTER_SAVE_R9): Likewise.
4302         (REGISTER_SAVE_BND0): Likewise.
4303         (REGISTER_SAVE_BND1): Likewise.
4304         (REGISTER_SAVE_BND2): Likewise.
4305         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
4306         bound registers when calling _dl_fixup.
4307
4308 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4309
4310         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
4311         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
4312         of its definition.
4313         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
4314         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
4315         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
4316         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
4317         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
4318         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
4319         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
4320
4321 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
4322
4323         [BZ #15514]
4324         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
4325         pathconf(_PC_NAME_MAX).
4326
4327 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4328
4329         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
4330         Remove macro usage.
4331         (__PTHREAD_SPINS): Move definition to ...
4332         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4333         (__PTHREAD_SPINS): ... here.
4334         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4335         (__PTHREAD_SPIN): Likewise.
4336         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
4337         (__PTHREAD_SPIN): Likewise.
4338         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
4339         (__PTHREAD_SPIN): Likewise.
4340         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
4341         (__PTHREAD_SPIN): Likewise.
4342         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
4343         (__PTHREAD_SPIN): Likewise.
4344         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
4345         (__PTHREAD_SPIN): Likewise.
4346         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
4347         (__PTHREAD_SPIN): Likewise.
4348         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
4349         (__PTHREAD_SPIN): Likewise.
4350         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
4351         (__PTHREAD_SPIN): Likewise.
4352         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
4353         (__PTHREAD_SPIN): Likewise.
4354         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
4355         (__PTHREAD_SPIN): Likewise.
4356         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
4357         (__PTHREAD_SPIN): Likewise.
4358
4359         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
4360         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
4361         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
4362         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
4363         imply folder.
4364         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
4365         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4366         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
4367         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
4368         correct imply path.
4369         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
4370         strlen symbol for non multi-arch builds.
4371         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
4372         missing hidden_def and weak_alias.
4373
4374 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
4375
4376         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
4377
4378 2014-04-07  Will Newton  <will.newton@linaro.org>
4379
4380         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
4381         and contents.  [!_LIBC] Remove #ifndef and contents.
4382         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
4383         * string/memccpy.c (__memccpy): Use ANSI prototype.
4384         * string/memfrob.c (memfrob): Likewise.
4385         * string/strcoll.c (STRCOLL): Likewise.
4386         * string/strlen.c (strlen): Likewise.
4387         * string/strtok.c (STRTOK): Likewise.
4388         * string/strcat.c: Remove unused #include of memcopy.h.
4389         (strcat): Use ANSI prototype.
4390         * string/strchr.c: Remove unused #include of memcopy.h.
4391         (strchr): Use ANSI prototype.
4392         * string/strcmp.c: Remove unused #include of memcopy.h.
4393         (strcmp): Use ANSI prototype.
4394         * string/strcpy.c: Remove unused #include of memcopy.h.
4395         (strcpy): Use ANSI prototype.
4396
4397 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4398
4399         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
4400         * config.make.in (config-extra-cppflags): Set it from
4401         libc_extra_cppflags.
4402         * configure.ac (libc_extra_cflags): Make it accumulate over
4403         configure fragments.
4404         (libc_extra_cppflags): New flag.
4405         * configure. Regenerate.
4406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
4407         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
4408         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
4409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
4410
4411         [BZ #16815]
4412         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
4413         result for FE_DOWNWARD rounding mode.
4414         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
4415         Likewise.
4416         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4417
4418 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
4419
4420         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
4421         in function argument name.
4422
4423 2014-04-03  David Svoboda  <svoboda@cert.org>
4424
4425         [BZ #5666]
4426         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
4427         explicitly.
4428
4429 2014-04-03  Roland McGrath  <roland@hack.frob.com>
4430
4431         * elf/dl-unmap-segments.h: New file.
4432         * sysdeps/generic/ldsodefs.h
4433         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
4434         * elf/dl-close.c: Include <dl-unmap-segments.h>.
4435         * elf/dl-fptr.c: Likewise.
4436         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
4437         * sysdeps/aarch64/tlsdesc.c: Likewise.
4438         * sysdeps/arm/tlsdesc.c: Likewise.
4439         * sysdeps/i386/tlsdesc.c: Likewise.
4440         * sysdeps/tile/dl-runtime.c: Likewise.
4441         * sysdeps/x86_64/tlsdesc.c: Likewise.
4442         * elf/dl-load.h: New file.
4443         * elf/dl-load.c: Include it.
4444         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
4445         Macros moved to dl-load.h.
4446         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
4447         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
4448         Use _dl_unmap_segments in place of __munmap.
4449         Break out segment-mapping loop into ...
4450         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
4451
4452 2014-04-03  Will Newton  <will.newton@linaro.org>
4453
4454         * elf/dl-lookup.c (do_lookup_x): Remove comment
4455         referring to nested function and move variable
4456         declarations down to before first use.
4457
4458 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
4459
4460         [BZ #16799]
4461         [BZ #16800]
4462         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
4463         with 0 numerator.
4464         * math/s_catanf.c (__catanf): Likewise.
4465         * math/s_catanh.c (__catanh): Likewise.
4466         * math/s_catanhf.c (__catanhf): Likewise.
4467         * math/s_catanhl.c (__catanhl): Likewise.
4468         * math/s_catanl.c (__catanl): Likewise.
4469         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
4470         by positive zero when computing -Inf result.
4471         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
4472         (catanh_test): Likewise.
4473         * sysdeps/i386/fpu/libm-test-ulps: Update.
4474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4475
4476         [BZ #16789]
4477         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
4478         instead of using underflowing value in computing result.
4479         * math/s_clog10.c (__clog10): Likewise.
4480         * math/s_clog10f.c (__clog10f): Likewise.
4481         * math/s_clog10l.c (__clog10l): Likewise.
4482         * math/s_clogf.c (__clogf): Likewise.
4483         * math/s_clogl.c (__clogl): Likewise.
4484         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
4485         (clog10_test): Likewise.
4486         * sysdeps/i386/fpu/libm-test-ulps: Update.
4487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4488
4489 2014-04-02  Alan Modra  <amodra@gmail.com>
4490
4491         [BZ #16739]
4492         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
4493         output when value is near a power of two.  Use int64_t for lx and
4494         remove casts.  Use decimal rather than hex exponent constants.
4495         Don't use long double multiplication when double will suffice.
4496         * math/libm-test.inc (nextafter_test_data): Add tests.
4497         * NEWS: Add 16739 and 16786 to bug list.
4498
4499         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
4500
4501         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
4502
4503 2014-04-01  Will Newton  <will.newton@linaro.org>
4504
4505         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
4506         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
4507
4508 2014-04-01  Florian Weimer  <fweimer@redhat.com>
4509
4510         [BZ #13347]
4511         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
4512         * nptl/tst-setuid2.c: New file.
4513         * nptl/Makefile (xtests): Add tst-setuid2.
4514
4515 2014-04-01  Alan Modra  <amodra@gmail.com>
4516
4517         [BZ #16786]
4518         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
4519
4520 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4521
4522         [BZ #6803]
4523         [BZ #6804]
4524         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
4525         set errno as appropriate.
4526         * math/w_scalbf.c (__scalbf): Likewise.
4527         * math/w_scalbl.c (__scalbl): Likewise.
4528         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
4529         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
4530         * math/libm-test.inc (scalb_test_data): Add errno expectations.
4531         Add more NaN tests.
4532
4533         [BZ #16349]
4534         * math/w_atan2.c: Include <errno.h>.
4535         (__atan2): Set errno for result underflowing to zero.
4536         * math/w_atan2f.c: Include <errno.h>.
4537         (__atan2f): Set errno for result underflowing to zero.
4538         * math/w_atan2l.c: Include <errno.h>.
4539         (__atan2l): Set errno for result underflowing to zero.
4540         * math/auto-libm-test-in: Don't allow missing errno for some atan2
4541         tests.
4542         * math/auto-libm-test-out: Regenerated.
4543
4544 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4545
4546         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
4547         Encode instruction correctly in little endian.
4548         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
4549         Likewise.
4550         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
4551         Likewise.
4552         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
4553         Likewise.
4554         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
4555         Likewise.
4556
4557 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4558
4559         [BZ #9894]
4560         * sysdeps/unix/sysv/linux/kernel-features.h
4561         [__sparc__ && !__arch64__ && !__sparc_v9__]
4562         (__ASSUME_SET_ROBUST_LIST): Do not define.
4563         [__sparc__ && !__arch64__ && !__sparc_v9__]
4564         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4565         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
4566         Likewise.
4567         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4568         (__ASSUME_FUTEX_LOCK_PI): Undefine.
4569         (__ASSUME_REQUEUE_PI): Likewise.
4570         (__ASSUME_SET_ROBUST_LIST): Likewise.
4571         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4572         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
4573         Undefine.
4574         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4575         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
4576         Likewise.
4577         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
4578         Likewise.
4579         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
4580         Likewise.
4581         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4582         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
4583         Undefine.
4584         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
4585         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
4586         Likewise.
4587
4588         [BZ #16648]
4589         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4590         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
4591         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
4592
4593 2014-03-31  Will Newton  <will.newton@linaro.org>
4594
4595         * benchtests/Makefile (bench): Add ffs and ffsll to list
4596         of tests.
4597         * benchtests/ffs-inputs: New file.
4598         * benchtests/ffsll-inputs: Likewise.
4599
4600 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
4601
4602         [BZ #16770]
4603         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
4604         too large before casting to int.
4605         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
4606         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
4607         * math/libm-test.inc (scalb_test_data): Add more tests.
4608
4609 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4610
4611         * benchtests/Makefile (DETAILED_OPT): New make option.
4612         (bench-func): Run benchmark program with -d if DETAILED_OPT is
4613         set.
4614         * benchtests/bench-skeleton.c: Include stdbool.h.
4615         (main): Store and print timings per input.
4616         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
4617         member to each argument value.
4618         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
4619         (_print_arg_data): Initialize per-input timing to 0.
4620
4621         * benchtests/Makefile (timing-type): New binary.
4622         (bench-clean): Also remove bench-timing-type.
4623         (bench): New target for timing-type.
4624         (bench-func): Print output in JSON format.
4625         * benchtests/bench-skeleton.c (main): Print output in JSON
4626         format.
4627         * benchtests/bench-timing-type.c: New file.
4628         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
4629         (TIMING_PRINT_STATS): Remove.
4630         * benchtests/scripts/bench.py (_print_arg_data): Store variant
4631         name separately.
4632
4633         * benchtests/bench-modf.c: Remove.
4634         * benchtests/modf-inputs: New inputs file.
4635
4636 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
4637
4638         [BZ #16362]
4639         * math/s_clog10.c (M_PI_LOG10E): New macro.
4640         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
4641         imaginary parts are 0.
4642         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
4643         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
4644         imaginary parts are 0.
4645         * math/s_clog10l.c (M_PI_LOG10El): New macro.
4646         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
4647         imaginary parts are 0.
4648         * math/libm-test.inc (clog10_test_data): Update expected results
4649         for when real and imaginary parts are 0.
4650
4651 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
4652
4653         * elf/dl-load.c: Finish conversion of __builtin_expect into
4654         __glibc_{un}likely.
4655
4656 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
4657
4658         [BZ #16348]
4659         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
4660         1+x for argument with exponent below -67.
4661         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
4662         Likewise.
4663         * math/auto-libm-test-in: Add more tests of exp.
4664         * math/auto-libm-test-out: Regenerated.
4665
4666 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4667
4668         [BZ #16759]
4669         * inet/getnetgrent_r.c (get_nonempty_val): New function.
4670         (nscd_getnetgrent): Use it.
4671
4672         [BZ #16760]
4673         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
4674         of stpcpy.
4675
4676 2014-03-27  Andi Kleen  <ak@linux.intel.com>
4677
4678         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
4679         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4680         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4681         (lll_robust_unlock): Remove out of line section. Use cfi
4682         intrinsics.
4683         (LLL_STUB_UNWIND_INFO*): Remove.
4684         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
4685         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4686         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4687         (lll_robust_unlock): Remove out of line section. Use cfi
4688         intrinsics.
4689         (LLL_STUB_UNWIND_INFO*): Remove.
4690
4691 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4692
4693         [BZ #16758]
4694         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
4695         blank values.
4696
4697 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4698
4699         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
4700
4701 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
4702
4703         [BZ #16198]
4704         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
4705         fnstenv.
4706         * math/test-fenv-preserve.c: New file.
4707         * math/Makefile (tests): Add test-fenv-preserve.
4708
4709 2014-03-26  Will Newton <will.newton@linaro.org>
4710
4711         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
4712
4713 2014-03-25  Roland McGrath  <roland@hack.frob.com>
4714
4715         * scripts/versionlist.awk: Partition the version sets and emit all
4716         GLIBC_* (sorted) before all others (sorted).
4717
4718 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4719
4720         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
4721         GLIBC_2.2.5 version.
4722
4723 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4724
4725         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
4726         calls.
4727
4728         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
4729         previous change.
4730
4731         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4732
4733 2014-03-25  Andreas Schwab  <schwab@suse.de>
4734
4735         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
4736         label to be used after in6ailist is initialized.
4737
4738 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4739
4740         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4741         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4742
4743 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4744
4745         [BZ #16357]
4746         [BZ #16599]
4747         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
4748         min_plus_half.
4749         (fp_formats): Update initializers.
4750         (init_fp_formats): Initialize new field.
4751         (output_for_one_input_case): Allow underflow for results up to
4752         min_plus_half.
4753         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
4754         * math/auto-libm-test-in: Don't mark some underflows from asin and
4755         atanh as spurious.
4756         * math/auto-libm-test-out: Regenerated.
4757         * sysdeps/i386/fpu/libm-test-ulps: Update.
4758         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4759
4760 2014-03-25  Andreas Schwab  <schwab@suse.de>
4761
4762         * libio/Makefile (tst-ftell-partial-wide-ENV)
4763         (tst-ftell-active-handler-ENV): Define.
4764
4765 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
4766
4767         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
4768
4769 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4770
4771         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
4772
4773 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4774
4775         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
4776         * sysdeps/x86_64/fpu/multiarch/e_exp.c
4777         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
4778
4779 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4780
4781         [BZ #16634]
4782         * elf/dl-load.c (open_verify): Add mode parameter.
4783         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
4784         (open_path): Change from boolean 'secure' to complete flag 'mode'
4785         (_dl_map_object): Adjust.
4786         * elf/Makefile (tests): Add tst-dlopen-aout.
4787         * elf/tst-dlopen-aout.c: New test.
4788
4789 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
4790
4791         [BZ #16714]
4792         * sysdeps/unix/sysv/linux/s390/bits/stat.h
4793         (struct stat): Rename member pad0 to __glibc_reserved0.
4794
4795         [BZ #16712]
4796         * sysdeps/s390/s390-32/bits/wordsize.h
4797         (__WORDSIZE32_SIZE_ULONG): New define.
4798         * sysdeps/s390/s390-64/bits/wordsize.h
4799         (__WORDSIZE32_SIZE_ULONG): Likewise.
4800         * sysdeps/generic/stdint.h (SIZE_MAX):
4801         Define as UL if __WORDSIZE32_SIZE_ULONG.
4802
4803         [BZ #16713]
4804         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4805         (__glibc_reserved0): New variable.
4806         (sa_flags): Change type to int.
4807
4808         * posix/Makefile (before-compile): Use += before-compile instead
4809         of a :=.
4810
4811         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4812         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4813
4814 2014-03-20  Andreas Schwab  <schwab@suse.de>
4815
4816         [BZ #16743]
4817         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
4818         non-matching result from nscd.
4819
4820 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4821
4822         * scripts/bench.py: Moved to ...
4823         * benchtests/scripts/bench.py: ... here.
4824         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
4825
4826 2014-03-24  Andreas Schwab  <schwab@suse.de>
4827
4828         [BZ #16002]
4829         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
4830         alloca_account and account alloca use for struct in6ailist.
4831
4832 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4833
4834         [BZ #16284]
4835         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
4836         rounding mode to recompute results that overflow to infinity or
4837         underflow to zero.
4838         * math/auto-libm-test-in: Don't mark tests as expected to fail for
4839         bug 16284.
4840         * math/auto-libm-test-out: Regenerated.
4841         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
4842         (ccosh_test): Likewise.
4843         (csin_test_data): Use plus_oflow.
4844         (csin_test): Use ALL_RM_TEST.
4845         (csinh_test_data): Use plus_oflow.
4846         (csinh_test): Use ALL_RM_TEST.
4847         * sysdeps/i386/fpu/libm-test-ulps: Update.
4848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4849
4850 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
4851
4852         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
4853         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
4854         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
4855
4856         [BZ #16731]
4857         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
4858         when x - 1 is zero.
4859         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4860         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4861         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4862         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
4863         argument is 1.
4864         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
4865         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
4866         zero.
4867         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
4868         * sysdeps/i386/fpu/libm-test-ulps: Update.
4869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4870
4871 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4872
4873         * scripts/bench.pl: Remove file.
4874         * scripts/bench.py: New benchmark script.
4875         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
4876         * benchtests/README: Mention python dependency.
4877         * scripts/pylintrc: New file.
4878         * scripts/pylint: New file.
4879
4880         * bits/mathdef.h: Use #ifdef instead of #if.
4881         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
4882         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4883         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
4884         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4885         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
4886         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4887
4888 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4889             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4890
4891         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
4892         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
4893         and strpbrk-ppc64 objects.
4894         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4895         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
4896         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
4897         multiarch strpbrk for POWER7.
4898         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
4899         multiarch strpbrk for PPC64.
4900         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
4901         ifunc selector.
4902         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
4903         strpbrk for POWER7.
4904
4905 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4906
4907         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
4908         (atan_test): Likewise.
4909         (atanh_test_data): Use NO_TEST_INLINE for two tests.
4910         (atanh_test): Use ALL_RM_TEST.
4911         (atan2_test_data): Likewise.
4912         (cabs_test): Likewise.
4913         (cacosh_test): Likewise.
4914         (carg_test): Likewise.
4915         (casin_test): Likewise.
4916         (casinh_test): Likewise.
4917         (cbrt_test): Likewise.
4918         (csqrt_test): Likewise.
4919         (erf_test): Likewise.
4920         (erfc_test): Likewise.
4921         (pow10_test): Likewise.
4922         (exp2_test): Likewise.
4923         (hypot_test): Likewise.
4924         (j0_test): Likewise.
4925         (j1_test): Likewise.
4926         (lgamma_test): Likewise.
4927         (gamma_test): Likewise.
4928         (sincos_test): Likewise.
4929         (tanh_test): Likewise.
4930         (y0_test): Likewise.
4931         (y1_test): Likewise.
4932         * sysdeps/i386/fpu/libm-test-ulps: Update.
4933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4934
4935 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4936
4937         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
4938         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
4939         and strcspn-ppc64 objects.
4940         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4941         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
4942         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
4943         multiarch strcspn for POWER7.
4944         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
4945         multiarch strcspn for PPC64.
4946         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
4947         ifunc selector.
4948         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
4949         strcspn for POWER7.
4950
4951 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4952
4953         * math/gen-libm-test.pl (generate_testfile): Expect only function
4954         name as argument to AUTO_TESTS_* and pass results for all rounding
4955         modes to parse_args.
4956         (parse_auto_input): Separate inputs of automatic tests from
4957         outputs before storing in %auto_tests.
4958         * math/libm-test.inc (acos_test_data): Update call to
4959         AUTO_TESTS_f_f.
4960         (acos_test): Use ALL_RM_TEST.
4961         (acos_tonearest_test_data): Remove.
4962         (acos_test_tonearest): Likewise.
4963         (acos_towardzero_test_data): Likewise.
4964         (acos_test_towardzero): Likewise.
4965         (acos_downward_test_data): Likewise.
4966         (acos_test_downward): Likewise.
4967         (acos_upward_test_data): Likewise.
4968         (acos_test_upward): Likewise.
4969         (acosh_test_data): Update call to AUTO_TESTS_f_f.
4970         (asin_test_data): Likewise.
4971         (asin_test): Use ALL_RM_TEST.
4972         (asin_tonearest_test_data): Remove.
4973         (asin_test_tonearest): Likewise.
4974         (asin_towardzero_test_data): Likewise.
4975         (asin_test_towardzero): Likewise.
4976         (asin_downward_test_data): Likewise.
4977         (asin_test_downward): Likewise.
4978         (asin_upward_test_data): Likewise.
4979         (asin_test_upward): Likewise.
4980         (asinh_test_data): Update call to AUTO_TESTS_f_f.
4981         (atan_test_data): Likewise.
4982         (atanh_test_data): Likewise.
4983         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
4984         (cabs_test_data): Update call to AUTO_TESTS_c_f.
4985         (carg_test_data): Likewise.
4986         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
4987         (ccos_test_data): Update call to AUTO_TESTS_c_c.
4988         (ccosh_test_data): Likewise.
4989         (cexp_test_data): Likewise.
4990         (clog_test_data): Likewise.
4991         (clog10_test_data): Likewise.
4992         (cos_test_data): Update call to AUTO_TESTS_f_f.
4993         (cos_test): Use ALL_RM_TEST.
4994         (cos_tonearest_test_data): Remove.
4995         (cos_test_tonearest): Likewise.
4996         (cos_towardzero_test_data): Likewise.
4997         (cos_test_towardzero): Likewise.
4998         (cos_downward_test_data): Likewise.
4999         (cos_test_downward): Likewise.
5000         (cos_upward_test_data): Likewise.
5001         (cos_test_upward): Likewise.
5002         (cosh_test_data): Update call to AUTO_TESTS_f_f.
5003         (cosh_test): Use ALL_RM_TEST.
5004         (cosh_tonearest_test_data): Remove.
5005         (cosh_test_tonearest): Likewise.
5006         (cosh_towardzero_test_data): Likewise.
5007         (cosh_test_towardzero): Likewise.
5008         (cosh_downward_test_data): Likewise.
5009         (cosh_test_downward): Likewise.
5010         (cosh_upward_test_data): Likewise.
5011         (cosh_test_upward): Likewise.
5012         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
5013         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
5014         (ctan_test_data): Likewise.
5015         (ctan_test): Use ALL_RM_TEST.
5016         (ctan_tonearest_test_data): Remove.
5017         (ctan_test_tonearest): Likewise.
5018         (ctan_towardzero_test_data): Likewise.
5019         (ctan_test_towardzero): Likewise.
5020         (ctan_downward_test_data): Likewise.
5021         (ctan_test_downward): Likewise.
5022         (ctan_upward_test_data): Likewise.
5023         (ctan_test_upward): Likewise.
5024         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
5025         (ctanh_test): Use ALL_RM_TEST.
5026         (ctanh_tonearest_test_data): Remove.
5027         (ctanh_test_tonearest): Likewise.
5028         (ctanh_towardzero_test_data): Likewise.
5029         (ctanh_test_towardzero): Likewise.
5030         (ctanh_downward_test_data): Likewise.
5031         (ctanh_test_downward): Likewise.
5032         (ctanh_upward_test_data): Likewise.
5033         (ctanh_test_upward): Likewise.
5034         (erf_test_data): Update call to AUTO_TESTS_f_f.
5035         (erfc_test_data): Likewise.
5036         (exp_test_data): Likewise.
5037         (exp_test): Use ALL_RM_TEST.
5038         (exp_tonearest_test_data): Remove.
5039         (exp_test_tonearest): Likewise.
5040         (exp_towardzero_test_data): Likewise.
5041         (exp_test_towardzero): Likewise.
5042         (exp_downward_test_data): Likewise.
5043         (exp_test_downward): Likewise.
5044         (exp_upward_test_data): Likewise.
5045         (exp_test_upward): Likewise.
5046         (exp10_test_data): Update call to AUTO_TESTS_f_f.
5047         (exp10_test): Use ALL_RM_TEST.
5048         (exp10_tonearest_test_data): Remove.
5049         (exp10_test_tonearest): Likewise.
5050         (exp10_towardzero_test_data): Likewise.
5051         (exp10_test_towardzero): Likewise.
5052         (exp10_downward_test_data): Likewise.
5053         (exp10_test_downward): Likewise.
5054         (exp10_upward_test_data): Likewise.
5055         (exp10_test_upward): Likewise.
5056         (exp2_test_data): Update call to AUTO_TESTS_f_f.
5057         (expm1_test_data): Likewise.
5058         (expm1_test): Use ALL_RM_TEST.
5059         (expm1_tonearest_test_data): Remove.
5060         (expm1_test_tonearest): Likewise.
5061         (expm1_towardzero_test_data): Likewise.
5062         (expm1_test_towardzero): Likewise.
5063         (expm1_downward_test_data): Likewise.
5064         (expm1_test_downward): Likewise.
5065         (expm1_upward_test_data): Likewise.
5066         (expm1_test_upward): Likewise.
5067         (fma_test_data): Update call to AUTO_TESTS_fff_f.
5068         (fma_test): Use ALL_RM_TEST.
5069         (fma_towardzero_test_data): Remove.
5070         (fma_test_towardzero): Likewise.
5071         (fma_downward_test_data): Likewise.
5072         (fma_test_downward): Likewise.
5073         (fma_upward_test_data): Likewise.
5074         (fma_test_upward): Likewise.
5075         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
5076         (j0_test_data): Update call to AUTO_TESTS_f_f.
5077         (j1_test_data): Likewise.
5078         (jn_test_data): Update call to AUTO_TESTS_if_f.
5079         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
5080         (log_test_data): Update call to AUTO_TESTS_f_f.
5081         (log10_test_data): Likewise.
5082         (log1p_test_data): Likewise.
5083         (log2_test_data): Likewise.
5084         (pow_test_data): Update call to AUTO_TESTS_ff_f.
5085         (pow_tonearest_test_data): Likewise.
5086         (sin_test_data): Update call to AUTO_TESTS_f_f.
5087         (sin_test): Use ALL_RM_TEST.
5088         (sin_tonearest_test_data): Remove.
5089         (sin_test_tonearest): Likewise.
5090         (sin_towardzero_test_data): Likewise.
5091         (sin_test_towardzero): Likewise.
5092         (sin_downward_test_data): Likewise.
5093         (sin_test_downward): Likewise.
5094         (sin_upward_test_data): Likewise.
5095         (sin_test_upward): Likewise.
5096         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
5097         (sinh_test_data): Update call to AUTO_TESTS_f_f.
5098         (sinh_test): Use ALL_RM_TEST.
5099         (sinh_tonearest_test_data): Remove.
5100         (sinh_test_tonearest): Likewise.
5101         (sinh_towardzero_test_data): Likewise.
5102         (sinh_test_towardzero): Likewise.
5103         (sinh_downward_test_data): Likewise.
5104         (sinh_test_downward): Likewise.
5105         (sinh_upward_test_data): Likewise.
5106         (sinh_test_upward): Likewise.
5107         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
5108         (sqrt_test): Use ALL_RM_TEST.
5109         (sqrt_tonearest_test_data): Remove.
5110         (sqrt_test_tonearest): Likewise.
5111         (sqrt_towardzero_test_data): Likewise.
5112         (sqrt_test_towardzero): Likewise.
5113         (sqrt_downward_test_data): Likewise.
5114         (sqrt_test_downward): Likewise.
5115         (sqrt_upward_test_data): Likewise.
5116         (sqrt_test_upward): Likewise.
5117         (tan_test_data): Update call to AUTO_TESTS_f_f.
5118         (tan_test): Use ALL_RM_TEST.
5119         (tan_tonearest_test_data): Remove.
5120         (tan_test_tonearest): Likewise.
5121         (tan_towardzero_test_data): Likewise.
5122         (tan_test_towardzero): Likewise.
5123         (tan_downward_test_data): Likewise.
5124         (tan_test_downward): Likewise.
5125         (tan_upward_test_data): Likewise.
5126         (tan_test_upward): Likewise.
5127         (tanh_test_data): Update call to AUTO_TESTS_f_f.
5128         (tgamma_test_data): Likewise.
5129         (y0_test_data): Likewise.
5130         (y1_test_data): Likewise.
5131         (yn_test_data): Update call to AUTO_TESTS_if_f.
5132         (main): Do not call removed functions.
5133
5134 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5135
5136         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
5137         (ldexp_test_data): Remove.
5138         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
5139         scalbn_test_data.
5140         (scalb_test): Use ALL_RM_TEST.
5141
5142 2014-03-19  Andreas Schwab  <schwab@suse.de>
5143
5144         * nscd/nscd.service: Also invalidate netgroup cache on reload.
5145
5146 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5147
5148         [BZ #16649]
5149         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5150         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
5151         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
5152         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5153         (__ASSUME_PREADV): Undefine.
5154         (__ASSUME_PWRITEV): Likewise.
5155
5156 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5157
5158         * bits/mman-linux.h: Add comment about non-Linux use.
5159         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
5160         bits/mman-linux.h resting place.
5161
5162         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
5163         * bits/mman-linux.h: ... here.
5164
5165 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5166
5167         * conform/conformtest.pl: Add standard definition when calling C
5168         preprocessor on data files.
5169         (checknamespace): Remove unused variable.
5170
5171 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5172
5173         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
5174         minus_oflow, plus_uflow and minus_uflow in expected results.
5175         * math/libm-test.inc (scalbn_test_data): Add more tests of
5176         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
5177         minus_uflow.
5178         (scalbn_test): Use ALL_RM_TEST.
5179         (scalbln_test_data): Add more tests of negative arguments.  Use
5180         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
5181         (scalbln_test): Use ALL_RM_TEST.
5182
5183 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5184
5185         * scripts/abilist.awk: Ignore symbols marked with .hidden.
5186
5187 2014-03-18  Will Newton  <will.newton@linaro.org>
5188
5189         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
5190         inaccurate comment.
5191
5192 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5193
5194         * Makerules [!subdir] (check-abi): Exit with error status if a
5195         test failed.
5196
5197 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5198
5199         * math/libm-test.inc (nearbyint_test_data): Include all tests used
5200         for rint.  Include results for all rounding modes.
5201         (nearbyint_test): Use ALL_RM_TEST.
5202         (rint_test_data): Include all tests used for nearbyint.
5203
5204 2014-03-17  Will Newton  <will.newton@linaro.org>
5205
5206         * nptl/sysdeps/pthread/pthread.h: Revert previous
5207         change.
5208
5209         * sysdeps/generic/ldsodefs.h: Revert previous
5210         change.
5211
5212         * libio/genops.c: Revert previous change.
5213         * libio/libioP.h: Likewise.
5214         * stdio-common/vfprintf.c: Likewise.
5215
5216         * sysdeps/generic/math_private.h: Revert previous
5217         change.
5218
5219         * sysdeps/generic/math_private.h: Check whether
5220         HAVE_RM_CTX is defined with #ifdef rather
5221         than #if.
5222
5223         * argp/argp-fmtstream.h: Check whether
5224         __STRICT_ANSI__ is defined with #ifdef rather
5225         than #if.
5226         * argp/argp.h: Likewise.
5227
5228         * libio/genops.c: Check whether
5229         _IO_JUMPS_OFFSET is defined with #ifdef rather
5230         than #if.
5231         * libio/libioP.h: Likewise.
5232         * stdio-common/vfprintf.c: Likewise.
5233
5234         * sysdeps/generic/ldsodefs.h: Check whether
5235         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
5236         than #if.
5237
5238         * nptl/sysdeps/pthread/pthread.h: Check
5239         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
5240         its value.
5241
5242 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5243
5244         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
5245         setting O_APPEND.
5246         * libio/tst-ftell-active-handler.c (do_append_test): Add a
5247         test case.
5248
5249         [BZ #16680]
5250         * libio/fileops.c (_IO_file_open): Seek to end of file but
5251         don't cache the offset.
5252         (get_file_offset): Remove function.
5253         (do_ftell): Use cached offset when available.
5254         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
5255         don't cache the offset.
5256         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
5257         case.
5258         (do_one_test): Call it.
5259         (do_ftell_test): Fix up expected old offset for a+ mode.
5260         * libio/wfileops.c (do_ftell_wide): Used cached offset when
5261         available.
5262
5263         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
5264         up test status with function return status.
5265         (do_write_test): Likewise.
5266         (do_append_test): Likewise.
5267
5268         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
5269         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
5270         Remove.
5271
5272 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5273
5274         * math/gen-libm-test.pl (parse_args): Handle results specified for
5275         each rounding mode separately.
5276         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
5277         tests and results from lrint_tonearest_test_data,
5278         lrint_towardzero_test_data, lrint_downward_test_data and
5279         lrint_upward_test_data.
5280         (lrint_test): Use ALL_RM_TEST.
5281         (lrint_tonearest_test_data): Remove.
5282         (lrint_test_tonearest): Likewise.
5283         (lrint_towardzero_test_data): Likewise.
5284         (lrint_test_towardzero): Likewise.
5285         (lrint_downward_test_data): Likewise.
5286         (lrint_test_downward): Likewise.
5287         (lrint_upward_test_data): Likewise.
5288         (lrint_test_upward): Likewise.
5289         (llrint_test_data): Merge in per-rounding-mode tests and results
5290         from llrint_tonearest_test_data, llrint_towardzero_test_data,
5291         llrint_downward_test_data and llrint_upward_test_data.
5292         (llrint_test): Use ALL_RM_TEST.
5293         (llrint_tonearest_test_data): Remove.
5294         (llrint_test_tonearest): Likewise.
5295         (llrint_towardzero_test_data): Likewise.
5296         (llrint_test_towardzero): Likewise.
5297         (llrint_downward_test_data): Likewise.
5298         (llrint_test_downward): Likewise.
5299         (llrint_upward_test_data): Likewise.
5300         (llrint_test_upward): Likewise.
5301         (rint_test_data): Merge in per-rounding-mode tests and results
5302         from rint_tonearest_test_data, rint_towardzero_test_data,
5303         rint_downward_test_data and rint_upward_test_data.  Add
5304         per-rounding-mode results for tests not in those arrays.
5305         (rint_test): Use ALL_RM_TEST.
5306         (rint_tonearest_test_data): Remove.
5307         (rint_test_tonearest): Likewise.
5308         (rint_towardzero_test_data): Likewise.
5309         (rint_test_towardzero): Likewise.
5310         (rint_downward_test_data): Likewise.
5311         (rint_test_downward): Likewise.
5312         (rint_upward_test_data): Likewise.
5313         (rint_test_upward): Likewise.
5314         (main): Don't call removed functions.
5315
5316 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5317
5318         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
5319         "Compiled on ..." crapola.  It is anti-useful.
5320
5321 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
5322
5323         * scripts/evaluate-test.sh: Handle fourth argument to determine
5324         whether test run should stop on failure.
5325         * Makeconfig (stop-on-test-failure): New variable.
5326         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
5327         $(stop-on-test-failure).
5328         * Makefile (tests): Give a summary of results from testing and
5329         exit with failure status if they include an ERROR or FAIL.
5330         (xtests): Likewise.
5331         * manual/install.texi (Configuring and compiling): Mention
5332         stop-on-test-failure=y.
5333         * INSTALL: Regenerated.
5334
5335 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5336
5337         * scripts/versionlist.awk: New file.
5338         * Makerules [$(build-shared) = yes]
5339         (postclean-generated): Add Versions.def, not Versions.def.v and
5340         Versions.def.v.i.
5341         ($(common-objpfx)Versions.def.v.i): Target removed.
5342         ($(common-objpfx)Versions.def): New target.
5343         ($(common-objpfx)Versions.all): Depend on that rather that
5344         $(common-objpfx)Versions.def.v.
5345         * Versions.def: File removed.
5346
5347         * Makeconfig (+gccwarn): Add -Wundef.
5348         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
5349         a dl-sysdep.h breaking its contract.
5350         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
5351         * include/stackinfo.h: New file.
5352         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
5353         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
5354         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
5355         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
5356         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
5357         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
5358         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5359         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5360         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5361         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5362         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5363         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
5364         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5365         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5366         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5367
5368 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5369
5370         [BZ #16707]
5371         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
5372         implementation.
5373         * math/libm-test.inc (round_test_data): Add more tests.
5374
5375         [BZ #16706]
5376         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
5377         implementation.
5378         * math/libm-test.inc (nearbyint_test_data): Add more tests.
5379
5380         [BZ #16701]
5381         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
5382         implementation.
5383         * math/libm-test.inc (ceil_test_data): Add more tests.
5384
5385         * math/libm-test.inc (trunc_test_data): Add more tests related to
5386         BZ#16414.
5387
5388 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5389
5390         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
5391         with #if rather than #ifdef.
5392         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
5393
5394 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
5395
5396         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
5397         first.  Disable AVX-512 GCC support if assembler doesn't support
5398         it.
5399         * sysdeps/x86_64/configure: Regenerated.
5400
5401 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
5402
5403         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
5404         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
5405         (__old_pthread_attr_setstack): Likewise.
5406         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
5407         [!_STACK_GROWS_DOWN]: Likewise.
5408
5409 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
5410
5411         * config.make.in (have-bash2): Delete.
5412         * configure.ac (libc_cv_have_bash2): Delete.
5413         * configure: Regenerate.
5414         * elf/Makefile (common-ldd-rewrite): Rename to ...
5415         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
5416         (sh-ldd-rewrite): Delete.
5417         (bash-ldd-rewrite): Delete.
5418         (have-bash2): Delete checks.
5419         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
5420         ldd-rewrite.
5421
5422         * config.make.in (have-ksh): Delete.
5423         (KSH): Delete.
5424         * configure.ac (libc_cv_have_ksh): Delete.
5425         * configure: Regenerate.
5426
5427         * elf/Makefile: Delete $(have-ksh) check.
5428         ($(objpfx)sotruss): Change KSH to BASH.
5429         * elf/sotruss.ksh: Rename to ...
5430         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
5431         function style to match POSIX.  Drop ksh vim mode setting.
5432
5433         * manual/time.texi (Specifying the Time Zone with TZ): Change
5434         Tuesday to Thursday.
5435
5436         * debug/tst-longjmp_chk2.c: Update header comment.
5437         (stackoverflow_handler): Add comment.  Call assert on pass value.
5438
5439 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
5440
5441         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
5442         (HAVE_AVX512_ASM_SUPPORT): Likewise.
5443         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
5444         (La_x86_64_vector): Add zmm.
5445         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
5446         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
5447         ($(objpfx)tst-audit10): New target.
5448         ($(objpfx)tst-audit10.out): Likewise.
5449         (tst-audit10-ENV): New.
5450         (AVX512-CFLAGS): Likewise.
5451         (CFLAGS-tst-audit10.c): Likewise.
5452         (CFLAGS-tst-auditmod10a.c): Likewise.
5453         (CFLAGS-tst-auditmod10b.c): Likewise.
5454         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
5455         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
5456         * sysdeps/x86_64/configure: Regenerated.
5457         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
5458         AVX-512 zmm register support.
5459         (_dl_x86_64_save_sse): Likewise.
5460         (_dl_x86_64_restore_sse): Likewise.
5461         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
5462         size vector registers.
5463         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
5464         (ZMM_SIZE): Likewise.
5465         * sysdeps/x86_64/tst-audit10.c: New file.
5466         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
5467         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
5468
5469 2014-03-13  Roland McGrath  <roland@hack.frob.com>
5470
5471         * configure.ac (HAVE_EHDR_START): New check.
5472         * configure: Regenerated.
5473         * config.h.in (HAVE_EHDR_START): New #undef.
5474         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
5475         assuming the lowest-addressed segment maps the start of the file.
5476
5477 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
5478
5479         * INSTALL: Regenerated.
5480
5481 2014-03-13  Will Newton  <will.newton@linaro.org>
5482
5483         * manual/setjmp.texi (System V contexts): Improve
5484         clarity and grammar of documentation.
5485
5486 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
5487
5488         [BZ #16381]
5489         * elf/Makefile (tests): Add tst-pie2.
5490         (tests-pie): Add tst-pie2.
5491         * elf/tst-pie2.c: New file.
5492         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
5493         for ET_EXEC.
5494         * elf/rtld.c (map_doit): Load executable as lt_executable.
5495         (dl_main): Likewise.
5496
5497 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
5498
5499         [BZ #16642]
5500         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5501         (__ASSUME_PSELECT): Undefine.
5502
5503 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5504
5505         [BZ #16689]
5506         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
5507         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
5508         static build.
5509         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
5510         selector for static builds.
5511
5512 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5513
5514         [BZ #16695]
5515         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
5516         key in the buffer.
5517
5518 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5519
5520         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
5521         IFUNC selector for static builds.
5522
5523 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
5524
5525         * sysdeps/mips/math_private.h [__mips_hard_float]
5526         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
5527         libc_feresetround_mips_ctx.
5528         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
5529         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
5530         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
5531
5532         [BZ #16677]
5533         * math/s_nextafter.c (__nextafter): Do not return value from
5534         overflowing computation.
5535         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
5536         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
5537         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
5538         Likewise.
5539         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5540         Likewise.
5541         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
5542         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
5543
5544 2014-03-11  Roland McGrath  <roland@hack.frob.com>
5545
5546         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
5547         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
5548         Move sfi_sp use from the load-multiple (that no longer sets sp) to
5549         the new mov targetting sp.
5550
5551 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5552
5553         [BZ #16683]
5554         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
5555         Define it for static builds as well.
5556         (NO_BZERO_IMPL): Likewise.
5557
5558 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5559
5560         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
5561         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
5562         multiarch strspn for PPC64.
5563         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
5564         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
5565         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5566         (__libc_ifunc_impl_list): Likewise.
5567         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
5568         multiarch optimizations
5569         * string/strspn.c (strspn): Using macro to redefine symbol name.
5570
5571 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5572             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5573
5574         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
5575         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
5576         multiarch strncat for PPC64.
5577         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
5578         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
5579         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5580         (__libc_ifunc_impl_list): Likewise.
5581         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
5582         multiarch optimizations
5583
5584 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5585
5586         [BZ #16639]
5587         * nscd/nscd.service: Make service type forking.
5588
5589 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5590
5591         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
5592         sign in non default rounding modes.
5593         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5594
5595 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
5596
5597         * math/libm-test.inc (ALL_RM_TEST): New macro.
5598         (ceil_test): Use ALL_RM_TEST.
5599         (cimag_test): Likewise.
5600         (conj_test): Likewise.
5601         (copysign_test): Likewise.
5602         (cproj_test): Likewise.
5603         (creal_test): Likewise.
5604         (fabs_test): Likewise.
5605         (floor_test): Likewise.
5606         (fmax_test): Likewise.
5607         (fmin_test): Likewise.
5608         (fmod_test): Likewise.
5609         (fpclassify_test): Likewise.
5610         (frexp_test): Likewise.
5611         (ilogb_test): Likewise.
5612         (isfinite_test): Likewise.
5613         (finite_test): Likewise.
5614         (isgreater_test): Likewise.
5615         (isgreaterequal_test): Likewise.
5616         (isinf_test): Likewise.
5617         (isless_test): Likewise.
5618         (islessequal_test): Likewise.
5619         (islessgreater_test): Likewise.
5620         (isnan_test): Likewise.
5621         (isnormal_test): Likewise.
5622         (issignaling_test): Likewise.
5623         (isunordered_test): Likewise.
5624         (logb_test): Likewise.
5625         (logb_downward_test_data): Remove.
5626         (logb_test_downward): Likewise.
5627         (lround_test): Use ALL_RM_TEST.
5628         (llround_test): Likewise.
5629         (modf_test): Likewise.
5630         (nexttoward_test): Likewise.
5631         (remainder_test): Likewise.
5632         (drem_test): Likewise.
5633         (remainder_tonearest_test_data): Likewise.
5634         (remainder_test_tonearest): Likewise.
5635         (drem_test_tonearest): Likewise.
5636         (remainder_towardzero_test_data): Likewise.
5637         (remainder_test_towardzero): Likewise.
5638         (drem_test_towardzero): Likewise.
5639         (remainder_downward_test_data): Likewise.
5640         (remainder_test_downward): Likewise.
5641         (drem_test_downward): Likewise.
5642         (remainder_upward_test_data): Likewise.
5643         (remainder_test_upward): Likewise.
5644         (drem_test_upward): Likewise.
5645         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
5646         (round_test): Use ALL_RM_TEST.
5647         (signbit_test): Likewise.
5648         (trunc_test): Likewise.
5649         (significand_test): Likewise.
5650         (main): Don't call removed functions.
5651
5652 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5653
5654         [BZ #16674]
5655         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
5656         || __USE_XOPEN2K8].
5657         (ILL_ILLOPN): Likewise.
5658         (ILL_ILLADR): Likewise.
5659         (ILL_ILLTRP): Likewise.
5660         (ILL_PRVOPC): Likewise.
5661         (ILL_PRVREG): Likewise.
5662         (ILL_COPROC): Likewise.
5663         (ILL_BADSTK): Likewise.
5664         (FPE_INTDIV): Likewise.
5665         (FPE_INTOVF): Likewise.
5666         (FPE_FLTDIV): Likewise.
5667         (FPE_FLTOVF): Likewise.
5668         (FPE_FLTUND): Likewise.
5669         (FPE_FLTRES): Likewise.
5670         (FPE_FLTINV): Likewise.
5671         (FPE_FLTSUB): Likewise.
5672         (SEGV_MAPERR): Likewise.
5673         (SEGV_ACCERR): Likewise.
5674         (BUS_ADRALN): Likewise.
5675         (BUS_ADRERR): Likewise.
5676         (BUS_OBJERR): Likewise.
5677         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5678         (TRAP_TRACE): Likewise.
5679         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5680         __USE_XOPEN2K8].
5681         (CLD_KILLED): Likewise.
5682         (CLD_DUMPED): Likewise.
5683         (CLD_TRAPPED): Likewise.
5684         (CLD_STOPPED): Likewise.
5685         (CLD_CONTINUED): Likewise.
5686         (POLL_IN): Likewise.
5687         (POLL_OUT): Likewise.
5688         (POLL_MSG): Likewise.
5689         (POLL_ERR): Likewise.
5690         (POLL_PRI): Likewise.
5691         (POLL_HUP): Likewise.
5692         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
5693         Likewise.
5694         (ILL_ILLOPN): Likewise.
5695         (ILL_ILLADR): Likewise.
5696         (ILL_ILLTRP): Likewise.
5697         (ILL_PRVOPC): Likewise.
5698         (ILL_PRVREG): Likewise.
5699         (ILL_COPROC): Likewise.
5700         (ILL_BADSTK): Likewise.
5701         (FPE_INTDIV): Likewise.
5702         (FPE_INTOVF): Likewise.
5703         (FPE_FLTDIV): Likewise.
5704         (FPE_FLTOVF): Likewise.
5705         (FPE_FLTUND): Likewise.
5706         (FPE_FLTRES): Likewise.
5707         (FPE_FLTINV): Likewise.
5708         (FPE_FLTSUB): Likewise.
5709         (SEGV_MAPERR): Likewise.
5710         (SEGV_ACCERR): Likewise.
5711         (BUS_ADRALN): Likewise.
5712         (BUS_ADRERR): Likewise.
5713         (BUS_OBJERR): Likewise.
5714         (BUS_MCEERR_AR): Likewise.
5715         (BUS_MCEERR_AO): Likewise.
5716         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5717         (TRAP_TRACE): Likewise.
5718         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5719         __USE_XOPEN2K8].
5720         (CLD_KILLED): Likewise.
5721         (CLD_DUMPED): Likewise.
5722         (CLD_TRAPPED): Likewise.
5723         (CLD_STOPPED): Likewise.
5724         (CLD_CONTINUED): Likewise.
5725         (POLL_IN): Likewise.
5726         (POLL_OUT): Likewise.
5727         (POLL_MSG): Likewise.
5728         (POLL_ERR): Likewise.
5729         (POLL_PRI): Likewise.
5730         (POLL_HUP): Likewise.
5731         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
5732         (ILL_ILLOPN): Likewise.
5733         (ILL_ILLADR): Likewise.
5734         (ILL_ILLTRP): Likewise.
5735         (ILL_PRVOPC): Likewise.
5736         (ILL_PRVREG): Likewise.
5737         (ILL_COPROC): Likewise.
5738         (ILL_BADSTK): Likewise.
5739         (FPE_INTDIV): Likewise.
5740         (FPE_INTOVF): Likewise.
5741         (FPE_FLTDIV): Likewise.
5742         (FPE_FLTOVF): Likewise.
5743         (FPE_FLTUND): Likewise.
5744         (FPE_FLTRES): Likewise.
5745         (FPE_FLTINV): Likewise.
5746         (FPE_FLTSUB): Likewise.
5747         (SEGV_MAPERR): Likewise.
5748         (SEGV_ACCERR): Likewise.
5749         (BUS_ADRALN): Likewise.
5750         (BUS_ADRERR): Likewise.
5751         (BUS_OBJERR): Likewise.
5752         (BUS_MCEERR_AR): Likewise.
5753         (BUS_MCEERR_AO): Likewise.
5754         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5755         (TRAP_TRACE): Likewise.
5756         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5757         __USE_XOPEN2K8].
5758         (CLD_KILLED): Likewise.
5759         (CLD_DUMPED): Likewise.
5760         (CLD_TRAPPED): Likewise.
5761         (CLD_STOPPED): Likewise.
5762         (CLD_CONTINUED): Likewise.
5763         (POLL_IN): Likewise.
5764         (POLL_OUT): Likewise.
5765         (POLL_MSG): Likewise.
5766         (POLL_ERR): Likewise.
5767         (POLL_PRI): Likewise.
5768         (POLL_HUP): Likewise.
5769         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
5770         Likewise.
5771         (ILL_ILLOPN): Likewise.
5772         (ILL_ILLADR): Likewise.
5773         (ILL_ILLTRP): Likewise.
5774         (ILL_PRVOPC): Likewise.
5775         (ILL_PRVREG): Likewise.
5776         (ILL_COPROC): Likewise.
5777         (ILL_BADSTK): Likewise.
5778         (ILL_BADIADDR): Likewise.
5779         (ILL_BREAK): Likewise.
5780         (FPE_INTDIV): Likewise.
5781         (FPE_INTOVF): Likewise.
5782         (FPE_FLTDIV): Likewise.
5783         (FPE_FLTOVF): Likewise.
5784         (FPE_FLTUND): Likewise.
5785         (FPE_FLTRES): Likewise.
5786         (FPE_FLTINV): Likewise.
5787         (FPE_FLTSUB): Likewise.
5788         (FPE_DECOVF): Likewise.
5789         (FPE_DECDIV): Likewise.
5790         (FPE_DECERR): Likewise.
5791         (FPE_INVASC): Likewise.
5792         (FPE_INVDEC): Likewise.
5793         (SEGV_MAPERR): Likewise.
5794         (SEGV_ACCERR): Likewise.
5795         (SEGV_PSTKOVF): Likewise.
5796         (BUS_ADRALN): Likewise.
5797         (BUS_ADRERR): Likewise.
5798         (BUS_OBJERR): Likewise.
5799         (BUS_MCEERR_AR): Likewise.
5800         (BUS_MCEERR_AO): Likewise.
5801         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5802         (TRAP_TRACE): Likewise.
5803         (TRAP_BRANCH): Likewise.
5804         (TRAP_HWBKPT): Likewise.
5805         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5806         __USE_XOPEN2K8].
5807         (CLD_KILLED): Likewise.
5808         (CLD_DUMPED): Likewise.
5809         (CLD_TRAPPED): Likewise.
5810         (CLD_STOPPED): Likewise.
5811         (CLD_CONTINUED): Likewise.
5812         (POLL_IN): Likewise.
5813         (POLL_OUT): Likewise.
5814         (POLL_MSG): Likewise.
5815         (POLL_ERR): Likewise.
5816         (POLL_PRI): Likewise.
5817         (POLL_HUP): Likewise.
5818         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
5819         (ILL_ILLOPN): Likewise.
5820         (ILL_ILLADR): Likewise.
5821         (ILL_ILLTRP): Likewise.
5822         (ILL_PRVOPC): Likewise.
5823         (ILL_PRVREG): Likewise.
5824         (ILL_COPROC): Likewise.
5825         (ILL_BADSTK): Likewise.
5826         (FPE_INTDIV): Likewise.
5827         (FPE_INTOVF): Likewise.
5828         (FPE_FLTDIV): Likewise.
5829         (FPE_FLTOVF): Likewise.
5830         (FPE_FLTUND): Likewise.
5831         (FPE_FLTRES): Likewise.
5832         (FPE_FLTINV): Likewise.
5833         (FPE_FLTSUB): Likewise.
5834         (SEGV_MAPERR): Likewise.
5835         (SEGV_ACCERR): Likewise.
5836         (BUS_ADRALN): Likewise.
5837         (BUS_ADRERR): Likewise.
5838         (BUS_OBJERR): Likewise.
5839         (BUS_MCEERR_AR): Likewise.
5840         (BUS_MCEERR_AO): Likewise.
5841         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5842         (TRAP_TRACE): Likewise.
5843         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5844         __USE_XOPEN2K8].
5845         (CLD_KILLED): Likewise.
5846         (CLD_DUMPED): Likewise.
5847         (CLD_TRAPPED): Likewise.
5848         (CLD_STOPPED): Likewise.
5849         (CLD_CONTINUED): Likewise.
5850         (POLL_IN): Likewise.
5851         (POLL_OUT): Likewise.
5852         (POLL_MSG): Likewise.
5853         (POLL_ERR): Likewise.
5854         (POLL_PRI): Likewise.
5855         (POLL_HUP): Likewise.
5856         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
5857         (ILL_ILLOPN): Likewise.
5858         (ILL_ILLADR): Likewise.
5859         (ILL_ILLTRP): Likewise.
5860         (ILL_PRVOPC): Likewise.
5861         (ILL_PRVREG): Likewise.
5862         (ILL_COPROC): Likewise.
5863         (ILL_BADSTK): Likewise.
5864         (FPE_INTDIV): Likewise.
5865         (FPE_INTOVF): Likewise.
5866         (FPE_FLTDIV): Likewise.
5867         (FPE_FLTOVF): Likewise.
5868         (FPE_FLTUND): Likewise.
5869         (FPE_FLTRES): Likewise.
5870         (FPE_FLTINV): Likewise.
5871         (FPE_FLTSUB): Likewise.
5872         (SEGV_MAPERR): Likewise.
5873         (SEGV_ACCERR): Likewise.
5874         (BUS_ADRALN): Likewise.
5875         (BUS_ADRERR): Likewise.
5876         (BUS_OBJERR): Likewise.
5877         (BUS_MCEERR_AR): Likewise.
5878         (BUS_MCEERR_AO): Likewise.
5879         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5880         (TRAP_TRACE): Likewise.
5881         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5882         __USE_XOPEN2K8].
5883         (CLD_KILLED): Likewise.
5884         (CLD_DUMPED): Likewise.
5885         (CLD_TRAPPED): Likewise.
5886         (CLD_STOPPED): Likewise.
5887         (CLD_CONTINUED): Likewise.
5888         (POLL_IN): Likewise.
5889         (POLL_OUT): Likewise.
5890         (POLL_MSG): Likewise.
5891         (POLL_ERR): Likewise.
5892         (POLL_PRI): Likewise.
5893         (POLL_HUP): Likewise.
5894         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
5895         (ILL_ILLOPN): Likewise.
5896         (ILL_ILLADR): Likewise.
5897         (ILL_ILLTRP): Likewise.
5898         (ILL_PRVOPC): Likewise.
5899         (ILL_PRVREG): Likewise.
5900         (ILL_COPROC): Likewise.
5901         (ILL_BADSTK): Likewise.
5902         (FPE_INTDIV): Likewise.
5903         (FPE_INTOVF): Likewise.
5904         (FPE_FLTDIV): Likewise.
5905         (FPE_FLTOVF): Likewise.
5906         (FPE_FLTUND): Likewise.
5907         (FPE_FLTRES): Likewise.
5908         (FPE_FLTINV): Likewise.
5909         (FPE_FLTSUB): Likewise.
5910         (SEGV_MAPERR): Likewise.
5911         (SEGV_ACCERR): Likewise.
5912         (BUS_ADRALN): Likewise.
5913         (BUS_ADRERR): Likewise.
5914         (BUS_OBJERR): Likewise.
5915         (BUS_MCEERR_AR): Likewise.
5916         (BUS_MCEERR_AO): Likewise.
5917         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5918         (TRAP_TRACE): Likewise.
5919         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5920         __USE_XOPEN2K8].
5921         (CLD_KILLED): Likewise.
5922         (CLD_DUMPED): Likewise.
5923         (CLD_TRAPPED): Likewise.
5924         (CLD_STOPPED): Likewise.
5925         (CLD_CONTINUED): Likewise.
5926         (POLL_IN): Likewise.
5927         (POLL_OUT): Likewise.
5928         (POLL_MSG): Likewise.
5929         (POLL_ERR): Likewise.
5930         (POLL_PRI): Likewise.
5931         (POLL_HUP): Likewise.
5932         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
5933         (ILL_ILLOPN): Likewise.
5934         (ILL_ILLADR): Likewise.
5935         (ILL_ILLTRP): Likewise.
5936         (ILL_PRVOPC): Likewise.
5937         (ILL_PRVREG): Likewise.
5938         (ILL_COPROC): Likewise.
5939         (ILL_BADSTK): Likewise.
5940         (ILL_DBLFLT): Likewise.
5941         (ILL_HARDWALL): Likewise.
5942         (FPE_INTDIV): Likewise.
5943         (FPE_INTOVF): Likewise.
5944         (FPE_FLTDIV): Likewise.
5945         (FPE_FLTOVF): Likewise.
5946         (FPE_FLTUND): Likewise.
5947         (FPE_FLTRES): Likewise.
5948         (FPE_FLTINV): Likewise.
5949         (FPE_FLTSUB): Likewise.
5950         (SEGV_MAPERR): Likewise.
5951         (SEGV_ACCERR): Likewise.
5952         (BUS_ADRALN): Likewise.
5953         (BUS_ADRERR): Likewise.
5954         (BUS_OBJERR): Likewise.
5955         (BUS_MCEERR_AR): Likewise.
5956         (BUS_MCEERR_AO): Likewise.
5957         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5958         (TRAP_TRACE): Likewise.
5959         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5960         __USE_XOPEN2K8].
5961         (CLD_KILLED): Likewise.
5962         (CLD_DUMPED): Likewise.
5963         (CLD_TRAPPED): Likewise.
5964         (CLD_STOPPED): Likewise.
5965         (CLD_CONTINUED): Likewise.
5966         (POLL_IN): Likewise.
5967         (POLL_OUT): Likewise.
5968         (POLL_MSG): Likewise.
5969         (POLL_ERR): Likewise.
5970         (POLL_PRI): Likewise.
5971         (POLL_HUP): Likewise.
5972         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
5973         (ILL_ILLOPN): Likewise.
5974         (ILL_ILLADR): Likewise.
5975         (ILL_ILLTRP): Likewise.
5976         (ILL_PRVOPC): Likewise.
5977         (ILL_PRVREG): Likewise.
5978         (ILL_COPROC): Likewise.
5979         (ILL_BADSTK): Likewise.
5980         (FPE_INTDIV): Likewise.
5981         (FPE_INTOVF): Likewise.
5982         (FPE_FLTDIV): Likewise.
5983         (FPE_FLTOVF): Likewise.
5984         (FPE_FLTUND): Likewise.
5985         (FPE_FLTRES): Likewise.
5986         (FPE_FLTINV): Likewise.
5987         (FPE_FLTSUB): Likewise.
5988         (SEGV_MAPERR): Likewise.
5989         (SEGV_ACCERR): Likewise.
5990         (BUS_ADRALN): Likewise.
5991         (BUS_ADRERR): Likewise.
5992         (BUS_OBJERR): Likewise.
5993         (BUS_MCEERR_AR): Likewise.
5994         (BUS_MCEERR_AO): Likewise.
5995         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5996         (TRAP_TRACE): Likewise.
5997         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5998         __USE_XOPEN2K8].
5999         (CLD_KILLED): Likewise.
6000         (CLD_DUMPED): Likewise.
6001         (CLD_TRAPPED): Likewise.
6002         (CLD_STOPPED): Likewise.
6003         (CLD_CONTINUED): Likewise.
6004         (POLL_IN): Likewise.
6005         (POLL_OUT): Likewise.
6006         (POLL_MSG): Likewise.
6007         (POLL_ERR): Likewise.
6008         (POLL_PRI): Likewise.
6009         (POLL_HUP): Likewise.
6010         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
6011         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6012
6013         [BZ #16670]
6014         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
6015         before #include of <time.h>.
6016         [!__USE_XOPEN2K] (__need_timespec): Likewise.
6017         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
6018         (test-xfail-UNIX98/sched.h/conform): Likewise.
6019
6020 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6021
6022         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
6023         error absence of trapping exception support.
6024         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
6025
6026 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
6027
6028         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
6029         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
6030         * timezone/Makefile (testdata): Move definition above include of
6031         Rules.
6032         (test-zones): New variable.
6033         (tests-special): Add zone files.
6034         (build-testdata): Use $(evaluate-test).
6035
6036         * elf/Makefile (tests-special): Rename tests to end with .out.
6037         ($(objpfx)noload-mem): Likewise.
6038         ($(objpfx)tst-leaks1-mem): Likewise.
6039         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
6040         * iconv/Makefile (xtests-special): Change test-iconvconfig to
6041         $(objpfx)test-iconvconfig.out.
6042         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
6043         set -e inside subshell and redirect output to file.
6044         * iconvdata/Makefile (generated): Rename tests to end with .out.
6045         Correct type.
6046         (tests-special): Rename tests to end with .out.
6047         ($(objpfx)mtrace-tst-loading): Likewise.
6048         * intl/Makefile (generated): Likewise.
6049         (tests-special): Likewise.
6050         ($(objpfx)mtrace-tst-gettext): Likewise.
6051         * misc/Makefile (generated): Likewise.
6052         (tests-special): Likewise.
6053         ($(objpfx)tst-error1-mem): Likewise.
6054         * nptl/Makefile (tests-special): Likewise.
6055         ($(objpfx)tst-stack3-mem): Likewise.
6056         (generated): Likewise.
6057         * posix/Makefile (generated): Likewise.
6058         (tests-special): Likewise.
6059         (xtests-special): Likewise.
6060         ($(objpfx)tst-fnmatch-mem): Likewise.
6061         ($(objpfx)bug-regex2-mem): Likewise.
6062         ($(objpfx)bug-regex14-mem): Likewise.
6063         ($(objpfx)bug-regex21-mem): Likewise.
6064         ($(objpfx)bug-regex31-mem): Likewise.
6065         ($(objpfx)tst-vfork3-mem): Likewise.
6066         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6067         ($(objpfx)tst-pcre-mem): Likewise.
6068         ($(objpfx)tst-boost-mem): Likewise.
6069         ($(objpfx)bug-ga2-mem): Likewise.
6070         ($(objpfx)bug-glob2-mem): Likewise.
6071         * resolv/Makefile (generate): Likewise.
6072         (tests-special): Likewise.
6073         (xtests-special): Likewise.
6074         (generated): Likewise.
6075         ($(objpfx)mtrace-tst-leaks): Likewise.
6076         ($(objpfx)mtrace-tst-leaks2): Likewise.
6077
6078         * scripts/merge-test-results.sh: New file.
6079         * Makefile (tests-special-notdir): New variable.
6080         (tests): Run merge-test-results.sh.
6081         (xtests): Likewise.
6082         * Rules (tests-special-notdir): New variable.
6083         (xtests-special-notdir): Likewise.
6084         (tests): Run merge-test-results.sh
6085         (xtests): Likewise.
6086
6087         * Makeconfig (test-xfail-name): New variable.
6088         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
6089         compute variable name for expected failures.
6090         * conform/Makefile (conformtest-headers-data): New variable.
6091         (conformtest-standards): Likewise.
6092         (conformtest-headers-ISO): Likewise.
6093         (conformtest-headers-ISO99): Likewise.
6094         (conformtest-headers-ISO11): Likewise.
6095         (conformtest-headers-POSIX): Likewise.
6096         (conformtest-headers-XPG3): Likewise.
6097         (conformtest-headers-XPG4): Likewise.
6098         (conformtest-headers-UNIX98): Likewise.
6099         (conformtest-headers-XOPEN2K): Likewise.
6100         (conformtest-headers-POSIX2008): Likewise.
6101         (conformtest-headers-XOPEN2K8): Likewise.
6102         (conformtest-header-list-base): Likewise.
6103         (conformtest-header-list-tests): Likewise.
6104         (conformtest-header-base): Likewise.
6105         (conformtest-header-tests): Likewise.
6106         (tests-special): Add $(conformtest-header-list-tests).  If
6107         [$(fast-check) && !$(cross-compiling)], add
6108         $(conformtest-header-tests) instead of
6109         $(objpfx)run-conformtest.out.
6110         (generated): Add $(conformtest-header-list-base).  If
6111         [$(fast-check) && !$(cross-compiling)], add
6112         $(conformtest-header-base).  Remove previous setting.
6113         ($(conformtest-header-list-tests)): New target.
6114         (test-xfail-run-conformtest): Remove variable.
6115         ($(objpfx)run-conformtest.out): Remove target.
6116         (test-xfail-ISO11/complex.h/conform): New variable.
6117         (test-xfail-ISO11/stdalign.h/conform): Likewise.
6118         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
6119         (test-xfail-XPG3/varargs.h/conform): Likewise.
6120         (test-xfail-XPG4/varargs.h/conform): Likewise.
6121         (test-xfail-UNIX98/varargs.h/conform): Likewise.
6122         (test-xfail-XPG4/ndbm.h/conform): Likewise.
6123         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
6124         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
6125         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
6126         (test-xfail-XPG3/fcntl.h/conform): Likewise.
6127         (test-xfail-XPG3/ftw.h/conform): Likewise.
6128         (test-xfail-XPG3/grp.h/conform): Likewise.
6129         (test-xfail-XPG3/langinfo.h/conform): Likewise.
6130         (test-xfail-XPG3/limits.h/conform): Likewise.
6131         (test-xfail-XPG3/pwd.h/conform): Likewise.
6132         (test-xfail-XPG3/search.h/conform): Likewise.
6133         (test-xfail-XPG3/signal.h/conform): Likewise.
6134         (test-xfail-XPG3/stdio.h/conform): Likewise.
6135         (test-xfail-XPG3/stdlib.h/conform): Likewise.
6136         (test-xfail-XPG3/string.h/conform): Likewise.
6137         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
6138         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
6139         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
6140         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
6141         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
6142         (test-xfail-XPG3/sys/types.h/conform): Likewise.
6143         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
6144         (test-xfail-XPG3/termios.h/conform): Likewise.
6145         (test-xfail-XPG3/time.h/conform): Likewise.
6146         (test-xfail-XPG3/unistd.h/conform): Likewise.
6147         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
6148         (test-xfail-XPG4/fcntl.h/conform): Likewise.
6149         (test-xfail-XPG4/langinfo.h/conform): Likewise.
6150         (test-xfail-XPG4/netdb.h/conform): Likewise.
6151         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
6152         (test-xfail-XPG4/signal.h/conform): Likewise.
6153         (test-xfail-XPG4/stdio.h/conform): Likewise.
6154         (test-xfail-XPG4/stdlib.h/conform): Likewise.
6155         (test-xfail-XPG4/stropts.h/conform): Likewise.
6156         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
6157         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
6158         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
6159         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
6160         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
6161         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
6162         (test-xfail-XPG4/sys/time.h/conform): Likewise.
6163         (test-xfail-XPG4/sys/types.h/conform): Likewise.
6164         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
6165         (test-xfail-XPG4/termios.h/conform): Likewise.
6166         (test-xfail-XPG4/ucontext.h/conform): Likewise.
6167         (test-xfail-XPG4/unistd.h/conform): Likewise.
6168         (test-xfail-XPG4/utmpx.h/conform): Likewise.
6169         (test-xfail-POSIX/sched.h/conform): Likewise.
6170         (test-xfail-POSIX/signal.h/conform): Likewise.
6171         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6172         (test-xfail-POSIX/tar.h/conform): Likewise.
6173         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
6174         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
6175         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
6176         (test-xfail-UNIX98/netdb.h/conform): Likewise.
6177         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
6178         (test-xfail-UNIX98/sched.h/conform): Likewise.
6179         (test-xfail-UNIX98/signal.h/conform): Likewise.
6180         (test-xfail-UNIX98/stdio.h/conform): Likewise.
6181         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
6182         (test-xfail-UNIX98/stropts.h/conform): Likewise.
6183         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
6184         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
6185         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
6186         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
6187         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
6188         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
6189         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6190         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6191         (test-xfail-UNIX98/unistd.h/conform): Likewise.
6192         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
6193         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
6194         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
6195         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
6196         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
6197         (test-xfail-XOPEN2K/math.h/conform): Likewise.
6198         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
6199         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
6200         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
6201         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
6202         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6203         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
6204         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
6205         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
6206         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
6207         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
6208         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
6209         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
6210         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
6211         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6212         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
6213         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
6214         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6215         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
6216         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
6217         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
6218         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
6219         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
6220         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6221         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
6222         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
6223         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6224         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
6225         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
6226         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
6227         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
6228         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
6229         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
6230         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6231         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
6232         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
6233         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
6234         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
6235         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
6236         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
6237         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
6238         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
6239         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
6240         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6241         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
6242         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
6243         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
6244         (conformtest-cc-flags): Likewise.
6245         ($(conformtest-header-tests): New target.
6246         * conform/check-header-lists.sh: New file.
6247         * conform/run-conformtest.sh: Remove.
6248
6249         * conform/conformtest.pl: Allow ' and \ in values given for
6250         constants.
6251         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
6252         inclusion.
6253         [POSIX] (sys/types.h): Likewise.
6254         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
6255         inclusion.
6256         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
6257         inclusion.
6258         * conform/data/signal.h-data (SIGIO): Remove expectation.
6259         [XPG3] (SIGBUS): Do not expect.
6260         [POSIX || XPG3] (SIGPOLL): Likewise.
6261         [POSIX || XPG3] (SIGPROF): Likewise.
6262         [POSIX || XPG3] (SIGSYS): Likewise.
6263         [XPG3] (SIGTRAP): Likewise.
6264         [POSIX || XPG3] (SIGURG): Likewise.
6265         [POSIX || XPG3] (SIGVTALRM): Likewise.
6266         [POSIX || XPG3] (SIGXCPU): Likewise.
6267         [POSIX || XPG3] (SIGXFSZ): Likewise.
6268         [POSIX] (SA_SIGINFO): Expect.
6269         [XPG3] (siginfo_t): Do not expect type or contents.
6270         [POSIX] (si_pid): Do not expect element.
6271         [POSIX] (si_uid): Likewise.
6272         [POSIX] (si_addr): Likewise.
6273         [POSIX] (si_status): Likewise.
6274         [POSIX] (si_band): Likewise.
6275         [XPG4] (si_value): Likewise.
6276         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
6277         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
6278         [POSIX || XPG3] (ILL_ILLADR): Likewise.
6279         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
6280         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
6281         [POSIX || XPG3] (ILL_PRVREG): Likewise.
6282         [POSIX || XPG3] (ILL_COPROC): Likewise.
6283         [POSIX || XPG3] (ILL_BADSTK): Likewise.
6284         [POSIX || XPG3] (FPE_INTDIV): Likewise.
6285         [POSIX || XPG3] (FPE_INTOVF): Likewise.
6286         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
6287         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
6288         [POSIX || XPG3] (FPE_FLTUND): Likewise.
6289         [POSIX || XPG3] (FPE_FLTRES): Likewise.
6290         [POSIX || XPG3] (FPE_FLTINV): Likewise.
6291         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
6292         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
6293         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
6294         [POSIX || XPG3] (BUS_ADRALN): Likewise.
6295         [POSIX || XPG3] (BUS_ADRERR): Likewise.
6296         [POSIX || XPG3] (BUS_OBJERR): Likewise.
6297         [POSIX || XPG3] (CLD_EXITED): Likewise.
6298         [POSIX || XPG3] (CLD_KILLED): Likewise.
6299         [POSIX || XPG3] (CLD_DUMPED): Likewise.
6300         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
6301         [POSIX || XPG3] (CLD_STOPPED): Likewise.
6302         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
6303         [POSIX || XPG3] (POLL_IN): Likewise.
6304         [POSIX || XPG3] (POLL_OUT): Likewise.
6305         [POSIX || XPG3] (POLL_MSG): Likewise.
6306         [POSIX || XPG3] (POLL_ERR): Likewise.
6307         [POSIX || XPG3] (POLL_PRI): Likewise.
6308         [POSIX || XPG3] (POLL_HUP): Likewise.
6309         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
6310         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
6311         (SIG*): Do not allow.
6312         [XPG3] (si_*): Likewise.
6313         [XPG3] (SI_*): Likewise.
6314         [XPG3 || XPG4] (sigev_*): Likewise.
6315         [XPG3 || XPG4] (SIGEV_*): Likewise.
6316         [XPG3 || XPG4] (sival_*): Likewise.
6317         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
6318         [POSIX || XPG3] (BUS_*): Likewise.
6319         [POSIX || XPG3] (CLD_*): Likewise.
6320         [POSIX || XPG3] (FPE_*): Likewise.
6321         [POSIX || XPG3] (ILL_*): Likewise.
6322         [POSIX || XPG3] (POLL_*): Likewise.
6323         [POSIX || XPG3] (SEGV_*): Likewise.
6324         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
6325         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
6326         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
6327         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
6328         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
6329         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
6330         Specify type and value.
6331         (TVERSLEN): Likewise.
6332         (REGTYPE): Likewise.
6333         (AREGTYPE): Likewise.
6334         (LNKTYPE): Likewise.
6335         (SYMTYPE): Likewise.
6336         (CHRTYPE): Likewise.
6337         (BLKTYPE): Likewise.
6338         (DIRTYPE): Likewise.
6339         (FIFOTYPE): Likewise.
6340         (CONTTYPE): Likewise.
6341         (TSUID): Likewise.
6342         (TSGID): Likewise.
6343         (TSVTX): Likewise.
6344         (TUREAD): Likewise.
6345         (TUWRITE): Likewise.
6346         (TUEXEC): Likewise.
6347         (TGREAD): Likewise.
6348         (TGWRITE): Likewise.
6349         (TGEXEC): Likewise.
6350         (TOREAD): Likewise.
6351         (TOWRITE): Likewise.
6352         (TOEXEC): Likewise.
6353         [POSIX] (TSVTX): Expect constant.
6354
6355 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
6356
6357         * Makefile (tests): Change dependencies to ....
6358         (tests-special): ... additions to this variable.
6359         (tests): Depend on $(tests-special).
6360         * Makerules (check-abi-list): New variable.
6361         (check-abi): Depend on $(check-abi-list).
6362         [$(subdir) = elf] (tests-special): Add
6363         $(objpfx)check-abi-libc.out.
6364         [$(build-shared) = yes && subdir] (tests-special): Add
6365         $(check-abi-list).
6366         [$(build-shared) = yes && subdir] (tests): Do not depend on
6367         check-abi.
6368         * Rules (tests): Depend on $(tests-special).
6369         (xtests): Depend on $(xtests-special).
6370         * catgets/Makefile (tests): Change dependencies to ....
6371         (tests-special): ... additions to this variable.
6372         * conform/Makefile (tests): Change dependencies to ....
6373         (tests-special): ... additions to this variable.
6374         * elf/Makefile (tests): Change dependencies to ....
6375         (tests-special): ... additions to this variable.
6376         * grp/Makefile (tests): Change dependencies to ....
6377         (tests-special): ... additions to this variable.
6378         * iconv/Makefile (xtests): Change dependencies to ....
6379         (xtests-special): ... additions to this variable.
6380         * iconvdata/Makefile (tests): Change dependencies to ....
6381         (tests-special): ... additions to this variable.
6382         * intl/Makefile (tests): Change dependencies to ....
6383         (tests-special): ... additions to this variable.  Also add
6384         $(objpfx)tst-gettext.out.
6385         * io/Makefile (tests): Change dependencies to ....
6386         (tests-special): ... additions to this variable.
6387         * libio/Makefile (tests): Change dependencies to ....
6388         (tests-special): ... additions to this variable.
6389         * malloc/Makefile (tests): Change dependencies to ....
6390         (tests-special): ... additions to this variable.
6391         * misc/Makefile (tests): Change dependencies to ....
6392         (tests-special): ... additions to this variable.
6393         * nptl/Makefile (tests): Change dependencies to ....
6394         (tests-special): ... additions to this variable.
6395         * nptl_db/Makefile (tests): Change dependencies to ....
6396         (tests-special): ... additions to this variable.
6397         * posix/Makefile (tests): Change dependencies to ....
6398         (tests-special): ... additions to this variable.
6399         (xtests): Change dependencies to ....
6400         (xtests-special): ... additions to this variable.
6401         * resolv/Makefile (tests): Change dependencies to ....
6402         (tests-special): ... additions to this variable.
6403         (xtests): Change dependencies to ....
6404         (xtests-special): ... additions to this variable.
6405         * stdio-common/Makefile (tests): Change dependencies to ....
6406         (tests-special): ... additions to this variable.
6407         (do-tst-unbputc): Remove target.
6408         (do-tst-printf): Likewise.
6409         * stdlib/Makefile (tests): Change dependencies to ....
6410         (tests-special): ... additions to this variable.
6411         * string/Makefile (tests): Change dependencies to ....
6412         (tests-special): ... additions to this variable.
6413         * sysdeps/x86/Makefile (tests): Change dependencies to ....
6414         (tests-special): ... additions to this variable.
6415
6416         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
6417         whole file.
6418         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
6419         whole file.
6420         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
6421         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
6422
6423         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
6424         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
6425         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
6426         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
6427         * conform/data/libgen.h-data [XPG3]: Likewise.
6428         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
6429         * conform/data/ndbm.h-data [XPG3]: Likewise.
6430         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6431         * conform/data/netdb.h-data [XPG3]: Likewise.
6432         * conform/data/netinet/in.h-data [XPG3]: Likewise.
6433         * conform/data/poll.h-data [XPG3]: Likewise.
6434         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6435         * conform/data/strings.h-data [XPG3]: Likewise.
6436         * conform/data/stropts.h-data [XPG3]: Likewise.
6437         * conform/data/sys/mman.h-data [XPG3]: Likewise.
6438         * conform/data/sys/resource.h-data [XPG3]: Likewise.
6439         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
6440         Likewise.
6441         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
6442         * conform/data/sys/time.h-data [XPG3]: Likewise.
6443         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
6444         * conform/data/sys/uio.h-data [XPG3]: Likewise.
6445         * conform/data/sys/un.h-data [XPG3]: Likewise.
6446         * conform/data/syslog.h-data [XPG3]: Likewise.
6447         * conform/data/ucontext.h-data [XPG3]: Likewise.
6448         * conform/data/utmpx.h-data [XPG3]: Likewise.
6449         * conform/data/varargs.h-data [UNIX98]: Enable file.
6450
6451         * manual/Makefile (INSTALL_INFO): Remove variable setting.
6452
6453         * math/libm-test.inc (struct test_f_f_data): Move expected results
6454         into structure for each rounding mode.
6455         (struct test_ff_f_data): Likewise.
6456         (struct test_ff_f_data_nexttoward): Likewise.
6457         (struct test_fi_f_data): Likewise.
6458         (struct test_fl_f_data): Likewise.
6459         (struct test_if_f_data): Likewise.
6460         (struct test_fff_f_data): Likewise.
6461         (struct test_c_f_data): Likewise.
6462         (struct test_f_f1_data): Likewise.
6463         (struct test_fF_f1_data): Likewise.
6464         (struct test_ffI_f1_data): Likewise.
6465         (struct test_c_c_data): Likewise.
6466         (struct test_cc_c_data): Likewise.
6467         (struct test_f_i_data): Likewise.
6468         (struct test_ff_i_data): Likewise.
6469         (struct test_f_l_data): Likewise.
6470         (struct test_f_L_data): Likewise.
6471         (struct test_fFF_11_data): Likewise.
6472         (RM_): New macro.
6473         (RM_FE_DOWNWARD): Likewise.
6474         (RM_FE_TONEAREST): Likewise.
6475         (RM_FE_TOWARDZERO): Likewise.
6476         (RM_FE_UPWARD): Likewise.
6477         (RUN_TEST_LOOP_f_f): Update references to expected results.
6478         (RUN_TEST_LOOP_2_f): Likewise.
6479         (RUN_TEST_LOOP_fff_f): Likewise.
6480         (RUN_TEST_LOOP_c_f): Likewise.
6481         (RUN_TEST_LOOP_f_f1): Likewise.
6482         (RUN_TEST_LOOP_fF_f1): Likewise.
6483         (RUN_TEST_LOOP_fI_f1): Likewise.
6484         (RUN_TEST_LOOP_ffI_f1): Likewise.
6485         (RUN_TEST_LOOP_c_c): Likewise.
6486         (RUN_TEST_LOOP_cc_c): Likewise.
6487         (RUN_TEST_LOOP_f_i): Likewise.
6488         (RUN_TEST_LOOP_f_i_tg): Likewise.
6489         (RUN_TEST_LOOP_ff_i_tg): Likewise.
6490         (RUN_TEST_LOOP_f_b): Likewise.
6491         (RUN_TEST_LOOP_f_b_tg): Likewise.
6492         (RUN_TEST_LOOP_f_l): Likewise.
6493         (RUN_TEST_LOOP_f_L): Likewise.
6494         (RUN_TEST_LOOP_fFF_11): Likewise.
6495         * math/gen-libm-test.pl (parse_args): Output four copies of
6496         expected results for each test.
6497
6498         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6499         (__ASSUME_UTIMES): Remove.
6500         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6501         (__ASSUME_UTIMES): Likewise.
6502
6503         * math/gen-auto-libm-tests.c: Update comment on output format.
6504         (output_for_one_input_case): Generate before-rounding and
6505         after-rounding information as conditions on output flags not
6506         floating-point format.
6507         * math/auto-libm-test-out: Regenerated.
6508         * math/gen-libm-test.pl (cond_value): New function.
6509         (or_cond_value): Use cond_value.
6510         (generate_testfile): Handle conditional exceptions.
6511
6512 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
6513
6514         * math/libm-test.inc (max_valid_error): New variable.
6515         (init_max_error): Take new argument specifying whether function
6516         results are exactly determined.  Set max_valid_error and bound
6517         other variables for errors based on this argument.
6518         (set_max_error): Do not record results above max_valid_error.
6519         (check_float_internal): Only accept errors of up to 0.5ulps if
6520         also at most max_valid_error.
6521         (START): Take new argument EXACT and pass it to init_max_error.
6522         (acos_test): Update call to START.
6523         (acos_test_tonearest): Likewise.
6524         (acos_test_towardzero): Likewise.
6525         (acos_test_downward): Likewise.
6526         (acos_test_upward): Likewise.
6527         (acosh_test): Likewise.
6528         (asin_test): Likewise.
6529         (asin_test_tonearest): Likewise.
6530         (asin_test_towardzero): Likewise.
6531         (asin_test_downward): Likewise.
6532         (asin_test_upward): Likewise.
6533         (asinh_test): Likewise.
6534         (atan_test): Likewise.
6535         (atanh_test): Likewise.
6536         (atan2_test): Likewise.
6537         (cabs_test): Likewise.
6538         (cacos_test): Likewise.
6539         (cacosh_test): Likewise.
6540         (carg_test): Likewise.
6541         (casin_test): Likewise.
6542         (casinh_test): Likewise.
6543         (catan_test): Likewise.
6544         (catanh_test): Likewise.
6545         (cbrt_test): Likewise.
6546         (ccos_test): Likewise.
6547         (ccosh_test): Likewise.
6548         (ceil_test): Likewise.
6549         (cexp_test): Likewise.
6550         (cimag_test): Likewise.
6551         (clog_test): Likewise.
6552         (clog10_test): Likewise.
6553         (conj_test): Likewise.
6554         (copysign_test): Likewise.
6555         (cos_test): Likewise.
6556         (cos_test_tonearest): Likewise.
6557         (cos_test_towardzero): Likewise.
6558         (cos_test_downward): Likewise.
6559         (cos_test_upward): Likewise.
6560         (cosh_test): Likewise.
6561         (cosh_test_tonearest): Likewise.
6562         (cosh_test_towardzero): Likewise.
6563         (cosh_test_downward): Likewise.
6564         (cosh_test_upward): Likewise.
6565         (cpow_test): Likewise.
6566         (cproj_test): Likewise.
6567         (creal_test): Likewise.
6568         (csin_test): Likewise.
6569         (csinh_test): Likewise.
6570         (csqrt_test): Likewise.
6571         (ctan_test): Likewise.
6572         (ctan_test_tonearest): Likewise.
6573         (ctan_test_towardzero): Likewise.
6574         (ctan_test_downward): Likewise.
6575         (ctan_test_upward): Likewise.
6576         (ctanh_test): Likewise.
6577         (ctanh_test_tonearest): Likewise.
6578         (ctanh_test_towardzero): Likewise.
6579         (ctanh_test_downward): Likewise.
6580         (ctanh_test_upward): Likewise.
6581         (erf_test): Likewise.
6582         (erfc_test): Likewise.
6583         (exp_test): Likewise.
6584         (exp_test_tonearest): Likewise.
6585         (exp_test_towardzero): Likewise.
6586         (exp_test_downward): Likewise.
6587         (exp_test_upward): Likewise.
6588         (exp10_test): Likewise.
6589         (exp10_test_tonearest): Likewise.
6590         (exp10_test_towardzero): Likewise.
6591         (exp10_test_downward): Likewise.
6592         (exp10_test_upward): Likewise.
6593         (pow10_test): Likewise.
6594         (exp2_test): Likewise.
6595         (expm1_test): Likewise.
6596         (expm1_test_tonearest): Likewise.
6597         (expm1_test_towardzero): Likewise.
6598         (expm1_test_downward): Likewise.
6599         (expm1_test_upward): Likewise.
6600         (fabs_test): Likewise.
6601         (fdim_test): Likewise.
6602         (floor_test): Likewise.
6603         (fma_test): Likewise.
6604         (fma_test_towardzero): Likewise.
6605         (fma_test_downward): Likewise.
6606         (fma_test_upward): Likewise.
6607         (fmax_test): Likewise.
6608         (fmin_test): Likewise.
6609         (fmod_test): Likewise.
6610         (fpclassify_test): Likewise.
6611         (frexp_test): Likewise.
6612         (hypot_test): Likewise.
6613         (ilogb_test): Likewise.
6614         (isfinite_test): Likewise.
6615         (finite_test): Likewise.
6616         (isgreater_test): Likewise.
6617         (isgreaterequal_test): Likewise.
6618         (isinf_test): Likewise.
6619         (isless_test): Likewise.
6620         (islessequal_test): Likewise.
6621         (islessgreater_test): Likewise.
6622         (isnan_test): Likewise.
6623         (isnormal_test): Likewise.
6624         (issignaling_test): Likewise.
6625         (isunordered_test): Likewise.
6626         (j0_test): Likewise.
6627         (j1_test): Likewise.
6628         (jn_test): Likewise.
6629         (ldexp_test): Likewise.
6630         (lgamma_test): Likewise.
6631         (gamma_test): Likewise.
6632         (lrint_test): Likewise.
6633         (lrint_test_tonearest): Likewise.
6634         (lrint_test_towardzero): Likewise.
6635         (lrint_test_downward): Likewise.
6636         (lrint_test_upward): Likewise.
6637         (llrint_test): Likewise.
6638         (llrint_test_tonearest): Likewise.
6639         (llrint_test_towardzero): Likewise.
6640         (llrint_test_downward): Likewise.
6641         (llrint_test_upward): Likewise.
6642         (log_test): Likewise.
6643         (log10_test): Likewise.
6644         (log1p_test): Likewise.
6645         (log2_test): Likewise.
6646         (logb_test): Likewise.
6647         (logb_test_downward): Likewise.
6648         (lround_test): Likewise.
6649         (llround_test): Likewise.
6650         (modf_test): Likewise.
6651         (nearbyint_test): Likewise.
6652         (nextafter_test): Likewise.
6653         (nexttoward_test): Likewise.
6654         (pow_test): Likewise.
6655         (pow_test_tonearest): Likewise.
6656         (pow_test_towardzero): Likewise.
6657         (pow_test_downward): Likewise.
6658         (pow_test_upward): Likewise.
6659         (remainder_test): Likewise.
6660         (drem_test): Likewise.
6661         (remainder_test_tonearest): Likewise.
6662         (drem_test_tonearest): Likewise.
6663         (remainder_test_towardzero): Likewise.
6664         (drem_test_towardzero): Likewise.
6665         (remainder_test_downward): Likewise.
6666         (drem_test_downward): Likewise.
6667         (remainder_test_upward): Likewise.
6668         (drem_test_upward): Likewise.
6669         (remquo_test): Likewise.
6670         (rint_test): Likewise.
6671         (rint_test_tonearest): Likewise.
6672         (rint_test_towardzero): Likewise.
6673         (rint_test_downward): Likewise.
6674         (rint_test_upward): Likewise.
6675         (round_test): Likewise.
6676         (scalb_test): Likewise.
6677         (scalbn_test): Likewise.
6678         (scalbln_test): Likewise.
6679         (signbit_test): Likewise.
6680         (sin_test): Likewise.
6681         (sin_test_tonearest): Likewise.
6682         (sin_test_towardzero): Likewise.
6683         (sin_test_downward): Likewise.
6684         (sin_test_upward): Likewise.
6685         (sincos_test): Likewise.
6686         (sinh_test): Likewise.
6687         (sinh_test_tonearest): Likewise.
6688         (sinh_test_towardzero): Likewise.
6689         (sinh_test_downward): Likewise.
6690         (sinh_test_upward): Likewise.
6691         (sqrt_test): Likewise.
6692         (sqrt_test_tonearest): Likewise.
6693         (sqrt_test_towardzero): Likewise.
6694         (sqrt_test_downward): Likewise.
6695         (sqrt_test_upward): Likewise.
6696         (tan_test): Likewise.
6697         (tan_test_tonearest): Likewise.
6698         (tan_test_towardzero): Likewise.
6699         (tan_test_downward): Likewise.
6700         (tan_test_upward): Likewise.
6701         (tanh_test): Likewise.
6702         (tgamma_test): Likewise.
6703         (trunc_test): Likewise.
6704         (y0_test): Likewise.
6705         (y1_test): Likewise.
6706         (yn_test): Likewise.
6707         (significand_test): Likewise.
6708
6709         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
6710         individual tests in comment.
6711         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
6712         (prev_max_error): New variable.
6713         (prev_real_max_error): Likewise.
6714         (prev_imag_max_error): Likewise.
6715         (compare_ulp_data): Don't refer to test names in comment.
6716         (find_test_ulps): Remove function.
6717         (find_function_ulps): Likewise.
6718         (find_complex_function_ulps): Likewise.
6719         (init_max_error): Take function name as argument.  Look up ulps
6720         for that function.
6721         (print_ulps): Remove function.
6722         (print_max_error): Use prev_max_error instead of calling
6723         find_function_ulps.
6724         (print_complex_max_error): Use prev_real_max_error and
6725         prev_imag_max_error instead of calling find_complex_function_ulps.
6726         (check_float_internal): Take max_ulp parameter instead of calling
6727         find_test_ulps.  Don't call print_ulps.
6728         (check_float): Update call to check_float_internal.
6729         (check_complex): Update calls to check_float_internal.
6730         (START): Pass argument to init_max_error.
6731         * math/gen-libm-test.pl (%results): Don't include "kind"
6732         information.
6733         (parse_ulps): Don't handle ulps of individual tests.
6734         (print_ulps_file): Likewise.
6735         (output_ulps): Likewise.
6736         * math/README.libm-test: Update.
6737         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
6738         individual tests.
6739         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
6740         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6741         * sysdeps/arm/libm-test-ulps: Likewise.
6742         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6743         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
6744         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
6745         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
6746         * sysdeps/microblaze/libm-test-ulps: Likewise.
6747         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6748         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6749         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6750         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6751         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6752         * sysdeps/sh/libm-test-ulps: Likewise.
6753         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6754         * sysdeps/tile/libm-test-ulps: Likewise.
6755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6756
6757 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
6758
6759         * math/libm-test.inc (print_complex_max_error): Check separately
6760         whether real and imaginary errors are within allowed range and
6761         pass 0 to print_complex_function_ulps instead of value within
6762         allowed range.
6763
6764 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6765
6766         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
6767         formatting.
6768         (get_handles_fopen): Likewise.
6769         (do_write_test): Likewise.
6770
6771         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
6772
6773         * libio/fileops.c (do_ftell): Use cached offset when
6774         available.
6775         * libio/iofwide.c (do_ftell_wide): Likewise.
6776         * libio/iofdopen.c (_IO_new_fdopen): Don't use
6777         _IO_file_attach.
6778         * libio/wfileops.c (_IO_fwide): Don't cache offset.
6779
6780         [BZ #16532]
6781         * libio/libioP.h (get_file_offset): New function.
6782         * libio/fileops.c (get_file_offset): Likewise.
6783         (do_ftell): Likewise.
6784         (_IO_new_file_seekoff): Split out ftell logic.
6785         * libio/wfileops.c (do_ftell_wide): Likewise.
6786         (_IO_wfile_seekoff): Split out ftell logic.
6787         * libio/tst-ftell-active-handler.c: New test case.
6788         * libio/Makefile (tests): Add it.
6789
6790 2014-03-03  Roland McGrath  <roland@hack.frob.com>
6791
6792         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
6793         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
6794
6795 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6796
6797         [BZ #16639]
6798         * nscd/connections.c (nscd_init): Call do_exit.
6799         (start_threads): Call do_exit and notify_parent.
6800         (begin_drop_privileges): Call do_exit.
6801         (finish_drop_privileges): Likewise.
6802         * nscd/selinux.c (preserve_capabilities): Likewise.
6803         (install_real_capabilities): Likewise.
6804         (nscd_selinux_enabled): Likewise.
6805         (avc_create_thread): Likewise.
6806         (avc_alloc_lock): Likewise.
6807         (nscd_avc_init): Likewise.
6808         * nscd/nscd.c (parent_fd): New static variable.
6809         (main): Create a pipe between parent and child processes.
6810         Skip closing parent_fd.
6811         (monitor_child): New function.
6812         (do_exit): Likewise.
6813         (notify_parent): Likewise.
6814         * nscd/nscd.h (notify_parent): Likewise.
6815         (do_exit): Likewise.
6816
6817 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
6818
6819         * malloc/malloc.c (__libc_calloc): Revert last change.
6820
6821 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6822
6823         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6824
6825 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6826
6827         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
6828         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
6829         implementation.
6830         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6831         (__libc_ifunc_impl_list): Likewise.
6832         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
6833         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
6834         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
6835         * string/strrchr.c: Define STRRCHR.
6836
6837 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
6838
6839         * benchtest/bench-strtok.c (simple_strtok): Delete.
6840         (strtok_string): Use as benchmark.
6841         * string/strtok (STRTOK): New macro.
6842
6843 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
6844
6845         * manual/threads.texi: Add header and standard comments to all
6846         functions.
6847
6848         * elf/dl-lookup.c (check_match): New function.
6849         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
6850         (do_lookup_x): Remove nested function check_match. Use non-nested
6851         function check_match.
6852
6853 2014-02-28  Roland McGrath  <roland@hack.frob.com>
6854
6855         * csu/Makefile (generated, before-compile): Use += rather than =.
6856         * catgets/Makefile (generated, generated-dirs): Likewise.
6857         * debug/Makefile (generated): Likewise.
6858         * dlfcn/Makefile (generated): Likewise.
6859         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
6860         * iconvdata/Makefile (before-compile, generated): Likewise.
6861         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
6862         * libio/Makefile (generated): Likewise.
6863         * malloc/Makefile (generated): Likewise.
6864         * manual/Makefile (generated, generated-dirs): Likewise.
6865         * misc/Makefile (generated): Likewise.
6866         * posix/Makefile (generated): Likewise.
6867         * resolv/Makefile (generated): Likewise.
6868         * sunrpc/Makefile (generated, generated-dirs): Likewise.
6869         * timezone/Makefile (generated, generated-dirs): Likewise.
6870
6871         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
6872
6873 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6874
6875         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
6876         power8 implementation.
6877         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
6878         file: POWER8 llround ifunc implementation.
6879         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6880         (__lllround): Add POWER8 implementation.
6881         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
6882         POWER8 llround implementation.
6883
6884         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
6885         power8 implementation.
6886         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
6887         file: POWER8 llrint ifunc implementation.
6888         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
6889         Add POWER8 implementation.
6890         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
6891         POWER8 llrint implementation.
6892
6893         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
6894         power8 implementation.
6895         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
6896         file: POWER8 finite ifunc implementation.
6897         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
6898         Add POWER8 implementation.
6899         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
6900         Likewise.
6901         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
6902         POWER8 finite implementation.
6903         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
6904
6905         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
6906         power8 implementation.
6907         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
6908         file: POWER8 isinf ifunc implementation.
6909         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
6910         POWER8 implementation.
6911         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
6912         Likewise.
6913         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
6914         isinf implementation.
6915         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
6916
6917         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
6918         (INIT_ARCH): Add hwcap2 initialization.
6919         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
6920         power8 implementation.
6921         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
6922         file: POWER8 isnan ifunc implementation.
6923         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
6924         POWER8 implementation.
6925         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
6926         Likewise.
6927         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
6928         isnan implementation.
6929         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
6930
6931 2014-02-27  Joey Ye  <joey.ye@arm.com>
6932
6933         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
6934         (_FP_NANFRAC_Q): Set to zero.
6935
6936 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6937
6938         [BZ #16623]
6939         * math/auto-libm-test-in: New test inputs.
6940         * math/auto-libm-test-out: Regenerate.
6941         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
6942         and DA.
6943         (__cos): Likewise.
6944         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6945
6946 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
6947
6948         * scripts/evaluate-test.sh: Take new argument indicating whether
6949         failure is expected.
6950         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
6951         indicating whether failure is expected.
6952         * conform/Makefile (test-xfail-run-conformtest): New variable.
6953         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
6954         level.
6955         * posix/Makefile (test-xfail-annexc): New variable.
6956         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
6957
6958 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
6959
6960         * argp/Makefile: Include Makeconfig immediately after defining
6961         subdir.
6962         * assert/Makefile: Likewise.
6963         * benchtests/Makefile: Likewise.
6964         * catgets/Makefile: Likewise.
6965         * conform/Makefile: Likewise.
6966         * crypt/Makefile: Likewise.
6967         * csu/Makefile: Likewise.
6968         (all): Remove target.
6969         * ctype/Makefile: Include Makeconfig immediately after defining
6970         subdir.
6971         * debug/Makefile: Likewise.
6972         * dirent/Makefile: Likewise.
6973         * dlfcn/Makefile: Likewise.
6974         * gmon/Makefile: Likewise.
6975         * gnulib/Makefile: Likewise.
6976         * grp/Makefile: Likewise.
6977         * gshadow/Makefile: Likewise.
6978         * hesiod/Makefile: Likewise.
6979         * hurd/Makefile: Likewise.
6980         (all): Remove target.
6981         * iconvdata/Makefile: Include Makeconfig immediately after
6982         defining subdir.
6983         * inet/Makefile: Likewise.
6984         * intl/Makefile: Likewise.
6985         * io/Makefile: Likewise.
6986         * libio/Makefile: Likewise.
6987         (all): Remove target.
6988         * locale/Makefile: Include Makeconfig immediately after defining
6989         subdir.
6990         * login/Makefile: Likewise.
6991         * mach/Makefile: Likewise.
6992         (all): Remove target.
6993         * malloc/Makefile: Include Makeconfig immediately after defining
6994         subdir.
6995         (all): Remove target.
6996         * manual/Makefile: Include Makeconfig immediately after defining
6997         subdir.
6998         * math/Makefile: Likewise.
6999         * misc/Makefile: Likewise.
7000         * nis/Makefile: Likewise.
7001         * nss/Makefile: Likewise.
7002         * po/Makefile: Likewise.
7003         (all): Remove target.
7004         * posix/Makefile: Include Makeconfig immediately after defining
7005         subdir.
7006         * pwd/Makefile: Likewise.
7007         * resolv/Makefile: Likewise.
7008         * resource/Makefile: Likewise.
7009         * rt/Makefile: Likewise.
7010         * setjmp/Makefile: Likewise.
7011         * shadow/Makefile: Likewise.
7012         * signal/Makefile: Likewise.
7013         * socket/Makefile: Likewise.
7014         * soft-fp/Makefile: Likewise.
7015         * stdio-common/Makefile: Likewise.
7016         * stdlib/Makefile: Likewise.
7017         * streams/Makefile: Likewise.
7018         * string/Makefile: Likewise.
7019         * sunrpc/Makefile: Likewise.
7020         (all): Remove target.
7021         * sysvipc/Makefile: Include Makeconfig immediately after defining
7022         subdir.
7023         * termios/Makefile: Likewise.
7024         * time/Makefile: Likewise.
7025         * timezone/Makefile: Likewise.
7026         (all): Remove target.
7027         * wcsmbs/Makefile: Include Makeconfig immediately after defining
7028         subdir.
7029         * wctype/Makefile: Likewise.
7030
7031 2014-02-26  Steve Ellcey  <sellcey@mips.com>
7032
7033         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
7034         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
7035         (libc_feholdexcept_setround_mips): Ditto.
7036         (libc_feholdsetround): New.
7037         (libc_feholdsetroundf): New.
7038         (libc_feholdsetroundl): New.
7039         (libc_feupdateenv_test_mips): New.
7040         (libc_feupdateenv_test): New.
7041         (libc_feupdateenv_testf): New.
7042         (libc_feupdateenv_testl): New.
7043         (libc_feresetround): New.
7044         (libc_feresetroundf): New.
7045         (libc_feresetroundl): New.
7046         (libc_fetestexcept_mips): New.
7047         (libc_fetestexcept): New.
7048         (libc_fetestexceptf): New.
7049         (libc_fetestexceptl): New.
7050         (HAVE_RM_CTX): New.
7051         (libc_feholdexcept_setround_mips_ctx): New.
7052         (libc_feholdexcept_setround_ctx): New.
7053         (libc_feholdexcept_setroundf_ctx): New.
7054         (libc_feholdexcept_setroundl_ctx): New.
7055         (libc_fesetenv_mips_ctx): New.
7056         (libc_fesetenv_ctx): New.
7057         (libc_fesetenv_ctxf): New.
7058         (libc_fesetenv_ctxl): New.
7059         (libc_feupdateenv_mips_ctx): New.
7060         (libc_feupdateenv_ctx): New.
7061         (libc_feupdateenvf_ctx): New.
7062         (libc_feupdateenvl_ctx): New.
7063         (libc_feholdsetround_mips_ctx): New.
7064         (libc_feholdsetround_ctx): New.
7065         (libc_feholdsetroundf_ctx): New.
7066         (libc_feholdsetroundl_ctx): New.
7067         (libc_feresetround_mips_ctx): New.
7068         (libc_feresetround_ctx): New.
7069         (libc_feresetroundf_ctx): New.
7070         (libc_feresetroundl_ctx): New.
7071
7072 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
7073
7074         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
7075
7076         * manual/ipc.texi: New file.
7077         * manual/Makefile (chapters): Add ipc.
7078         * manual/job.texi: Add "Inter-Process Communication" to next.
7079         * manual/process.texi: Add "Inter-Process Communication" to prev.
7080
7081 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7082
7083         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7084
7085 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
7086
7087         * malloc/malloc.c (__libc_calloc): Simplify implementation.
7088
7089         * manual/arith.texi: Fix spaces after sentences.
7090         * manual/charset.texi: Likewise.
7091         * manual/errno.texi: Likewise.
7092         * manual/install.texi: Likewise.
7093         * manual/llio.texi: Likewise.
7094         * manual/locale.texi: Likewise.
7095         * manual/maint.texi: Likewise.
7096         * manual/math.texi: Likewise.
7097         * manual/memory.texi: Likewise.
7098         * manual/message.texi: Likewise.
7099         * manual/probes.texi: Likewise.
7100         * manual/resource.texi: Likewise.
7101         * manual/signal.texi: Likewise.
7102         * manual/socket.texi: Likewise.
7103         * manual/stdio.texi: Likewise.
7104         * manual/string.texi: Likewise.
7105         * manual/time.texi: Likewise.
7106         * manual/users.texi: Likewise.
7107
7108 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
7109
7110         [BZ #16632]
7111         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
7112         _DEFAULT_SOURCE is defined.
7113
7114 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
7115             Carlos O'Donell  <carlos@redhat.com>
7116
7117         [BZ #16613]
7118         * elf/dl-tls.c (_dl_count_modids): New function.
7119         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
7120         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
7121         audit library and increment generation counter.
7122         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
7123         * elf/tst-audit9.c: New file.
7124         * elf/tst-auditmod9a.c: New file.
7125         * elf/tst-auditmod9b.c: New file.
7126         * elf/Makefile: Add rules to build and run tst-audit9.
7127
7128 2014-02-25  Florian Weimer  <fweimer@redhat.com>
7129
7130         [BZ #15347]
7131         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
7132
7133 2014-02-25  Will Newton  <will.newton@linaro.org>
7134
7135         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
7136         (__longjmp): Restore sp and lr before restoring callee
7137         saved registers.  Add longjmp and longjmp_target
7138         SystemTap probe point.
7139         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
7140         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
7141         Define to zero to match jmpbuf layout.
7142         * sysdeps/arm/setjmp.S: Include stap-probe.h.
7143         (__sigsetjmp): Save sp and lr before saving callee
7144         saved registers.  Add setjmp SystemTap probe point.
7145
7146 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
7147
7148         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7149
7150 2014-02-24  Andreas Schwab  <schwab@suse.de>
7151
7152         [BZ #15804]
7153         * elf/pldd.c (wait_for_ptrace_stop): New function.
7154         (main): Call it after attaching.
7155
7156 2014-02-22  Roland McGrath  <roland@hack.frob.com>
7157
7158         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
7159         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
7160         Versions files is now verboten.
7161         * hurd/Versions (libc: GLIBC_2.0):
7162         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
7163         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
7164         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
7165         * mach/Versions: Likewise.
7166
7167         * csu/Versions: Remove unused %include.
7168         * resolv/Versions: Likewise.
7169
7170 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
7171
7172         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
7173         ($(objpfx)check-local-headers.out): Likewise.
7174         ($(objpfx)begin-end-check.out): Likewise.
7175         * Makerules (check-abi-%.out): Likewise.
7176         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
7177         ($(objpfx)test2.cat): Likewise.
7178         ($(objpfx)de/libc.cat): Likewise.
7179         ($(objpfx)test-gencat.out): Likewise.
7180         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
7181         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
7182         ($(objpfx)noload-mem): Likewise.
7183         ($(objpfx)tst-pathopt.out): Likewise.
7184         ($(objpfx)tst-rtld-load-self.out): Likewise.
7185         ($(objpfx)tst-array1-cmp.out): Likewise.
7186         ($(objpfx)tst-array1-static-cmp.out): Likewise.
7187         ($(objpfx)tst-array2-cmp.out): Likewise.
7188         ($(objpfx)tst-array3-cmp.out): Likewise.
7189         ($(objpfx)tst-array4-cmp.out): Likewise.
7190         ($(objpfx)tst-array5-cmp.out): Likewise.
7191         ($(objpfx)tst-array5-static-cmp.out): Likewise.
7192         ($(objpfx)check-textrel.out): Likewise.
7193         ($(objpfx)check-execstack.out): Likewise.
7194         ($(objpfx)check-localplt.out): Likewise.
7195         ($(objpfx)order2-cmp.out): Likewise.
7196         ($(objpfx)tst-leaks1-mem): Likewise.
7197         ($(objpfx)tst-leaks1-static-mem): Likewise.
7198         ($(objpfx)tst-initorder-cmp.out): Likewise.
7199         ($(objpfx)tst-initorder2-cmp.out): Likewise.
7200         ($(objpfx)tst-unused-dep.out): Likewise.
7201         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
7202         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7203         * iconv/Makefile (test-iconvconfig): Likewise.
7204         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
7205         ($(objpfx)iconv-test.out): Likewise.
7206         ($(objpfx)tst-tables.out): Likewise.
7207         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
7208         ($(objpfx)tst-gettext.out): Likewise.
7209         ($(objpfx)tst-translit.out): Likewise.
7210         ($(objpfx)tst-gettext2.out): Likewise.
7211         ($(objpfx)tst-gettext4.out): Likewise.
7212         ($(objpfx)tst-gettext6.out): Likewise.
7213         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
7214         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7215         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
7216         ($(objpfx)tst-fopenloc-mem.out): Likewise.
7217         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7218         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
7219         * posix/Makefile ($(objpfx)globtest.out): Likewise.
7220         ($(objpfx)wordexp-tst.out): Likewise.
7221         ($(objpfx)annexc.out): Likewise.
7222         ($(objpfx)tst-fnmatch-mem): Likewise.
7223         ($(objpfx)bug-regex2-mem): Likewise.
7224         ($(objpfx)bug-regex14-mem): Likewise.
7225         ($(objpfx)bug-regex21-mem): Likewise.
7226         ($(objpfx)bug-regex31-mem): Likewise.
7227         ($(objpfx)tst-vfork3-mem): Likewise.
7228         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
7229         ($(objpfx)tst-pcre-mem): Likewise.
7230         ($(objpfx)tst-boost-mem): Likewise.
7231         ($(objpfx)tst-getconf.out): Likewise.
7232         ($(objpfx)bug-ga2-mem): Likewise.
7233         ($(objpfx)bug-glob2-mem): Likewise.
7234         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
7235         ($(objpfx)mtrace-tst-leaks2): Likewise.
7236         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
7237         ($(objpfx)tst-printf.out): Likewise.
7238         ($(objpfx)tst-setvbuf1.out): Likewise.
7239         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
7240         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
7241         ($(objpfx)tst-fmtmsg.out): Likewise.
7242         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
7243         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
7244
7245         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
7246         * bits/sigaction.h [__USE_MISC]: Likewise.
7247         * bits/waitstatus.h: Update #endif comments.
7248         * ctype/ctype.h: Likewise.
7249         * dirent/dirent.h: Likewise.
7250         [__USE_MISC]: Remove redundant conditionals.
7251         * grp/grp.h: Update #endif comments.
7252         [__USE_GNU]: Remove redundant conditionals.
7253         [__USE_MISC]: Likewise.
7254         * inet/netinet/in.h [__USE_GNU]: Likewise.
7255         * io/sys/stat.h [__USE_MISC]: Likewise.
7256         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
7257         * libio/bits/stdio.h: Update #endif comments.
7258         [__USE_MISC]: Remove redundant conditionals.
7259         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
7260         * libio/stdio.h: Update #endif comments.
7261         [__USE_MISC]: Remove redundant conditionals.
7262         * math/bits/math-finite.h [__USE_MISC]: Likewise.
7263         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
7264         * math/math.h: Update #else and #endif comments.
7265         [__USE_MISC]: Remove redundant conditionals.
7266         * misc/sys/uio.h: Update #endif comments.
7267         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
7268         * posix/glob.h [__USE_MISC]: Likewise.
7269         * posix/sys/types.h: Update #endif comments.
7270         [__USE_MISC]: Remove redundant conditionals.
7271         * posix/sys/wait.h: Update #endif comments.
7272         [__USE_MISC]: Remove redundant conditionals.
7273         * posix/unistd.h: Update #endif comments.
7274         [__USE_MISC]: Remove redundant conditionals.
7275         * pwd/pwd.h [__USE_GNU]: Likewise.
7276         [__USE_MISC]: Likewise.
7277         * resolv/netdb.h [__USE_GNU]: Likewise.
7278         * signal/signal.h: Update #endif comments.
7279         [__USE_MISC]: Remove redundant conditionals.
7280         * stdlib/stdlib.h: Update #else and #endif comments.
7281         [__USE_MISC]: Remove redundant conditionals.
7282         [__USE_GNU]: Likewise.
7283         * string/bits/string2.h [__USE_MISC]: Likewise.
7284         * string/string.h: Update #endif comments.
7285         [__USE_MISC]: Remove redundant conditionals.
7286         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
7287         Likewise.
7288         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
7289         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
7290         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
7291         Likewise.
7292         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
7293         Likewise.
7294         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
7295         comments.
7296         [__USE_MISC]: Remove redundant conditionals.
7297         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
7298         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
7299         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
7300         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
7301         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
7302         Likewise.
7303         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
7304         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
7305         Likewise.
7306         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
7307         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
7308         Likewise.
7309         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
7310         Likewise.
7311         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
7312         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
7313         Likewise.
7314         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
7315         Likewise.
7316         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
7317         * sysdeps/x86/bits/string.h: Update #endif comments.
7318         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
7319         conditionals.
7320         * time/sys/time.h: Update #endif comments.
7321         * time/time.h: Likewise.
7322         [__USE_MISC]: Remove redundant conditionals.
7323
7324 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
7325
7326         [BZ #16600]
7327         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
7328
7329 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
7330
7331         * Versions.def (librt): Add GLIBC_2.17.
7332
7333 2014-02-21  Adam Conrad  <adconrad@0c3.net>
7334
7335         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
7336         synonym for _SYS_AUXV_H to allow direct inclusion.
7337         * sysdeps/sparc/bits/hwcap.h: Likewise.
7338         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
7339         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
7340         * sysdeps/sparc/sysdep.h: Likewise.
7341
7342 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7343
7344         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
7345
7346 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7347
7348         * benchtests/bench-strrchr.c: Print length instead of position.
7349
7350 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
7351
7352         [BZ #16611]
7353         * sysdeps/unix/sysv/linux/kernel-features.h
7354         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
7355         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
7356         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
7357         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
7358         Likewise.
7359         [__i386__ || __powerpc__ || __sh__ || __sparc__]
7360         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7361         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
7362         (__ASSUME_SENDMMSG): Define instead of using previous
7363         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
7364         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7365         (__ASSUME_SENDMMSG_SYSCALL): Define.
7366         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7367         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
7368         Likewise.
7369         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7370         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7371         Likewise.
7372         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7373         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7374         Likewise.
7375         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
7376         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7377         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7378         [__ASSUME_SENDMMSG]: Change conditionals to
7379         [__ASSUME_SENDMMSG_SOCKETCALL].
7380         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7381         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
7382         Define.
7383         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7384         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
7385         Likewise.
7386         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
7387         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7388         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7389         [!__ASSUME_SENDMMSG]: Change conditional to
7390         [!__ASSUME_SENDMMSG_SOCKETCALL].
7391         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7392         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7393         Define.
7394
7395         [BZ #16610]
7396         * sysdeps/unix/sysv/linux/kernel-features.h
7397         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
7398         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
7399         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
7400         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
7401         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7402         [__i386__ || __sparc__]
7403         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7404         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
7405         (__ASSUME_RECVMMSG): Define instead of using previous
7406         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
7407         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7408         (__ASSUME_RECVMMSG_SYSCALL): Define.
7409         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7410         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7411         Likewise.
7412         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7413         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7414         Likewise.
7415         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7416         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7417         Likewise.
7418         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
7419         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7420         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7421         [__ASSUME_RECVMMSG]: Change condition to
7422         [__ASSUME_RECVMMSG_SOCKETCALL].
7423         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7424         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7425         Define.
7426         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7427         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7428         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7429         Likewise.
7430         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
7431         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7432         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7433         [!__ASSUME_RECVMMSG]: Change condition to
7434         [!__ASSUME_RECVMMSG_SOCKETCALL].
7435         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7436         (__ASSUME_RECVMMSG_SYSCALL): Define.
7437
7438         [BZ #16609]
7439         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
7440         __powerpc__ || __s390__ || __sh__ || __sparc__]
7441         (__ASSUME_SOCKETCALL): Define.
7442         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
7443         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
7444         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
7445         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
7446         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7447         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
7448         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
7449         (__ASSUME_ACCEPT4): Define instead of using previous
7450         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
7451         __powerpc__ || __sparc__ || __s390__)] condition.
7452         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7453         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7454         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
7455         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7456         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7457         [!__ASSUME_ACCEPT4]: Change condition to
7458         [!__ASSUME_ACCEPT4_SOCKETCALL].
7459         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7460         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
7461         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
7462         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7463         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
7464         __ASSUME_ACCEPT4_SYSCALL.
7465         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
7466         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
7467         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7468         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
7469         __ASSUME_ACCEPT4_SYSCALL.
7470         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
7471         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7472         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7473         [__ASSUME_ACCEPT4]: Change condition to
7474         [__ASSUME_ACCEPT4_SOCKETCALL].
7475         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7476         (__ASSUME_SOCKETCALL): Define.
7477         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
7478         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7479         (__ASSUME_SOCKETCALL): Define.
7480         (__ASSUME_ACCEPT4): Remove.
7481         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
7482         Define.
7483         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7484         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
7485         Likewise.
7486         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7487         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7488
7489         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
7490         macro.
7491         (HWCAP_ARM_LPAE): Likewise.
7492         (HWCAP_ARM_EVTSTRM): Likewise.
7493         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
7494         Add vpfd32, lpae and evtstrm.
7495         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7496         Increase to 22.
7497
7498 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
7499
7500         * math/auto-libm-test-in: Add tests of clog10.
7501         * math/auto-libm-test-out: Regenerated.
7502         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
7503         * sysdeps/i386/fpu/libm-test-ulps: Update.
7504         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7505
7506 2014-02-18  Andreas Schwab  <schwab@suse.de>
7507
7508         [BZ #16574]
7509         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
7510         Store non-zero if the second buffer was newly allocated.
7511         (send_dg): Likewise.
7512         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
7513         to send_vc and send_dg.
7514         (res_nsend): Pass NULL for ansp2_malloced.
7515         * resolv/res_query.c (__libc_res_nquery): Add parameter
7516         answerp2_malloced and pass it down to __libc_res_nsend.
7517         (res_nquery): Pass additional NULL to __libc_res_nquery.
7518         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
7519         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
7520         second answer buffer if answerp2_malloced was set.
7521         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
7522         (__libc_res_nquerydomain): Add parameter
7523         answerp2_malloced and pass it down to __libc_res_nquery.
7524         (res_nquerydomain): Pass additional NULL to
7525         __libc_res_nquerydomain.
7526         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
7527         additional NULL to __libc_res_nsend and __libc_res_nquery.
7528         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
7529         additional NULL to __libc_res_nsearch.
7530         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
7531         parameter of __libc_res_nsearch to check for separately allocated
7532         second buffer.
7533         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
7534         __libc_res_nquery.
7535         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
7536         additional NULL to __libc_res_nquery.
7537         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
7538         __libc_res_nsearch.
7539         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
7540         * include/resolv.h: Update prototypes of __libc_res_nquery,
7541         __libc_res_nsearch, __libc_res_nsend.
7542
7543 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
7544
7545         * math/auto-libm-test-in: Add tests of fma.
7546         * math/auto-libm-test-out: Regenerated.
7547         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
7548         (fma_towardzero_test_data): Likewise.
7549         (fma_downward_test_data): Likewise.
7550         (fma_upward_test_data): Likewise.
7551         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
7552         mpc_mode.
7553         (rounding_modes): Add values for new field.
7554         (func_calc_method): Add value mpfr_fff_f.
7555         (func_calc_desc): Add mpfr_fff_f union field.
7556         (test_function): Add field exact_args.
7557         (FUNC): Add macro argument EXACT_ARGS.
7558         (FUNC_mpfr_f_f): Update call to FUNC.
7559         (FUNC_mpfr_f_f): Likewise.
7560         (FUNC_mpfr_ff_f): Likewise.
7561         (FUNC_mpfr_if_f): Likewise.
7562         (FUNC_mpc_c_f): Likewise.
7563         (FUNC_mpc_c_c): Likewise.
7564         (test_functions): Add fma.  Update calls to FUNC.
7565         (handle_input_arg): Add argument exact_args.
7566         (add_test): Update call to handle_input_arg.
7567         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
7568         (output_for_one_input_case): Update call to calc_generic_results.
7569         Recalculate exact zero results in each rounding mode.
7570
7571         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
7572         non-negative before setting low bit.
7573         * math/auto-libm-test-in: Mark one asin test possibly having
7574         spurious underflow.
7575         * math/auto-libm-test-out: Regenerated.
7576         * sysdeps/i386/fpu/libm-test-ulps: Update.
7577         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7578
7579 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
7580
7581         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
7582         * sysdeps/unix/sysv/linux/microblaze: Move directory from
7583         ports/sysdeps/unix/sysv/linux/microblaze.
7584         * README: Add missing listing for microblaze*-*-linux-gnu.
7585
7586 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
7587
7588         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
7589         * sysdeps/unix/sysv/linux/ia64: Move directory from
7590         ports/sysdeps/unix/sysv/linux/ia64.
7591         * README: Update listing for ia64-*-linux-gnu.
7592
7593 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
7594             Joseph Myers  <joseph@codesourcery.com>
7595
7596         * Makeconfig (test-name): New variable.
7597         (evaluate-test): Likewise.
7598         * Makerules (do-test-clean): Remove .test-result files.
7599         (common-mostlyclean): Likewise.
7600         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
7601         * scripts/evaluate-test.sh: New file.
7602
7603 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
7604
7605         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
7606         separate $(objpfx)tst-fopenloc-cmp.out and
7607         $(objpfx)tst-fopenloc-mem.out targets.
7608         (tests): Update dependencies.
7609         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
7610         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
7611         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
7612         (tst-rxspencer-no-utf8-ARGS): New variable.
7613         (tst-rxspencer-no-utf8-ENV): Likewise.
7614         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
7615         instead of $(objpfx)tst-rxspencer-mem.
7616         ($(objpfx)tst-rxspencer-mem): Change target to
7617         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
7618         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
7619         * posix/tst-rxspencer-no-utf8.c: New file.
7620
7621         * elf/Makefile ($(objpfx)order.out): Remove rule.
7622         [$(run-built-tests) = yes] (tests): Depend on
7623         $(objpfx)order-cmp.out.
7624         ($(objpfx)order-cmp.out): New rule.
7625         [$(run-built-tests) = yes] (tests): Depend on
7626         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
7627         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
7628         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
7629         $(objpfx)tst-array5-static-cmp.out.
7630         ($(objpfx)tst-array1.out): Remove rule.
7631         ($(objpfx)tst-array1-cmp.out): New rule.
7632         ($(objpfx)tst-array1-static.out): Remove rule.
7633         ($(objpfx)tst-array1-static-cmp.out): New rule.
7634         ($(objpfx)tst-array2.out): Remove rule.
7635         ($(objpfx)tst-array2-cmp.out): New rule.
7636         ($(objpfx)tst-array3.out): Remove rule.
7637         ($(objpfx)tst-array3-cmp.out): New rule.
7638         ($(objpfx)tst-array4.out): Remove rule.
7639         ($(objpfx)tst-array4-cmp.out): New rule.
7640         ($(objpfx)tst-array5.out): Remove rule.
7641         ($(objpfx)tst-array5-cmp.out): New rule.
7642         ($(objpfx)tst-array5-static.out): Remove rule.
7643         ($(objpfx)tst-array5-static-cmp.out): New rule.
7644         [$(run-built-tests) = yes] (tests): Depend on
7645         $(objpfx)order2-cmp.out.
7646         ($(objpfx)order2.out): Remove rule.
7647         ($(objpfx)order2-cmp.out): New rule.
7648         ($(objpfx)tst-initorder.out): Remove rule.
7649         [$(run-built-tests) = yes] (tests): Depend on
7650         $(objpfx)tst-initorder-cmp.out.
7651         ($(objpfx)tst-initorder-cmp.out): New rule.
7652         ($(objpfx)tst-initorder2.out): Remove rule.
7653         [$(run-built-tests) = yes] (tests): Depend on
7654         $(objpfx)tst-initorder2-cmp.out.
7655         ($(objpfx)tst-initorder2-cmp.out): New rule.
7656         [$(run-built-tests) = yes] (tests): Depend on
7657         $(objpfx)tst-unused-dep-cmp.out.
7658         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
7659         ($(objpfx)tst-unused-dep-cmp.out): New rule.
7660         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
7661         on $(objpfx)tst-setvbuf1-cmp.out.
7662         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
7663         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
7664         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
7665         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
7666         ($(objpfx)tst-svc.out): Remove rule.
7667         ($(objpfx)tst-svc-cmp.out): New rule.
7668
7669 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
7670
7671         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
7672         * ctype/ctype.h [__USE_MISC]: Likewise.
7673         * dirent/dirent.h [__USE_MISC]: Likewise.
7674         * grp/grp.h [__USE_MISC]: Likewise.
7675         * io/fcntl.h [__USE_MISC]: Likewise.
7676         * io/sys/stat.h [__USE_MISC]: Likewise.
7677         * libio/stdio.h [__USE_MISC]: Likewise.
7678         * posix/unistd.h [__USE_MISC]: Likewise.
7679         * pwd/pwd.h [__USE_MISC]: Likewise.
7680         * stdlib.h [__USE_MISC]: Likewise.
7681         * string/bits/string2.h [__USE_MISC]: Likewise.
7682         * string/string.h [__USE_MISC]: Likewise.
7683         * time/time.h [__USE_MISC]: Likewise.
7684
7685 2014-02-13  Andreas Schwab  <schwab@suse.de>
7686
7687         [BZ #16574]
7688         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
7689         second answer buffer if it was separately allocated.
7690
7691 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
7692
7693         * sysdeps/mips/math-tests.h: Include <features.h>.
7694         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7695         (ROUNDING_TESTS_long_double): Do not define.
7696         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7697         (EXCEPTION_TESTS_long_double): Likewise.
7698         * sysdeps/mips/mips64/libm-test-ulps: Update.
7699
7700         * include/features.h (__USE_BSD): Remove macro definitions.
7701         (__USE_SVID): Likewise.
7702         (_BSD_SOURCE): Likewise.
7703         (_SVID_SOURCE): Likewise.
7704         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
7705         from definition of _DEFAULT_SOURCE.
7706         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
7707         [_DEFAULT_SOURCE].
7708         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
7709         * bits/mman.h [__USE_BSD]: Likewise.
7710         * bits/termios.h [__USE_BSD]: Likewise.
7711         * bits/waitstatus.h [__USE_BSD]: Likewise.
7712         * ctype/ctype.h [__USE_SVID]: Likewise.
7713         * dirent/dirent.h [__USE_BSD]: Likewise.
7714         * grp/grp.h [__USE_SVID]: Likewise.
7715         [__USE_BSD]: Likewise.
7716         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
7717         * io/fcntl.h [__USE_BSD]: Likewise.
7718         * io/ftw.h [__USE_BSD]: Likewise.
7719         * io/sys/stat.h [__USE_BSD]: Likewise.
7720         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
7721         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
7722         * libio/stdio.h [__USE_SVID]: Likewise.
7723         [__USE_BSD]: Likewise.
7724         * math/math.h [__USE_SVID]: Likewise.
7725         [__USE_BSD]: Likewise.
7726         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
7727         * misc/bits/syslog.h [__USE_BSD]: Likewise.
7728         * misc/search.h [__USE_SVID]: Likewise.
7729         * misc/sys/mman.h [__USE_BSD]: Likewise.
7730         * misc/sys/syslog.h [__USE_BSD]: Likewise.
7731         * misc/sys/uio.h [__USE_BSD]: Likewise.
7732         * posix/bits/unistd.h [__USE_BSD]: Likewise.
7733         * posix/glob.h [__USE_BSD]: Likewise.
7734         * posix/regex.h [__USE_BSD]: Likewise.
7735         * posix/sys/types.h [__USE_BSD]: Likewise.
7736         [__USE_SVID]: Likewise.
7737         * posix/sys/utsname.h [__USE_SVID]: Likewise.
7738         * posix/sys/wait.h [__USE_BSD]: Likewise.
7739         [__USE_SVID]: Likewise.
7740         * posix/unistd.h [__USE_BSD]: Likewise.
7741         [__USE_SVID]: Likewise.
7742         * pwd/pwd.h [__USE_SVID]: Likewise.
7743         * resolv/netdb.h [__USE_BSD]: Likewise.
7744         * setjmp/setjmp.h [__USE_BSD]: Likewise.
7745         * signal/signal.h [__USE_BSD]: Likewise.
7746         [__USE_SVID]: Likewise.
7747         * socket/sys/socket.h [__USE_BSD]: Likewise.
7748         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
7749         * stdlib/stdlib.h [__USE_BSD]: Likewise.
7750         [__USE_SVID]: Likewise.
7751         * string/bits/string2.h [__USE_BSD]: Likewise.
7752         [__USE_SVID]: Likewise.
7753         * string/bits/string3.h [__USE_BSD]: Likewise.
7754         * string/endian.h [__USE_BSD]: Likewise.
7755         * string/string.h [__USE_SVID]: Likewise.
7756         [__USE_BSD]: Likewise.
7757         * string/strings.h [__USE_BSD]: Likewise.
7758         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
7759         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
7760         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
7761         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
7762         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
7763         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
7764         Likewise.
7765         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
7766         Likewise.
7767         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
7768         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
7769         Likewise.
7770         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
7771         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
7772         Likewise.
7773         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
7774         Likewise.
7775         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
7776         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
7777         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
7778         Likewise.
7779         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
7780         Likewise.
7781         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
7782         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
7783         * termios/termios.h [__USE_BSD]: Likewise.
7784         * time/sys/time.h [__USE_BSD]: Likewise.
7785         * time/time.h [__USE_BSD]: Likewise.
7786         [__USE_SVID]: Likewise.
7787
7788         * Makefile (subdir_targets): Remove subdir_lint.out.
7789
7790         * stdio-common/Makefile (do-tst-unbputc): Remove target.
7791         (do-tst-printf): Likewise.
7792         (tests): Depend directly on $(objpfx)tst-unbputc.out and
7793         $(objpfx)tst-printf.out.
7794
7795         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
7796
7797         * Makerules (check-abi-%): Change target to
7798         $(objpfx)check-abi-%.out.
7799         (check-abi target): Update dependencies.
7800         (check-abi-pattern variable): Redirect output of diff to $@.
7801         (check-abi variable): Likewise.
7802         * elf/Makefile (check-abi): Update dependencies.
7803
7804         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
7805         unused.
7806         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
7807         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
7808         subnormal range.
7809         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
7810         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
7811         value has largest subnormal exponent.
7812         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
7813         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
7814         * sysdeps/aarch64/soft-fp/sfp-machine.h
7815         (_FP_TININESS_AFTER_ROUNDING): New macro.
7816         * sysdeps/alpha/soft-fp/sfp-machine.h
7817         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7818         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7819         Likewise.
7820         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
7821         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7822         * sysdeps/mips/soft-fp/sfp-machine.h
7823         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7824         * sysdeps/powerpc/soft-fp/sfp-machine.h
7825         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7826         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7827         Likewise.
7828         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7829         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7830         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7831         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7832         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7833         Likewise.
7834
7835 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
7836
7837         [BZ #16545]
7838         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
7839         model 1.
7840
7841 2014-02-12  Richard Henderson  <rth@redhat.com>
7842
7843         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
7844         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
7845         * sysdeps/unix/sysv/linux/alpha: Move directory from
7846         ports/sysdeps/unix/sysv/linux/alpha.
7847         * README: Update listing for alpha-*-linux-gnu.
7848
7849 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
7850
7851         * include/features.h: Update comment documenting feature test
7852         macros.
7853         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
7854         _DEFAULT_SOURCE.
7855         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
7856         (_SVID_SOURCE): Likewise.
7857         (_DEFAULT_SOURCE): Update description of default features.
7858         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
7859         with _GNU_SOURCE.
7860         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
7861         (S_ISVTX): Likewise.
7862         * manual/math.texi (Mathematical Constants): Likewise.
7863         * manual/signal.texi (Interrupted Primitives): Likewise.
7864         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
7865         * math/test-matherr.c (_SVID_SOURCE): Do not define.
7866         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
7867         Don't refer to _SVID_SOURCE in warning text.
7868
7869         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7870
7871         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
7872         already defined.
7873         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
7874         * sysdeps/mips/dl-lookup.c: Remove.
7875         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
7876
7877 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
7878
7879         [BZ #16447]
7880         * math/auto-libm-test-in: Add testcase for expl.
7881         * math/auto-libm-test-out: Regenerate.
7882         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
7883         calculation of unsafe.
7884         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
7885
7886 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7887
7888         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
7889         * sysdeps/unix/sysv/linux/aarch64: Move directory from
7890         ports/sysdeps/unix/sysv/linux/aarch64.
7891         * README: Update listing for aarch64*-*-linux-gnu.
7892
7893 2014-02-11  Will Newton  <will.newton@linaro.org>
7894
7895         * manual/probes.texi (Mathematical Function Probes): Use
7896         "triggered" instead of "hit".
7897
7898         * manual/probes.texi (Internal Probes): Add documentation
7899         of setjmp, longjmp and longjmp_target probes.
7900
7901         * include/stap-probe.h: Add comment about probe argument
7902         format.
7903
7904         * malloc/mtrace.c (attribute_hidden): Remove unused macro
7905         definition.  (tr_where, tr_freehook, tr_mallochook,
7906         tr_reallochook, tr_memalignhook): Use ANSI protoype.
7907
7908 2014-02-11  David S. Miller  <davem@davemloft.net>
7909
7910         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
7911         processing int_tests.
7912
7913 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
7914
7915         * sysdeps/mips: Move directory from ports/sysdeps/mips.
7916         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
7917         * sysdeps/unix/sysv/linux/mips: Move directory from
7918         ports/sysdeps/unix/sysv/linux/mips.
7919         * README: Update listing for mips-*-linux-gnu and
7920         mips64-*-linux-gnu.
7921
7922 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
7923
7924         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
7925         * sysdeps/unix/sysv/linux/m68k: Move directory from
7926         ports/sysdeps/unix/sysv/linux/m68k.
7927         * README: Update listing for m68k-*-linux-gnu.
7928
7929 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
7930
7931         * sysdeps/tile: Move directory from ports/sysdeps/tile.
7932         * sysdeps/unix/sysv/linux/generic: Move directory from
7933         ports/sysdeps/unix/sysv/linux/generic.
7934         * sysdeps/unix/sysv/linux/tile: Move directory from
7935         ports/sysdeps/unix/sysv/linux/tile.
7936         * README: Update listing for tile*-*-linux-gnu.
7937
7938 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
7939
7940         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
7941         __builtin_expect.
7942         * benchtests/bench-memmem.c (simple_memmem): Likewise.
7943         * catgets/open_catalog.c (__open_catalog): Likewise.
7944         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
7945         * debug/confstr_chk.c: Likewise.
7946         * debug/fread_chk.c (__fread_chk): Likewise.
7947         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
7948         * debug/getgroups_chk.c: Likewise.
7949         * debug/mbsnrtowcs_chk.c: Likewise.
7950         * debug/mbsrtowcs_chk.c: Likewise.
7951         * debug/mbstowcs_chk.c: Likewise.
7952         * debug/memcpy_chk.c: Likewise.
7953         * debug/memmove_chk.c: Likewise.
7954         * debug/mempcpy_chk.c: Likewise.
7955         * debug/memset_chk.c: Likewise.
7956         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7957         * debug/strcat_chk.c (__strcat_chk): Likewise.
7958         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
7959         * debug/strncat_chk.c (__strncat_chk): Likewise.
7960         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
7961         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
7962         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
7963         * debug/wcpncpy_chk.c: Likewise.
7964         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7965         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
7966         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
7967         * debug/wcsncpy_chk.c: Likewise.
7968         * debug/wcsnrtombs_chk.c: Likewise.
7969         * debug/wcsrtombs_chk.c: Likewise.
7970         * debug/wcstombs_chk.c: Likewise.
7971         * debug/wmemcpy_chk.c: Likewise.
7972         * debug/wmemmove_chk.c: Likewise.
7973         * debug/wmempcpy_chk.c: Likewise.
7974         * debug/wmemset_chk.c: Likewise.
7975         * dirent/scandirat.c (SCANDIRAT): Likewise.
7976         * dlfcn/dladdr1.c (dladdr1): Likewise.
7977         * dlfcn/dladdr.c (dladdr): Likewise.
7978         * dlfcn/dlclose.c (dlclose_doit): Likewise.
7979         * dlfcn/dlerror.c (__dlerror): Likewise.
7980         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7981         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
7982         * dlfcn/dlopen.c (dlopen_doit): Likewise.
7983         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
7984         * dlfcn/dlsym.c (dlsym_doit): Likewise.
7985         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
7986         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
7987         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
7988         Likewise.
7989         * elf/dl-conflict.c: Likewise.
7990         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7991         * elf/dl-dst.h: Likewise.
7992         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
7993         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
7994         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7995         * elf/dl-init.c (call_init, _dl_init): Likewise.
7996         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
7997         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
7998         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
7999         Likewise.
8000         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
8001         Likewise.
8002         * elf/dl-minimal.c (__libc_memalign): Likewise.
8003         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
8004         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8005         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8006         * elf/dl-sym.c (do_sym): Likewise.
8007         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
8008         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
8009         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
8010         * elf/dl-writev.h (_dl_writev): Likewise.
8011         * elf/ldconfig.c (search_dir): Likewise.
8012         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
8013         (dl_main): Likewise.
8014         * elf/setup-vdso.h (setup_vdso): Likewise.
8015         * grp/compat-initgroups.c (compat_call): Likewise.
8016         * grp/fgetgrent.c (fgetgrent): Likewise.
8017         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
8018         * grp/putgrent.c (putgrent): Likewise.
8019         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
8020         Likewise.
8021         * hurd/hurdinit.c: Likewise.
8022         * iconvdata/8bit-gap.c (struct): Likewise.
8023         * iconvdata/ansi_x3.110.c : Likewise.
8024         * iconvdata/big5.c : Likewise.
8025         * iconvdata/big5hkscs.c : Likewise.
8026         * iconvdata/cp1255.c: Likewise.
8027         * iconvdata/cp1258.c : Likewise.
8028         * iconvdata/cp932.c : Likewise.
8029         * iconvdata/euc-cn.c: Likewise.
8030         * iconvdata/euc-jisx0213.c : Likewise.
8031         * iconvdata/euc-jp.c: Likewise.
8032         * iconvdata/euc-jp-ms.c : Likewise.
8033         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
8034         * iconvdata/gb18030.c : Likewise.
8035         * iconvdata/gbbig5.c (const): Likewise.
8036         * iconvdata/gbgbk.c: Likewise.
8037         * iconvdata/gbk.c : Likewise.
8038         * iconvdata/ibm1364.c : Likewise.
8039         * iconvdata/ibm930.c : Likewise.
8040         * iconvdata/ibm932.c: Likewise.
8041         * iconvdata/ibm933.c : Likewise.
8042         * iconvdata/ibm935.c : Likewise.
8043         * iconvdata/ibm937.c : Likewise.
8044         * iconvdata/ibm939.c : Likewise.
8045         * iconvdata/ibm943.c: Likewise.
8046         * iconvdata/iso_11548-1.c: Likewise.
8047         * iconvdata/iso-2022-cn.c : Likewise.
8048         * iconvdata/iso-2022-cn-ext.c : Likewise.
8049         * iconvdata/iso-2022-jp-3.c: Likewise.
8050         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
8051         * iconvdata/iso-2022-kr.c : Likewise.
8052         * iconvdata/iso646.c (gconv_end): Likewise.
8053         * iconvdata/iso_6937-2.c : Likewise.
8054         * iconvdata/iso_6937.c : Likewise.
8055         * iconvdata/iso8859-1.c: Likewise.
8056         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
8057         * iconvdata/shift_jisx0213.c : Likewise.
8058         * iconvdata/sjis.c : Likewise.
8059         * iconvdata/t.61.c : Likewise.
8060         * iconvdata/tcvn5712-1.c : Likewise.
8061         * iconvdata/tscii.c: Likewise.
8062         * iconvdata/uhc.c : Likewise.
8063         * iconvdata/unicode.c (gconv_end): Likewise.
8064         * iconvdata/utf-16.c (gconv_end): Likewise.
8065         * iconvdata/utf-32.c (gconv_end): Likewise.
8066         * iconvdata/utf-7.c (base64): Likewise.
8067         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8068         * iconv/gconv_close.c (__gconv_close): Likewise.
8069         * iconv/gconv_open.c (__gconv_open): Likewise.
8070         * iconv/gconv_simple.c (internal_ucs4_loop_single)
8071         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
8072         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
8073         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
8074         (ucs4le_internal_loop_single): Likewise.
8075         * iconv/iconv.c (iconv): Likewise.
8076         * iconv/iconv_close.c: Likewise.
8077         * iconv/loop.c (SINGLE): Likewise.
8078         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
8079         * include/atomic.h: Likewise.
8080         * inet/inet6_option.c (option_alloc): Likewise.
8081         * intl/bindtextdom.c (set_binding_values): Likewise.
8082         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
8083         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8084         * intl/localealias.c (read_alias_file): Likewise.
8085         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8086         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
8087         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
8088         * libio/fmemopen.c (fmemopen): Likewise.
8089         * libio/iofgets.c (_IO_fgets): Likewise.
8090         * libio/iofgets_u.c (fgets_unlocked): Likewise.
8091         * libio/iofgetws.c (fgetws): Likewise.
8092         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8093         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8094         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
8095         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
8096         * locale/findlocale.c (_nl_find_locale): Likewise.
8097         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8098         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
8099         Likewise.
8100         * locale/setlocale.c (setlocale): Likewise.
8101         * login/programs/pt_chown.c (main): Likewise.
8102         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
8103         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
8104         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
8105         (mmap, mmap64, mremap, munmap): Likewise.
8106         * math/e_exp2l.c: Likewise.
8107         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
8108         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
8109         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
8110         * math/s_catan.c (__catan): Likewise.
8111         * math/s_catanf.c (__catanf): Likewise.
8112         * math/s_catanh.c (__catanh): Likewise.
8113         * math/s_catanhf.c (__catanhf): Likewise.
8114         * math/s_catanhl.c (__catanhl): Likewise.
8115         * math/s_catanl.c (__catanl): Likewise.
8116         * math/s_ccosh.c (__ccosh): Likewise.
8117         * math/s_ccoshf.c (__ccoshf): Likewise.
8118         * math/s_ccoshl.c (__ccoshl): Likewise.
8119         * math/s_cexp.c (__cexp): Likewise.
8120         * math/s_cexpf.c (__cexpf): Likewise.
8121         * math/s_cexpl.c (__cexpl): Likewise.
8122         * math/s_clog10.c (__clog10): Likewise.
8123         * math/s_clog10f.c (__clog10f): Likewise.
8124         * math/s_clog10l.c (__clog10l): Likewise.
8125         * math/s_clog.c (__clog): Likewise.
8126         * math/s_clogf.c (__clogf): Likewise.
8127         * math/s_clogl.c (__clogl): Likewise.
8128         * math/s_csin.c (__csin): Likewise.
8129         * math/s_csinf.c (__csinf): Likewise.
8130         * math/s_csinh.c (__csinh): Likewise.
8131         * math/s_csinhf.c (__csinhf): Likewise.
8132         * math/s_csinhl.c (__csinhl): Likewise.
8133         * math/s_csinl.c (__csinl): Likewise.
8134         * math/s_csqrt.c (__csqrt): Likewise.
8135         * math/s_csqrtf.c (__csqrtf): Likewise.
8136         * math/s_csqrtl.c (__csqrtl): Likewise.
8137         * math/s_ctan.c (__ctan): Likewise.
8138         * math/s_ctanf.c (__ctanf): Likewise.
8139         * math/s_ctanh.c (__ctanh): Likewise.
8140         * math/s_ctanhf.c (__ctanhf): Likewise.
8141         * math/s_ctanhl.c (__ctanhl): Likewise.
8142         * math/s_ctanl.c (__ctanl): Likewise.
8143         * math/w_pow.c: Likewise.
8144         * math/w_powf.c: Likewise.
8145         * math/w_powl.c: Likewise.
8146         * math/w_scalb.c (sysv_scalb): Likewise.
8147         * math/w_scalbf.c (sysv_scalbf): Likewise.
8148         * math/w_scalbl.c (sysv_scalbl): Likewise.
8149         * misc/error.c (error_tail): Likewise.
8150         * misc/pselect.c (__pselect): Likewise.
8151         * nis/nis_callback.c (__nis_create_callback): Likewise.
8152         * nis/nis_call.c (__nisfind_server): Likewise.
8153         * nis/nis_creategroup.c (nis_creategroup): Likewise.
8154         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
8155         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
8156         * nis/nis_getservlist.c (nis_getservlist): Likewise.
8157         * nis/nis_lookup.c (nis_lookup): Likewise.
8158         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
8159         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
8160         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
8161         * nis/nis_xdr.c (xdr_endpoint): Likewise.
8162         * nis/nss_compat/compat-grp.c (getgrent_next_file)
8163         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
8164         * nis/nss_compat/compat-initgroups.c (add_group)
8165         (internal_getgrent_r): Likewise.
8166         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
8167         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
8168         * nis/nss_compat/compat-spwd.c (getspent_next_file)
8169         (internal_getspnam_r): Likewise.
8170         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
8171         (_nss_nis_getaliasbyname_r): Likewise.
8172         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
8173         (_nss_nis_getntohost_r): Likewise.
8174         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
8175         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
8176         (_nss_nis_getgrgid_r): Likewise.
8177         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
8178         (internal_nis_gethostent_r, internal_gethostbyname2_r)
8179         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
8180         (_nss_nis_gethostbyname4_r): Likewise.
8181         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
8182         (initgroups_netid): Likewise.
8183         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
8184         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
8185         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
8186         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
8187         (_nss_nis_getprotobynumber_r): Likewise.
8188         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
8189         (_nss_nis_getsecretkey): Likewise.
8190         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
8191         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
8192         (_nss_nis_getpwuid_r): Likewise.
8193         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
8194         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
8195         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
8196         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
8197         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
8198         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
8199         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
8200         Likewise.
8201         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
8202         (_nss_nisplus_getntohost_r): Likewise.
8203         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
8204         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8205         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
8206         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
8207         Likewise.
8208         * nis/nss_nisplus/nisplus-initgroups.c
8209         (_nss_nisplus_initgroups_dyn): Likewise.
8210         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
8211         (_nss_nisplus_getnetbyaddr_r): Likewise.
8212         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
8213         (_nss_nisplus_getprotobynumber_r): Likewise.
8214         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
8215         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
8216         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
8217         Likewise.
8218         * nis/nss_nisplus/nisplus-service.c
8219         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
8220         (_nss_nisplus_getservbyport_r): Likewise.
8221         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
8222         (_nss_nisplus_getspnam_r): Likewise.
8223         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
8224         Likewise.
8225         * nscd/aicache.c (addhstaiX): Likewise.
8226         * nscd/cache.c (cache_search, prune_cache): Likewise.
8227         * nscd/connections.c (register_traced_file, send_ro_fd)
8228         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
8229         (main_loop_epoll): Likewise.
8230         * nscd/grpcache.c (addgrbyX): Likewise.
8231         * nscd/hstcache.c (addhstbyX): Likewise.
8232         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8233         * nscd/mem.c (gc, mempool_alloc): Likewise.
8234         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
8235         (addinnetgrX): Likewise.
8236         * nscd/nscd-client.h (__nscd_acquire_maplock)
8237         (__nscd_drop_map_ref): Likewise.
8238         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8239         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8240         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
8241         Likewise.
8242         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8243         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8244         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
8245         (__nscd_get_map_ref): Likewise.
8246         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8247         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
8248         Likewise.
8249         * nscd/pwdcache.c (addpwbyX): Likewise.
8250         * nscd/selinux.c (preserve_capabilities): Likewise.
8251         * nscd/servicescache.c (addservbyX): Likewise.
8252         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
8253         * posix/fnmatch.c (fnmatch): Likewise.
8254         * posix/getopt.c (_getopt_internal_r): Likewise.
8255         * posix/glob.c (glob, glob_in_dir): Likewise.
8256         * posix/wordexp.c (exec_comm_child): Likewise.
8257         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
8258         (getanswer_r, gaih_getanswer_slice): Likewise.
8259         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
8260         * resolv/res_init.c: Likewise.
8261         * resolv/res_mkquery.c (res_nmkquery): Likewise.
8262         * resolv/res_query.c (__libc_res_nquery): Likewise.
8263         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
8264         Likewise.
8265         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
8266         * stdio-common/perror.c (perror): Likewise.
8267         * stdio-common/printf_fp.c (___printf_fp): Likewise.
8268         * stdio-common/tmpnam.c (tmpnam): Likewise.
8269         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
8270         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
8271         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
8272         Likewise.
8273         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8274         * stdlib/putenv.c (putenv): Likewise.
8275         * stdlib/setenv.c (__add_to_environ): Likewise.
8276         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8277         * stdlib/strtol_l.c (INTERNAL): Likewise.
8278         * string/memmem.c (memmem): Likewise.
8279         * string/strerror.c (strerror): Likewise.
8280         * string/strnlen.c (__strnlen): Likewise.
8281         * string/test-memmem.c (simple_memmem): Likewise.
8282         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
8283         * sunrpc/pm_getport.c (__get_socket): Likewise.
8284         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
8285         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8286         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
8287         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
8288         Likewise.
8289         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8290         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
8291         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8292         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
8293         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8294         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
8295         Likewise.
8296         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
8297         Likewise.
8298         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8299         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8300         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
8301         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8302         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8303         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
8304         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
8305         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
8306         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8307         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8308         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8309         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
8310         Likewise.
8311         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
8312         Likewise.
8313         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
8314         Likewise.
8315         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
8316         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8317         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
8318         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
8319         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8320         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
8321         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
8322         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
8323         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
8324         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
8325         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
8326         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8327         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
8328         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
8329         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8330         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8331         Likewise.
8332         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
8333         Likewise.
8334         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
8335         Likewise.
8336         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
8337         Likewise.
8338         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8339         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8340         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
8341         Likewise.
8342         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
8343         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
8344         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8345         * sysdeps/posix/sleep.c: Likewise.
8346         * sysdeps/posix/tempname.c: Likewise.
8347         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
8348         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8349         Likewise.
8350         * sysdeps/powerpc/powerpc32/dl-machine.h
8351         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
8352         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
8353         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
8354         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
8355         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
8356         Likewise.
8357         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
8358         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
8359         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8360         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
8361         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8362         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
8363         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
8364         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
8365         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8366         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
8367         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
8368         (elf_machine_lazy_rel): Likewise.
8369         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8370         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
8371         (elf_machine_lazy_rel): Likewise.
8372         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
8373         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
8374         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
8375         * sysdeps/unix/grantpt.c (grantpt): Likewise.
8376         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
8377         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
8378         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8379         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8380         Likewise.
8381         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8382         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8383         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
8384         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
8385         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
8386         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8387         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
8388         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
8389         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8390         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8391         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8392         Likewise.
8393         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
8394         (__posix_fallocate64_l64): Likewise.
8395         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
8396         (posix_fallocate): Likewise.
8397         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8398         Likewise.
8399         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8400         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
8401         (getifaddrs_internal): Likewise.
8402         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
8403         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
8404         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
8405         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
8406         * sysdeps/unix/sysv/linux/posix_fallocate64.c
8407         (__posix_fallocate64_l64): Likewise.
8408         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
8409         Likewise.
8410         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8411         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
8412         (__get_clockfreq): Likewise.
8413         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
8414         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
8415         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
8416         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8417         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8418         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
8419         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8420         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
8421         Likewise.
8422         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
8423         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
8424         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8425         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
8426         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8427         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
8428         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
8429         Likewise.
8430         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8431         (posix_fallocate): Likewise.
8432         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8433         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
8434         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
8435         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
8436         (elf_machine_rela, elf_machine_rela_relative)
8437         (elf_machine_lazy_rel): Likewise.
8438         * time/asctime.c (asctime_internal): Likewise.
8439         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
8440         * time/tzset.c (__tzset_parse_tz): Likewise.
8441         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
8442         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
8443         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
8444         * wcsmbs/wcsmbsload.h: Likewise.
8445
8446         [BZ #15894]
8447         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
8448
8449         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
8450         (arena_get2): Remove THREAD_STATS conditionals.
8451         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
8452         (__malloc_stats, int): Likewise.
8453
8454 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
8455
8456         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
8457         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
8458
8459         * manual/setjmp.texi: Fix typos/grammar errors.
8460
8461         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
8462         Only return early when n is <= 0.  Delete unused return statement.
8463
8464         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
8465         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
8466         * debug/tst-longjmp_chk3.c: New file.
8467
8468         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
8469         (test_main): Replace code with set_fortify_handler call.
8470         * debug/test-strcpy_chk.c: Likewise.
8471         * debug/tst-chk1.c: Likewise.
8472         * debug/tst-longjmp_chk.c: Likewise.
8473         * test-skeleton.c: Include fcntl.h & paths.h
8474         (set_fortify_handler): Define.
8475
8476         * debug/tst-longjmp_chk.c: Add header comment and include
8477         ../test-skeleton.c.
8478         (do_test): Mark static.
8479         (TEST_FUNCTION): Define.
8480
8481         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
8482         (IP_PMTUDISC_INTERFACE): Likewise.
8483         (IP_MULTICAST_IF): Likewise.
8484         (IP_MULTICAST_TTL): Likewise.
8485         (IP_MULTICAST_LOOP): Likewise.
8486         (IP_ADD_MEMBERSHIP): Likewise.
8487         (IP_DROP_MEMBERSHIP): Likewise.
8488         (IP_UNBLOCK_SOURCE): Likewise.
8489         (IP_BLOCK_SOURCE): Likewise.
8490         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
8491         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
8492         (IP_MSFILTER): Likewise.
8493         (MCAST_JOIN_GROUP): Likewise.
8494         (MCAST_BLOCK_SOURCE): Likewise.
8495         (MCAST_UNBLOCK_SOURCE): Likewise.
8496         (MCAST_LEAVE_GROUP): Likewise.
8497         (MCAST_JOIN_SOURCE_GROUP): Likewise.
8498         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
8499         (MCAST_MSFILTER): Likewise.
8500         (IP_MULTICAST_ALL): Likewise.
8501         (IP_UNICAST_IF): Likewise.
8502
8503         * timezone/Makefile: Delete $(have-ksh) check.
8504         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
8505         * timezone/tzselect.ksh: Add +x mode bits.
8506
8507         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
8508         (ANON_INODE_FS_MAGIC): Likewise.
8509         (BDEVFS_MAGIC): Likewise.
8510         (BINFMTFS_MAGIC): Likewise.
8511         (BTRFS_TEST_MAGIC): Likewise.
8512         (CRAMFS_MAGIC_WEND): Likewise.
8513         (DEBUGFS_MAGIC): Likewise.
8514         (ECRYPTFS_SUPER_MAGIC): Likewise.
8515         (EXT3_SUPER_MAGIC): Likewise.
8516         (EXT4_SUPER_MAGIC): Likewise.
8517         (FUTEXFS_SUPER_MAGIC): Likewise.
8518         (HOSTFS_SUPER_MAGIC): Likewise.
8519         (HUGETLBFS_MAGIC): Likewise.
8520         (MINIX3_SUPER_MAGIC): Likewise.
8521         (MTD_INODE_FS_MAGIC): Likewise.
8522         (NILFS_SUPER_MAGIC): Likewise.
8523         (OPENPROM_SUPER_MAGIC): Likewise.
8524         (PIPEFS_MAGIC): Likewise.
8525         (PSTOREFS_MAGIC): Likewise.
8526         (QNX6_SUPER_MAGIC): Likewise.
8527         (RAMFS_MAGIC): Likewise.
8528         (REISERFS_SUPER_MAGIC_STRING): Likewise.
8529         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
8530         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
8531         (SECURITYFS_MAGIC): Likewise.
8532         (SELINUX_MAGIC): Likewise.
8533         (SMACK_MAGIC): Likewise.
8534         (SOCKFS_MAGIC): Likewise.
8535         (SQUASHFS_MAGIC): Likewise.
8536         (STACK_END_MAGIC): Likewise.
8537         (TMPFS_MAGIC): Likewise.
8538         (USBDEVICE_SUPER_MAGIC): Likewise.
8539         (V9FS_MAGIC): Likewise.
8540         (XENFS_SUPER_MAGIC): Likewise.
8541         (CRAMFS_MAGIC): Fix typo in comment.
8542         (EXT2_SUPER_MAGIC): Update comment.
8543         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
8544
8545 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
8546
8547         * sysdeps/arm: Move directory from ports/sysdeps/arm.
8548         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
8549         * sysdeps/unix/sysv/linux/arm: Move directory from
8550         ports/sysdeps/unix/sysv/linux/arm.
8551         * README: Update listing for arm-*-linux-gnueabi.
8552
8553         * README: Remove mention of am33.
8554
8555 2014-02-07  Roland McGrath  <roland@hack.frob.com>
8556
8557         * bits/sigset.h (__sigemptyset): Use a statement expression rather
8558         than the comma operator, to avoid "rhs of comma has no effect"
8559         compiler warnings.
8560         (__sigfillset, __sigandset, __sigorset): Likewise.
8561         * include/signal.h (__sigemptyset): Likewise.
8562         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
8563
8564 2014-02-07  Allan McRae  <allan@archlinux.org>
8565
8566         * version.h (RELEASE): Set to "development".
8567         (VERSION): Set to "2.19.90"
8568         * NEWS: Add 2.20 section.
8569
8570 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
8571
8572         [BZ #16529]
8573         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
8574
8575 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8576
8577         * manual/contrib.texi: Update entry for Carlos O'Donell,
8578         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
8579
8580 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
8581
8582         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
8583
8584         * sysdeps/unix/sysv/linux/kernel-features.h
8585         [__LINUX_KERNEL_VERSION >= 0x020621]
8586         (__ASSUME_PROC_PID_TASK_COMM): Define.
8587
8588 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8589
8590         [BZ #16398]
8591         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
8592         conversion when destination buffer does not have enough space.
8593         * libio/tst-ftell-partial-wide.c: New test case.
8594         * libio/Makefile (tests): Add tst-ftell-partial-wide.
8595
8596         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
8597         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
8598         Leonard and Allan McRae.
8599
8600 2014-02-04  David S. Miller  <davem@davemloft.net>
8601
8602         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
8603         32-bit.
8604
8605 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8606
8607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
8608         New file
8609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
8610         New file
8611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
8612         New file.
8613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
8614         New file.
8615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
8616         New file.
8617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
8618         New file.
8619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
8620         New file.
8621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
8622         New file.
8623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
8624         New file.
8625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
8626         New file.
8627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
8628         New file.
8629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
8630         New file.
8631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
8632         New file.
8633
8634 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8635
8636         * nptl/shlib-versions: Change powerpc*le start to 2.17.
8637         * shlib-versions: Likewise.
8638
8639 2014-02-04  Roland McGrath  <roland@hack.frob.com>
8640             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8641
8642         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
8643         (abilist-pattern): New variable, set to %-le.abilist.
8644
8645         * Makerules (abilist-pattern): New variable.
8646         (vpath): Use $(abilist-pattern) in place of %.abilist.
8647         (check-abi-% pattern rule): Likewise.
8648         (check-abi, update-abi): Likewise.
8649
8650 2014-02-04  Eric Wong  <normalperson@yhbt.net>
8651
8652         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8653
8654 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
8655
8656         * manual/startup.texi: Add next, previous, and top entries for
8657         the `Program Arguments' and `Environment Variables' nodes.
8658
8659 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
8660
8661         * manual/macros.texi: Add comments before MTASC-safety macros.
8662
8663         * manual/users.texi: Document MTASC-safety properties.
8664
8665         * manual/threads.texi (pthread_key_create, pthread_key_delete)
8666         (pthread_getspecific, pthread_setspecific): Format with
8667         @deftypefun, and add @safety note.
8668         * manual/signal.texi: Move comments that analyze the above
8669         functions to their home place.
8670
8671 2014-02-03  Allan McRae  <allan@archlinux.org>
8672
8673         * po/sl.po: Update Slovenian translation from translation project.
8674
8675 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
8676
8677         * manual/time.texi (timegm): Add missing blank after @c.
8678         Reported by Joseph Myers <joseph@codesourcery.com>.
8679
8680 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
8681
8682         * manual/check-safety.sh: New.
8683         * manual/Makefile ($(objpfx)stamp-summary): Run it.
8684
8685         * manual/terminal.texi: Document MTASC-safety properties.
8686
8687         * manual/filesys.texi: Document MTASC-safety properties.
8688
8689         * manual/errno.texi: Document MTASC-safety properties.
8690
8691         * manual/intro.texi: Document safety identifiers and
8692         conditionals.
8693
8694         * manual/string.texi (wcstok): Fix prototype.
8695         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
8696
8697         * manual/time.texi: Document MTASC-safety properties.
8698
8699         * manual/string.texi: Document MTASC-safety properties.
8700
8701         * manual/threads.texi: Document MTASC-safety properties.
8702
8703         * manual/stdio.texi: Document MTASC-safety properties.
8704
8705         * manual/syslog.texi: Document MTASC-safety properties.
8706
8707         * manual/sysinfo.texi: Document MTASC-safety properties.
8708
8709         * manual/startup.texi: Document MTASC-safety properties.
8710
8711         * manual/socket.texi: Document MTASC-safety properties.
8712
8713         * manual/signal.texi: Document MTASC-safety properties.
8714
8715 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
8716
8717         * manual/setjmp.texi: Document MTASC-safety properties.
8718
8719         * manual/search.texi: Document MTASC-safety properties.
8720
8721         * manual/resource.texi: Document MTASC-safety properties.
8722
8723         * manual/process.texi: Document MTASC-safety properties.
8724
8725         * manual/platform.texi: Document MTASC-safety properties.
8726
8727         * manual/pipe.texi: Document MTASC-safety properties.
8728
8729         * manual/pattern.texi: Document MTASC-safety properties.
8730
8731         * manual/message.texi: Document MTASC-safety properties.
8732
8733         [BZ #12751]
8734         * manual/memory.texi: Document MTASC-safety properties.
8735
8736         * manual/math.texi: Document MTASC-safety properties.
8737
8738         * manual/locale.texi: Document MTASC-safety properties.
8739
8740         * manual/llio.texi: Document MTASC-safety properties.
8741
8742         * manual/libdl.texi: New.
8743
8744         * manual/lang.texi: Document MTASC-safety properties.
8745
8746         * manual/job.texi: Document MTASC-safety properties.
8747
8748         * manual/getopt.texi: Document MTASC-safety properties.
8749
8750         * manual/ctype.texi: Document MTASC-safety properties.
8751
8752 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
8753
8754         [BZ #16046]
8755         * csu/libc-tls.c (static_map): Remove variable.
8756         (__libc_setup_tls): Use main executable's link map for TLS data.
8757         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
8758         casing for LM_ID_BASE and GL(dl_nns).
8759         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
8760         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
8761         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
8762         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
8763         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
8764         member.
8765         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
8766         l_phnum members.
8767
8768 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
8769
8770         * manual/debug.texi: Document MTASC-safety properties.
8771
8772 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8773
8774         [BZ #16510]
8775         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
8776         of __x86_64__ when disabling x87 inline functions.
8777
8778 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
8779
8780         * manual/charset.texi: Document MTASC-safety properties.
8781
8782         * manual/crypt.texi: Document MTASC-safety properties.
8783
8784         * manual/conf.texi: Document MTASC-safety properties.
8785
8786         * manual/arith.texi: Document MTASC-safety properties.
8787
8788         * manual/argp.texi: Document MTASC-safety properties.
8789
8790         * manual/macros.texi: Introduce macros to document multi
8791         thread, asynchronous signal and asynchronous cancellation
8792         safety properties.
8793         * manual/intro.texi: Introduce the properties themselves.
8794
8795 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8796
8797         * sysdeps/sh/sh4/Makefile: New file.
8798
8799 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
8800
8801         * math/gen-libm-test.pl ($srcdir): New variable.
8802         ($auto_input): Use it.
8803
8804 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8805
8806         [BZ #16506]
8807         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
8808         access beyond array bounds when parsing netgroups file.
8809
8810         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
8811         the old buffer before realloc.
8812
8813 2014-01-27  Allan McRae  <allan@archlinux.org>
8814
8815         * po/fr.po: Update French translation from translation project.
8816
8817 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8818
8819         * sysdeps/sh/libm-test-ulps: Regenerate.
8820
8821 2014-01-24  David S. Miller  <davem@davemloft.net>
8822
8823         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
8824
8825 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8826
8827         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
8828         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
8829
8830 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8831
8832         [BZ #16474]
8833         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
8834         string pointers after reallocation.
8835
8836 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8837
8838         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
8839         __SH4A__ instead of __SH_FPU_ANY__.
8840
8841 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8842
8843         * sysdeps/sh/fpu_control.h: New file.
8844         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
8845         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8846         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
8847         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
8848         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
8849         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
8850         * sysdeps/sh/sys/ucontext.h: Remove.
8851         * sysdeps/sh/sys: Remove directory.
8852
8853 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8854
8855         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
8856         s390/sys/ucontext.h.
8857         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8858         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
8859
8860 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
8861
8862         [BZ #15605]
8863         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
8864
8865 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8866
8867         [BZ#16431]
8868         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
8869         Adjust the vDSO correctly for internal calls.
8870         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
8871
8872 2014-01-20  Allan McRae  <allan@archlinux.org>
8873
8874         * po/ca.po: Update Catalan translation from translation project.
8875
8876 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
8877
8878         * sysdeps/s390/sotruss-lib.c: New file.
8879
8880 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8881
8882         [BZ#16430]
8883         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
8884         (__GI___gettimeofday): Alias for a different internal symbol to avoid
8885         local calls issues by not having a PLT stub required for IFUNC calls.
8886         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
8887
8888 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
8889
8890         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
8891         * math/test-fpucw-static.c: Likewise.
8892
8893 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8894
8895         [BZ #16453]
8896         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
8897
8898 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8899
8900         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
8901         implementation for powerpc.
8902
8903 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
8904
8905         [BZ #14782]
8906         * sysdeps/posix/system.c (__libc_system): Do not enable
8907         asynchronous cancellation.
8908
8909 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8910
8911         [BZ #16427]
8912         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
8913         handling only for numbers special also in the IEEE case.
8914
8915 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8916
8917         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8918
8919 2014-01-11  Allan McRae  <allan@archlinux.org>
8920
8921         * po/bg.po: Update Bulgarian translation from translation project.
8922
8923         * po/de.po: Update German translation from translation project.
8924
8925 2014-01-10  Roland McGrath  <roland@hack.frob.com>
8926
8927         * sysdeps/generic/gcc-compat.h: New file.
8928
8929 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8930
8931         * benchtests/asin-inputs: Correct slow inputs.
8932         * benchtests/acos-inputs: Likewise.
8933
8934 2014-01-10  Allan McRae  <allan@archlinux.org>
8935
8936         * po:sv.po: Update Swedish translation from translation project.
8937
8938         * po/vi.po: Update Vietnamese translation from translation project.
8939
8940         * po/eo.po: Update Esperanto translation from translation project.
8941
8942         * po/cs.po: Update Czech translation from translation project.
8943
8944         * po/nl.po: Update Dutch translation from translation project.
8945
8946         * po/pl.po: Update Polish translation from translation project.
8947
8948         * po/ru.po: Update Russian translation from translation project.
8949
8950         * po/uk.po: Update Ukrainian translation from translation project.
8951
8952 2014-01-08  Brooks Moses  <bmoses@google.com>
8953
8954         * elf/dl-load.c: Fix comment typo.
8955
8956 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
8957
8958         * po/header.pot: Rename to...
8959         * po/pot.header: ... this.
8960         * po/Makefile: Use pot.header.
8961
8962 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
8963             Maxim Kuvyrkov  <maxim@kugelworks.com>
8964
8965         [BZ #16394]
8966         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
8967         SRC and DEST against LEN.
8968
8969 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8970
8971         [BZ #16414]
8972         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
8973         implementation.
8974         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
8975
8976 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8977
8978         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8979
8980 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
8981
8982         [BZ #16408]
8983         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
8984         for large positive arguments.
8985
8986 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
8987
8988         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8989
8990         * math/auto-libm-test-in: Mark various tests with
8991         xfail-rounding:ldbl-128ibm.
8992         * math/auto-libm-test-out: Regenerated.
8993
8994         [BZ #16407]
8995         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
8996         Increase overflow threshold.
8997
8998 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
8999
9000         [BZ #14286]
9001         * stdio-common/vfprintf.c: Check for integer overflow.
9002
9003 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9004
9005         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
9006         the first argument and return value of __tls_get_addr_internal.
9007
9008 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9009
9010         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
9011         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
9012
9013 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9014
9015         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
9016         * sysdeps/s390/rtld-global-offsets.sym: New file.
9017         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
9018         GLIBC_2.19 symbol.
9019         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
9020         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
9021         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
9022         ... this.
9023         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
9024         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
9025         ... this.
9026         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9027         Regenerate.
9028         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9029         Regenerate.
9030         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
9031         halfs of GPRs for high_gprs contexts.
9032         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
9033         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
9034         field.
9035         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
9036         uc_flags field.
9037         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
9038         64 bit versions:
9039         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
9040         for high GPRs (uc_high_gprs) and for future extensions
9041         (__reserved).
9042         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
9043         for future extensions (__reserved).
9044         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
9045         64 bit versions:
9046         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
9047         SC_HIGHGPRS offset definition.
9048         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
9049         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
9050
9051         * Versions.def: Add GLIBC_2.19 for libpthread.
9052         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
9053         siglongjmp for libpthread with GLIBC_2.19 symver.
9054         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
9055         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
9056         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
9057         * sysdeps/s390/__longjmp.c: New file.
9058         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
9059         * sysdeps/s390/longjmp.c: New file.
9060         * sysdeps/s390/setjmp.S: New file.
9061         * sysdeps/s390/sigjmp.S: New file.
9062         * sysdeps/s390/v1-longjmp.c: New file.
9063         * sysdeps/s390/v1-setjmp.h: New file.
9064         * sysdeps/s390/v1-sigjmp.c: New file.
9065         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
9066         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
9067         GLIBC_2.19 version.
9068         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
9069         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
9070         versioned symbols for ____longjmp_chk.
9071         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
9072         Likewise.
9073         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9074         Regenerate.
9075         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9076         Regenerate.
9077         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9078         Regenerate.
9079         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9080         Regenerate.
9081         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
9082         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
9083         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
9084         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
9085         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
9086         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
9087         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
9088         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
9089         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
9090         * sysdeps/s390/rtld-__longjmp.c: New file.
9091         * sysdeps/s390/rtld-setjmp.S: New file.
9092
9093 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
9094
9095         [BZ #16400]
9096         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9097         Return -__logl (x) for small positive arguments without evaluating
9098         a polynomial.
9099
9100 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
9101
9102         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
9103         Rename to ...
9104         (__ptrace_peeksiginfo_args): ... this.
9105         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9106         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9107         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9108
9109 2014-01-06  Allan McRae  <allan@archlinux.org>
9110
9111         * inet/netinet/in.h: Fix typo in comment.
9112
9113 2014-01-05  Andreas Jaeger  <aj@suse.de>
9114
9115         * sysdeps/i386/fpu/libm-test-ulps: Update.
9116
9117 2014-01-05  Allan McRae  <allan@archlinux.org>
9118
9119         * po/libc.pot: Regenerated.
9120
9121         * malloc/memusagestat.c: Fix gettext call formatting.
9122
9123 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
9124
9125         * nscd/nscd.c: Improve usage() output.
9126
9127 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
9128
9129         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
9130         * sysdeps/unix/sysv/linux/configure: Regenerated.
9131         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
9132         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
9133
9134 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9135
9136         [BZ #16390]
9137         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
9138         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
9139
9140 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9141
9142         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
9143         extra tokens at end of #undef directive.
9144         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
9145         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
9146         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
9147
9148 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9149
9150         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9151
9152         * math/auto-libm-test-in: Mark various tests with
9153         xfail-rounding:ldbl-128ibm.
9154         * math/auto-libm-test-out: Regenerated.
9155
9156 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
9157
9158         [BZ #16386]
9159         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
9160         numbers with subnormal high part when calculating exponent.
9161
9162         [BZ #16385]
9163         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
9164         fabs.
9165
9166         [BZ #16384]
9167         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
9168         M_LN2l.
9169         (__ieee754_acoshl): Use __log1pl not __log1p.
9170
9171 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
9172
9173         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
9174         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
9175         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
9176         (grow_heap, heap_trim, _int_new_arena, get_free_list)
9177         (reused_arena, arena_get2): Convert to GNU style.
9178         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
9179         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
9180         (memalign_check, __malloc_set_state): Likewise.
9181         * malloc/mallocbug.c (main): Likewise.
9182         * malloc/malloc.c (__malloc_assert, malloc_init_state)
9183         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
9184         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
9185         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
9186         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
9187         (__posix_memalign, malloc_info): Likewise.
9188         * malloc/malloc.h: Likewise.
9189         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
9190         (mallochook, memalignhook, reallochook, mabort): Likewise.
9191         * malloc/mcheck.h: Likewise.
9192         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
9193         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
9194         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
9195         * malloc/morecore.c (__default_morecore): Likewise.
9196         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
9197         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
9198         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
9199         (print_and_abort): Likewise.
9200         * malloc/obstack.h: Likewise.
9201         * malloc/set-freeres.c (__libc_freeres): Likewise.
9202         * malloc/tst-mallocstate.c (main): Likewise.
9203         * malloc/tst-mtrace.c (main): Likewise.
9204         * malloc/tst-realloc.c (do_test): Likewise.
9205
9206 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9207
9208         [BZ #16366]
9209         * nscd/netgroupcache.c (do_notfound): New function.
9210         (addgetnetgrentX): Use it.
9211
9212         [BZ # 16365]
9213         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
9214         NSS_STATUS_NOTFOUND.
9215
9216 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
9217
9218         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
9219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9220
9221 2014-01-01  Allan McRae  <allan@archlinux.org>
9222
9223         * scripts/update-copyrights: Update configure input file suffix.
9224
9225         * NEWS: Update copyright year.
9226         * catgets/gencat.c: Likewise.
9227         * csu/version.c: Likewise.
9228         * debug/catchsegv.sh: Likewise.
9229         * debug/pcprofiledump.c: Likewise.
9230         * debug/xtrace.sh: Likewise.
9231         * elf/ldconfig.c: Likewise.
9232         * elf/ldd.bash.in: Likewise.
9233         * elf/pldd.c: Likewise.
9234         * elf/sotruss.ksh: Likewise.
9235         * elf/sprof.c: Likewise.
9236         * iconv/iconv_prog.c: Likewise.
9237         * iconv/iconvconfig.c: Likewise.
9238         * locale/programs/locale.c: Likewise.
9239         * locale/programs/localedef.c: Likewise.
9240         * login/programs/pt_chown.c: Likewise.
9241         * malloc/memusage.sh: Likewise.
9242         * malloc/memusagestat.c: Likewise.
9243         * malloc/mtrace.pl: Likewise.
9244         * manual/libc.texinfo: Likewise.
9245         * nscd/nscd.c: Likewise.
9246         * nss/getent.c: Likewise.
9247         * nss/makedb.c: Likewise.
9248         * posix/getconf.c: Likewise.
9249         * scripts/test-installation.pl: Likewise.
9250
9251         * All files with FSF copyright notices: Update copyright dates
9252         using scripts/update-copyrights.
9253         * intl/plural.c: Regenerated.
9254         * locale/programs/charmap-kw.h: Likewise.
9255         * locale/programs/locfile-kw.h: Likewise.
9256
9257 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
9258
9259         * sysdeps/unix/sysv/linux/configure: Regenerated.
9260         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
9261         the linux/fanotify.h header.
9262         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
9263         HAVE_LINUX_FANOTIFY_H is defined.
9264
9265 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9266
9267         * benchtests/cos-inputs: New inputs.
9268         * benchtests/sin-inputs: Likewise.
9269
9270         * benchtests/atan-inputs: New inputs. Fix name of multiple
9271         precision fallback inputs.
9272
9273         * benchtests/atanh-inputs: New inputs.
9274         * benchtests/tanh-inputs: Likewise.
9275
9276         * benchtests/acosh-inputs: New inputs.
9277         * benchtests/asinh-inputs: Likewise.
9278
9279         * benchtests/cosh-inputs: New inputs.
9280         * benchtests/sinh-inputs: Likewise.
9281
9282         * benchtests/acos-inputs: Add more inputs.
9283         * benchtests/asin-inputs: Likewise.
9284
9285 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
9286
9287         [BZ #16375]
9288         * manual/arith.texi: Fix spelling.
9289         * manual/charset.texi: Likewise.
9290         * manual/errno.texi: Likewise.
9291         * manual/filesys.texi: Likewise.
9292         * manual/lang.texi: Likewise.
9293         * manual/llio.texi: Likewise.
9294         * manual/locale.texi: Likewise.
9295         * manual/message.texi: Likewise.
9296         * manual/resource.texi: Likewise.
9297         * manual/search.texi: Likewise.
9298         * manual/setjmp.texi: Likewise.
9299         * manual/stdio.texi: Likewise.
9300         * manual/string.texi: Likewise.
9301         * manual/sysinfo.texi: Likewise.
9302         * manual/time.texi: Likewise.
9303
9304 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
9305
9306         * po/sl.po: New file.
9307
9308 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
9309
9310         * .gitignore: Add core/.gdbinit/.gdb_history.
9311
9312 2013-12-27  Allan McRae  <allan@archlinux.org>
9313
9314         [BZ #16369]
9315         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
9316         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
9317
9318 2013-12-24  Brooks Moses  <bmoses@google.com>
9319
9320         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
9321         all compilers that claim C++98 compliance, not just GCC.
9322         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
9323         Likewise.
9324
9325 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9326
9327         * NEWS: Restore accidentally deleted bug-fix entries.
9328
9329 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9330             Ondřej Bílka  <neleai@seznam.cz>
9331
9332         [BZ #15073]
9333         * malloc/malloc.c (_int_free): Perform sanity check only if we
9334         have_lock.
9335
9336 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
9337
9338         [BZ #12986]
9339         * manual/stdio.texi (String Input Conversions): Clarify that character
9340         classes are not supported.
9341
9342 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9343
9344         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9345
9346 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
9347
9348         [BZ #16337]
9349         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9350         Calculate results for small negative arguments directly rather
9351         than using reflection formula with special underflow handling.
9352
9353         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
9354         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
9355         sysdeps/unix/bsd/bsd4.4/syscalls.list.
9356         (fchflags): Likewise.
9357         (revoke): Likewise.
9358         (setlogin): Likewise.
9359         (sigaltstack): Likewise.
9360         (wait4): Likewise.
9361         (sigblock): Remove.
9362         (sigsetmask): Likewise.
9363         (wait3): Likewise.
9364         (waitpid): Likewise.
9365         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
9366         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
9367         file.
9368         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
9369         * sysdeps/unix/bsd/Makefile: ... here.
9370         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
9371         * sysdeps/unix/bsd/Versions: ... here.
9372         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
9373         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
9374         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
9375         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
9376         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
9377         * sysdeps/unix/bsd/sigblock.c: ... here.
9378         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
9379         * sysdeps/unix/bsd/sigsetmask.c: ... here.
9380         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
9381         * sysdeps/unix/bsd/sigvec.c: ... here.
9382         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
9383         * sysdeps/unix/bsd/tcdrain.c: ... here.
9384         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
9385         * sysdeps/unix/bsd/tcgetattr.c: ... here.
9386         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
9387         * sysdeps/unix/bsd/tcsetattr.c: ... here.
9388         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
9389         * sysdeps/unix/bsd/wait.c: ... here.
9390         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
9391         * sysdeps/unix/bsd/wait3.c: ... here.
9392         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
9393         * sysdeps/unix/bsd/waitpid.c: ... here.
9394
9395 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
9396
9397         [BZ #16356]
9398         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
9399         round-to-nearest for [!USE_AS_EXPM1L].
9400         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
9401         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
9402         more tests of exp and exp10.  Expect some exp10 tests to miss
9403         exceptions or fail in directed rounding modes.
9404         * math/auto-libm-test-out: Regenerated.
9405         * math/libm-test.inc (exp10_tonearest_test_data): New array.
9406         (exp10_test_tonearest): New function.
9407         (exp10_towardzero_test_data): New array.
9408         (exp10_test_towardzero): New function.
9409         (exp10_downward_test_data): New array.
9410         (exp10_test_downward): New function.
9411         (exp10_upward_test_data): New array.
9412         (exp10_test_upward): New function.
9413         (main): Call the new functions.
9414         * sysdeps/i386/fpu/libm-test-ulps: Update.
9415         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9416
9417 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
9418
9419         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
9420         asinh, atan, atan2, atanh, cbrt, cos and cosh.
9421         * math/auto-libm-test-out: Regenerated.
9422         * math/libm-test.inc (acosh_test_data): Add more tests.
9423         (atanh_test_data): Likewise.
9424         (ceil_test_data): Likewise.
9425         (copysign_test_data): Likewise.
9426         * sysdeps/i386/fpu/libm-test-ulps: Update.
9427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9428
9429         * timezone/checktab.awk: Update from tzcode 2013i.
9430         * timezone/private.h: Likewise.
9431         * timezone/scheck.c: Likewise.
9432         * timezone/tzfile.h: Likewise.
9433         * timezone/tzselect.ksh: Likewise.
9434         * timezone/zdump.c: Likewise.
9435         * timezone/zic.c: Likewise.
9436
9437         * math/auto-libm-test-in: Add tests of cpow.
9438         * math/auto-libm-test-out: Regenerated.
9439         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
9440         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9441         mpc_cc_c.
9442         (func_calc_desc): Add mpc_cc_c union field.
9443         (test_functions): Add cpow.
9444         (special_fill_2pi): New function.
9445         (special_real_inputs): Add 2pi.
9446         (calc_generic_results): Handle mpc_cc_c.
9447         * sysdeps/i386/fpu/libm-test-ulps: Update.
9448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9449
9450         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
9451         csqrt, ctan and ctanh.
9452         * math/auto-libm-test-out: Regenerated.
9453         * math/libm-test.inc (TEST_COND_x86_64): New macro.
9454         (TEST_COND_x86): Likewise.
9455         (ccos_test_data): Use AUTO_TESTS_c_c.
9456         (ccosh_test_data): Likewise.
9457         (cexp_test_data): Likewise.
9458         (clog_test_data): Likewise.
9459         (csqrt_test_data): Likewise.
9460         (ctan_test_data): Likewise.
9461         (ctan_tonearest_test_data): Likewise.
9462         (ctan_towardzero_test_data): Likewise.
9463         (ctan_downward_test_data): Likewise.
9464         (ctan_upward_test_data): Likewise.
9465         (ctanh_test_data): Likewise.
9466         (ctanh_tonearest_test_data): Likewise.
9467         (ctanh_towardzero_test_data): Likewise.
9468         (ctanh_downward_test_data): Likewise.
9469         (ctanh_upward_test_data): Likewise.
9470         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9471         mpc_c_c.
9472         (func_calc_desc): Add mpc_c_c union field.
9473         (FUNC_mpc_c_c): New macro.
9474         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
9475         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
9476         ctanh.
9477         (special_fill_min_subnorm_p120): New function.
9478         (special_real_inputs): Add min_subnorm_p120.
9479         (calc_generic_results): Handle mpc_c_c.
9480         * sysdeps/i386/fpu/libm-test-ulps: Update.
9481         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9482
9483 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9484
9485         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
9486         (do_sin_slow): New functions.
9487         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
9488         (cslow2, csloww1, csloww2): Use the new functions.
9489
9490         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
9491         Use M to change sign of result instead of X.  Assume X is
9492         positive.
9493         (csloww1): Likewise.
9494         (__sin): Adjust.
9495         (__cos): Adjust.
9496
9497         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
9498         arguments A and DA.
9499         (__sin): Adjust.
9500         (__cos): Likewise.
9501
9502         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
9503         (__cos): Likewise.
9504         (sloww1): Don't adjust sign of DX.
9505         (csloww1): Likewise.
9506         (sloww2): Use X directly and don't adjust sign of DX.
9507         (csloww2): Likewise.
9508
9509 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9510
9511         * math/auto-libm-test-in: Add tests of cabs and carg.
9512         * math/auto-libm-test-out: Regenerated.
9513         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
9514         (carg_test_data): Likewise.
9515         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9516         mpc_c_f.
9517         (func_calc_desc): Add mpc_c_f union field.
9518         (test_functions): Add cabs and carg.
9519         (calc_generic_results): Handle mpc_c_f.
9520
9521         * sysdeps/powerpc/powerpc32/libgcc-compat.S
9522         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
9523         as a macro and a compat symbol.
9524         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
9525         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
9526         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
9527         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
9528         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
9529         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
9530         not use .hidden.
9531         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
9532         Likewise.
9533         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
9534         Likewise.
9535         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
9536         Likewise.
9537         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
9538         Likewise.
9539         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
9540         Likewise.
9541         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
9542         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
9543         from GLIBC_2.3.2.
9544
9545 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9546
9547         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9548
9549 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9550
9551         * manual/texinfo.tex: Update to version 2013-11-26.10 with
9552         trailing whitespace removed.
9553         * scripts/config.guess: Update to version 2013-11-29.
9554         * scripts/config.sub: Update to version 2013-10-01.
9555
9556         * math/auto-libm-test-in: Add tests of sincos.
9557         * math/auto-libm-test-out: Regenerated.
9558         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
9559         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9560         mpfr_f_11.
9561         (func_calc_desc): Add mpfr_f_11 union field.
9562         (test_functions): Add sincos.
9563         (calc_generic_results): Handle mpfr_f_11.
9564         * sysdeps/i386/fpu/libm-test-ulps: Update.
9565         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9566
9567 2013-12-19  Andreas Schwab  <schwab@suse.de>
9568
9569         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
9570         CALL_MCOUNT.
9571         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
9572         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
9573         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
9574
9575 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9576
9577         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
9578         * sysdeps/i386/fpu/libm-test-ulps: Update.
9579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9580
9581         [BZ #16293]
9582         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
9583         round-to-nearest mode when using frndint.
9584         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
9585         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9586         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
9587         Likewise.
9588         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
9589         sinh test to fail.
9590         * math/auto-libm-test-out: Regenerated.
9591         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
9592         (TEST_COND_x86): Likewise.
9593         (expm1_tonearest_test_data): New array.
9594         (expm1_test_tonearest): New function.
9595         (expm1_towardzero_test_data): New array.
9596         (expm1_test_towardzero): New function.
9597         (expm1_downward_test_data): New array.
9598         (expm1_test_downward): New function.
9599         (expm1_upward_test_data): New array.
9600         (expm1_test_upward): New function.
9601         (main): Run the new test functions.
9602         * sysdeps/i386/fpu/libm-test-ulps: Update.
9603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9604
9605         * include/features.h: Update comment documenting feature test
9606         macros.  Mention _DEFAULT_SOURCE in comment.
9607         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
9608         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
9609         _BSD_SOURCE and _SVID_SOURCE.
9610         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
9611         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
9612         !_SVID_SOURCE]: Likewise.
9613         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9614         (__USE_POSIX_IMPLICITLY): Define.
9615         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9616         (_POSIX_SOURCE): Undefine and redefine.
9617         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9618         (_POSIX_C_SOURCE): Likewise.
9619         * manual/creature.texi (_DEFAULT_SOURCE): Document.
9620         (Feature Test Macros): Update documentation of default features.
9621
9622 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9623
9624         * benchtests/Makefile: Add bench-strtok.
9625         * benchtests/bench-strtok.c: New file: strtok benchtest.
9626
9627 2013-12-19  Allan McRae  <allan@archlinux.org>
9628
9629         * manual/install.texi: Suppress menu for plain text output.
9630         * INSTALL: Regenerated.
9631
9632 2013-12-18  Brooks Moses  <bmoses@google.com>
9633
9634         [BZ #15846]
9635         * misc/getauxval.c: Include errno.h.
9636         (__getauxval): Set errno to ENOENT if the requested type is not
9637         found.
9638         * misc/sys/auxv.h (getauxval): Document that it may set errno;
9639         don't declare with __attribute_const__.
9640         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
9641         * manual/startup.texi: Document that getauxval sets errno.
9642
9643 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9644
9645         * math/auto-libm-test-in: Add tests of jn and yn.
9646         * math/auto-libm-test-out: Regenerated.
9647         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
9648         (yn_test_data): Likewise.
9649         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9650         mpfr_if_f.
9651         (func_calc_desc): Add mpfr_if_f union field.
9652         (FUNC_mpfr_if_f): New macro.
9653         (test_functions): Add jn and yn.
9654         (calc_generic_results): Assert type of second input for
9655         mpfr_ff_f.  Handle mpfr_if_f.
9656         (output_for_one_input_case): Disable all checking for arguments
9657         fitting floating-point types in case of an integer argument.
9658         * sysdeps/i386/fpu/libm-test-ulps: Update.
9659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9660
9661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
9662         Don't expect fegetround reference in libm.so.
9663
9664 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9665
9666         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
9667         $(config-cflags-nofma).
9668
9669 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9670
9671         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
9672         * math/auto-libm-test-out: Regenerated.
9673
9674         [BZ #16338]
9675         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
9676         to determine exponent and adjust argument to have exponent of -1.
9677         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
9678         log2.
9679         * math/auto-libm-test-out: Regenerated.
9680         * sysdeps/i386/fpu/libm-test-ulps: Update.
9681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9682
9683 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
9684
9685         * manual/probes.texi: Remove cases when per-thread arenas are
9686         disabled.
9687
9688 2013-12-18  Andreas Schwab  <schwab@suse.de>
9689
9690         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
9691         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
9692         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
9693         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
9694         * sysdeps/i386/i686/multiarch/Makefile: Update.
9695         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
9696
9697 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9698
9699         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
9700         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
9701
9702 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9703
9704         [BZ #15968]
9705         Support TZ transition times < 00:00:00.
9706         This is needed for version-3 tz-format files; it supports time
9707         stamps past 2037 for America/Godthab (the only entry in the tz
9708         database for which this change is relevant).
9709         * manual/time.texi (TZ Variable): Document transition times
9710         from -167:59:59 through -00:00:01.
9711         * time/tzset.c (tz_rule): Time of day is now signed.
9712         (__tzset_parse_tz): Parse negative time of day.
9713
9714         Document TZ transition times >= 25:00:00.
9715         * manual/time.texi (TZ Variable): Document transition times from
9716         25:00:00 through 167:59:59.  These are already supported, and this
9717         support will help with version-3 tz-format files.
9718
9719         * manual/time.texi (TZ Variable): Modernize North America example
9720         to reflect current (i.e., 2007-and-later) daylight saving rules.
9721
9722         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
9723
9724 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9725
9726         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
9727         * sysdeps/unix/bsd/bits/stat.h: Likewise.
9728         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
9729         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9730         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
9731         * sysdeps/unix/bsd/bsdstat.h: Likewise.
9732         * sysdeps/unix/bsd/clock.c: Likewise.
9733         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9734         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
9735         * sysdeps/unix/bsd/init-posix.c: Likewise.
9736         * sysdeps/unix/bsd/poll.c: Likewise.
9737         * sysdeps/unix/bsd/ptsname.c: Likewise.
9738         * sysdeps/unix/bsd/seekdir.c: Likewise.
9739         * sysdeps/unix/bsd/setegid.c: Likewise.
9740         * sysdeps/unix/bsd/seteuid.c: Likewise.
9741         * sysdeps/unix/bsd/setgid.c: Likewise.
9742         * sysdeps/unix/bsd/setrgid.c: Likewise.
9743         * sysdeps/unix/bsd/setruid.c: Likewise.
9744         * sysdeps/unix/bsd/setsid.c: Likewise.
9745         * sysdeps/unix/bsd/setuid.c: Likewise.
9746         * sysdeps/unix/bsd/sigaction.c: Likewise.
9747         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
9748         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
9749         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
9750         * sysdeps/unix/bsd/telldir.c: Likewise.
9751         * sysdeps/unix/bsd/times.c: Likewise.
9752         * sysdeps/unix/bsd/usleep.c: Likewise.
9753
9754         * misc/Makefile (install-lib): Remove libbsd-compat.a.
9755         ($(objpfx)libbsd-compat.a): Remove rule.
9756
9757         * include/features.h (__FAVOR_BSD): Do not define.
9758         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
9759         features conflicting with POSIX.
9760         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
9761         (_BSD_SOURCE): Remove description of not being a subset of other
9762         feature test macros.
9763         * manual/job.texi (getpgrp): Do not document BSD version.
9764         (getpgid): Do not document by reference to BSD getpgrp.
9765         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
9766         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
9767         * signal/signal.h [__FAVOR_BSD]: Likewise.
9768         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
9769         instead of making contents conditional on [__FAVOR_BSD].
9770         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
9771
9772 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9773
9774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9775
9776 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9777
9778         [BZ #16314]
9779         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
9780         values below 2**-450, not 2**-500.
9781         * math/auto-libm-test-in: Don't allow spurious underflow from
9782         hypot.
9783         * math/auto-libm-test-out: Regenerated.
9784
9785         [BZ #16316]
9786         [BZ #16330]
9787         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
9788         values of ha and hb and sort them after adjusting subnormal
9789         arguments.
9790         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9791         Likewise.
9792         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
9793         values of ea and eb and sort them after adjusting subnormal
9794         arguments.
9795         * math/auto-libm-test-in: Do not expect some hypot tests of
9796         subnormals to fail.  Add more hypot tests.
9797         * math/auto-libm-test-out: Regenerated.
9798
9799 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9800
9801         [BZ #13304]
9802         * sysdeps/sh/s_fma.c: New file.
9803         * sysdeps/sh/s_fmaf.c: New file.
9804         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
9805         version.
9806         * sysdeps/sh/Implies: Add sh/soft-fp.
9807
9808 2013-12-16  Roland McGrath  <roland@hack.frob.com>
9809
9810         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
9811         level of indirection to members `objname', `errstring', `malloced'.
9812         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
9813         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
9814         it as the __longjmp argument (just pass 1 instead).
9815         (_dl_catch_error): Initialize C with argument pointers and address of
9816         volatile local ERRCODE rather than copying values out of C at return.
9817
9818 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
9819
9820         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
9821         * math/auto-libm-test-out: Regenerated.
9822         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
9823         (hypot_test_data): Likewise.
9824         (pow_test_data): Likewise.
9825         (pow_tonearest_test_data): Likewise.
9826         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9827         mpfr_ff_f.
9828         (func_calc_desc): Add mpfr_ff_f union field.
9829         (FUNC_mpfr_ff_f): New macro.
9830         (test_functions): Add atan2, hypot and pow.
9831         (special_fill_min): New function.
9832         (special_fill_minus_min): Likewise.
9833         (special_fill_min_subnorm): Likewise.
9834         (special_fill_minus_min_subnorm): Likewise.
9835         (special_real_inputs): Add min, -min, min_subnorm and
9836         -min_subnorm.
9837         (calc_generic_results): Handle mpfr_ff_f.
9838         * sysdeps/i386/fpu/libm-test-ulps: Update.
9839         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9840
9841 2013-12-16  Will Newton  <will.newton@linaro.org>
9842
9843         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
9844         (Aligned Memory Blocks): Add documentation for aligned_alloc
9845         and suggest it as an alternative to posix_memalign.
9846         (Hooks for Malloc): Document __memalign_hook is also called
9847         for aligned_alloc.  (Summary of Malloc): Add summary for
9848         aligned alloc.  Document __memalign_hook is also called
9849         for aligned_alloc.
9850
9851 2013-12-16  Will Newton  <will.newton@linaro.org>
9852
9853         * manual/memory.texi (Malloc Examples): Clarify default
9854         alignment documentation.  Suggest posix_memalign rather
9855         than memalign or valloc.
9856         (Aligned Memory Blocks): Remove suggestion to use memalign
9857         or valloc.  Remove obsolete comment about BSD.
9858         Document memalign errno values and mark the function obsolete.
9859         Document posix_memalign returned error codes.  Mark valloc
9860         as obsolete.  (Hooks for Malloc): __memalign_hook is also
9861         called for posix_memalign and valloc.
9862         (Summary of Malloc): Add posix_memalign to function summary.
9863         __memalign_hook is also called for posix_memalign and valloc.
9864
9865 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9866
9867         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
9868         TAYLOR_SIN.
9869         (__sin): Adjust.
9870         (__cos): Likewise.
9871         (sloww): Use mynumber union.  Expand ternary operator into
9872         if-else statements.
9873         (cslow): use mynumber union.
9874
9875 2013-12-16  Allan McRae  <allan@archlinux.org>
9876
9877         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
9878         * configure: Regenerated.
9879
9880         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
9881
9882         [BZ #14120]
9883         * configure.ac: Added --enable-maintainer-mode. Check for
9884         autoconf when enabled.
9885         * configure: Regenerated.
9886
9887         * nscd/nscd.service: New file.
9888         * nscd/nscd.tmpfiles: New file.
9889
9890 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
9891
9892         [BZ #12100]
9893         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
9894         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
9895         * sysdeps/x86_64/multiarch/strstr.c: ... here.
9896         (strstr): Add __strstr_sse2_unaligned ifunc.
9897         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
9898         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
9899         (strcasestr): Remove __strcasestr_sse42 ifunc.
9900         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
9901         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
9902         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
9903
9904 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9905
9906         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
9907         * sysdeps/sh/bits/fenv.h: ... here.
9908         * sysdeps/sh/sh4/fpu/bits: Remove directory.
9909
9910 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9911
9912         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
9913
9914         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
9915         hypotf multiarch implementations.
9916         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
9917         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
9918         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
9919         multiarch hypot for PPC64.
9920         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
9921         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
9922         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
9923         multiarch hypotf for PPC64.
9924
9925         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
9926         modff multiarch implementations.
9927         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
9928         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
9929         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
9930         multiarch modf for PPC64.
9931         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
9932         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
9933         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
9934         multiarch modff for PPC64.
9935
9936         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
9937         and logl multiarch implementations.
9938         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
9939         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
9940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
9941         multiarch logb for PPC64.
9942         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
9943         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
9944         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
9945         multiarch logb for PPC64.
9946         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
9947         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
9948         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
9949         multiarch logb for PPC64.
9950
9951         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
9952         isinff multiarch implementation.
9953         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
9954         file.
9955         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
9956         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
9957         multiarch isinf for PPC64.
9958         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
9959         file.
9960         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
9961         multiarch isinff for PPC64.
9962
9963         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
9964         finitef multiarch implementation.
9965         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
9966         file.
9967         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
9968         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
9969         multiarch finite for PPC64.
9970         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
9971         file.
9972         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
9973         multiarch finitef for PPC64.
9974
9975         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
9976         lrint multiarch implementation.
9977         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
9978         file.
9979         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
9980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
9981         multiarch llrint for PPC64.
9982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
9983         multiarch lrint for PPC64.
9984
9985         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
9986         copysignf multiarch implementation.
9987         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
9988         file.
9989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
9990         file.
9991         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
9992         multiarch copysign for PPC64.
9993         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
9994         multiarch copysignf for PPC64.
9995
9996         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
9997         multiarch implementation.
9998         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
9999         file.
10000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
10001         file.
10002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
10003         file.
10004         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
10005         file.
10006         multiarch llround for PPC64.
10007         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
10008         multiarch trunc for PPC64.
10009         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
10010         multiarch truncf for PPC64.
10011
10012         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
10013         multiarch implementation.
10014         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
10015         file.
10016         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
10017         file.
10018         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
10019         file.
10020         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
10021         file.
10022         multiarch llround for PPC64.
10023         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
10024         multiarch round for PPC64.
10025         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
10026         multiarch roundf for PPC64.
10027
10028         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
10029         multiarch implementation.
10030         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
10031         file.
10032         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
10033         file.
10034         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
10035         file.
10036         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
10037         file.
10038         multiarch llround for PPC64.
10039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
10040         multiarch floor for PPC64.
10041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
10042         multiarch floorf for PPC64.
10043
10044         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
10045         multiarch implementation.
10046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
10047         file.
10048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
10049         file.
10050         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
10051         file.
10052         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
10053         file.
10054         multiarch llround for PPC64.
10055         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
10056         multiarch ceil for PPC64.
10057         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
10058         multiarch ceilf for PPC64.
10059
10060         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
10061         multiarch implementation.
10062         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
10063         file.
10064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
10065         file.
10066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
10067         file.
10068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
10069         multiarch llround for PPC64.
10070         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
10071         multiarch lround for PPC64.
10072
10073         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
10074         multiarch implementation.
10075         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
10076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
10077         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
10078         file.
10079         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
10080         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
10081         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
10082         multiarch isnan for PPC64.
10083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
10084         multiarch isnanf for PPC64.
10085
10086         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
10087         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
10088         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
10089         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
10090         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
10091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
10092
10093         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
10094         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10095         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10096         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10097
10098         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
10099         multiarch implementations.
10100         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10101         (__libc_ifunc_impl_list): Likewise.
10102         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
10103         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
10104         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
10105         multiarch stpcpy for PPC64.
10106
10107         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
10108         multiarch implementations.
10109         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10110         (__libc_ifunc_impl_list): Likewise.
10111         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
10112         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
10113         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
10114         multiarch strcpy for PPC64.
10115
10116         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
10117         redefine function name.
10118         (_wordcopy_fwd_dest_aligned): Likewise.
10119         (_wordcopy_bwd_aligned): Likewise.
10120         (_wordcopy_bwd_dest_aligned): Likewise.
10121         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
10122         multiarch implementations.
10123         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10124         (__libc_ifunc_impl_list): Likewise.
10125         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
10126         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
10127         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
10128         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
10129         multiarch wcscpy for PPC64.
10130
10131         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
10132         multiarch implementations.
10133         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10134         (__libc_ifunc_impl_list): Likewise.
10135         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
10136         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
10137         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
10138         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
10139         multiarch wcscpy for PPC64.
10140
10141         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
10142         multiarch implementations.
10143         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10144         (__libc_ifunc_impl_list): Likewise.
10145         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
10146         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
10147         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
10148         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
10149         multiarch wcsrchr for PPC64.
10150
10151         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
10152         multiarch implementations.
10153         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10154         (__libc_ifunc_impl_list): Likewise.
10155         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
10156         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
10157         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
10158         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
10159         multiarch wcschr for PPC64.
10160
10161         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
10162         multiarch implementations.
10163         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10164         (__libc_ifunc_impl_list): Likewise.
10165         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
10166         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
10167         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
10168         multiarch strchrnul for PPC64.
10169
10170         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
10171         implementations.
10172         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10173         (__libc_ifunc_impl_list): Likewise.
10174         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
10175         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
10176         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
10177         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
10178         strchr for PPC64.
10179
10180         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
10181         implementations.
10182         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10183         (__libc_ifunc_impl_list): Likewise.
10184         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
10185         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
10186         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
10187         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
10188         strncmp for PPC64.
10189
10190         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
10191         multiarch implementations.
10192         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10193         (__libc_ifunc_impl_list): Likewise.
10194         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
10195         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
10196         strncasecmp for PPC64.
10197         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
10198         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
10199         multiarch strncasecmp_l for PPC64.
10200
10201         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
10202         multiarch implementations.
10203         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10204         (__libc_ifunc_impl_list): Likewise.
10205         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
10206         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
10207         multiarch strcasecmp for PPC64.
10208         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
10209         file.
10210         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
10211         multiarch strcasecmp_l for PPC64.
10212
10213         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
10214         implementations.
10215         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10216         (__libc_ifunc_impl_list): Likewise.
10217         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
10218         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
10219         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
10220         strnlen for PPC64.
10221
10222         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
10223         implementations.
10224         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10225         (__libc_ifunc_impl_list): Likewise.
10226         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
10227         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
10228         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
10229         strlen for PPC64.
10230
10231         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
10232         implementations.
10233         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10234         (__libc_ifunc_impl_list): Likewise.
10235         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
10236         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
10237         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
10238         rawmemrchr for PPC64.
10239
10240         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
10241         implementation.
10242         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10243         (__libc_ifunc_impl_list): Likewise.
10244         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
10245         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
10246         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
10247         memrchr for PPC64.
10248
10249         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
10250         implementation.
10251         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10252         (__libc_ifunc_impl_list): Likewise.
10253         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
10254         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
10255         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
10256         memchr for PPC64.
10257
10258         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
10259         implementation.
10260         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10261         (__libc_ifunc_impl_list): Likewise.
10262         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
10263         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
10264         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
10265         mempcpy for PPC64.
10266
10267         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
10268         avoid cretion of __bzero symbol.
10269         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
10270         Likewise.
10271         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
10272         Likewise.
10273         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
10274         Likewise.
10275         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
10276         multiarch implementations.
10277         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10278         (__libc_ifunc_impl_list): Likewise.
10279         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
10280         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
10281         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
10282         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
10283         bzero for PPC32.
10284         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
10285         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
10286         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
10287         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
10288         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
10289         memset for PPC64.
10290         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
10291
10292         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
10293         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
10294         implementations.
10295         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10296         (__libc_ifunc_impl_list): Likewise.
10297         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
10298         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
10299         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
10300         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
10301         memcmp for PPC64.
10302
10303         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
10304         multiarch for POWER/PPC64.
10305         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
10306         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
10307         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
10308         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
10309         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
10310         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
10311         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
10312         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
10313         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
10314         memcpy for PPC64.
10315
10316         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
10317         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
10318         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
10319         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
10320         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
10321         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
10322         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
10323         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
10324         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
10325         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
10326         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
10327         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
10328         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
10329         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
10330         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
10331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
10332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
10333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
10334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
10335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
10336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
10337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
10338
10339 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10340
10341         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
10342
10343 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10344
10345         * benchtests/Makefile (bench): Add exp2 and log2.
10346         (LDLIBS-bench-exp2): Add -lm.
10347         (LDLIBS-bench-log2): Likewise.
10348         * benchtests/exp2-inputs: New inputs file.
10349         * benchtests/log2-inputs: New inputs file.
10350         * benchtests/log-inputs: Add new inputs.
10351         * benchtests/tan-inputs: Likewise.
10352
10353 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10354
10355         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
10356         definition...
10357         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
10358         (csloww2): ... from here.
10359
10360         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
10361         instead of structures.
10362         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
10363         (POLYNOMIAL): Likewise.
10364         (TAYLOR_SLOW): Likewise.
10365         (__sin): Likewise.
10366         (__cos): Likewise.
10367         (slow1): Likewise.
10368         (slow2): Likewise.
10369         (sloww): Likewise.
10370         (sloww1); Likewise.
10371         (sloww2): Likewise.
10372         (bsloww1): Likewise.
10373         (bsloww2): Likewise.
10374         (cslow2): Likewise.
10375         (csloww): Likewise.
10376         (csloww1): Likewise.
10377         (csloww2): Likewise.
10378
10379 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
10380
10381         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
10382         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
10383         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
10384         * malloc/hooks.c (realloc_check): Likewise.
10385
10386         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
10387         * malloc/arena.c: Remove PER_THREAD conditional.
10388         [!PER_THREAD]: Remove code.
10389         (ptmalloc_unlock_all2): Likewise.
10390         (ptmalloc_init): Likewise.
10391         (_int_new_arena): Likewise.
10392         (arena_get2): Likewise.
10393         * malloc/hooks.c (__malloc_get_state): Likewise.
10394         (__malloc_set_state): Likewise.
10395         * malloc/malloc.c: Likewise.
10396         (struct malloc_state): Likewise.
10397         (struct malloc_par): Likewise.
10398         (__libc_realloc): Likewise.
10399         (__libc_mallopt): Likewise.
10400
10401 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10402
10403         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
10404
10405 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
10406
10407         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
10408         macro to a function.  Check for zero perturb_byte.
10409         (_int_malloc, _int_free): Remove zero perturb_byte checks.
10410
10411         * malloc/malloc.c: (force_reg): Remove.
10412         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
10413         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
10414         force_reg by atomic_forced_read.
10415         * malloc/arena.c (ptmalloc_init): Likewise.
10416         * malloc/hooks.c (top_check): Likewise.
10417
10418 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10419
10420         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10421
10422 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
10423
10424         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10425
10426 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
10427
10428         * math/auto-libm-test-in: Add tests of lgamma.
10429         * math/auto-libm-test-out: Regenerated.
10430         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
10431         (M_LOG_2_SQRT_PIl): Likewise.
10432         (lgamma_test_data): Use AUTO_TESTS_f_f1.
10433         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10434         mpfr_f_f1.
10435         (func_calc_desc): Add mpfr_f_f1 union field.
10436         (ARGS1): New macro.
10437         (ARGS2): Likewise.
10438         (ARGS3): Likewise.
10439         (ARGS4): Likewise.
10440         (RET1): Likewise.
10441         (RET2): Likewise.
10442         (CALC): Likewise.
10443         (FUNC): Likewise.
10444         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
10445         (test_functions): Add lgamma.
10446         (calc_generic_results): Handle mpfr_f_f1.
10447         * sysdeps/i386/fpu/libm-test-ulps: Update.
10448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10449
10450 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10451
10452         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
10453         __mpn_add_n for PowerPC64/POWER7.
10454         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
10455         __mpn_sub_n for PowerPC64/POWER7.
10456
10457         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
10458         __mpn_addmul_1 for PowerPC64.
10459         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
10460         __mpn_submul_1 for PowerPC64.
10461         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
10462         for PowerPC64.
10463         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
10464         for PowerPC64.
10465
10466 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
10467
10468         [BZ #15089]
10469         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
10470
10471 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10472
10473         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
10474
10475         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
10476         add multiarch folders.
10477         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
10478         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
10479         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
10480         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
10481         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
10482         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
10483         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
10484         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
10485         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
10486         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
10487         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
10488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
10489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
10490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
10491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
10492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
10493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
10494
10495         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10496         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
10497         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
10498         New file.
10499         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
10500         New file.
10501         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
10502         multiarch __ieee754_hypot for PowerPC32.
10503         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
10504         New file.
10505         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
10506         New file.
10507         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
10508         multiarch __ieee754_hypotf for PowerPC32.
10509
10510         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
10511         long_double_symbol only if __logbl is defined.
10512         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
10513         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
10514         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
10515         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
10516         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
10517         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
10518         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
10519         path for implementation.
10520         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
10521         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
10522         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
10523         logb, and logbl multiarch implementations for PowerPC32.
10524         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
10525         file.
10526         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
10527         file.
10528         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
10529         multiarch logb for PowerPC32.
10530         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
10531         file.
10532         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
10533         file.
10534         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
10535         multiarch logbf for PowerPC32.
10536         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
10537         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
10538         file.
10539         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
10540         multiarch logbl implementation for PowerPC32.
10541
10542         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
10543         and modff multiarch implementations.
10544         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
10545         New file.
10546         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
10547         New file.
10548         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
10549         multiarch modf for PowerPC32.
10550         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
10551         New file.
10552         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
10553         New file.
10554         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
10555         multiarch modff for PowerPC32.
10556
10557         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
10558         and lrintf multiarch implementations.
10559         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
10560         New file.
10561         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
10562         New file.
10563         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
10564         multiarch lrint for PowerPC32.
10565         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
10566         file: multiarch lrintf for PowerPC32.
10567
10568         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
10569         and lroundf multiarch implementations.
10570         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
10571         New file.
10572         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
10573         New file.
10574         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
10575         New file.
10576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
10577         multiarch lround for PowerPC32.
10578         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
10579         file: multiarch lroundf for PowerPC32.
10580
10581         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10582         copysign and copysignf multiarch implementations.
10583         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
10584         New file.
10585         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
10586         New file.
10587         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
10588         file: multiarch copysign for PowerPC32.
10589         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
10590         file: multiarch copysignf for PowerPC32.
10591
10592         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
10593         and truncf multiarch implementations.
10594         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
10595         New file.
10596         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
10597         file.
10598         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
10599         multiarch trunc for PowerPC32.
10600         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
10601         New file.
10602         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
10603         New file.
10604         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
10605         multiarch truncf for PowerPC32.
10606
10607         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
10608         and roundf multiarch implementations.
10609         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
10610         New file.
10611         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
10612         file.
10613         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
10614         multiarch round for PowerPC32.
10615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
10616         New file.
10617         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
10618         New file.
10619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
10620         multiarch roundf for PowerPC32.
10621
10622         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
10623         and floorf multiarch implementations.
10624         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
10625         New file.
10626         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
10627         file.
10628         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
10629         multiarch floor for PowerPC32.
10630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
10631         New file.
10632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
10633         New file.
10634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
10635         multiarch floorf for PowerPC32.
10636
10637         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
10638         and ceilf multiarch implementations.
10639         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
10640         New file.
10641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
10642         file.
10643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
10644         multiarch ceil for PowerPC32.
10645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
10646         New file.
10647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
10648         file.
10649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
10650         multiarch ceilf for PowerPC32.
10651
10652         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
10653         is defined.
10654         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
10655         FINITEF is defined.
10656         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
10657         and finitef multiarch implementations.
10658         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
10659         New file.
10660         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
10661         file.
10662         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
10663         multiarch finite for PowerPC32.
10664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
10665         New file.
10666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
10667         file: multiarch finitef for PowerPC32.
10668
10669         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
10670         and isinff multiarch implementations.
10671         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
10672         file.
10673         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
10674         file.
10675         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
10676         multiarch isinf for PowerPC32.
10677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
10678         New file.
10679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
10680         multiarch isinff for PowerPC32.
10681
10682         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
10683         alias when __isnan is defined.
10684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
10685         and isnanf multiarch implementations.
10686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
10687         file.
10688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
10689         file.
10690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
10691         file.
10692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
10693         file.
10694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
10695         multiarch isnan for PowerPC32.
10696         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
10697         New file.
10698         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
10699         New file.
10700         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
10701         multiarch isnanf for PowerPC32.
10702
10703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
10704         and sqrtf multiarch implementations.
10705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
10706         file.
10707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
10708         file.
10709         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
10710         multiarch sqrt for PowerPC32.
10711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
10712         file.
10713         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
10714         file.
10715         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
10716         multiarch sqrtf for PowerPC32.
10717
10718         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
10719         and llroundf multiarch implementations.
10720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
10721         New file.
10722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
10723         New file.
10724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
10725         New file.
10726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
10727         file: multiarch llround for PowerPC32.
10728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
10729         file: multiarch llroundf for PowerPC32.
10730
10731         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
10732         multiarch PowerPC32 fpu implementations.
10733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
10734         New file.
10735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
10736         New file.
10737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
10738         multiarch llrint for PowerPC32.
10739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
10740         New file.
10741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
10742         New file.
10743         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
10744         file.
10745
10746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
10747
10748         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
10749         file.
10750         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
10751         file.
10752         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
10753         file.
10754         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
10755         multiarch wordcopy for PPC32.
10756         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10757         wordcopy objects.
10758         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10759         (__libc_ifunc_impl_list): Likewise.
10760         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
10761         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
10762         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
10763         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
10764         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
10765         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
10766
10767         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
10768         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
10769         file.
10770         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
10771         file.
10772         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
10773         file.
10774         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
10775         multiarch wcscpy for PPC32.
10776         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10777         multiarch objects.
10778         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10779         (__libc_ifunc_impl_list): Likewise.
10780         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10781         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10782         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
10783         sysdeps/powerpc/power6/wcscpy.c.
10784
10785         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
10786         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
10787         file.
10788         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
10789         file.
10790         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
10791         file.
10792         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
10793         multiarch wcsrchr for PPC32.
10794         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10795         multiarch objects.
10796         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10797         (__libc_ifunc_impl_list): Likewise.
10798         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10799         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10800         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
10801         sysdeps/powerpc/power6/wcsrchr.c.
10802
10803         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
10804         file.
10805         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
10806         file.
10807         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
10808         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
10809         multiarch wcschr for PPc32.
10810         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10811         multiarch objects.
10812         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10813         (__libc_ifunc_impl_list): Likewise.
10814         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
10815         * sysdeps/powerpc/power6/wcschr.c: ... to here.
10816         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
10817         sysdeps/powerpc/power6/wcschr.c.
10818
10819         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
10820         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
10821         file.
10822         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
10823         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
10824         file: multiarch strchr for PPC32.
10825         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
10826         multiarch objects.
10827         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10828         (__libc_ifunc_impl_list): Likewise.
10829
10830         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
10831         name.
10832         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
10833         file.
10834         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
10835         file.
10836         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
10837         multiarch strchrnul for PPC32.
10838         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
10839         multiarch objects.
10840         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10841         (__libc_ifunc_impl_list): Likewise.
10842
10843         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
10844         file.
10845         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
10846         multiarch strncasecmp for PPC32.
10847         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
10848         file.
10849         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
10850         multiarch strncasecmp_l for PPC32.
10851         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
10852         strncasecmp multiarch objects.
10853         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10854         (__libc_ifunc_impl_list): Likewise.
10855
10856         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
10857         file.
10858         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
10859         multiarch strncasecmp for PPC32.
10860         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
10861         New file.
10862         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
10863         multiarch strcasecmp_l for PPC32.
10864         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
10865         multiarch objects.
10866         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10867         (__libc_ifunc_impl_list): Likewise.
10868
10869         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
10870         file.
10871         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
10872         file.
10873         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
10874         multiarch strncmp for PPC32.
10875         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
10876         multiarch objects.
10877         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10878         (__libc_ifunc_impl_list): Likewise.
10879
10880         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
10881         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
10882         file.
10883         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
10884         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
10885         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
10886         multiarch objects.
10887         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10888         (__libc_ifunc_impl_list): Likewise.
10889
10890         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
10891         file.
10892         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
10893         file.
10894         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
10895         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
10896         multiarch objects.
10897         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10898         (__libc_ifunc_impl_list): Likewise.
10899
10900         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
10901         file.
10902         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
10903         file.
10904         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
10905         multiarch rawmemchr for PPC32.
10906         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
10907         multiarch objects.
10908         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10909         (__libc_ifunc_impl_list): Likewise.
10910
10911         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
10912         file.
10913         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
10914         file.
10915         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
10916         file: memrchr multiarch for PPC32.
10917         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
10918         multiarch objects.
10919         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10920         (__libc_ifunc_impl_list): Likewise.
10921
10922         * string/memchr.c (__memchr): Using macro to redefine symbol name.
10923         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
10924         file.
10925         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
10926         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
10927         multiarch memchr for PPC32.
10928         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
10929         multiarch objects.
10930         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10931         (__libc_ifunc_impl_list): Likewise.
10932
10933         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
10934         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
10935         file.
10936         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
10937         file.
10938         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
10939         file: multiarch mempcpy for PPC32.
10940         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
10941         multiarch objects.
10942         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10943         (__libc_ifunc_impl_list): Likewise.
10944
10945         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
10946         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
10947         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
10948         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
10949         multiarch bzero for PPC32.
10950         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
10951         file.
10952         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
10953         file.
10954         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
10955         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
10956         file: multiarch memset for PPC32.
10957         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
10958         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
10959         memset multiarch objects.
10960         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10961         (__libc_ifunc_impl_list): Likewise.
10962
10963         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
10964         file.
10965         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
10966         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
10967         memcmp for PPC32.
10968         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
10969         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
10970         multiarch objects.
10971         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10972         (__libc_ifunc_impl_list): Likewise.
10973
10974         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
10975         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
10976         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
10977         file.
10978         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
10979         file.
10980         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
10981         file.
10982         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
10983         multiarch memcpy for PPC32.
10984         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
10985         multiarch objects.
10986         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10987         (__libc_ifunc_impl_list): Likewise.
10988
10989         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
10990         support multiarch for POWER/PPC32.
10991         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
10992         Likewise.
10993         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
10994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
10995         Implies file to make multiarch folder appers before the fpu and
10996         default folder for power4 configuration.
10997
10998 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10999
11000         * scripts/bench.pl: Append volatile keyword to type.
11001
11002 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11003
11004         * sysdeps/sh/sotruss-lib.c: New file.
11005         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
11006
11007 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11008
11009         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11010
11011 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
11012
11013         [BZ #6810]
11014         * math/w_tgamma.c: Include <errno.h>.
11015         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
11016         * math/w_tgammaf.c: Include <errno.h>.
11017         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
11018         * math/w_tgammal.c: Include <errno.h>.
11019         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
11020         * math/auto-libm-test-in: Do not allow missing errno on tgamma
11021         underflow.  Add more tgamma tests.
11022         * math/auto-libm-test-out: Regenerated.
11023         * sysdeps/i386/fpu/libm-test-ulps: Update.
11024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11025
11026         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
11027         sin, sinh, tan, tanh, tgamma, y0 and y1.
11028         * math/auto-libm-test-out: Regenerated.
11029         * math/libm-test.inc (TEST_COND_x86_64): New macro.
11030         (TEST_COND_x86): Likewise.
11031         (M_E2l): Remove macro.
11032         (M_E3l): Likewise.
11033         (M_2_SQRT_PIl): Likewise.
11034         (M_SQRT_PIl): Likewise.
11035         (M_1_DIV_El): Likewise.
11036         (log_test_data): Use AUTO_TESTS_f_f.
11037         (log10_test_data): Likewise.
11038         (log1p_test_data): Likewise.
11039         (log2_test_data): Likewise.
11040         (sin_test_data): Likewise.
11041         (sin_tonearest_test_data): Likewise.
11042         (sin_towardzero_test_data): Likewise.
11043         (sin_downward_test_data): Likewise.
11044         (sin_upward_test_data): Likewise.
11045         (sinh_test_data): Likewise.
11046         (sinh_tonearest_test_data): Likewise.
11047         (sinh_towardzero_test_data): Likewise.
11048         (sinh_downward_test_data): Likewise.
11049         (sinh_upward_test_data): Likewise.
11050         (tan_test_data): Likewise.
11051         (tan_tonearest_test_data): Likewise.
11052         (tan_towardzero_test_data): Likewise.
11053         (tan_downward_test_data): Likewise.
11054         (tan_upward_test_data): Likewise.
11055         (tanh_test_data): Likewise.
11056         (tgamma_test_data): Likewise.
11057         (y0_test_data): Likewise.
11058         (y1_test_data): Likewise.
11059         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
11060         (special_real_inputs): Add pi/4.
11061         * sysdeps/i386/fpu/libm-test-ulps: Update.
11062         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11063
11064 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11065
11066         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
11067         "longjmp_target" static probes.
11068         (__longjmp): Rename to __longjmp_symbol.
11069         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11070         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
11071         on which longjmp to generate.
11072         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11073         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
11074         probe.
11075         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11076         (__sigjmp_save): Rename to __sigjmp_save_symbol.
11077         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
11078         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
11079         and __sigjmp_save_symbol based on which sigsetjmp to generated.
11080         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
11081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
11082         __longjmp_symbol based on which __longjmp to generate.
11083         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
11084         probe.
11085         (setjmp): Rename to setjmp_symbol.
11086         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11087         (_setjmp): Rename to _setjmp_symbol.
11088         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11089         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
11090         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
11091         which setjmp to generate.
11092         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
11093         "longjmp_target" static probes.
11094
11095 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
11096
11097         * benchtests/README: Add note about output arguments.
11098         * benchtests/bench-sincos.c: Remove file.
11099         * benchtests/sincos-inputs: New file.
11100         * scripts/bench.pl: Identify output arguments and define
11101         static variables for them.
11102
11103         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
11104
11105         [BZ #15941]
11106         * Makefile (INSTALL): Add install-plain.texi as the primary
11107         dependency.
11108         * manual/install-plain.texi: New file.
11109         * manual/install.texi: Include node directive only for
11110         non-plaintext output.
11111
11112 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
11113
11114         * stdlib/longlong.h: Update from GCC.
11115
11116         [BZ #6807]
11117         [BZ #15901]
11118         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
11119         * math/w_j0f.c (y0f): Likewise.
11120         * math/w_j0l.c (__y0l): Likewise.
11121         * math/w_j1.c (y1): Likewise.
11122         * math/w_j1f.c (y1f): Likewise.
11123         * math/w_j1l.c (__y1l): Likewise
11124         * math/w_jn.c (yn): Likewise.
11125         * math/w_jnf.c (ynf): Likewise.
11126         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
11127         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
11128         value for Bessel function domain errors outside _SVID_ mode.
11129         Adjust sign of return value for yn (negative integer, 0).
11130         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
11131         by zero in return for negative x and set sign appropriately for
11132         negative n.
11133         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
11134         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11135         * math/libm-test.inc (y0_test_data): Add more tests and adjust
11136         expectations in error cases.
11137         (y1_test_data): Likewise.
11138         (yn_test_data): Likewise.
11139         * sysdeps/i386/fpu/libm-test-ulps: Update.
11140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11141
11142 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11143
11144         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
11145         "64" to "64-v1".  Add "64-v2".
11146         (abi-64-options): Rename to ...
11147         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
11148         (abi-64-condition): Rename to ...
11149         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
11150         (abi-64-ld-soname): Rename to ...
11151         (abi-64-v1-ld-soname): ... this.
11152         (abi-64-v2-options): Define.
11153         (abi-64-v2-condition): Likewise.
11154         (abi-64-v2-ld-soname): Likewise.
11155         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
11156         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
11157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
11158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
11159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
11160
11161 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11162             Alan Modra  <amodra@gmail.com>
11163
11164         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
11165         New versions for use with the ELFv2 ABI.
11166         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
11167         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
11168         declaration.
11169         (struct La_ppc64v2_retval): Likewise.
11170         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
11171         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
11172         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
11173         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
11174         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
11175         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11176         Do not save or restore CR.
11177         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
11178         (_dl_profile_resolve): Do no save or restore CR.  Support extended
11179         return values for ELFv2 ABI.  Fix location of FPR return registers.
11180         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
11181         updated values for _CALL_ELF == 2.
11182         (La_regs, La_retval, int_retval): Likewise.
11183
11184 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11185
11186         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
11187         (FRAME_MIN_SIZE_PARM): Likewise.
11188         (FRAME_BACKCHAIN): Likewise.
11189         (FRAME_CR_SAVE): Likewise.
11190         (FRAME_LR_SAVE): Likewise.
11191         (FRAME_TOC_SAVE): Likewise.
11192         (FRAME_PARM_SAVE): Likewise.
11193         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
11194         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
11195         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11196         (call_mcount_parm_offset): New macro.
11197         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
11198         (PROF): Use symbolic stack frame offsets.
11199         (TAIL_CALL_SYSCALL_ERROR): Likewise.
11200         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
11201         Redefine in terms of FRAME_MIN_SIZE.
11202         (_dl_runtime_resolve): Use symbolic stack frame offsets.
11203         (_dl_profile_resolve): Likewise.  Update comment.
11204         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
11205         symbols stack frame offsets.
11206         (__sigsetjmp): Likewise.
11207         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11208         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
11209         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
11210         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
11211
11212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
11213         (FRAME_BACKCHAIN): Remove.
11214         (FRAME_CR_SAVE): Likewise.
11215         (FRAME_LR_SAVE): Likewise.
11216         (FRAME_COMPILER_DW): Likewise.
11217         (FRAME_LINKER_DW): Likewise.
11218         (FRAME_TOC_SAVE): Likewise.
11219         (FRAME_PARM_SAVE): Likewise.
11220         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
11221         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
11222         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
11224         (CHECK_SP): Use symbolic stack frame offsets.
11225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
11226         zone" instead of caller's parameter save area for temp storage.
11227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11228         Likewise.  Also, use symbolic stack frame offsets.
11229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
11230         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
11231         our own stack frame instead of the caller's.
11232         (__socket): Use symbolic stack frame offsets.
11233
11234 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11235             Alan Modra  <amodra@gmail.com>
11236
11237         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
11238         Define.
11239         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
11240         (PPC64_LOCAL_ENTRY_OFFSET): Define.
11241         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
11242         New function.
11243         (elf_machine_fixup_plt): Call it.
11244         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
11245         reloc arguments.
11246         (elf_machine_rela): Update call to elf_machine_plt_conflict.
11247         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11248         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
11249         r2 before calling target.
11250
11251 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11252             Alan Modra  <amodra@gmail.com>
11253
11254         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
11255         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
11256         versions of macros to support ELFv2 ABI.
11257         (LOCALENTRY): New macro.
11258         (ENTRY, EALIGN): Use it.
11259         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
11260         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
11261         fall through into ENTRY entry point.
11262         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
11263         Only define if _CALL_ELF != 2.
11264
11265         (elf_machine_matches_host): Verify ABI version matches.
11266         (RTLD_START): Use LOCALENTRY.
11267         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
11268         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
11269         (PLT_ENTRY_WORDS): New macro.
11270         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
11271         (elf_machine_runtime_setup): Support ELFv2 ABI.
11272         (elf_machine_fixup_plt): Likewise.
11273         (elf_machine_plt_conflict): Likewise.
11274         (resolve_ifunc): Likewise.
11275         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
11276         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11277         Likewise.
11278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11279         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
11280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11281         (makecontext): Support ELFv2 ABI.
11282         * elf/elf.h (EF_PPC64_ABI): Define.
11283
11284 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11285
11286         * sysdeps/powerpc/powerpc64/sysdep.h
11287         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
11288         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
11289         (ENTRY) [ASSEMBLER]: ... but instead here ...
11290         (EALIGN) [ASSEMBLER]: ... and here.
11291         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
11292         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
11293         (ENTRY_2) [!ASSEMBLER]: Use it.
11294         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
11295         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
11296         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11297         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
11298         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
11299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
11300         Use PPC64_LOAD_FUNCPTR.
11301
11302         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
11303
11304 2013-12-04  Alan Modra  <amodra@gmail.com>
11305
11306         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
11307         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
11308         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
11309         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
11310
11311         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
11312         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
11313         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
11314         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
11315         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
11316         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
11317
11318 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11319
11320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11321         (__makecontext): Fix incorrect CFI when backtracing out of
11322         context created via makecontext.
11323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
11324         (__setcontext): Fix incorrect CFI during switch to new context.
11325         (__novec_setcontext): Likewise.
11326
11327 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11328
11329         [BZ #4772]
11330         * time/strptime_l.c (__strptime_internal): Allow modifiers
11331         in strptime.
11332         * time/tst-strptime.c (day_tests): Add testcase.
11333
11334 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11335
11336         * scripts/bench.pl: Skip over blank lines.
11337
11338 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
11339
11340         [BZ #926]
11341         * manual/time.texi (Calendar Time): Clarify what timezone functions
11342         use.
11343
11344 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11345
11346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11347
11348 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11349
11350         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
11351         implementation.
11352         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
11353         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
11354         * debug/memset_chk.c (__memset_chk): Likewise.
11355         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
11356         * debug/strncpy_chk.c: Likewise.
11357
11358 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11359
11360         [BZ #15268]
11361         [BZ #15425]
11362         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
11363         (__ieee754_exp): For possibly underflowing results, check size of
11364         result and force underflow exception if required.
11365         * math/auto-libm-test-in: Add more tests of exp.
11366         * math/auto-libm-test-out: Regenerated.
11367         * sysdeps/i386/fpu/libm-test-ulps: Update.
11368         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11369
11370         [BZ #16283]
11371         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
11372         * math/w_exp2f.c (__exp2f): Likewise.
11373         * math/w_exp2l.c (__exp2l): Likewise.
11374         * math/auto-libm-test-in: Do not allow missing errno on exp2
11375         underflow.
11376         * math/auto-libm-test-out: Regenerated.
11377
11378 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
11379
11380         [BZ #16274]
11381         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
11382         handle filename validation.
11383         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
11384         (do_open): Delete.
11385
11386 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11387
11388         [BZ #6786]
11389         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
11390         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
11391         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
11392         <float.h>.
11393         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
11394         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
11395         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11396         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
11397         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11398         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
11399         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11400         * math/auto-libm-test-in: Don't allow missing errno from erfc.
11401         Add more erfc tests.
11402         * math/auto-libm-test-out: Regenerated.
11403         * sysdeps/i386/fpu/libm-test-ulps: Update.
11404         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11405
11406         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
11407         exp2, expm1, j0 and j1.
11408         * math/auto-libm-test-out: Regenerated.
11409         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
11410         (erfc_test_data): Likewise.
11411         (exp_test_data): Likewise.
11412         (exp_tonearest_test_data): Likewise.
11413         (exp_towardzero_test_data): Likewise.
11414         (exp_downward_test_data): Likewise.
11415         (exp_upward_test_data): Likewise.
11416         (exp10_test_data): Likewise.
11417         (exp2_test_data): Likewise.
11418         (expm1_test_data): Likewise.
11419         (j0_test_data): Likewise.
11420         (j1_test_data): Likewise.
11421         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
11422         (input_flag_type): Add flag_xfail_rounding.
11423         (input_flags): Add xfail-rounding.
11424         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
11425         (output_for_one_input_case): Handle flag_xfail_rounding.
11426         * sysdeps/i386/fpu/libm-test-ulps: Update.
11427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11428
11429 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
11430
11431         [BZ #16289]
11432         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
11433         division by 0.
11434
11435 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11436
11437         [BZ #16195]
11438         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
11439         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
11440         (STAP_PROBE0): New macro.
11441         (STAP_PROBE1): Likewise.
11442         (STAP_PROBE2): Likewise.
11443         (STAP_PROBE3): Likewise.
11444         (STAP_PROBE4): Likewise.
11445
11446 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
11447
11448         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
11449
11450 2013-12-02  Steve Ellcey  <sellcey@mips.com>
11451
11452         * benchtests/Makefile (bench): Add sqrt.
11453         (LDLIBS-bench-sqrt): New.
11454         * benchtests/sqrt-input: New.
11455
11456 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
11457
11458         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
11459         (GAIH_EAI): Likewise.
11460         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
11461         (gaih_inet): Likewise.
11462         (getaddrinfo): Don't use GAIH_EAI.
11463
11464         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
11465         (struct gaih): Remove definition.
11466
11467 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11468
11469         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
11470         Use HERRNOP directly.
11471
11472 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11473
11474         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11475
11476 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
11477
11478         * math/gen-auto-libm-tests.c (test_functions): Add more
11479         single-argument functions.
11480         (special_fill_pi_2): New function.
11481         (special_fill_minus_pi_2): Likewise.
11482         (special_fill_pi_6): Likewise.
11483         (special_fill_minus_pi_6): Likewise.
11484         (special_fill_pi_3): Likewise.
11485         (special_fill_2pi_3): Likewise.
11486         (special_fill_e): Likewise.
11487         (special_fill_1_e): Likewise.
11488         (special_fill_e_minus_1): Likewise.
11489         (special_real_inputs): Add more special inputs.
11490         (output_for_one_input_case): Do not require ERANGE on underflow to
11491         zero if round-to-nearest result does not underflow to zero, unless
11492         exact results required.
11493         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
11494         atan, atanh, cbrt, cos and cosh.
11495         * math/auto-libm-test-out: Regenerated.
11496         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
11497         (acos_tonearest_test_data): Likewise.
11498         (acos_towardzero_test_data): Likewise.
11499         (acos_downward_test_data): Likewise.
11500         (acos_upward_test_data): Likewise.
11501         (acosh_test_data): Likewise.
11502         (asin_test_data): Likewise.
11503         (asin_tonearest_test_data): Likewise.
11504         (asin_towardzero_test_data): Likewise.
11505         (asin_upward_test_data): Likewise.
11506         (asinh_test_data): Likewise.
11507         (atan_test_data): Likewise.
11508         (atanh_test_data): Likewise.
11509         (cbrt_test_data): Likewise.
11510         (cos_test_data): Likewise.
11511         (cos_tonearest_test_data): Likewise.
11512         (cos_towardzero_test_data): Likewise.
11513         (cos_downward_test_data): Likewise.
11514         (cos_upward_test_data): Likewise.
11515         (cosh_test_data): Likewise.
11516         (cosh_tonearest_test_data): Likewise.
11517         (cosh_towardzero_test_data): Likewise.
11518         (cosh_downward_test_data): Likewise.
11519         (cosh_upward_test_data): Likewise.
11520         * sysdeps/i386/fpu/libm-test-ulps: Update.
11521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11522
11523 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
11524
11525         [BZ #6787]
11526         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
11527         * math/w_exp10f.c (__exp10f): Likewise.
11528         * math/w_exp10l.c (__exp10l): Likewise.
11529         * math/libm-test.inc (exp10_test_data): Add more tests and expect
11530         errno settings in existing tests.
11531
11532         [BZ #14032]
11533         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
11534         precision control set to double precision.
11535         * sysdeps/i386/fpu/w_sqrt.c: New file.
11536         * math/auto-libm-test-in: Add more tests.
11537         * math/auto-libm-test-out: Update.
11538
11539         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
11540         (sqrt_test_tonearest): New function.
11541         (sqrt_towardzero_test_data): New variable.
11542         (sqrt_test_towardzero): New function.
11543         (sqrt_downward_test_data): New variable.
11544         (sqrt_test_downward): New function.
11545         (sqrt_upward_test_data): New variable.
11546         (sqrt_test_upward): New function.
11547         (main): Call the new functions.
11548
11549         * math/gen-auto-libm-tests.c: New file.
11550         * math/auto-libm-test-in: Likewise.
11551         * math/auto-libm-test-out: New generated file.
11552         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
11553         variables.
11554         (%beautify): Add generated representations of zero.
11555         (top level): Set $auto_input and call parse_auto_input.
11556         (beautify): Remove trailing "f" from hex float constants.
11557         (parse_args): Handle XFAIL_TEST.
11558         (convert_condition): New function.
11559         (or_value): Likewise.
11560         (or_cond_value): Likewise.
11561         (generate_testfile): Handle AUTO_TESTS_* lines.
11562         (parse_auto_input): New function.
11563         * math/libm-test.inc (XFAIL_TEST): New macro.
11564         (ERRNO_UNCHANGED): Update value.
11565         (ERRNO_EDOM): Likewise.
11566         (ERRNO_ERANGE): Likewise.
11567         (IGNORE_RESULT): Likewise.
11568         (TEST_COND_flt_32): New macro.
11569         (TEST_COND_dbl_64): Likewise.
11570         (TEST_COND_ldbl_96_intel): Likewise.
11571         (TEST_COND_ldbl_96_m68k): Likewise.
11572         (TEST_COND_ldbl_128): Likewise.
11573         (TEST_COND_ldbl_128ibm): Likewise.
11574         (TEST_COND_long32): Likewise.
11575         (TEST_COND_long64): Likewise.
11576         (TEST_COND_before_rounding): Likewise.
11577         (TEST_COND_after_rounding): Likewise.
11578         (enable_test): Handle XFAIL_TEST flag.
11579         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
11580         with finite results.
11581         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
11582         auto-libm-test-out.
11583
11584 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11585             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11586
11587         [BZ #16214]
11588         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
11589         __tls_get_addr_internal instead of __tls_get_offset in order to
11590         avoid GOT pointer dependency.  Make rtld export
11591         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
11592         __tls_get_addr since we are a __tls_get_offset platform.
11593         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
11594         GOT pointer being set up before.
11595         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
11596
11597 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
11598
11599         * manual/math.texi (Errors in Math Functions): Document accuracy
11600         goals.
11601
11602         [BZ #15004]
11603         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
11604         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
11605         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11606         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11607         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11609         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11610         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11611         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11612         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11615         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11616         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11617         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11618         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11619
11620         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
11621         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
11622         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
11623         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
11624         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
11625         Likewise.
11626         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
11627         Likewise.
11628         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
11629         Likewise.
11630         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
11631         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11632         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
11633         atomic-feupdateenv and flt-rounds.
11634         * sysdeps/powerpc/nofpu/Versions (libc): Add
11635         __atomic_feholdexcept, __atomic_feclearexcept,
11636         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
11637         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
11638         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
11639         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
11640         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
11641         here.
11642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
11643         Update.
11644
11645         * manual/arith.texi (FP Exceptions): Document that exceptions may
11646         not be raised when matherr is used.
11647         (Math Error Reporting): Document overflow in directed rounding
11648         modes.  Document that errno may not be set when finite values are
11649         returned on overflow.  Document intent to set errno on underflow
11650         only for underflow to zero.
11651
11652         [BZ #16271]
11653         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
11654         round-to-nearest then adjust result for other rounding modes.
11655         * include/fenv.h (fegetround): Use libm_hidden_proto.
11656         * math/fegetround.c (fegetround): Use libm_hidden_def.
11657         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
11658         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
11659         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11660         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
11661         Likewise.
11662         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
11663         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11664         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
11665         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
11666
11667 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11668
11669         [BZ #16077]
11670         * nss/Versions (libnss_files): Add
11671         _nss_files_gethostbyname3_r.
11672         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
11673         New function.
11674         (HOST_DB_LOOKUP): Remove macro.
11675         (_nss_files_gethostbyname_r): Implement function without the
11676         HOST_DB_LOOKUP macro.
11677         (_nss_files_gethostbyname2_r): Likewise.
11678
11679 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
11680
11681         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
11682
11683 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
11684
11685         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
11686         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
11687         warning.
11688
11689 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11690
11691         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
11692         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
11693         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
11694         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
11695         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
11696         __fe_nomask_env_priv and attribute_hidden.
11697         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
11698         (libc_feupdateenv_test_ppc): Likewise.
11699         (libc_feresetround_ppc): Likewise.
11700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11701         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
11702         compat_symbol macro.
11703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11704         (__fe_nomask_env): Likewise.
11705         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
11706
11707 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11708
11709         * string/Makefile: Remove ifunc tests.
11710         * string/test-string.h: Define TEST_IFUNC.
11711         * string/test-bcopy-ifunc.c: Remove.
11712         * string/test-bzero-ifunc.c: Likewise.
11713         * string/test-memccpy-ifunc.c: Likewise.
11714         * string/test-memchr-ifunc.c: Likewise.
11715         * string/test-memcmp-ifunc.c: Likewise.
11716         * string/test-memcpy-ifunc.c: Likewise.
11717         * string/test-memmem-ifunc.c: Likewise.
11718         * string/test-memmove-ifunc.c: Likewise.
11719         * string/test-mempcpy-ifunc.c: Likewise.
11720         * string/test-memrchr-ifunc.c: Likewise.
11721         * string/test-memset-ifunc.c: Likewise.
11722         * string/test-rawmemchr-ifunc.c: Likewise.
11723         * string/test-stpcpy-ifunc.c: Likewise.
11724         * string/test-stpncpy-ifunc.c: Likewise.
11725         * string/test-strcasecmp-ifunc.c: Likewise.
11726         * string/test-strcasestr-ifunc.c: Likewise.
11727         * string/test-strcat-ifunc.c: Likewise.
11728         * string/test-strchr-ifunc.c: Likewise.
11729         * string/test-strchrnul-ifunc.c: Likewise.
11730         * string/test-strcmp-ifunc.c: Likewise.
11731         * string/test-strcpy-ifunc.c: Likewise.
11732         * string/test-strcspn-ifunc.c: Likewise.
11733         * string/test-strlen-ifunc.c: Likewise.
11734         * string/test-strncasecmp-ifunc.c: Likewise.
11735         * string/test-strncat-ifunc.c: Likewise.
11736         * string/test-strncmp-ifunc.c: Likewise.
11737         * string/test-strncpy-ifunc.c: Likewise.
11738         * string/test-strnlen-ifunc.c: Likewise.
11739         * string/test-strpbrk-ifunc.c: Likewise.
11740         * string/test-strrchr-ifunc.c: Likewise.
11741         * string/test-strspn-ifunc.c: Likewise.
11742         * string/test-strstr-ifunc.c: Likewise.
11743
11744 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11745
11746         * benchtests/Makefile: Remove ifunc tests.
11747         * benchtests/bench-string.h: Define TEST_IFUNC.
11748         * benchtests/bench-bcopy-ifunc.c: Remove.
11749         * benchtests/bench-bzero-ifunc.c: Likewise.
11750         * benchtests/bench-memccpy-ifunc.c: Likewise.
11751         * benchtests/bench-memchr-ifunc.c: Likewise.
11752         * benchtests/bench-memcmp-ifunc.c: Likewise.
11753         * benchtests/bench-memcpy-ifunc.c: Likewise.
11754         * benchtests/bench-memmem-ifunc.c: Likewise.
11755         * benchtests/bench-memmove-ifunc.c: Likewise.
11756         * benchtests/bench-mempcpy-ifunc.c: Likewise.
11757         * benchtests/bench-memrchr-ifunc.c: Likewise.
11758         * benchtests/bench-memset-ifunc.c: Likewise.
11759         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
11760         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
11761         * benchtests/bench-stpcpy-ifunc.c: Likewise.
11762         * benchtests/bench-stpncpy-ifunc.c: Likewise.
11763         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
11764         * benchtests/bench-strcasestr-ifunc.c: Likewise.
11765         * benchtests/bench-strcat-ifunc.c: Likewise.
11766         * benchtests/bench-strchr-ifunc.c: Likewise.
11767         * benchtests/bench-strchrnul-ifunc.c: Likewise.
11768         * benchtests/bench-strcmp-ifunc.c: Likewise.
11769         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
11770         * benchtests/bench-strcpy-ifunc.c: Likewise.
11771         * benchtests/bench-strcspn-ifunc.c: Likewise.
11772         * benchtests/bench-strlen-ifunc.c: Likewise.
11773         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
11774         * benchtests/bench-strncat-ifunc.c: Likewise.
11775         * benchtests/bench-strncmp-ifunc.c: Likewise.
11776         * benchtests/bench-strncpy-ifunc.c: Likewise.
11777         * benchtests/bench-strnlen-ifunc.c: Likewise.
11778         * benchtests/bench-strpbrk-ifunc.c: Likewise.
11779         * benchtests/bench-strrchr-ifunc.c: Likewise.
11780         * benchtests/bench-strsep-ifunc.c: Likewise.
11781         * benchtests/bench-strspn-ifunc.c: Likewise.
11782         * benchtests/bench-strstr-ifunc.c: Likewise.
11783
11784 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11785
11786         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
11787
11788 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11789
11790         * resolv/netdb.h: Use __glibc_reserved instead __unused.
11791         * rt/aio.h: Likewise.
11792         * sysdeps/gnu/bits/utmp.h: Likewise.
11793         * sysdeps/gnu/bits/utmpx.h: Likewise.
11794         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11795         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
11796         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
11797         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
11798         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11799         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11800         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
11801         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
11802         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
11803         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11804         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11805         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11806         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
11808         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
11809         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
11810         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11811         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11812         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11813         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11814         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
11815         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
11816         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
11817         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11818         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11819         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11820         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
11821         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11822         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11823         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11824         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11825         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
11826         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
11827         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
11828         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11829         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
11830         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11831         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11832         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11833         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
11834         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
11835         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
11836
11837 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
11838
11839         [BZ #16245]
11840         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
11841         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
11842
11843 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
11844
11845         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
11846         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
11847         Likewise.
11848
11849 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11850
11851         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
11852         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
11853         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
11854         (__fesetround): Remove define.
11855         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
11856         rounding and exceptions handling.
11857         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
11858         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
11859         (__fe_nomask_env): Likewise.
11860         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
11861         __fegetround instead of fegetround.
11862         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
11863         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
11864
11865 2013-11-21  Roland McGrath  <roland@hack.frob.com>
11866
11867         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
11868         it's there.
11869
11870         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
11871
11872 2013-11-21  Meador Inge  <meadori@codesourcery.com>
11873
11874         [BZ #11157]
11875         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
11876         (encrypt_r): Likewise.
11877         * malloc/obstack.h (obstack_free): Likewise.
11878         * posix/unistd.h (encrypt): Likewise.
11879
11880 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
11881
11882         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
11883         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
11884         DL_CALL_DT_FINI() that call the functions directly.
11885         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
11886         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
11887         * elf/dl-fini.c: Likewise.
11888
11889 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
11890
11891         * malloc/hooks.c (memalign_check): Add alignment rounding.
11892         * malloc/malloc.c (_mid_memalign): New function.
11893         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
11894         Implement by calling _mid_memalign.
11895         * manual/probes.texi (Memory Allocation Probes): Remove
11896         memory_valloc_retry and memory_pvalloc_retry.
11897
11898 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11899
11900         * locale/programs/locarchive.c (open_archive): Add const
11901         qualifier to ARCHIVEFNAME and copy default fname to
11902         DEFAULT_FNAME.
11903
11904         [BZ #15601]
11905         * libio/tst-widetext.input: Rename Oriya to Odia.
11906         * locale/iso-639.def: Likewise.
11907
11908         * manual/probes.texi (Mathematical Function Probes): Add
11909         documentation for sin, cos, asin and acos probes.
11910         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
11911         (__sin32): Add slowasin probe.
11912         (__cos32): Add slowacos probe.
11913         (__mpsin): Add slowsin probe.
11914         (__mpcos): Add slowcos probe.
11915
11916 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
11917
11918         [BZ #15483]
11919         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
11920         thread-local __sim_exceptions_thread and global
11921         __sim_exceptions_global.
11922         (__sim_disabled_exceptions): Change to thread-local
11923         __sim_disabled_exceptions_thread and global
11924         __sim_disabled_exceptions_global.
11925         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11926         and global __sim_round_mode_global.
11927         (__simulate_exceptions): Use thread-local floating-point state and
11928         set global state from it as needed.
11929         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
11930         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
11931         __sim_round_mode_thread.
11932         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
11933         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
11934         and global __sim_exceptions_global.
11935         (__sim_disabled_exceptions): Change to thread-local
11936         __sim_disabled_exceptions_thread and global
11937         __sim_disabled_exceptions_global.
11938         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11939         and global __sim_round_mode_global.
11940         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
11941         (SIM_SET_GLOBAL): Likewise.
11942         * sysdeps/powerpc/soft-fp/sfp-machine.h
11943         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
11944         __sim_round_mode_thread.
11945         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
11946         __sim_disabled_exceptions_thread.
11947         (__sim_exceptions): Change to __sim_exceptions_thread.
11948         (__sim_disabled_exceptions): Change to
11949         __sim_disabled_exceptions_thread.
11950         (__sim_round_mode): Change to __sim_round_mode_thread.
11951         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
11952         thread-local floating-point state and set global state from it as
11953         needed.
11954         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
11955         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
11956         (__sim_disabled_exceptions): Remove extern declaration.
11957         (feenableexcept): Use thread-local floating-point state and set
11958         global state from it as needed.
11959         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
11960         extern declaration.
11961         (__sim_disabled_exceptions): Likewise.
11962         (__sim_round_mode): Likewise.
11963         (__fegetenv): Use thread-local floating-point state.
11964         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
11965         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11966         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
11967         floating-point state and set global state from it as needed.
11968         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
11969         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
11970         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
11971         Likewise.
11972         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
11973         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
11974         Likewise.
11975         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
11976         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
11977         Use __sim_round_mode_thread.
11978         * math/test-fenv-tls.c: New file.
11979         * math/Makefile (tests): Add test-fenv-tls.
11980         ($(objpfx)test-fenv-tls): Depend on
11981         $(common-objpfx)nptl/libpthread.so.
11982
11983 2013-11-19  Andreas Schwab  <schwab@suse.de>
11984
11985         * locale/programs/locale.c (show_info): Decode wordarray elements.
11986         * locale/categories.def (LC_MONETARY): Add element for
11987         _NL_MONETARY_CRNCYSTR.
11988         * locale/C-monetary.c (conversion_rate): New variable.
11989         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
11990         element.
11991
11992 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
11993
11994         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
11995         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
11996
11997 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11998
11999         * elf/Makefile (tst-auxv): New test.
12000         * elf/tst-auxv.c: New
12001         * elf/rtld.c (dl_main): Adjust AT_EXECFN
12002
12003 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
12004
12005         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
12006         (hidden_proto): Caller changed.
12007         (hidden_tls_proto): New macro.
12008         (libc_hidden_tls_proto): Likewise.
12009         (rtld_hidden_tls_proto): Likewise.
12010         (libm_hidden_tls_proto): Likewise.
12011         (libresolv_hidden_tls_proto): Likewise.
12012         (librt_hidden_tls_proto): Likewise.
12013         (libdl_hidden_tls_proto): Likewise.
12014         (libnss_files_hidden_tls_proto): Likewise.
12015         (libnsl_hidden_tls_proto): Likewise.
12016         (libnss_nisplus_hidden_tls_proto): Likewise.
12017         (libutil_hidden_tls_proto): Likewise.
12018
12019 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
12020
12021         [BZ #10253]
12022         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
12023         (decompose_rpath): Defer expansion to fillin_rpath.
12024         (_dl_init_paths): Pass linkmap to fillin_rpath.
12025
12026 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12027
12028         * benchtests/Makefile: Add strsep.
12029         * benchtests/bench-strsep.c: New file: strsep benchtest.
12030         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
12031
12032 2013-11-18  Andreas Schwab  <schwab@suse.de>
12033
12034         * locale/programs/locale.c (show_info) [case byte]: Check for
12035         '\377' instead of '\177'.
12036         * locale/C-monetary.c (not_available): Always use "\377".
12037         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
12038         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
12039         detect unavailable sign_posn locale elements.
12040         * locale/localeconv.c (__localeconv): For grouping and
12041         mon_grouping handle "\177" and "\377" like no grouping.
12042         (INT_ELEM): New macro.  Use it to set all numeric members.
12043         * locale/programs/ld-monetary.c (monetary_read)
12044         <tok_mon_grouping>: Normalize single -1 to the empty string.
12045         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
12046         Likewise.
12047
12048 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12049
12050         [BZ #16055]
12051         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
12052         when we match (nil).
12053         * stdio-common/tst-sscanf.c (struct test): Add testcase.
12054
12055 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
12056
12057         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
12058         (NO_TEST_INLINE): Update value.
12059         (ERRNO_UNCHANGED): Likewise.
12060         (ERRNO_EDOM): Likewise.
12061         (ERRNO_ERANGE): Likewise.
12062         (IGNORE_RESULT): Likewise.
12063         (check_float_internal): Check signs of NaN results if
12064         TEST_NAN_SIGN used.
12065         (check_complex): Pass TEST_NAN_SIGN flag through to second
12066         check_float_internal call.
12067         (copysign_test_data): Add tests with quiet NaNs as second
12068         argument.  Use TEST_NAN_SIGN.
12069         (fabs_test_data): Add test of negative quiet NaN argument.  Use
12070         TEST_NAN_SIGN.
12071         (signbit_test_data): Add tests of quiet NaN argument.
12072         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
12073
12074         * math/gen-libm-test.pl (show_exceptions): Take extra argument
12075         $ignore_result.
12076         (parse_args): Handle function results specified as IGNORE.
12077         * math/libm-test.inc (IGNORE_RESULT): New macro.
12078         (check_float_internal): Do not check numerical result if flag
12079         IGNORE_RESULT set.
12080         (check_complex): Pass through IGNORE_RESULT to second
12081         check_float_internal call.
12082         (check_int): Do not check numerical result if flag IGNORE_RESULT
12083         set.
12084         (check_long): Likewise.
12085         (check_bool): Likewise.
12086         (check_longlong): Likewise.
12087         (lrint_test_data): Add tests of infinite and NaN arguments.
12088         (lrint_tonearest_test_data): Likewise.
12089         (lrint_towardzero_test_data): Likewise.
12090         (lrint_downward_test_data): Likewise.
12091         (lrint_upward_test_data): Likewise.
12092         (llrint_test_data): Likewise.
12093         (llrint_tonearest_test_data): Likewise.
12094         (llrint_towardzero_test_data): Likewise.
12095         (llrint_downward_test_data): Likewise.
12096         (llrint_upward_test_data): Likewise.
12097         (lround_test_data): Likewise.
12098         (llround_test_data): Likewise.
12099
12100         * math/libm-test.inc (NO_TEST_INLINE): New macro.
12101         (ERRNO_UNCHANGED): Update value.
12102         (ERRNO_EDOM): Likewise.
12103         (ERRNO_ERANGE): Likewise.
12104         (NO_TEST_INLINE_FLOAT): New macro.
12105         (NO_TEST_INLINE_DOUBLE): Likewise.
12106         (enable_test): New function.
12107         (RUN_TEST_f_f): Check enable_test before running test.
12108         (RUN_TEST_2_f): Likewise.
12109         (RUN_TEST_fff_f): Likewise.
12110         (RUN_TEST_c_f): Likewise.
12111         (RUN_TEST_f_f1): Likewise.
12112         (RUN_TEST_fF_f1): Likewise.
12113         (RUN_TEST_fI_f1): Likewise.
12114         (RUN_TEST_ffI_f1): Likewise.
12115         (RUN_TEST_c_c): Likewise.
12116         (RUN_TEST_cc_c): Likewise.
12117         (RUN_TEST_f_i): Likewise.
12118         (RUN_TEST_f_i_tg): Likewise.
12119         (RUN_TEST_ff_i_tg): Likewise.
12120         (RUN_TEST_f_b): Likewise.
12121         (RUN_TEST_f_b_tg): Likewise.
12122         (RUN_TEST_f_l): Likewise.
12123         (RUN_TEST_f_L): Likewise.
12124         (RUN_TEST_fFF_11): Likewise.
12125         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
12126         conditionals.
12127         (cosh_test_data): Likewise.
12128         (exp_test_data): Likewise.
12129         (expm1_test_data): Likewise.
12130         (hypot_test_data): Likewise.
12131         (pow_test_data): Likewise.
12132         (sinh_test_data): Likewise.
12133         (tanh_test_data): Likewise.
12134         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
12135         flags argument.
12136
12137         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
12138         tests with quiet NaN input and output.
12139         (acosh_test_data): Likewise.
12140         (asin_test_data): Likewise.
12141         (asinh_test_data): Likewise.
12142         (atan_test_data): Likewise.
12143         (atanh_test_data): Likewise.
12144         (atan2_test_data): Likewise.
12145         (cbrt_test_data): Likewise.
12146         (cos_test_data): Likewise.
12147         (cosh_test_data): Likewise.
12148         (erf_test_data): Likewise.
12149         (erfc_test_data): Likewise.
12150         (exp_test_data): Likewise.
12151         (exp10_test_data): Likewise.
12152         (exp2_test_data): Likewise.
12153         (expm1_test_data): Likewise.
12154         (hypot_test_data): Likewise.
12155         (j0_test_data): Likewise.
12156         (j1_test_data): Likewise.
12157         (jn_test_data): Likewise.
12158         (lgamma_test_data): Likewise.
12159         (log_test_data): Likewise.
12160         (log10_test_data): Likewise.
12161         (log1p_test_data): Likewise.
12162         (log2_test_data): Likewise.
12163         (pow_test_data): Likewise.
12164         (scalb_test_data): Likewise.
12165         (sin_test_data): Likewise.
12166         (sincos_test_data): Likewise.
12167         (sinh_test_data): Likewise.
12168         (tan_test_data): Likewise.
12169         (tanh_test_data): Likewise.
12170         (tgamma_test_data): Likewise.
12171         (y0_test_data): Likewise.
12172         (y1_test_data): Likewise.
12173         (yn_test_data): Likewise.
12174
12175         [BZ #16167]
12176         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
12177         argument being NaN and avoid computations with second argument in
12178         that case.
12179         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
12180         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12181         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12182
12183 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
12184
12185         * locale/iso-639.def: Add Chitwani Tharu (the).
12186
12187 2013-11-14  Andreas Schwab  <schwab@suse.de>
12188
12189         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
12190         word instead of empty string.
12191
12192 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12193
12194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12195         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
12196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12197         (__fe_nomask_env): Likewise.
12198
12199 2013-11-13  Steve Ellcey  <sellcey@mips.com>
12200
12201         * benchtests/bench-timing.h: Include time.h.
12202
12203 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
12204
12205         [BZ #15997]
12206         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
12207         to 3.4.0 for x32.
12208         * sysdeps/unix/sysv/linux/configure: Regenerated.
12209
12210 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
12211
12212         [BZ #16151]
12213         * stdlib/strtod_l.c (round_and_return): Do not consider
12214         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
12215         exponent one less than half the least subnormal exponent.
12216         * stdlib/test-strtod-round-data: Add more tests.
12217         * stdlib/tst-strtod-round.c (tests): Regenerated.
12218
12219 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12220
12221         [BZ #14143]
12222         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
12223         (__fe_mask_env): Likewise.
12224         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
12225         libm_hidden_proto and add function prototype.
12226         (__fe_mask_env): Add function prototype.
12227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12228         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
12229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12230         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
12231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12232         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
12233
12234 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12235
12236         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
12237         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
12238
12239 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12240
12241         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
12242         of htab_find_slot().
12243
12244 2013-11-11  David S. Miller  <davem@davemloft.net>
12245
12246         [BZ #16150]
12247         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
12248         symbol in the non-vis3 case in static builds.
12249         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
12250         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
12251         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
12252         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
12253
12254 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12255
12256         [BZ #387]
12257         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
12258         it is empty.
12259
12260 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12261
12262         * benchtests/Makefile: Add bench-strtod.
12263         * benchtests/bench-strtod.c: New file: strtod benchtest
12264
12265 2013-11-11  Andreas Schwab  <schwab@suse.de>
12266
12267         [BZ #16153]
12268         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
12269         terminating NUL in key length.
12270
12271 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12272
12273         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
12274         Add artificial ODP entry for vDSO symbol for PPC64.
12275         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
12276         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
12277
12278 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12279
12280         [BZ #15374]
12281         * nss/getent.c (services_keys): Recognize services starting with digit.
12282
12283 2013-11-06  David S. Miller  <davem@davemloft.net>
12284
12285         [BZ #15985]
12286         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
12287         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
12288
12289 2013-11-06  Will Newton  <will.newton@linaro.org>
12290
12291         * manual/memory.texi (Malloc Examples): Remove register
12292         keyword from examples.
12293
12294 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
12295
12296         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
12297
12298 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
12299
12300         [BZ #6981]
12301         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
12302         depending on [__GCC_IEC_559 > 0].
12303         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
12304         depending on [__GCC_IEC_559_COMPLEX > 0].
12305
12306 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
12307
12308         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
12309         to iso-639.def.
12310
12311 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
12312
12313         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
12314
12315 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
12316
12317         [BZ #16112]
12318         * malloc/malloc (malloc_info): Do not handle first bin as
12319         special case.
12320
12321 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
12322
12323         * locale/iso-639.def: Add Central Nahuatl (nhn).
12324
12325 2013-11-01  Bruno Haible  <bruno@clisp.org>
12326
12327         [BZ #7003]
12328         * manual/math.texi (BSD Random): Specify range upper bound as
12329         in POSIX.
12330
12331 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
12332
12333         * locale/iso-639.def: Add Meadow Mari (mhr).
12334
12335 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
12336
12337         [BZ #14752], [BZ #15763]
12338         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
12339         Validate name.
12340         * rt/tst_shm.c: Add test for escaping directory.
12341
12342 2013-10-31  Andreas Schwab  <schwab@suse.de>
12343
12344         [BZ #15917]
12345         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
12346         followed by 'x' as part of digit sequence.
12347         * stdio-common/tst-sscanf.c (double_tests2): New tests.
12348
12349 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
12350
12351         [BZ #16037]
12352         * configure.ac: allow GNU Make 4.0 and greater.
12353         * configure: Regenerated.
12354
12355 2013-10-30  Will Newton  <will.newton@linaro.org>
12356
12357         [BZ #16038]
12358         * malloc/hooks.c (memalign_check): Limit alignment to the
12359         maximum representable power of two.
12360         * malloc/malloc.c (__libc_memalign): Likewise.
12361         * malloc/tst-memalign.c (do_test): Add test for very
12362         large alignment values.
12363         * malloc/tst-posix_memalign.c (do_test): Likewise.
12364
12365 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12366
12367         [BZ #11087]
12368         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
12369         (munmap_chunk): Likewise.
12370         (mremap_chunk): Likewise.
12371
12372 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12373
12374         [BZ #15799]
12375         * stdlib/div.c (div): Remove obsolete code.
12376         * stdlib/ldiv.c (ldiv): Likewise.
12377         * stdlib/lldiv.c (lldiv): Likewise.
12378
12379 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
12380
12381         [BZ #16071]
12382         * nss/nss_files/files-XXX.c (get_contents_ret): New
12383         enumerator.
12384         (get_contents): New function.
12385         (internal_getent): Use it.  Expand size of LINEBUFLEN.
12386
12387 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
12388
12389         * configure.in: Moved to ...
12390         * configure.ac: ... here. Change reference to configure.in
12391         to configure.ac.
12392         * sysdeps/arm/preconfigure.ac: ... here.
12393         configure.in to configure.ac.
12394         * sysdeps/gnu/configure.in: Moved to ...
12395         * sysdeps/gnu/configure.ac: ... here.
12396         * sysdeps/i386/configure.in: Moved to ...
12397         * sysdeps/i386/configure.ac: ... here.
12398         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
12399         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
12400         * sysdeps/mach/configure.in: Moved to ...
12401         * sysdeps/mach/configure.ac: ... here.
12402         * sysdeps/mach/hurd/configure.in: Moved to ...
12403         * sysdeps/mach/hurd/configure.ac: ... here.
12404         * sysdeps/powerpc/configure.in: Moved to ...
12405         * sysdeps/powerpc/configure.ac: ... here.
12406         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
12407         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
12408         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
12409         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
12410         * sysdeps/s390/s390-32/configure.in: Moved to ...
12411         * sysdeps/s390/s390-32/configure.ac: ... here.
12412         * sysdeps/s390/s390-64/configure.in: Moved to ...
12413         * sysdeps/s390/s390-64/configure.ac: ... here.
12414         * sysdeps/sh/configure.in: Moved to ...
12415         * sysdeps/sh/configure.ac: ... here.
12416         * sysdeps/sparc/configure.in: Moved to ...
12417         * sysdeps/sparc/configure.ac: ... here.
12418         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
12419         * sysdeps/unix/sysv/linux/configure.ac: ... here.
12420         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
12421         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
12422         * sysdeps/x86_64/configure.in: Moved to ...
12423         * sysdeps/x86_64/configure.ac: ... here.
12424         * sysdeps/x86_64/preconfigure.in: Moved to ...
12425         * sysdeps/x86_64/preconfigure.ac: ... here.
12426         * aclocal.m4: Change reference to configure.in to configure.ac.
12427         * config.h.in: Likewise.
12428         * manual/install.texi: Likewise.
12429         * manual/maint.texi: Likewise.
12430         * Makefile: Likewise.
12431         * malloc/Makefile: Likewise.
12432         * nscd/Makefile: Likewise.
12433         * Makeconfig: Change reference to configure.in and
12434         preconfigure.in to configure.ac and preconfigure.ac
12435         respectively.
12436         * INSTALL: Regenerated.
12437         * configure: Likewise.
12438         * sysdeps/gnu/configure: Likewise.
12439         * sysdeps/i386/configure: Likewise.
12440         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
12441         * sysdeps/mach/configure: Likewise.
12442         * sysdeps/mach/hurd/configure: Likewise.
12443         * sysdeps/powerpc/configure: Likewise.
12444         * sysdeps/powerpc/powerpc32/configure: Likewise.
12445         * sysdeps/powerpc/powerpc64/configure: Likewise.
12446         * sysdeps/s390/s390-32/configure: Likewise.
12447         * sysdeps/s390/s390-64/configure: Likewise.
12448         * sysdeps/sh/configure: Likewise.
12449         * sysdeps/sparc/configure: Likewise.
12450         * sysdeps/unix/sysv/linux/configure: Likewise.
12451         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
12452         * sysdeps/x86_64/configure: Likewise.
12453         * sysdeps/x86_64/preconfigure: Likewise.
12454
12455 2013-10-29  Andreas Schwab  <schwab@suse.de>
12456
12457         * stdio-common/Makefile (tst-swscanf-ENV): Define.
12458
12459 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12460
12461         * benchtests/pow-inputs: Add new inputs.
12462
12463         * benchtests/exp-inputs: Add new inputs.
12464
12465         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
12466         conditional check for return value.
12467         (__cos32): Likewise.
12468
12469 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12470
12471         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
12472         to provide a boost for large inputs with word alignment.
12473         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
12474         implementation based on optimized PPC64 strcpy.
12475         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
12476         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
12477         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
12478         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
12479
12480 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12481
12482         [BZ #2801]
12483         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
12484
12485 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12486
12487         [BZ #14876]
12488         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
12489         * time/tst-strptime.c (day_tests): Add testcase.
12490
12491 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12492
12493         [BZ #14029]
12494         * manual/pattern.texi: Acknowledge that fnmatch can fail.
12495
12496 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
12497
12498         [BZ #16074]
12499         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
12500         MAP_FAILED on error.
12501
12502 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12503
12504         [BZ #16072]
12505         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
12506         heap for large requests.
12507
12508 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
12509
12510         [BZ #9954]
12511         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
12512         result if the result has no associated interface.
12513         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
12514         interface for all 127.X.Y.Z addresses.
12515
12516 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
12517
12518         * locale/iso-639.def: Add Ligurian (lij)
12519
12520 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
12521
12522         [BZ #15825]
12523         * sunrpc/rpc_main.c: Document rpcgen -5.
12524
12525 2013-10-19  Michael Stahl  <mstahl@redhat.com>
12526
12527         * elf/rtld.c (do_preload): Print the reason why preloading failed.
12528
12529 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12530
12531         [BZ #10278]
12532         * posix/glob.c: Match only directories when trailing slash is present.
12533         * posix/tst-gnuglob.c (my_opendir): Do not open files.
12534         (main): Add testcase.
12535
12536 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12537
12538         [BZ #15670]
12539         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
12540
12541 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
12542
12543         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
12544         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
12545         AUTH_DES and cindex for FIPS 140-2.
12546         (DES Encryption): Add cindex FIPS 46-3.
12547
12548         * locale/locarchive.h (struct locarhandle): Add fname.
12549         * locale/programs/localedef.c (main): Pass ARGV[remaining]
12550         if an optional argument was specified to --list-archive,
12551         otherwise NULL.
12552         * locale/programs/locarchive.c (show_archive_content): Take new
12553         argument fname and pass it via ah.fname to open_archive.
12554         * locale/programs/localedef.h: Update decl.
12555         (open_archive): If AH->fname is non-null, open that file
12556         rather than the default file name, and don't ignore ENOENT.
12557         (create_archive): Set AH.fname to NULL.
12558         (delete_locales_from_archive): Likewise.
12559         (add_locales_to_archive): Likewise.
12560         * locale/programs/locfile.c (write_all_categories): Likewise.
12561
12562 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
12563             Aldy Hernandez  <aldyh@redhat.com>
12564
12565         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
12566         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
12567         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
12568         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
12569         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
12570         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
12571         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
12572         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
12573         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
12574         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
12575         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
12576         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
12577         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
12578         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
12579         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
12580         Likewise.
12581         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
12582         Likewise.
12583         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
12584         Likewise.
12585         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
12586         Likewise.
12587         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
12588         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
12589         Likewise.
12590         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
12591         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
12592         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
12593         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
12594         Likewise.
12595         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
12596         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
12597         * sysdeps/powerpc/preconfigure: Likewise.
12598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12599         Likewise.
12600         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
12601         Replace contents of file by #include of <fenv_libc.h>.
12602         * sysdeps/powerpc/soft-fp/sfp-machine.h
12603         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
12604         and <sys/prctl.h>.
12605         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
12606         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
12607         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
12608         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
12609         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
12610         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
12611         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
12612         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
12613         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
12614         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
12615         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
12616         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
12617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
12618         Allow copysignl PLT reference to be missing.
12619
12620 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
12621             Joseph Myers  <joseph@codesourcery.com
12622
12623         [BZ #15948]
12624         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
12625         single character.
12626         (add_to_tablewc): Assert sequence of wide characters is nonempty.
12627
12628 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12629
12630         * elf/tst-tls-dlinfo.c: Don't include tls.h.
12631         * elf/tst-tls1.c: Likewise.
12632         * elf/tst-tls10.h: Likewise.
12633         * elf/tst-tls14.c: Likewise.
12634         * elf/tst-tls2.c: Likewise.
12635         * elf/tst-tls3.c: Likewise.
12636         * elf/tst-tls4.c: Likewise.
12637         * elf/tst-tls5.c: Likewise.
12638         * elf/tst-tls6.c: Likewise.
12639         * elf/tst-tls7.c: Likewise.
12640         * elf/tst-tls8.c: Likewise.
12641         * elf/tst-tls9.c: Likewise.
12642         * elf/tst-tlsmod1.c: Likewise.
12643         * elf/tst-tlsmod13.c: Likewise.
12644         * elf/tst-tlsmod13a.c: Likewise.
12645         * elf/tst-tlsmod14a.c: Likewise.
12646         * elf/tst-tlsmod16a.c: Likewise.
12647         * elf/tst-tlsmod16b.c: Likewise.
12648         * elf/tst-tlsmod2.c: Likewise.
12649         * elf/tst-tlsmod3.c: Likewise.
12650         * elf/tst-tlsmod4.c: Likewise.
12651         * elf/tst-tlsmod5.c: Likewise.
12652         * elf/tst-tlsmod6.c: Likewise.
12653
12654 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
12655
12656         [BZ #12486]
12657         * malloc/malloc.c: remove checks for statistics.
12658
12659 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12660
12661         [BZ #15277]
12662         * inet/inet_net.c (inet_network): Detect additional invalid strings.
12663         * inet/tst-network.c: Add testcase.
12664
12665 2013-10-17  Andreas Schwab  <schwab@suse.de>
12666
12667         [BZ #15218]
12668         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
12669         to determine canonical name.
12670
12671 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12672
12673         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
12674         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
12675         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12676         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12677         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12678         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12679         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12680         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12681         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12682         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12683         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12684         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12685         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12686         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12687         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12688         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12689         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12690         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12691         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12692         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12693         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12694         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12695         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12696         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
12697         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
12698         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12699         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12700         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
12701         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12702         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
12703         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12704         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12705         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12706         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12707         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12708         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12709         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12710         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12711         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12712         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12713         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12714         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12715         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12716         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12717         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12718         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12719         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12720         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12721         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12722         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12723         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12724         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12725         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12726         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12727         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12728         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12729         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12730         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12731
12732 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
12733
12734         [BZ #16041]
12735         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
12736         make result into a quiet NaN.
12737
12738 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
12739
12740         * soft-fp/adddf3.c: Fix horizontal whitespace.
12741         * soft-fp/addsf3.c: Likewise.
12742         * soft-fp/addtf3.c: Likewise.
12743         * soft-fp/divdf3.c: Likewise.
12744         * soft-fp/divsf3.c: Likewise.
12745         * soft-fp/divtf3.c: Likewise.
12746         * soft-fp/double.h: Likewise.
12747         * soft-fp/eqdf2.c: Likewise.
12748         * soft-fp/eqsf2.c: Likewise.
12749         * soft-fp/eqtf2.c: Likewise.
12750         * soft-fp/extenddftf2.c: Likewise.
12751         * soft-fp/extended.h: Likewise.
12752         * soft-fp/extendsfdf2.c: Likewise.
12753         * soft-fp/extendsftf2.c: Likewise.
12754         * soft-fp/extendxftf2.c: Likewise.
12755         * soft-fp/fixdfdi.c: Likewise.
12756         * soft-fp/fixdfsi.c: Likewise.
12757         * soft-fp/fixdfti.c: Likewise.
12758         * soft-fp/fixsfdi.c: Likewise.
12759         * soft-fp/fixsfsi.c: Likewise.
12760         * soft-fp/fixsfti.c: Likewise.
12761         * soft-fp/fixtfdi.c: Likewise.
12762         * soft-fp/fixtfsi.c: Likewise.
12763         * soft-fp/fixtfti.c: Likewise.
12764         * soft-fp/fixunsdfdi.c: Likewise.
12765         * soft-fp/fixunsdfsi.c: Likewise.
12766         * soft-fp/fixunsdfti.c: Likewise.
12767         * soft-fp/fixunssfdi.c: Likewise.
12768         * soft-fp/fixunssfsi.c: Likewise.
12769         * soft-fp/fixunssfti.c: Likewise.
12770         * soft-fp/fixunstfdi.c: Likewise.
12771         * soft-fp/fixunstfsi.c: Likewise.
12772         * soft-fp/fixunstfti.c: Likewise.
12773         * soft-fp/floatdidf.c: Likewise.
12774         * soft-fp/floatdisf.c: Likewise.
12775         * soft-fp/floatditf.c: Likewise.
12776         * soft-fp/floatsidf.c: Likewise.
12777         * soft-fp/floatsisf.c: Likewise.
12778         * soft-fp/floatsitf.c: Likewise.
12779         * soft-fp/floattidf.c: Likewise.
12780         * soft-fp/floattisf.c: Likewise.
12781         * soft-fp/floattitf.c: Likewise.
12782         * soft-fp/floatundidf.c: Likewise.
12783         * soft-fp/floatundisf.c: Likewise.
12784         * soft-fp/floatunditf.c: Likewise.
12785         * soft-fp/floatunsidf.c: Likewise.
12786         * soft-fp/floatunsisf.c: Likewise.
12787         * soft-fp/floatunsitf.c: Likewise.
12788         * soft-fp/floatuntidf.c: Likewise.
12789         * soft-fp/floatuntisf.c: Likewise.
12790         * soft-fp/floatuntitf.c: Likewise.
12791         * soft-fp/fmadf4.c: Likewise.
12792         * soft-fp/fmasf4.c: Likewise.
12793         * soft-fp/fmatf4.c: Likewise.
12794         * soft-fp/gedf2.c: Likewise.
12795         * soft-fp/gesf2.c: Likewise.
12796         * soft-fp/getf2.c: Likewise.
12797         * soft-fp/ledf2.c: Likewise.
12798         * soft-fp/lesf2.c: Likewise.
12799         * soft-fp/letf2.c: Likewise.
12800         * soft-fp/muldf3.c: Likewise.
12801         * soft-fp/mulsf3.c: Likewise.
12802         * soft-fp/multf3.c: Likewise.
12803         * soft-fp/negdf2.c: Likewise.
12804         * soft-fp/negsf2.c: Likewise.
12805         * soft-fp/negtf2.c: Likewise.
12806         * soft-fp/op-1.h: Likewise.
12807         * soft-fp/op-2.h: Likewise.
12808         * soft-fp/op-4.h: Likewise.
12809         * soft-fp/op-8.h: Likewise.
12810         * soft-fp/op-common.h: Likewise.
12811         * soft-fp/quad.h: Likewise.
12812         * soft-fp/single.h: Likewise.
12813         * soft-fp/soft-fp.h: Likewise.
12814         * soft-fp/sqrtdf2.c: Likewise.
12815         * soft-fp/sqrtsf2.c: Likewise.
12816         * soft-fp/sqrttf2.c: Likewise.
12817         * soft-fp/subdf3.c: Likewise.
12818         * soft-fp/subsf3.c: Likewise.
12819         * soft-fp/subtf3.c: Likewise.
12820         * soft-fp/truncdfsf2.c: Likewise.
12821         * soft-fp/trunctfdf2.c: Likewise.
12822         * soft-fp/trunctfsf2.c: Likewise.
12823         * soft-fp/trunctfxf2.c: Likewise.
12824         * soft-fp/unorddf2.c: Likewise.
12825         * soft-fp/unordsf2.c: Likewise.
12826         * soft-fp/unordtf2.c: Likewise.
12827
12828 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
12829
12830         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
12831         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
12832
12833 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
12834
12835         * elf/dl-libc.c: Clear initfini list after freeing.
12836
12837 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
12838
12839         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
12840         * soft-fp/addsf3.c: Likewise.
12841         * soft-fp/addtf3.c: Likewise.
12842         * soft-fp/divdf3.c: Likewise.
12843         * soft-fp/divsf3.c: Likewise.
12844         * soft-fp/divtf3.c: Likewise.
12845         * soft-fp/double.h: Likewise.
12846         * soft-fp/eqdf2.c: Likewise.
12847         * soft-fp/eqsf2.c: Likewise.
12848         * soft-fp/eqtf2.c: Likewise.
12849         * soft-fp/extenddftf2.c: Likewise.
12850         * soft-fp/extended.h: Likewise.
12851         * soft-fp/extendsfdf2.c: Likewise.
12852         * soft-fp/extendsftf2.c: Likewise.
12853         * soft-fp/extendxftf2.c: Likewise.
12854         * soft-fp/fixdfdi.c: Likewise.
12855         * soft-fp/fixdfsi.c: Likewise.
12856         * soft-fp/fixdfti.c: Likewise.
12857         * soft-fp/fixsfdi.c: Likewise.
12858         * soft-fp/fixsfsi.c: Likewise.
12859         * soft-fp/fixsfti.c: Likewise.
12860         * soft-fp/fixtfdi.c: Likewise.
12861         * soft-fp/fixtfsi.c: Likewise.
12862         * soft-fp/fixtfti.c: Likewise.
12863         * soft-fp/fixunsdfdi.c: Likewise.
12864         * soft-fp/fixunsdfsi.c: Likewise.
12865         * soft-fp/fixunsdfti.c: Likewise.
12866         * soft-fp/fixunssfdi.c: Likewise.
12867         * soft-fp/fixunssfsi.c: Likewise.
12868         * soft-fp/fixunssfti.c: Likewise.
12869         * soft-fp/fixunstfdi.c: Likewise.
12870         * soft-fp/fixunstfsi.c: Likewise.
12871         * soft-fp/fixunstfti.c: Likewise.
12872         * soft-fp/floatdidf.c: Likewise.
12873         * soft-fp/floatdisf.c: Likewise.
12874         * soft-fp/floatditf.c: Likewise.
12875         * soft-fp/floatsidf.c: Likewise.
12876         * soft-fp/floatsisf.c: Likewise.
12877         * soft-fp/floatsitf.c: Likewise.
12878         * soft-fp/floattidf.c: Likewise.
12879         * soft-fp/floattisf.c: Likewise.
12880         * soft-fp/floattitf.c: Likewise.
12881         * soft-fp/floatundidf.c: Likewise.
12882         * soft-fp/floatundisf.c: Likewise.
12883         * soft-fp/floatunsidf.c: Likewise.
12884         * soft-fp/floatunsisf.c: Likewise.
12885         * soft-fp/floatuntidf.c: Likewise.
12886         * soft-fp/floatuntisf.c: Likewise.
12887         * soft-fp/floatuntitf.c: Likewise.
12888         * soft-fp/fmadf4.c: Likewise.
12889         * soft-fp/fmasf4.c: Likewise.
12890         * soft-fp/fmatf4.c: Likewise.
12891         * soft-fp/gedf2.c: Likewise.
12892         * soft-fp/gesf2.c: Likewise.
12893         * soft-fp/getf2.c: Likewise.
12894         * soft-fp/ledf2.c: Likewise.
12895         * soft-fp/lesf2.c: Likewise.
12896         * soft-fp/letf2.c: Likewise.
12897         * soft-fp/muldf3.c: Likewise.
12898         * soft-fp/mulsf3.c: Likewise.
12899         * soft-fp/multf3.c: Likewise.
12900         * soft-fp/negdf2.c: Likewise.
12901         * soft-fp/negsf2.c: Likewise.
12902         * soft-fp/negtf2.c: Likewise.
12903         * soft-fp/op-1.h: Likewise.
12904         * soft-fp/op-2.h: Likewise.
12905         * soft-fp/op-4.h: Likewise.
12906         * soft-fp/op-8.h: Likewise.
12907         * soft-fp/op-common.h: Likewise.
12908         * soft-fp/quad.h: Likewise.
12909         * soft-fp/single.h: Likewise.
12910         * soft-fp/soft-fp.h: Likewise.
12911         * soft-fp/sqrtdf2.c: Likewise.
12912         * soft-fp/sqrtsf2.c: Likewise.
12913         * soft-fp/sqrttf2.c: Likewise.
12914         * soft-fp/subdf3.c: Likewise.
12915         * soft-fp/subsf3.c: Likewise.
12916         * soft-fp/subtf3.c: Likewise.
12917         * soft-fp/truncdfsf2.c: Likewise.
12918         * soft-fp/trunctfdf2.c: Likewise.
12919         * soft-fp/trunctfsf2.c: Likewise.
12920         * soft-fp/trunctfxf2.c: Likewise.
12921         * soft-fp/unorddf2.c: Likewise.
12922         * soft-fp/unordsf2.c: Likewise.
12923         * soft-fp/unordtf2.c: Likewise.
12924
12925 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
12926
12927         [BZ #15672]
12928         * misc/error.c (error_tail): Fix possible buffer overflow.
12929
12930 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
12931
12932         [BZ #13028]
12933         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
12934         address.
12935
12936 2013-10-14  P. J. McDermott  <pj@pehjota.net>
12937
12938         [BZ #832]
12939         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
12940         testing pipefail option.
12941
12942 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12943
12944         * soft-fp/double.h: Indent preprocessor directives inside #if.
12945         * soft-fp/extended.h: Likewise.
12946         * soft-fp/op-2.h: Likewise.
12947         * soft-fp/op-4.h: Likewise.
12948         * soft-fp/op-common.h: Likewise.
12949         * soft-fp/quad.h: Likewise.
12950         * soft-fp/single.h: Likewise.
12951         * soft-fp/soft-fp.h: Likewise.
12952
12953 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
12954
12955         * iconv/iconv_prog.c: Fix typos.
12956         * stdio-common/psiginfo-data.h: Likewise.
12957
12958 2013-10-12   Reuben Thomas <rrt@sc3d.org>
12959
12960         [BZ #15764]
12961         * locale/setlocale.c: Fix typo.
12962
12963 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12964
12965         [BZ #16036]
12966         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
12967         signaling NaN arguments.
12968         * soft-fp/unordsf2.c (__unordsf2): Likewise.
12969         * soft-fp/unordtf2.c (__unordtf2): Likewise.
12970
12971         [BZ #14910]
12972         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
12973         unordered operands.
12974         * soft-fp/gesf2.c (__gesf2): Likewise.
12975         * soft-fp/getf2.c (__getf2): Likewise.
12976         * soft-fp/ledf2.c (__ledf2): Likewise.
12977         * soft-fp/lesf2.c (__lesf2): Likewise.
12978         * soft-fp/letf2.c (__letf2): Likewise.
12979
12980         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
12981         * soft-fp/eqsf2.c (__eqsf2): Likewise.
12982         * soft-fp/eqtf2.c (__eqtf2): Likewise.
12983         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
12984         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
12985         * soft-fp/fixdfti.c (__fixdfti): Likewise.
12986         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
12987         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
12988         * soft-fp/fixsfti.c (__fixsfti): Likewise.
12989         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
12990         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
12991         * soft-fp/fixtfti.c (__fixtfti): Likewise.
12992         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
12993         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
12994         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
12995         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
12996         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
12997         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
12998         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
12999         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
13000         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
13001         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
13002         * soft-fp/floatdisf.c (__floatdisf): Likewise.
13003         * soft-fp/floatsisf.c (__floatsisf): Likewise.
13004         * soft-fp/floattidf.c (__floattidf): Likewise.
13005         * soft-fp/floattisf.c (__floattisf): Likewise.
13006         * soft-fp/floattitf.c (__floattitf): Likewise.
13007         * soft-fp/floatundidf.c (__floatundidf): Likewise.
13008         * soft-fp/floatundisf.c (__floatundisf): Likewise.
13009         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
13010         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
13011         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
13012         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
13013         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
13014         * soft-fp/gesf2.c (__gesf2): Likewise.
13015         * soft-fp/getf2.c (__getf2): Likewise.
13016         * soft-fp/ledf2.c (__ledf2): Likewise.
13017         * soft-fp/lesf2.c (__lesf2): Likewise.
13018         * soft-fp/letf2.c (__letf2): Likewise.
13019
13020         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
13021         Undefine and redefine.
13022         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
13023         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
13024         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
13025         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
13026         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13027         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
13028         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13029         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
13030         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13031         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
13032         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13033         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
13034         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13035         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
13036         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13037
13038         [BZ #16032]
13039         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
13040         without decrementing exponent if mantissa >= that for the
13041         denominator, not >.
13042         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
13043         denominator, not >.  Decrement exponent in < case instead of
13044         incrementing in >= case.
13045         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
13046         without decrementing exponent if mantissa >= that for the
13047         denominator, not >.
13048
13049         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
13050         computing saturated result for unsigned overflow.
13051
13052 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13053             Jeff Law  <law@redhat.com>
13054
13055         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
13056         (atan2Mp): Add systemtap probe marker.
13057         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
13058         (__ieee754_log): Add systemtap probe marker.
13059         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
13060         (atanMp): Add systemtap probe marker.
13061         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
13062         (tanMp): Add systemtap probe marker.
13063         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
13064         (__slowexp): Add systemtap probe marker.
13065         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
13066         (__slowpow): Add systemtap probe marker.
13067         * manual/probes.texi: Document probes.
13068
13069 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
13070
13071         [BZ #15362]
13072         * libio/fileops.c (_IO_new_file_write): Return count of bytes
13073         written.
13074         (_IO_new_file_xsputn): Don't return EOF if nothing has been
13075         written.
13076         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
13077         written to buffer but not flushed.
13078         * libio/iofwrite_u.c:  Likewise.
13079         * libio/iopadn.c:  Return bytes returned even if EOF was
13080         encountered.
13081         * libio/iowpadn.c:  Likewise.
13082         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
13083         if _IO_padn does not write the whole buffer.
13084         [!COMPILE_WPRINTF] (PAD): Likewise.
13085
13086 2013-10-10  David S. Miller  <davem@davemloft.net>
13087
13088         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
13089         directory block.
13090
13091 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13092
13093         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
13094         instead of FSF address.
13095         * soft-fp/fixdfti.c: Likewise.
13096         * soft-fp/fixsfti.c: Likewise.
13097         * soft-fp/fixtfti.c: Likewise.
13098         * soft-fp/fixunsdfti.c: Likewise.
13099         * soft-fp/fixunssfti.c: Likewise.
13100         * soft-fp/fixunstfti.c: Likewise.
13101         * soft-fp/floattidf.c: Likewise.
13102         * soft-fp/floattisf.c: Likewise.
13103         * soft-fp/floattitf.c: Likewise.
13104         * soft-fp/floatuntidf.c: Likewise.
13105         * soft-fp/floatuntisf.c: Likewise.
13106         * soft-fp/floatuntitf.c: Likewise.
13107         * soft-fp/trunctfxf2.c: Likewise.
13108
13109         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
13110         * soft-fp/fixdfti.c: Likewise.
13111         * soft-fp/fixsfti.c: Likewise.
13112         * soft-fp/fixtfti.c: Likewise.
13113         * soft-fp/fixunsdfti.c: Likewise.
13114         * soft-fp/fixunssfti.c: Likewise.
13115         * soft-fp/fixunstfti.c: Likewise.
13116         * soft-fp/floattidf.c: Likewise.
13117         * soft-fp/floattisf.c: Likewise.
13118         * soft-fp/floattitf.c: Likewise.
13119         * soft-fp/floatuntidf.c: Likewise.
13120         * soft-fp/floatuntisf.c: Likewise.
13121         * soft-fp/floatuntitf.c: Likewise.
13122         * soft-fp/trunctfxf2.c: Likewise.
13123
13124 2013-10-10  David S. Miller  <davem@davemloft.net>
13125
13126         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13127
13128 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
13129
13130         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13131         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
13132         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
13133         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
13134         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
13135         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
13136         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
13137
13138         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
13139         for NaNs before doing comparisons on argument.
13140         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
13141         Likewise.
13142
13143 2013-10-10  Will Newton  <will.newton@linaro.org>
13144
13145         * malloc/hooks.c (memalign_check): Ensure the value of bytes
13146         passed to _int_memalign does not overflow.
13147
13148 2013-10-10  Torvald Riegel  <triegel@redhat.com>
13149
13150         * scripts/bench.pl: Add include-sources directive.
13151         * benchtests/README: Update documentation.
13152
13153 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13154
13155         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
13156         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
13157         instead of FP_INIT_ROUNDMODE.
13158         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
13159         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
13160
13161         [BZ #16034]
13162         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
13163         copy class of input value.
13164         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
13165         not handle exceptions.
13166         * soft-fp/negsf2.c (__negsf2): Likewise.
13167         * soft-fp/negtf2.c (__negtf2): Likewise.
13168         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
13169
13170 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
13171
13172         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
13173         semicolon.  From Linux kernel.
13174
13175 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
13176
13177         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
13178
13179 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
13180
13181         [BZ #156]
13182         * manual/socket.texi: Added statement about buffer
13183         for gethostbyname2_r.
13184
13185 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
13186
13187         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
13188         Use .p2align directive instead, throughout.
13189         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13190         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
13191         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
13192         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13193         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13194         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13195         * sysdeps/x86_64/strchr.S: Likewise.
13196         * sysdeps/x86_64/strrchr.S: Likewise.
13197
13198 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
13199
13200         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
13201
13202         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
13203
13204         * sysdeps/generic/math_private.h (__mpsin1): Remove
13205         declaration.
13206         (__mpcos1): Likewise.
13207         (__mpsin): New argument __range_reduce.
13208         (__mpcos): Likewise.
13209         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13210         (slow): Use __mpsin and __mpcos.
13211         (slow1): Likewise.
13212         (slow2): Likewise.
13213         (sloww): Likewise.
13214         (sloww1): Likewise.
13215         (sloww2): Likewise.
13216         (bsloww): Likewise.
13217         (bsloww1): Likewise.
13218         (bsloww2): Likewise.
13219         (cslow2): Likewise.
13220         (csloww): Likewise.
13221         (csloww1): Likewise.
13222         (csloww2): Likewise.
13223         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
13224         range_reduce.  Merge in __mpsin1.
13225         (__mpcos): Likewise.
13226         (__mpsin1): Remove.
13227         (__mpcos1): Likewise.
13228
13229 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
13230
13231         * locale/loadlocale.c (_nl_intern_locale_data): Use
13232         LOCFILE_ALIGNED_P.
13233         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
13234         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
13235         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
13236         obstack data is appropriately aligned.
13237         (obstack_int32_grow_fast): Likewise.
13238         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
13239         * locale/programs/locfile.c (add_locale_uint32): Likewise.
13240         (add_locale_uint32_array): Likewise.
13241
13242 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
13243
13244         * benchtests/Makefile: Remove ARGLIST and RET variables.
13245         ($(objpfx)bench-%.c): Pass only function name to the script.
13246         * benchtests/README: Update documentation.
13247         * benchtests/acos-inputs: Add new directives.
13248         * benchtests/acosh-inputs: Likewise.
13249         * benchtests/asin-inputs: Likewise.
13250         * benchtests/asinh-inputs: Likewise.
13251         * benchtests/atan-inputs: Likewise.
13252         * benchtests/atanh-inputs: Likewise.
13253         * benchtests/cos-inputs: Likewise.
13254         * benchtests/cosh-inputs: Likewise.
13255         * benchtests/exp-inputs: Likewise.
13256         * benchtests/log-inputs: Likewise.
13257         * benchtests/pow-inputs: Likewise.
13258         * benchtests/rint-inputs: Likewise.
13259         * benchtests/sin-inputs: Likewise.
13260         * benchtests/sinh-inputs: Likewise.
13261         * benchtests/tan-inputs: Likewise.
13262         * benchtests/tanh-inputs: Likewise.
13263         * scripts/bench.pl: Add support for new directives.
13264
13265 2013-10-07  Alan Modra  <amodra@gmail.com>
13266
13267         * README: Fix careless merge.
13268
13269 2013-10-05  Alan Modra  <amodra@gmail.com>
13270
13271         * NEWS: Mention powerpc64le support and bugs fixed.
13272         * README: Both big-endian and little-endian powerpc64 supported.
13273
13274 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13275
13276         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
13277         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
13278         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
13279         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
13280
13281 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
13282
13283         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
13284         match prototype.
13285
13286 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
13287
13288         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
13289         Move -mhard-float appending from
13290         ports/sysdeps/powerpc/powerpc32/Makefile.
13291         [$(with-fp) = yes] (ASFLAGS): Likewise.
13292         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
13293         * sysdeps/powerpc/nofpu: Move directory from
13294         ports/sysdeps/powerpc/nofpu.
13295         * sysdeps/powerpc/soft-fp: Move directory from
13296         ports/sysdeps/powerpc/soft-fp.
13297         * sysdeps/powerpc/powerpc32/405: Move directory from
13298         ports/sysdeps/powerpc/powerpc32/405.
13299         * sysdeps/powerpc/powerpc32/440: Move directory from
13300         ports/sysdeps/powerpc/powerpc32/440.
13301         * sysdeps/powerpc/powerpc32/464: Move directory from
13302         ports/sysdeps/powerpc/powerpc32/464.
13303         * sysdeps/powerpc/powerpc32/476: Move directory from
13304         ports/sysdeps/powerpc/powerpc32/476.
13305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
13306         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
13307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
13308         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
13309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
13310         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
13311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
13312         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
13313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
13314         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
13315         * README: Update for powerpc-*-linux-gnu software floating point
13316         support in libc.
13317
13318         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
13319         case to powerpc/powerpc32*.
13320         * sysdeps/unix/sysv/linux/configure: Regenerated.
13321
13322         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
13323         (_FPU_MASK_OM): Define as 0x04.
13324         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
13325         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
13326         0x00c10080.
13327         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
13328         0x0000003c.
13329         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
13330
13331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
13332         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13333         getcontext_e500.
13334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
13335         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13336         setcontext_e500.
13337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
13338         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
13339         and setcontext_e500.
13340
13341 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
13342
13343         * locale/iso-3166.def: Update iso-1366.def and related occurrences
13344
13345 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13346
13347         * manual/threads.texi (Default Thread Attributes): Fix typo.
13348
13349 2013-10-04  Will Newton  <will.newton@linaro.org>
13350
13351         * malloc/Makefile: Add tst-memalign.
13352         * malloc/tst-memalign.c: New file.
13353
13354         * malloc/tst-posix_memalign.c: Add comments.
13355         (do_test): Add comments and call free on all potentially
13356         allocated pointers. Add space after cast.
13357
13358         * malloc/tst-pvalloc.c: Add comments.
13359         (do_test): Add comments and call free on all potentially
13360         allocated pointers. Remove duplicate check for NULL pointer.
13361         Add space after cast.
13362
13363         * malloc/tst-valloc.c: Add comments.
13364         (do_test): Add comments and call free on all potentially
13365         allocated pointers. Remove duplicate check for NULL pointer.
13366         Add space after cast.
13367
13368 2013-10-04  Alan Modra  <amodra@gmail.com>
13369
13370         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13371         Use stdint types in rather than __attribute__((mode())).
13372         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13373
13374 2013-10-04  Alan Modra  <amodra@gmail.com>
13375
13376         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13377         Correct handling of unaligned relocs for little-endian.
13378         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13379
13380 2013-10-04  Alan Modra  <amodra@gmail.com>
13381
13382         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
13383         * configure: Regenerate.
13384         * nptl/shlib-versions: Powerpc*le starts at 2.18.
13385         * shlib-versions: Likewise.
13386
13387 2013-10-04  Alan Modra  <amodra@gmail.com>
13388
13389         * string/tester.c (test_memrchr): Increment reported test cycle.
13390
13391 2013-10-04  Alan Modra  <amodra@gmail.com>
13392
13393         * string/test-memcpy.c (do_one_test): When reporting errors, print
13394         string address and don't overrun end of string.
13395
13396 2013-10-04  Alan Modra  <amodra@gmail.com>
13397
13398         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
13399         insrdi.  Make better use of reg selection to speed exit slightly.
13400         Schedule entry path a little better.  Remove useless "are we done"
13401         checks on entry to main loop.  Handle wrapping around zero address.
13402         Correct main loop count.  Handle single left-over word from main
13403         loop inline rather than by using loop_small.  Remove extra word
13404         case in loop_small caused by wrong loop count.  Add little-endian
13405         support.
13406         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13407         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
13408         cache hint.
13409         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13410         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
13411         support.  Avoid rlwimi.
13412         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
13413
13414 2013-10-04  Alan Modra  <amodra@gmail.com>
13415
13416         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
13417         insrdi.  Formatting.
13418         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
13419         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
13420         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
13421         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
13422         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
13423         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
13424
13425 2013-10-04  Alan Modra  <amodra@gmail.com>
13426
13427         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
13428         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13429         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
13430         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
13431         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13432         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13433         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13434         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13435         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
13436         use of regs.  Use power7 mtocrf.  Tidy function tails.
13437
13438 2013-10-04  Alan Modra  <amodra@gmail.com>
13439
13440         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
13441         Formatting.  Consistently use rXXX register defines or rN defines.
13442         Use early exit labels that avoid restoring unused non-volatile regs.
13443         Make cr field use more consistent with rWORDn compares.  Rename
13444         regs used as shift registers for unaligned loop, using rN defines
13445         for short lifetime/multiple use regs.
13446         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13447         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
13448         addi 1,1,64 to pop stack frame.  Simplify return value code.
13449         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13450
13451 2013-10-04  Alan Modra  <amodra@gmail.com>
13452
13453         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
13454         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
13455         rather than rlwimi.
13456         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
13457         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
13458         little-endian support.  Correct typos.
13459         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
13460         rather than rlwimi.
13461         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
13462         in loop and entry code to keep "and." results.
13463         (strchr): Add little-endian support.  Comment.  Move cntlzd
13464         earlier in tail.
13465         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
13466
13467 2013-10-04  Alan Modra  <amodra@gmail.com>
13468
13469         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
13470         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
13471         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13472         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
13473
13474 2013-10-04  Alan Modra  <amodra@gmail.com>
13475
13476         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
13477         (rTMP): Define as r11.
13478         (strcmp): Add little-endian support.  Optimise tail.
13479         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
13480         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13481         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13482         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13483         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13484         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13485         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13486
13487 2013-10-04  Alan Modra  <amodra@gmail.com>
13488
13489         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
13490         little-endian support.  Remove unnecessary "are we done" tests.
13491         Handle "s" wrapping around zero and extremely large "size".
13492         Correct main loop count.  Handle single left-over word from main
13493         loop inline rather than by using small_loop.  Correct comments.
13494         Delete "zero" tail, use "end_max" instead.
13495         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
13496
13497 2013-10-04  Alan Modra  <amodra@gmail.com>
13498
13499         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
13500         support.  Don't branch over align.
13501         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
13502         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
13503         support.  Rearrange tmp reg use to suit.  Comment.
13504         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
13505
13506 2013-10-04  Alan Modra  <amodra@gmail.com>
13507
13508         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
13509
13510 2013-10-04  Alan Modra  <amodra@gmail.com>
13511
13512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
13513         conditional form of branch and link when obtaining pc.
13514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
13515
13516 2013-10-04  Alan Modra  <amodra@gmail.com>
13517
13518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
13519         HIWORD/LOWORD.
13520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
13521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
13522
13523 2013-10-04  Alan Modra  <amodra@gmail.com>
13524
13525         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
13526         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
13527         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
13528         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
13529         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
13530         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
13531         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
13532         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
13533         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
13534         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
13535
13536 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13537             Alistair Popple <alistair@ozlabs.au.ibm.com>
13538             Alan Modra <amodra@gmail.com>
13539
13540         [BZ #15723]
13541         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
13542         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
13543         _dl_hwcap access for little-endian.
13544         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
13545         destroy vmx regs when saving unaligned.
13546         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
13547         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
13548         destroy vmx regs when saving unaligned.
13549
13550 2013-10-04  Alan Modra  <amodra@gmail.com>
13551
13552         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
13553         Don't use a union to pack hi/low value.
13554
13555 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13556
13557         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
13558         for little-endian.
13559         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
13560         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
13561         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
13562         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
13563         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
13564
13565 2013-10-04  Alan Modra  <amodra@gmail.com>
13566
13567         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
13568         constants to usual value for .cst8 section, and remove redundant
13569         high address load.
13570         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
13571         constant for 0x1p52.  Load little-endian words of double from
13572         correct stack offsets.
13573
13574 2013-10-04  Alan Modra  <amodra@gmail.com>
13575
13576         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
13577         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
13578         words of double from correct stack offsets.
13579         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
13580         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
13581         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
13582         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
13583         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
13584         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
13585         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
13586         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
13587         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
13588         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
13589         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
13590         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
13591         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13592         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13593         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13594         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
13595         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
13596
13597 2013-10-04  Alan Modra  <amodra@gmail.com>
13598
13599         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
13600         64-bit int/double union.
13601         (_FPU_SETCW): Likewise.
13602         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
13603         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
13604
13605 2013-10-04  Alan Modra  <amodra@gmail.com>
13606
13607         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
13608         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
13609
13610 2013-10-04  Alan Modra  <amodra@gmail.com>
13611
13612         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
13613         use vector int constants.
13614         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
13615
13616 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13617
13618         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
13619         array with long long.
13620         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
13621         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
13622         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
13623         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
13624         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
13625         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
13626         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
13627         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
13628         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
13629         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
13630         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
13631         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
13632         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
13633
13634 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13635
13636         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
13637         (__signbit): Likewise.  Correct for little-endian.
13638         (__signbitl): Call __signbit.
13639         (lrint): Correct for little-endian.
13640         (lrintf): Call lrint.
13641
13642 2013-10-04  Alan Modra  <amodra@gmail.com>
13643
13644         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
13645         union 32-bit int array member with 64-bit int array.
13646         (t515, tm256): Double rather than long double.
13647         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
13648
13649 2013-10-04  Alan Modra  <amodra@gmail.com>
13650
13651         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
13652         Delete.
13653         (IEEE854_LONG_DOUBLE_BIAS): Delete.
13654         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
13655         version of math_ldbl.h.
13656
13657 2013-10-04  Alan Modra  <amodra@gmail.com>
13658
13659         [BZ #15734], [BZ #15735]
13660         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
13661         all uses of ieee875 long double macros and unions.  Simplify test
13662         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
13663         ldbl_extract_mantissa value for ix,iy exponents.  Properly
13664         normalize after ldbl_extract_mantissa, and don't add hidden bit
13665         already handled.  Don't treat low word of ieee854 mantissa like
13666         low word of IBM long double and mask off bit when testing for
13667         zero.
13668         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
13669         all uses of ieee875 long double macros and unions.  Simplify tests
13670         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
13671         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
13672         two1022, instead use their values.  Recognise that tests for large
13673         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
13674         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
13675         Rewrite all uses of ieee875 long double macros and unions.  Simplify
13676         test for 0.0L and nan.  Correct negation.
13677         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
13678         ieee875 long double macros and unions.  Correct output for large
13679         magnitude x.  Correct absolute value calculation.
13680         (__erfcl): Likewise.
13681         * math/libm-test.inc: Add tests for errors discovered in IBM long
13682         double versions of fmodl, remainderl, erfl and erfcl.
13683
13684 2013-10-04  Alan Modra  <amodra@gmail.com>
13685
13686         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
13687         all uses of ieee854 long double macros and unions.  Simplify tests
13688         for long doubles that are fully specified by the high double.
13689         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13690         Likewise.
13691         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
13692         Remove dead code too.
13693         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13694         (__ieee754_ynl): Likewise.
13695         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13696         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
13697         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13698         Remove dead code too.
13699         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
13700         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13701         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
13702         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
13703         Simplify.
13704         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
13705         Simplify.
13706         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
13707         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
13708         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
13709         Comment on variable precision.
13710         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
13711         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13712         Likewise.
13713         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13714         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13715         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13716         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
13717         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
13718
13719 2013-10-04  Alan Modra  <amodra@gmail.com>
13720
13721         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
13722         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
13723         all uses of ieee854 long double macros and unions.
13724         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13725         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13726         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
13727         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
13728         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13729         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13730         Likewise.
13731         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
13732         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13733         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
13734         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13735         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
13736         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
13737         Simplify sign and nan test too.
13738         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
13739         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
13740         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
13741         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
13742         Likewise.
13743         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
13744         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
13745         Likewise.
13746         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13747         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
13748         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
13749         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
13750         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
13751         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
13752
13753 2013-10-04  Alan Modra  <amodra@gmail.com>
13754
13755         * stdio-common/printf_size.c (__printf_size): Don't use
13756         union ieee854_long_double in fpnum union.
13757         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
13758         signbit macro to retrieve sign from long double.
13759         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
13760         retrieve sign from long double.
13761         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
13762         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
13763         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
13764         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13765         * math/test-misc.c (main): Don't use union ieee854_long_double.
13766
13767 2013-10-04  Alan Modra  <amodra@gmail.com>
13768
13769         [BZ #15680]
13770         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
13771         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
13772         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
13773         calculation.  Remove unnecessary test for denormal exponent.
13774         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
13775         Correct handling of denormals.  Avoid undefined shift behaviour.
13776         Correct normalisation of low mantissa when low double is denormal.
13777         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
13778         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
13779         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
13780         Correct normalisation of low mantissa.  Test for overflow of high
13781         mantissa and normalise.
13782         (ldbl_nearbyint): Use more readable constant for two52.
13783         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
13784         (__mpn_construct_long_double): Fix test for overflow of high
13785         mantissa and correct normalisation.  Avoid undefined shift.
13786
13787 2013-10-04  Alan Modra  <amodra@gmail.com>
13788
13789         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13790         (union ibm_extended_long_double): Define as an array of ieee754_double.
13791         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
13792         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
13793         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
13794         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13795         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13796         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
13797         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13798         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13799         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13800         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
13801         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13802
13803 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
13804
13805         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
13806         page size instead of calling getpagesize.
13807
13808         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
13809         (LOCFILE_ALIGN_MASK): Likewise.
13810         (LOCFILE_ALIGN_UP): Likewise.
13811         (LOCFILE_ALIGNED_P): Likewise.
13812         * locale/programs/ld-collate.c (collate_output): Use the new
13813         macros instead of __alignof__ (int32_t).
13814         * locale/weight.h (findidx): Likewise.
13815
13816 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
13817
13818         [BZ #431]
13819         * manual/string.texi: Fix strncat and wcsncat.
13820
13821 2013-10-03  Brooks Moses  <bmoses@google.com>
13822
13823         [BZ #15915]
13824         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
13825         * Makerules: ...here, and adjust associated comments.
13826
13827 2013-10-02  Will Newton  <will.newton@linaro.org>
13828
13829         * malloc/Makefile: Add tst-pvalloc.
13830         * malloc/tst-pvalloc.c: New file.
13831
13832 2013-10-02  Will Newton  <will.newton@linaro.org>
13833
13834         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
13835         improve test coverage.
13836
13837 2013-10-02  Will Newton  <will.newton@linaro.org>
13838
13839         * malloc/Makefile: Add tst-posix_memalign.
13840         * malloc/tst-posix_memalign.c: New file.
13841
13842 2013-10-01  Eric Blake  <eblake@redhat.com>
13843
13844         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
13845         Use __THROWNL rather than __THROW on static functions.
13846
13847 2013-09-30  Petr Machata  <pmachata@redhat.com>
13848
13849         * elf/elf.h (R_AARCH64_ABS16): New macro.
13850         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
13851         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
13852         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
13853         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
13854         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
13855         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
13856         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
13857         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
13858         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
13859         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
13860         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
13861         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
13862         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
13863         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
13864         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
13865         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
13866         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
13867         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
13868         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
13869         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
13870         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
13871         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
13872         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
13873         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
13874         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
13875         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
13876         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
13877         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
13878         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
13879         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
13880         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
13881         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
13882         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
13883         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
13884         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
13885         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
13886         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
13887         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
13888         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
13889         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
13890         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
13891         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
13892         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
13893         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
13894         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
13895         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
13896         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
13897         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
13898         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
13899         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
13900         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
13901         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
13902         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
13903         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
13904         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
13905         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
13906         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
13907         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
13908         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
13909         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
13910         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
13911         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
13912         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
13913         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
13914         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
13915         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
13916         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
13917         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
13918         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
13919         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
13920         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
13921         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
13922         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
13923         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
13924         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
13925         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
13926         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
13927         (R_AARCH64_TLSDESC_LDR): Likewise.
13928         (R_AARCH64_TLSDESC_ADD): Likewise.
13929         (R_AARCH64_TLSDESC_CALL): Likewise.
13930
13931 2013-09-30  Andreas Schwab  <schwab@suse.de>
13932
13933         [BZ #15048]
13934         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
13935         the nss database lookup.
13936         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13937         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13938
13939 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
13940
13941         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
13942
13943 2013-09-28  P. J. McDermott  <pj@pehjota.net>
13944
13945         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
13946         ${Bash-specific parameter/pattern/string} parameter expansion.
13947         * sysdeps/unix/make-syscalls.sh: Likewise.
13948
13949 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13950
13951         * sysdeps/sh/stackguard-macros.h: New file.
13952
13953 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
13954
13955         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
13956         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
13957         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
13958         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
13959         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13960         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
13961
13962 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13963
13964         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
13965         Fix thread ID register.
13966
13967 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
13968
13969         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
13970         [POSIX || UNIX98]: Require rather than permitting all symbols from
13971         <time.h>.
13972         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
13973         element of struct sched_param.
13974         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
13975         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
13976         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
13977         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
13978         constant.
13979
13980 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
13981
13982         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
13983         argument calculation.
13984
13985 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13986
13987         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
13988         Expect macro.
13989         [POSIX] (pthread_attr_t): Do not require type.
13990         [POSIX] (pthread_cond_t): Likewise.
13991         [POSIX] (pthread_condattr_t): Likewise.
13992         [POSIX] (pthread_key_t): Likewise.
13993         [POSIX] (pthread_mutex_t): Likewise.
13994         [POSIX] (pthread_mutexattr_t): Likewise.
13995         [POSIX] (pthread_once_t): Likewise.
13996         [POSIX] (pthread_t): Likewise.
13997         [POSIX-based standards] (pthread_atfork): Expect function.
13998
13999 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14000             Richard Sandiford  <richard@codesourcery.com>
14001
14002         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
14003         (swap_endianness_p): New extern variable.
14004         (set_big_endian): New inline function.
14005         (maybe_swap_uint32): Likewise.
14006         (maybe_swap_uint32_array): Likewise.
14007         (maybe_swap_uint32_obstack): Likewise.
14008         * locale/programs/locfile.c: Include <stdbool.h>.
14009         (swap_endianness_p): New variable.
14010         (add_locale_uint32): Call maybe_swap_uint32.
14011         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
14012         (write_locale_data): Call maybe_swap_uint32_array.
14013         * locale/programs/ld-collate.c (obstack_int32_grow): Call
14014         maybe_swap_uint32.
14015         (obstack_int32_grow_fast): Likewise.
14016         (output_weightwc): Call maybe_swap_uint32_obstack.
14017         (collate_output): Likewise.
14018         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
14019         (OPT_LITTLE_ENDIAN): Likewise.
14020         (options): Add --little-endian and --big-endian options.
14021         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
14022         * locale/programs/locarchive.c: Include "locfile.h".
14023         (GET): New macro.
14024         (SET): Likewise.
14025         (INC): Likewise.
14026         (create_archive): Use the new macros to access fields of
14027         structures directly mapped from or written to locale archives.
14028         (oldlocrecentcmp): Likewise.
14029         (enlarge_archive): Likewise.
14030         (insert_name): Likewise.
14031         (add_alias): Likewise.
14032         (add_locale): Likewise.
14033         (delete_locales_from_archive): Likewise.
14034         (show_archive_content): Likewise.
14035         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
14036         locale data.
14037
14038 2013-09-24  Roland McGrath  <roland@hack.frob.com>
14039
14040         * manual/freemanuals.texi: Updated from (newly) canonical copy at
14041         http://www.gnu.org/doc/freemanuals.texi.
14042         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
14043
14044 2013-09-24  Will Newton  <will.newton@linaro.org>
14045
14046         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
14047         macro.
14048
14049 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
14050
14051         * locale/hashval.h (compute_hashval): Interpret bytes of key as
14052         unsigned char.
14053
14054 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
14055
14056         * manual/threads.texi (POSIX Threads): Fix a typo.
14057
14058 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14059
14060         [BZ #14547]
14061         * string/tst-strcoll-overflow.c: New test case.
14062         * string/Makefile (xtests): Add tst-strcoll-overflow.
14063         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
14064         cache if string sizes may cause integer overflow.
14065
14066         [BZ #14547]
14067         * string/strcoll_l.c (coll_seq): New members rule, idx,
14068         save_idx and back_us.
14069         (get_next_seq_nocache): New function.
14070         (do_compare_nocache): New function.
14071         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
14072         when malloc fails.
14073
14074 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
14075
14076         [BZ #15754]
14077         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
14078         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
14079         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
14080
14081         [BZ #15754]
14082         * elf/Makefile (tests): Add tst-ptrguard1.
14083         (tests-static): Add tst-ptrguard1-static.
14084         (tst-ptrguard1-ARGS): Define.
14085         (tst-ptrguard1-static-ARGS): Define.
14086         * elf/tst-ptrguard1.c: New file.
14087         * elf/tst-ptrguard1-static.c: New file.
14088         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
14089         * sysdeps/i386/stackguard-macros.h: Likewise.
14090         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14091         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14092         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14093         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14094         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14095         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14096
14097 2013-09-23  Hector Marco  <hecmargi@upv.es>
14098             Ismael Ripoll  <iripoll@disca.upv.es>
14099             Carlos O'Donell  <carlos@redhat.com>
14100
14101         [BZ #15754]
14102         * sysdeps/generic/stackguard-macros.h: Define
14103         __pointer_chk_guard_local and POINTER_CHK_GUARD.
14104         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
14105         Define __pointer_chk_guard_local.
14106         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
14107         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
14108
14109 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
14110
14111         [BZ #15859]
14112         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
14113
14114 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
14115
14116         * include/string.h (__ffs): Declare as hidden.
14117         * string/ffs.c (__ffs): Define as hidden.
14118         * sysdeps/i386/ffs.c (__ffs): Likewise.
14119         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14120         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
14121         * sysdeps/s390/ffs.c (__ffs): Likewise.
14122         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
14123
14124 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
14125
14126         * NEWS: Mention malloc probes.
14127
14128         * malloc/arena.c (new_heap): New memory_heap_new probe.
14129         (grow_heap): New memory_heap_more probe.
14130         (shrink_heap): New memory_heap_less probe.
14131         (heap_trim): New memory_heap_free probe.
14132         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
14133         (systrim): New memory_sbrk_less probe.
14134         * manual/probes.texi: Document them.
14135
14136         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
14137         * manual/probes.texi: Document it.
14138
14139         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
14140         (__libc_realloc): Add memory_realloc_retry probe.
14141         (__libc_memalign): Add memory_memalign_retry probe.
14142         (__libc_valloc): Add memory_valloc_retry probe.
14143         (__libc_pvalloc): Add memory_pvalloc_retry probe.
14144         (__libc_calloc): Add memory_calloc_retry probe.
14145         * manual/probes.texi: Document them.
14146
14147         * malloc/arena.c (get_free_list): Add probe
14148         memory_arena_reuse_free_list.
14149         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
14150         and memory_arena_reuse.
14151         (arena_get2) [!PER_THREAD]: Likewise.
14152         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
14153         memory_arena_reuse_realloc.
14154         * manual/probes.texi: Document them.
14155
14156         * malloc/malloc.c (__libc_free): Add
14157         memory_mallopt_free_dyn_thresholds probe.
14158         (__libc_mallopt): Add multiple memory_mallopt probes.
14159         * manual/probes.texi: Document them.
14160
14161         * malloc/malloc.c: Include stap-probe.h.
14162         (__libc_mallopt): Add memory_mallopt probe.
14163         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
14164         * manual/probes.texi: New.
14165         * manual/Makefile (chapters): Add probes.
14166         * manual/threads.texi: Set next node.
14167
14168 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
14169
14170         [BZ #15963, #13985]
14171         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
14172         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
14173         Add `Chinese' to `nan' entry name.
14174
14175 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14176
14177         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
14178         (POLYNOMIAL): Likewise.
14179         (TAYLOR_SINCOS): Likewise.
14180         (TAYLOR_SLOW): Likewise.
14181         (__sin): Use TAYLOR_SINCOS.
14182         (__cos): Likewise.
14183         (slow): Use TAYLOR_SLOW.
14184         (sloww): Likewise.
14185         (bsloww): Likewise.
14186         (csloww): Likewise.
14187
14188 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14189
14190         * stdlib/strtod_l.c: Fix buffer overrun.
14191
14192 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14193
14194         * benchtests/Makefile (bench): Add sincos.
14195         * benchtests/bench-sincos.c: New file.
14196
14197         * math/libm-test.inc (cos_test_data): New test inputs.
14198         (sin_test_data): Likewise.
14199
14200         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
14201         macro.
14202         (__sin): Use it.
14203         (__cos): Likewise.
14204         (slow1): Likewise.
14205         (slow2): Likewise.
14206         (sloww1): Likewise.
14207         (sloww2): Likewise.
14208         (bsloww1): Likewise.
14209         (bsloww2): Likewise.
14210         (cslow2): Likewise.
14211         (csloww1): Likewise.
14212         (csloww2): Likewise.
14213
14214         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
14215         function.
14216         (__sin): Use it.
14217         (__cos): Likewise.
14218
14219         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
14220         gotos.
14221         (__cos): Likewise.
14222
14223 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
14224
14225         * config.h.in (HAVE_MIPS_NAN2008): New macro.
14226         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
14227         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
14228         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
14229         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
14230         * elf/cache.c (print_entry): Handle the new cache flags.
14231
14232 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14233             Aldy Hernandez  <aldyh@redhat.com>
14234
14235         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
14236         Change condition to [_SOFT_FLOAT].
14237         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
14238         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
14239         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
14240         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
14241         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
14242         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
14243         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
14244         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
14245         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
14246         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
14247         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
14248         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
14249         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
14250         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
14251         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
14252         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
14253         declaration.
14254
14255 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14256
14257         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
14258         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14259         (__longjmp): Use LOAD_GP to load saved GPRs.
14260         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
14261         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14262         (__sigsetjmp): Use SAVE_GP to save GPRs.
14263
14264         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
14265         Do not append -msoft-float.
14266         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
14267
14268 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14269
14270         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
14271
14272 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
14273
14274         [BZ #15966]
14275         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
14276         (_FPU_GETCW): Use initial "__" on variable and field names but not
14277         on macro parameter name.
14278         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
14279         parentheses around reference to macro parameter.
14280
14281 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
14282
14283         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
14284         prototype.
14285         (ctype_startup): Use uint32_t in cast and sizeof for
14286         ctype->charnames.
14287
14288 2013-09-11  Jia Liu  <proljc@gmail.com>
14289
14290         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
14291         __daddr_t_defined.
14292         [__FreeBSD__]: Likewise.
14293
14294 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
14295
14296         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14297         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
14298         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
14299         (strchr): Remove __strchr_sse42 ifunc selection.
14300         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
14301         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
14302
14303 2013-09-11  Will Newton  <will.newton@linaro.org>
14304
14305         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
14306         parameter to RES. Remove hardcoded 1000 value.
14307         * benchtests/bench-skeleton.c (main): Pass RES parameter
14308         to TIMING_INIT and multiply result by 1000.
14309
14310 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14311
14312         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14313
14314 2013-09-11  Andreas Schwab  <schwab@suse.de>
14315
14316         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
14317         if not defined.
14318         (O_TMPFILE) [__USE_GNU]: Define.
14319         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
14320         Define.
14321
14322 2013-09-11  Will Newton  <will.newton@linaro.org>
14323
14324         [BZ #15857]
14325         * malloc/malloc.c (__libc_memalign): Check the value of bytes
14326         does not overflow.
14327
14328 2013-09-11  Will Newton  <will.newton@linaro.org>
14329
14330         [BZ #15856]
14331         * malloc/malloc.c (__libc_valloc): Check the value of bytes
14332         does not overflow.
14333
14334 2013-09-11  Will Newton  <will.newton@linaro.org>
14335
14336         [BZ #15855]
14337         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
14338         does not overflow.
14339
14340 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
14341
14342         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
14343         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14344         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14345         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14346         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14347
14348 2013-09-10  Allan McRae  <allan@archlinux.org>
14349
14350         [BZ #15748]
14351         * manual/arith.texi (Parsing of Floats): Clarify
14352         cross-reference.
14353
14354         [BZ #15849]
14355         * manual/install.texi (Running make install): Mention
14356         --enable-pt-chown.
14357         * INSTALL: Regenerated.
14358
14359 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
14360
14361         * csu/init-first.c (_init): Remove the !SHARED condition around
14362         FPU control word initialization.
14363         * elf/dl-support.c (_dl_fpu_control): New variable.
14364         (_dl_aux_init) <AT_FPUCW>: Initialize it.
14365         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
14366         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
14367         * math/test-fpucw-static.c: New file.
14368         * math/test-fpucw-ieee.c: New file.
14369         * math/test-fpucw-ieee-static.c: New file.
14370         * math/Makefile (tests): Add `test-fpucw-ieee' and
14371         `$(tests-static)'.
14372         (tests-static): New variable.
14373         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
14374         dependency to...
14375         [($(build-shared),yes)]
14376         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
14377         ... this.
14378         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
14379         New dependency.
14380
14381 2013-09-09  Allan McRae  <allan@archlinux.org>
14382
14383         [BZ #15939]
14384         * manual/string.texi (Collation Functions): Fix typo in
14385         strcoll example.
14386         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
14387
14388         [BZ #15893]
14389         * stdlib/isomac.c (get_null_defines): Fix memory leak.
14390
14391         [BZ #15892]
14392         * libio/memstream.c (open_memstream): Fix memory leak.
14393         * libio/wmemstream.c (open_wmemstream): Likewise.
14394
14395         [BZ #15895]
14396         * nscd/netgroupcache.c: Fix nesting of ifdefs.
14397
14398 2013-09-09  Will Newton  <will.newton@linaro.org>
14399
14400         * malloc/Makefile: Add tst-realloc to tests.
14401         * malloc/tst-realloc.c: New file.
14402
14403 2013-09-09  Allan McRae  <allan@archlinux.org>
14404
14405         [BZ #15844]
14406         * COPYING: Update from GNU website to fix FSF address.
14407         * COPYING.LIB: Likewise.
14408
14409 2013-09-06  David S. Miller  <davem@davemloft.net>
14410
14411         * po/zh_TW.po: Update Chinese (traditional) translation from
14412         translation project.
14413
14414 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
14415             Joseph Myers  <joseph@codesourcery.com>
14416
14417         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
14418         "localeinfo.h".
14419         (obstack_chunk_alloc): New macro.
14420         (obstack_chunk_free): Likewise.
14421         (record_offset): New function.
14422         (init_locale_data): Likewise.
14423         (align_locale_data): Likewise.
14424         (add_locale_empty): Likewise.
14425         (add_locale_raw_data): Likewise.
14426         (add_locale_raw_obstack): Likewise.
14427         (add_locale_string): Likewise.
14428         (add_locale_wstring): Likewise.
14429         (add_locale_uint32): Likewise.
14430         (add_locale_uint32_array): Likewise.
14431         (add_locale_char): Likewise.
14432         (start_locale_structure): Likewise.
14433         (end_locale_structure): Likewise.
14434         (start_locale_prelude): Likewise.
14435         (end_locale_prelude): Likewise.
14436         (write_locale_data): Take locale_file structure rather than an
14437         iovec.
14438         * locale/programs/locfile.h: Include "obstack.h".
14439         (struct locale_file): Change to store locale file contents instead
14440         of header.
14441         (init_locale_data): New prototype.
14442         (align_locale_data): Likewise.
14443         (add_locale_empty): Likewise.
14444         (add_locale_raw_data): Likewise.
14445         (add_locale_raw_obstack): Likewise.
14446         (add_locale_string): Likewise.
14447         (add_locale_wstring): Likewise.
14448         (add_locale_uint32): Likewise.
14449         (add_locale_uint32_array): Likewise.
14450         (add_locale_char): Likewise.
14451         (start_locale_structure): Likewise.
14452         (end_locale_structure): Likewise.
14453         (start_locale_prelude): Likewise.
14454         (end_locale_prelude): Likewise.
14455         (write_locale_data): Update prototype.
14456         * locale/programs/3level.h (struct TABLE): Remove result field.
14457         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
14458         Use new locale_file interface.
14459         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
14460         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
14461         * locale/programs/ld-address.c (address_output): Use new
14462         locale_file interface.
14463         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
14464         NO_ADD_LOCALE.
14465         (collate_finish): Don't call collseq_table_finalize.
14466         (collate_output): Use new locale_file interface.
14467         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
14468         in file.
14469         (NO_FINALIZE): Change to NO_ADD_LOCALE.
14470         (TABLE): Move defines earlier in file.
14471         (ELEMENT): Likewise.
14472         (DEFAULT): Likewise.
14473         (wctrans_table_add): Move macro and inline function earlier in
14474         file.
14475         (struct wctype_table): Move type earlier in file.
14476         (add_locale_wctype_table): New static prototype.
14477         (struct locale_ctype_t): Use logical types instead of struct iovec
14478         pointers for members.
14479         (ctype_output): Use new locale_file interface.
14480         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
14481         new locale_file interface.
14482         (allocate_arrays): Update for use of new locale_file interface.
14483         * locale/programs/ld-identification.c (identification_output): Use
14484         new locale_file interface.
14485         * locale/programs/ld-measurement.c (measurement_output): Likewise.
14486         * locale/programs/ld-messages.c (messages_output): Likewise.
14487         * locale/programs/ld-monetary.c (monetary_output): Likewise.
14488         * locale/programs/ld-name.c (name_output): Likewise.
14489         * locale/programs/ld-numeric.c (numeric_output): Likewise.
14490         * locale/programs/ld-paper.c (paper_output): Likewise.
14491         * locale/programs/ld-telephone.c (telephone_output): Likewise.
14492         * locale/programs/ld-time.c (time_output): Likewise.
14493
14494 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14495
14496         * benchtests/Makefile: Add memrchr benchmark.
14497         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
14498         benchmark as memrchr.
14499         * benchtests/bench-memrchr-ifunc.c: New file.
14500         * benchtests/bench-memrchr.c: New file.
14501
14502 2013-09-06   Will Newton  <will.newton@linaro.org>
14503
14504         * benchtests/Makefile (string-bench): Add memcpy.
14505
14506 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
14507             Cong Wang  <amwang@redhat.com>
14508
14509         [BZ #15850]
14510         * sysdeps/unix/sysv/linux/bits/in.h
14511         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
14512         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
14513         before __USE_KERNEL_IPV6_DEFS uses.
14514         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
14515         IPPROTO_BEETPH.
14516         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
14517         sockaddr_in6, or ipv6_mreq.
14518
14519 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14520
14521         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
14522         memory access for final bytes in some large inputs.
14523         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
14524
14525 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14526
14527         * string/test-memrchr.c: New file.
14528         * string/test-memrchr-ifunc.c: New file.
14529         * string/Makefile: Add new memrchr testcase.
14530
14531 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
14532
14533         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
14534         fanotify_init returns EPERM.
14535
14536 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14537
14538         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
14539         errors.
14540         (top level): Treat second token from macro or constant entries for
14541         allowed headers as allowed.
14542         * include/complex.h: Condition internal declarations on
14543         [!_ISOMAC].
14544         * include/fenv.h: Condition include of <stdbool.h> and internal
14545         declarations on [!_ISOMAC].
14546
14547 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
14548
14549         [BZ #15923]
14550         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
14551
14552 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14553
14554         * configure.in (--enable-versioning): Remove configure option.
14555         (libc_cv_asm_symver_directive): Remove configure test.
14556         (libc_cv_ld_version_script_option): Likewise.
14557         (VERSIONING): Remove variable and AC_SUBST.
14558         (DO_VERSIONING): Remove AC_DEFINE.
14559         * configure: Regenerated.
14560         * config.h.in (DO_VERSIONING): Remove macro.
14561         * Makerules [$(versioning) = yes]: Change conditionals to
14562         [$(build-shared) = yes].
14563         * config.make.in (versioning): Remove variable.
14564         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
14565         [$(build-shared) = yes].
14566         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
14567         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
14568         * elf/Makefile [$(versioning) = yes]: Change conditionals to
14569         [$(build-shared) = yes].
14570         * extra-lib.mk [$(versioning) = yes]: Likewise.
14571         * hurd/Makefile [$(versioning) = yes]: Likewise.
14572         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
14573         [SHARED].
14574         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
14575         [SHARED].
14576         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14577         [SHARED && !NO_HIDDEN].
14578         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
14579         [SHARED].
14580         [SHARED && DO_VERSIONING]: Likewise..
14581         * libio/Makefile [$(versioning) = yes]: Change conditionals to
14582         [$(build-shared) = yes].
14583         * manual/install.texi (--disable-versioning): Remove
14584         documentation.
14585         * INSTALL: Regenerated.
14586         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
14587         to [SHARED].
14588         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
14589         [$(build-shared) = yes].
14590         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
14591         * sysdeps/i386/i686/multiarch/strstr-c.c
14592         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14593         [SHARED && !NO_HIDDEN].
14594         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
14595         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
14596         * sysdeps/powerpc/powerpc32/dl-machine.c
14597         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
14598         * sysdeps/powerpc/powerpc32/sysdep.h
14599         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
14600         to [SHARED && PIC && !NO_HIDDEN].
14601         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
14602         conditional to [SHARED].
14603
14604 2013-09-04   Will Newton  <will.newton@linaro.org>
14605
14606         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
14607         * benchtests/bench-string.h: Include bench-timing.h instead
14608         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
14609         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
14610         call to HP_TIMING_DIFF_INIT.
14611         * benchtests/bench-memccpy.c: Use bench-timing.h macros
14612         instead of hp-timing.h macros.
14613         * benchtests/bench-memchr.c: Likewise.
14614         * benchtests/bench-memcmp.c: Likewise.
14615         * benchtests/bench-memcpy.c: Likewise.
14616         * benchtests/bench-memmem.c: Likewise.
14617         * benchtests/bench-memmove.c: Likewise.
14618         * benchtests/bench-memset.c: Likewise.
14619         * benchtests/bench-rawmemchr.c: Likewise.
14620         * benchtests/bench-strcasecmp.c: Likewise.
14621         * benchtests/bench-strcasestr.c: Likewise.
14622         * benchtests/bench-strcat.c: Likewise.
14623         * benchtests/bench-strchr.c: Likewise.
14624         * benchtests/bench-strcmp.c: Likewise.
14625         * benchtests/bench-strcpy.c: Likewise.
14626         * benchtests/bench-strcpy_chk.c: Likewise.
14627         * benchtests/bench-strlen.c: Likewise.
14628         * benchtests/bench-strncasecmp.c: Likewise.
14629         * benchtests/bench-strncat.c: Likewise.
14630         * benchtests/bench-strncmp.c: Likewise.
14631         * benchtests/bench-strncpy.c: Likewise.
14632         * benchtests/bench-strnlen.c: Likewise.
14633         * benchtests/bench-strpbrk.c: Likewise.
14634         * benchtests/bench-strrchr.c: Likewise.
14635         * benchtests/bench-strspn.c: Likewise.
14636         * benchtests/bench-strstr.c: Likewise.
14637
14638 2013-09-04  Will Newton  <will.newton@linaro.org>
14639
14640         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
14641
14642 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
14643
14644         [BZ #15427]
14645         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
14646         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
14647         * math/libm-test.inc (lgamma_test_data): Add more tests.
14648         * sysdeps/i386/fpu/libm-test-ulps: Update.
14649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14650
14651 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
14652
14653         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
14654         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14655         Add ifunc.
14656         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
14657         Add strcmp-sse2-unaligned
14658         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
14659
14660 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14661
14662         * Versions.def (libc): Add GLIBC_2.19.
14663
14664 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14665
14666         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
14667         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
14668
14669 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
14670
14671         [BZ #14155]
14672         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
14673         intermediate calculations in recurrence.
14674         (__ieee754_ynf): Likewise.
14675         * math/libm-test.inc (jn_test_data): Do not allow spurious
14676         underflow exception.  Add more tests.
14677         (yn_test_data): Add more tests.
14678         * sysdeps/i386/fpu/libm-test-ulps: Update.
14679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14680
14681 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
14682
14683         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
14684
14685 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14686
14687         * csu/init-first.c: Fix then/than typos.
14688         * locale/programs/ld-collate.c: Likewise.
14689         * locale/programs/linereader.h: Likewise.
14690         * manual/charset.texi: Likewise.
14691         * manual/filesys.texi: Likewise.
14692         * manual/stdio.texi: Likewise.
14693         * manual/string.texi: Likewise.
14694         * stdlib/fmtmsg.c: Likewise.
14695         * sysdeps/i386/stpncpy.S: Likewise.
14696         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14697         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14698         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14699         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14700
14701 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14702
14703         * elf/dl-open.c: Fix typos.
14704         * iconvdata/gbbig5.c: Likewise.
14705         * iconvdata/iso-2022-jp.c: Likewise.
14706         * iconv/gconv_int.h: Likewise.
14707         * iconv/loop.c: Likewise.
14708         * nis/rpcsvc/nis.h: Likewise.
14709         * resolv/ns_name.c: Likewise.
14710         * stdio-common/vfscanf.c: Likewise.
14711         * streams/stropts.h: Likewise.
14712         * sunrpc/rpc_thread.c: Likewise.
14713         * sysdeps/i386/strpbrk.S: Likewise.
14714         * sysdeps/ieee754/k_standard.c: Likewise.
14715         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14716         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14717         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
14718         * sysdeps/mach/hurd/profil.c: Likewise.
14719         * sysdeps/s390/dl-procinfo.h: Likewise.
14720         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
14721         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
14722         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
14723         * sysdeps/x86_64/dl-trampoline.S: Likewise.
14724         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14725
14726 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
14727
14728         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
14729         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
14730
14731 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
14732
14733         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
14734         aix specific files.
14735         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
14736         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
14737         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
14738         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
14739         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
14740         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
14741         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
14742         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
14743
14744 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14745             Roland McGrath  <roland@hack.frob.com>
14746
14747         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
14748         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14749
14750 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14751
14752         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
14753         __executable_start symbol instead of _start.
14754
14755 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14756
14757         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
14758         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
14759         Move macros to...
14760         * sysdeps/gnu/ldsodefs.h: ... this new file.
14761
14762         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
14763         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
14764         instead of ELFOSABI_LINUX.
14765
14766         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
14767         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
14768         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
14769         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
14770         Likewise.
14771         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
14772         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
14773         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
14774         Likewise.
14775         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14776         (ibm_extended_long_double): Add ieee_nan member.
14777         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
14778         (do_test): New function.
14779
14780         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
14781         TEST_TRUNC.
14782         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
14783         functions, renamed from truncdfsf_test, trunctfsf_test,
14784         trunctfdf_test.
14785         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
14786         functions.
14787         (do_test): Run all these.
14788
14789 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
14790
14791         * argp/argp-help.c: Fix typos.
14792         * argp/argp-parse.c: Likewise.
14793         * debug/backtracesyms.c: Likewise.
14794         * elf/elf.h: Likewise.
14795         * malloc/malloc.c: Likewise.
14796         * nis/nis_print.c: Likewise.
14797         * resolv/res_comp.c: Likewise.
14798         * stdlib/stdlib.h: Likewise.
14799         * sunrpc/clnt_tcp.c: Likewise.
14800         * sunrpc/clnt_udp.c: Likewise.
14801         * sunrpc/clnt_unix.c: Likewise.
14802         * sysdeps/unix/bsd/ptsname.c: Likewise.
14803         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
14804         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
14805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
14806         Likewise.
14807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
14808         Likewise.
14809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
14810         Likewise.
14811         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
14812
14813 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14814
14815         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
14816         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14817
14818 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
14819
14820         [BZ #15897]
14821         * dlfcn/Makefile (tests): Add bug-dl-leaf.
14822         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
14823         ($(objpfx)bug-dl-leaf): New rule.
14824         ($(objpfx)bug-dl-leaf.so): Likewise.
14825         ($(objpfx)bug-dl-leaf.out): Likewise.
14826         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
14827         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
14828         * dlfcn/bug-dl-leaf.c: New test.
14829         * dlfcn/bug-dl-leaf-lib.c: Likewise.
14830         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
14831         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
14832         (dlclose): Likewise.
14833         (dlmopen): Likewise.
14834
14835 2013-08-27  Roland McGrath  <roland@hack.frob.com>
14836
14837         * include/netdb.h [!_ISOMAC]:
14838         Don't include <tls.h>.
14839         (h_errno, __libc_h_errno): Move declaration and macros out of
14840         [_LIBC_REENTRANT].
14841
14842         * include/resolv.h [_RESOLV_H_]:
14843         Don't include <tls.h>.
14844         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
14845         * resolv/res_libc.c: Don't include <tls.h>.
14846         (_res): Use __attribute__ ((nocommon)) in place of
14847         __attribute__ ((section (".bss"))).
14848
14849         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
14850         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
14851
14852         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
14853
14854         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
14855         only under [SIOCGIFCONF && SIOCGIFNETMASK].
14856
14857         * resolv/res_mkquery.c: Include <sys/time.h>.
14858
14859         * inet/ifreq.c: Moved to ...
14860         * sysdeps/unix/ifreq.c: ... here.
14861         * inet/ifreq.c: New file, true stub version.
14862
14863         * socket/sa_len.c: New file.
14864         * socket/Makefile (aux): Add it.
14865         * sysdeps/unix/sysv/linux/Makefile
14866         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
14867         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
14868         and #include <socket/sa_len.c>.
14869         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
14870         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
14871
14872         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
14873         * bits/socket.h: ... here.
14874
14875         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
14876         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
14877         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
14878
14879 2013-08-27  Andreas Schwab  <schwab@suse.de>
14880
14881         [BZ #15736]
14882         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
14883         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
14884         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
14885         * string/test-strcasecmp.c (test_main): Run tests in several
14886         locales.
14887         * string/test-strncasecmp.c (test_main): Likewise.
14888
14889         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
14890         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
14891         to __strcasecmp_nonascii and __strncasecmp_nonascii.
14892         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
14893         (__strncasecmp_ssse3) [PIC]: Likewise.
14894
14895 2013-08-26  Roland McGrath  <roland@hack.frob.com>
14896
14897         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
14898
14899         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
14900         instead of explicitly declaring xdecrypt.
14901         * nis/nss_nis/nis-publickey.c: Likewise.
14902
14903 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14904
14905         [BZ #15890]
14906         * nscd/aicache.c: Include res_hconf.h.
14907         (addhstaiX): Initialize res_hconf.
14908
14909 2013-08-26  Andreas Schwab  <schwab@suse.de>
14910
14911         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
14912         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
14913
14914 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14915
14916         * nscd/aicache.c (addhstaiX): Fix indentation.
14917
14918 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
14919
14920         * configure.ac: Quote $build_pt_chown test.
14921         * configure: Regenerated.
14922
14923 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
14924
14925         [BZ #15532]
14926         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
14927         * math/s_cexpf.c (__cexpf): Likewise.
14928         * math/s_cexpl.c (__cexpl): Likewise.
14929         * math/libm-test.inc (cexp_test_data): Correct expected return
14930         value for NaN + i0.  Add another test.
14931
14932 2013-08-22  David S. Miller  <davem@davemloft.net>
14933
14934         * po/ca.po: Update Catalan translation from translation project.
14935         * po/uk.po: Add Ukrainian translations from translation project.
14936
14937 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
14938
14939         [BZ #15797]
14940         * math/s_fdim.c (__fdim): Check for infinite arguments if result
14941         is infinite, not alongside NaN test.
14942         * math/s_fdimf.c (__fdimf): Likewise.
14943         * math/s_fdiml.c (__fdiml): Likewise.
14944         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
14945         errno is unchanged.
14946
14947 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
14948
14949         * argp/argp-help.c: Fix typos.
14950         * crypt/speeds.c: Likewise.
14951         * csu/check_fds.c: Likewise.
14952         * elf/dl-load.c: Likewise.
14953         * elf/dl-open.c: Likewise.
14954         * elf/reldep3.c: Likewise.
14955         * elf/reldep.c: Likewise.
14956         * elf/sprof.c: Likewise.
14957         * iconv/iconv_charmap.c: Likewise.
14958         * iconv/skeleton.c: Likewise.
14959         * iconv/strtab.c: Likewise.
14960         * io/lockf64.c: Likewise.
14961         * libio/libioP.h: Likewise.
14962         * resolv/gai_notify.c: Likewise.
14963         * resolv/ns_name.c: Likewise.
14964         * resolv/ns_samedomain.c: Likewise.
14965         * resolv/res_send.c: Likewise.
14966         * stdlib/random.c: Likewise.
14967         * sunrpc/rpc/xdr.h: Likewise.
14968         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
14969         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14970         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14971         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14972         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14973         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14974         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14975         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14976         * sysdeps/mach/hurd/check_fds.c: Likewise.
14977         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14978         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
14979         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14980         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14981         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14982         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14983         * sysdeps/pthread/aio_notify.c: Likewise.
14984         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
14985         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
14986         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
14987         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14988         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
14989
14990 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14991
14992         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
14993         version if bit_Slow_SSE4_2 is set.
14994         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14995         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14996
14997 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14998
14999         [BZ #15867]
15000         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
15001         trampoline stack frame information.
15002         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
15003         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
15004         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
15005         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
15006         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
15007         * sysdeps/unix/sysv/linux/powerpc/init-first.c
15008         (_libc_vdso_platform_setup): Initialize the signal trampolines.
15009         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
15010         sa_flags value.
15011         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
15012         interrupting a syscall and set with option SA_SIGINFO.
15013
15014 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15015
15016         [BZ #15531]
15017         * math/s_cproj.c (__cproj): Only return an infinity if one part of
15018         argument is infinite.
15019         * math/s_cprojf.c (__cprojf): Likewise.
15020         * math/s_cprojl.c (__cprojl): Likewise.
15021         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
15022         * math/libm-test.inc (cproj_test_data): Add more tests.
15023
15024         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
15025
15026         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
15027         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
15028         size.  Use __ffs to determine corresponding shift.
15029
15030 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15031             Roland McGrath  <roland@hack.frob.com>
15032
15033         * Makefile (INSTALL): Remove trailing blank lines from output of
15034         makeinfo.
15035
15036 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15037
15038         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
15039         Align 32 bit compat elf_greg to 8 bytes.
15040
15041 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15042
15043         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
15044
15045 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
15046
15047         * string/strcoll_l.c (coll_seq): New structure.
15048         (get_next_seq_cached): New function.
15049         (get_next_seq): New function.
15050         (do_compare): New function.
15051         (STRCOLL): Use GNU style definition.  Simplify implementation
15052         by using get_next_seq, get_next_seq_cached and do_compare.
15053
15054 2013-08-16  Florian Weimer  <fweimer@redhat.com>
15055
15056         [BZ #14699]
15057         CVE-2013-4237
15058         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
15059         member.
15060         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
15061         member.
15062         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
15063         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
15064         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
15065         conditional.
15066         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
15067         GETDENTS_64BIT_ALIGNED.
15068         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15069         * manual/filesys.texi (Reading/Closing Directory): Document
15070         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
15071         strongly.
15072         * manual/conf.texi (Limits for Files): Add portability note to
15073         NAME_MAX, PATH_MAX.
15074         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
15075
15076 2013-08-13  Andreas Schwab  <schwab@suse.de>
15077
15078         [BZ #15749]
15079         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
15080         of fabs.
15081         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
15082         LDBL_MAX_EXP >= 16384]: Add tests for it.
15083
15084 2013-08-12  David S. Miller  <davem@davemloft.net>
15085
15086         * version.h (RELEASE): Set to "development".
15087         (VERSION): Set to "2.18.90".
15088         * NEWS: Add 2.19 section.
15089
15090 2013-08-03  David S. Miller  <davem@davemloft.net>
15091
15092         * po/ko.po: Update Korean translation from translation project.
15093
15094 2013-08-01  David S. Miller  <davem@davemloft.net>
15095
15096         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
15097         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
15098         Bilka.
15099
15100 2013-07-30  David S. Miller  <davem@davemloft.net>
15101
15102         * po/fr.po: Update French translation from translation project.
15103
15104 2013-07-28  David S. Miller  <davem@davemloft.net>
15105
15106         * po/cs.po: Update Czech translation from translation project.
15107
15108         * po/sv.po: Update Swedish translation from translation project.
15109
15110 2013-07-27  David S. Miller  <davem@davemloft.net>
15111
15112         * po/eo.po: Update Esperanto translation from translation project.
15113
15114         * po/vi.po: Update Vietnamese translation from translation project.
15115
15116         * po/de.po: Update German translation from translation project.
15117
15118 2013-07-26  David S. Miller  <davem@davemloft.net>
15119
15120         * po/bg.po: Update Bulgarian translation from translation project.
15121
15122         * po/nl.po: Update Dutch translation from translation project.
15123         * po/pl.po: Update Polish translation from translation project.
15124         * po/ru.po: Update Russian translation from translation project.
15125
15126 2013-07-24  David S. Miller  <davem@davemloft.net>
15127
15128         * po/libc.pot: Update.
15129
15130 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15131
15132         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
15133         variable page size.
15134         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
15135         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
15136         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
15137
15138 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15139
15140         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
15141
15142 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15143             Andreas Schwab  <schwab@suse.de>
15144             Roland McGrath  <roland@hack.frob.com>
15145             Joseph Myers  <joseph@codesourcery.com>
15146             Carlos O'Donell  <carlos@redhat.com>
15147
15148         [BZ #15755]
15149         * config.h.in: Define HAVE_PT_CHOWN.
15150         * config.make.in (build-pt-chown): New variable.
15151         * configure.in (--enable-pt_chown): New configure option.
15152         * configure: Regenerate.
15153         * login/Makefile: Include Makeconfig.  Build pt_chown only if
15154         build-pt-chown is enabled.
15155         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
15156         pt_chown to fix pty ownership.
15157         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
15158         CLOSE_ALL_FDS.
15159         * manual/install.texi (Configuring and compiling): Mention
15160         --enable-pt_chown. Add @findex for grantpt.
15161         * INSTALL: Regenerate.
15162
15163 2013-07-20  David S. Miller  <davem@davemloft.net>
15164
15165         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
15166         difference between 32-bit and 64-bit.
15167
15168 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
15169
15170         [BZ #15711]
15171         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
15172         Avoid system header dependency with -ffreestanding.
15173         ($(objpfx)bits/syscall%d): Likewise.
15174
15175 2013-07-13  David S. Miller  <davem@davemloft.net>
15176
15177         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
15178         underflows from atanl/atan2l due to bug 15319.
15179         (casinh_test_data): Likewise.
15180
15181 2013-07-07  David S. Miller  <davem@davemloft.net>
15182
15183         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
15184
15185 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
15186
15187         * sysdeps/i386/fpu/libm-test-ulps: Update.
15188         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15189
15190 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15191
15192         * configure.in (--enable-lock-elision): Fix message text.
15193         * INSTALL: Regenerate.
15194         * configure: Regenerate.
15195
15196 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15197
15198         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15199
15200 2013-07-03  Andreas Jaeger  <aj@suse.de>
15201
15202         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
15203         define.
15204         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
15205         (ptrace_peeksiginfo_args): Add.
15206         (__ptrace_peeksiginfo_flags): Add.
15207         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15208         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15209         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15210
15211 2013-07-03  Allan McRae  <allan@archlinux.org>
15212
15213         * sysdeps/i386/fpu/libm-test-ulps: Update.
15214
15215 2013-07-02  David S. Miller  <davem@davemloft.net>
15216
15217         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15218
15219 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
15220
15221         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15222
15223 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15224
15225         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
15226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15227
15228 2013-07-02  Andi Kleen <ak@linux.intel.com>
15229
15230         * config.h.in (ENABLE_LOCK_ELISION): Add.
15231         * configure.in (--enable-lock-elision): Add option.
15232         * manual/install.texi: Document --enable lock elision.
15233         * configure: Regenerate
15234         * INSTALL: Regenerate.
15235
15236 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
15237
15238         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
15239         SSE4.2 strcasecmp for libc.a.
15240         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
15241
15242 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15243
15244         [BZ #13304]
15245         * soft-fp/op-common.h (_FP_FMA): New macro.
15246         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
15247         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
15248         (_FP_MUL_MEAT_1_imm): ... here.
15249         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
15250         (_FP_MUL_MEAT_1_wide): ... here.
15251         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
15252         (_FP_MUL_MEAT_1_hard): ... here.
15253         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
15254         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
15255         (_FP_MUL_MEAT_2_wide): ... here.
15256         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
15257         (_FP_MUL_MEAT_2_wide_3mul): ... here.
15258         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
15259         (_FP_MUL_MEAT_2_gmp): ... here.
15260         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
15261         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
15262         (_FP_MUL_MEAT_4_wide): ... here.
15263         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
15264         (_FP_MUL_MEAT_4_gmp): ... here.
15265         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
15266         (_FP_WFRACBITS_DW_S): Likewise.
15267         (_FP_WFRACXBITS_DW_S): Likewise.
15268         (_FP_HIGHBIT_DW_S): Likewise.
15269         (FP_FMA_S): Likewise.
15270         (_FP_FRAC_HIGH_DW_S): Likewise.
15271         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
15272         (_FP_WFRACBITS_DW_D): Likewise.
15273         (_FP_WFRACXBITS_DW_D): Likewise.
15274         (_FP_HIGHBIT_DW_D): Likewise.
15275         (FP_FMA_D): Likewise.
15276         (_FP_FRAC_HIGH_DW_D): Likewise.
15277         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
15278         (_FP_WFRACBITS_DW_E): Likewise.
15279         (_FP_WFRACXBITS_DW_E): Likewise.
15280         (_FP_HIGHBIT_DW_E): Likewise.
15281         (FP_FMA_E): Likewise.
15282         (_FP_FRAC_HIGH_DW_E): Likewise.
15283         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
15284         (_FP_WFRACBITS_DW_Q): Likewise.
15285         (_FP_WFRACXBITS_DW_Q): Likewise.
15286         (_FP_HIGHBIT_DW_Q): Likewise.
15287         (FP_FMA_Q): Likewise.
15288         (_FP_FRAC_HIGH_DW_Q): Likewise.
15289         * soft-fp/fmasf4.c: New file.
15290         * soft-fp/fmadf4.c: Likewise.
15291         * soft-fp/fmatf4.c: Likewise.
15292
15293 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15294
15295         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15296         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
15297         Silvermont.
15298         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
15299         macro.
15300         (index_Slow_SSE4_2): Likewise.
15301         (index_Prefer_PMINUB_for_stringop): Likewise.
15302         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
15303         bit_Slow_SSE4_2 is set.
15304         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
15305         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15306
15307 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15308
15309         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
15310         rtld_global._dl_hwcap2.
15311         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
15312         POWER8.
15313         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
15314         POWER8 feature descriptions defined in _dl_hwcap2.
15315         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
15316         string handling for POWER8 feature bits.
15317         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
15318         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
15319         _dl_powerpc_cap_flags.
15320         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
15321         * sysdeps/powerpc/rtld-global-offsets.sym
15322         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
15323         _dl_hwcap2 in the rtld_global_ro structure.
15324
15325 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15326
15327         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
15328         hardware capabilities in support of AT_HWCAP2.
15329         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
15330         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
15331         GLRO(dl_hwcap2).
15332         (_dl_show_auxv): Add support for calling _dl_procinfo to display
15333         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
15334         explicitly the unknown a_type display mechanism is used.
15335         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
15336         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
15337         struct member.
15338         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
15339         to macro prototype for AT_HWCAP2 support.
15340         * sysdeps/i386/dl-procinfo.h: Likewise.
15341         * sysdeps/s390/dl-procinfo.h: Likewise.
15342         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
15343         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
15344         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
15345         return -1 for unknown a_type display fallback.
15346         * sysdeps/sparc/dl-procinfo.h: Likewise.
15347         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
15348         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
15349
15350 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
15351
15352         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
15353         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
15354
15355 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
15356
15357         [BZ #12492]
15358         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
15359         mprotect making __stack_prot writable.
15360
15361 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15362             Joseph Myers  <joseph@codesourcery.com>
15363
15364         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
15365         as being properly aligned.
15366
15367 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
15368
15369         * dlfcn/modstatic5.c: New file.
15370         * dlfcn/tststatic5.c: New file.
15371         * dlfcn/Makefile (tests): Add tststatic5.
15372         (tests-static): Likewise.
15373         (modules-names): Add modstatic5.
15374         (tststatic5-ENV): New variable.
15375         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
15376
15377         [BZ #15022]
15378         * elf/dl-support.c (_dl_main_map): New variable.
15379         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
15380         (_dl_nns, _dl_load_adds): Set to 1.
15381         (_dl_initial_searchlist): Refer to _dl_main_map.
15382         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
15383         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
15384         call to _dl_get_origin.
15385         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
15386         around call_map.
15387         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
15388         * dlfcn/modstatic3.c: New file.
15389         * dlfcn/tststatic3.c: New file.
15390         * dlfcn/tststatic4.c: New file.
15391         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
15392         (tests-static): Likewise.
15393         (modules-names): Add modstatic3.
15394         (tststatic3-ENV, tststatic4-ENV): New variables.
15395         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
15396         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
15397
15398 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
15399
15400         * configure.in (CC): Require GCC version 4.4 or later.
15401         * configure: Regenerated.
15402         * manual/install.texi (Tools for Compilation): Update GCC version
15403         requirement.
15404         * INSTALL: Regenerated.
15405
15406 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15407
15408         [BZ #15674]
15409         * string/test-memcmp.c (check2): New.
15410         (main): Call check2.
15411
15412         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
15413
15414 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
15415
15416         [BZ #15022]
15417         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
15418         over to...
15419         (dl_open_worker) [!SHARED]: ... here.
15420
15421 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15422
15423         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
15424
15425 2013-06-25  Richard Henderson  <rth@redhat.com>
15426
15427         * locale/programs/locarchive.c: Include <libc-internal.h>
15428
15429 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
15430
15431         * manual/texinfo.tex: Update to version 2013-06-21.17, with
15432         trailing whitespace removed.
15433
15434 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15435
15436         [BZ #10283]
15437         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
15438         * locale/programs/locarchive.c: Include libc-mmap.h.
15439         (prepare_address_space): Take two new outputs (the mmap base and len).
15440         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
15441         values.
15442         (create_archive): Declare new mmap base and len values for
15443         prepare_address_space, and store the result in ah.
15444         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
15445         (enlarge_archive): If ah->mmap_base is not NULL, use that and
15446         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15447         Declare new mmap base and len values for
15448         prepare_address_space, and store the result in new_ah.
15449         (open_archive): Declare new mmap base and len values for
15450         prepare_address_space, and store the result in ah.
15451         (close_archive): If ah->mmap_base is not NULL, use that and
15452         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15453         * sysdeps/generic/libc-mmap.h: New file.
15454
15455 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15456
15457         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
15458         (ALIGN_UP): Likewise.
15459         (PTR_ALIGN_DOWN): Likewise.
15460         (PTR_ALIGN_UP): Likewise.
15461
15462 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15463
15464         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
15465         entry mapped to PPC_PLATFORM_POWER8.
15466         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
15467         POWER8.
15468         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
15469         (_dl_string_platform): Add case for exporting platform position for
15470         POWER8.
15471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
15472         search path to sysdeps/powerpc/powerpc32/power8 directory.
15473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
15474         search path to sysdeps/powerpc/powerpc64/power8 directory.
15475         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
15476         power7 directories.
15477         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
15478         power7 directories.
15479
15480 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15481
15482         * INSTALL: Regenerate.
15483
15484         * nscd/connections.c (nscd_init): Fix comment.
15485
15486 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
15487
15488         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
15489
15490         [BZ #15667]
15491         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
15492         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
15493
15494 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15495
15496         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
15497         DL_DST_REQ_STATIC.
15498         (DL_DST_REQ_STATIC): Remove macro.
15499
15500 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
15501
15502         [BZ #7006]
15503         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
15504         with a shift of 0 bits.
15505
15506 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15507
15508         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
15509         $(tststatic-ENV).
15510
15511 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15512
15513         [BZ #15655]
15514         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
15515
15516 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15517
15518         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
15519         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
15520         accepts -fno-tree-loop-distribute-patterns.
15521         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
15522         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
15523         recursive call.
15524         * string/memset.c (memset): Likewise.
15525         * string/test-memmove.c (simple_memmove): Disable loop transformation
15526         to library calls.
15527         * string/test-memset.c (simple_memset): Likewise.
15528         * benchtests/bench-memmove.c (simple_memmove): Likewise.
15529         * benchtests/bench-memset.c (simple_memset): Likewise.
15530         * configure: Regenerated.
15531
15532 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
15533
15534         * math/test-misc.c (main): Ignore fesetround failure when failures
15535         of subsequent rounding tests would be ignored.
15536
15537         [BZ #15654]
15538         * math/fedisblxcpt.c (fedisableexcept): Return 0.
15539         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
15540         * math/fegetenv.c (__fegetenv): Return 0.
15541         * math/fegetexcept.c (fegetexcept): Return 0.
15542         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
15543         FE_TONEAREST.
15544         * math/feholdexcpt.c (feholdexcept): Return 0.
15545         * math/fesetenv.c (__fesetenv): Return 0.
15546         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
15547         argument FE_TONEAREST.
15548         * math/feupdateenv.c (__feupdateenv): Return 0.
15549         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
15550
15551 2013-06-18  Roland McGrath  <roland@hack.frob.com>
15552
15553         * elf/rtld-Rules (rtld-compile-command.S): New variable.
15554         (rtld-compile-command.s, rtld-compile-command.c): New variables.
15555         ($(objpfx)rtld-%.os rules): Use them.
15556
15557 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15558
15559         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
15560         fields.
15561
15562 2013-06-17  Roland McGrath  <roland@hack.frob.com>
15563
15564         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
15565         length of target pattern, then descending length of dependency pattern.
15566         * configure.in (AWK): Require gawk 3.1.2 or newer.
15567         * manual/install.texi (Tools for Compilation): Say that we do.
15568         * configure: Regenerated.
15569
15570         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
15571         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
15572         * scripts/sysd-rules.awk: ... this new script.
15573         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
15574         than a glob-style pattern.
15575
15576 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
15577
15578         * math/test-misc.c (main): Do not treat incorrectly rounded
15579         conversions as failure unless ROUNDING_TESTS passes.
15580
15581 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
15582
15583         [BZ #15631]
15584         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
15585         restore exception state around main square root computation, then
15586         check for inexactness explicitly.
15587
15588         * math/libm-test.inc (fma_test_data): Add another test.
15589
15590 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
15591
15592         * manual/threads.texi (Non-POSIX Extensions): New document
15593         node.  Document pthread_getattr_default_np and
15594         pthread_setattr_default_np.
15595
15596         * Versions.def (libpthread): Add GLIBC_2.18.
15597         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
15598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15599         Likewise.
15600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15601         Likewise.
15602         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15603         Likewise.
15604         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15605         Likewise.
15606         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
15607         Likewise.
15608         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
15609         Likewise.
15610         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
15611         Likewise.
15612         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15613         Likewise.
15614         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
15615         Likewise.
15616
15617 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15618
15619         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15620         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
15621
15622 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15623             H.J. Lu  <hjl.tools@gmail.com>
15624
15625         [BZ #15627]
15626         * sysdeps/x86_64/rtld-memset.c: Remove file.
15627         * sysdeps/x86_64/rtld-memset.S: New file.
15628
15629 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
15630
15631         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
15632         (test_in_one_mode): Take arguments for whether the rounding mode
15633         is supported for each floating-point type.
15634         (do_test): Pass new arguments to test_in_one_mode using
15635         ROUNDING_TESTS.
15636
15637 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15638
15639         * posix/tst-waitid.c (do_test): Distinguish different instances of
15640         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
15641         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
15642         before entering the kernel for waitpid.
15643
15644 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15645
15646         * NEWS: Fix note on clock function precision.  Text by Roland
15647         McGrath.
15648
15649 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15650
15651         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
15652         it into place only when and if the sanity check passes.
15653
15654 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
15655
15656         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
15657         output for whether conversion result is exact.  Take argument
15658         indicating whether type is IBM long double.
15659         (round_for_all): Change need_exact field to ibm_ld.
15660         * stdlib/tst-strtod-round.c (struct exactness): New type.
15661         (struct test): Change bool ld_ok field to struct exactness exact.
15662         (TEST): Update all definitions for change to field.
15663         (tests): Regenerate array contents.
15664         (test_in_one_mode): Take pointer to new field instead of old ld_ok
15665         field value.  Check for IBM long double here.
15666         (do_test): Update calls to test_in_one_mode.
15667
15668 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15669
15670         [BZ #12515]
15671         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
15672         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
15673
15674 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15675
15676         [BZ #15605]
15677         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
15678         generated by the compiler on loop optimizations.
15679         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
15680         general definitions.
15681
15682 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
15683
15684         * math/bug-nextafter.c: Include <math-tests.h>.
15685         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15686         the relevant type.
15687         * math/bug-nexttoward.c: Include <math-tests.h>.
15688         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15689         the relevant type.
15690         * math/test-misc.c: Include <math-tests.h>.
15691         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15692         the relevant type.
15693
15694 2013-06-12  Andreas Jaeger  <aj@suse.de>
15695
15696         * po/ia.po: Update Interlingua translation from translation
15697         project.
15698
15699 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
15700
15701         * include/fenv.h: Include stdbool.h.
15702         (struct rm_ctx): New structure.
15703         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
15704         Define macro.
15705         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
15706         (SET_RESTORE_ROUNDF): Likewise.
15707         (SET_RESTORE_ROUNDL): Likewise.
15708         (SET_RESTORE_ROUND_NOEX): Likewise.
15709         (SET_RESTORE_ROUND_NOEXF): Likewise.
15710         (SET_RESTORE_ROUND_NOEXL): Likewise.
15711         (SET_RESTORE_ROUND_53BIT): Likewise.
15712         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
15713         (libc_feresetround_noexf_ctx): Likewise.
15714         (libc_feresetround_noexl_ctx): Likewise.
15715         (libc_feholdsetround_53bit_ctx): Likewise.
15716         (libc_feresetround_53bit_ctx): Likewise.
15717         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
15718         (libc_feholdexcept_setround_sse_ctx): New function.
15719         (libc_fesetenv_sse_ctx): Likewise.
15720         (libc_feupdateenv_sse_ctx): Likewise.
15721         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
15722         (libc_feholdexcept_setround_387_ctx): Likewise.
15723         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
15724         (libc_feholdsetround_387_prec_ctx): Likewise.
15725         (libc_feholdsetround_387_ctx): Likewise.
15726         (libc_feholdsetround_387_53bit_ctx): Likewise.
15727         (libc_feholdsetround_sse_ctx): Likewise.
15728         (libc_feresetround_sse_ctx): Likewise.
15729         (libc_feresetround_387_ctx): Likewise.
15730         (libc_feupdateenv_387_ctx): Likewise.
15731         (libc_feholdexcept_setroundf_ctx): Define macro.
15732         (libc_fesetenvf_ctx): Likewise.
15733         (libc_feupdateenvf_ctx): Likewise.
15734         (libc_feholdsetroundf_ctx): Likewise.
15735         (libc_feresetroundf_ctx): Likewise.
15736         (libc_feholdexcept_setround_ctx): Likewise.
15737         (libc_fesetenv_ctx): Likewise.
15738         (libc_feupdateenv_ctx): Likewise.
15739         (libc_feholdsetround_ctx): Likewise.
15740         (libc_feresetround_ctx): Likewise.
15741         (libc_feholdexcept_setroundl_ctx): Likewise.
15742         (libc_feupdateenvl_ctx): Likewise.
15743         (libc_feholdsetroundl_ctx): Likewise.
15744         (libc_feresetroundl_ctx): Likewise.
15745         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
15746         (libc_feresetround_53bit_ctx): Likewise.
15747
15748 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15749
15750         * locale/iso-639.def: Convert to UTF-8.
15751
15752 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
15753
15754         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
15755         (EXCEPTION_TESTS_double): Likewise.
15756         (EXCEPTION_TESTS_long_double): Likewise.
15757         (EXCEPTION_TESTS): Likewise.
15758         * math/libm-test.inc (test_exceptions): Only test exceptions if
15759         EXCEPTION_TESTS (FLOAT).
15760
15761 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15762
15763         * benchtests/Makefile (string-bench): Add strcpy_chk and
15764         stpcpy_chk.
15765         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
15766         * benchtests/bench-stpcpy_chk.c: New file.
15767         * benchtests/bench-strcpy_chk-ifunc.c: New file.
15768         * benchtests/bench-strcpy_chk.c: New file.
15769         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
15770         code.
15771         (do_test): Likewise.
15772
15773 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15774
15775         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
15776         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
15777         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
15778         with tabs where appropriate.
15779         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
15780         dl-procinfo.h.
15781         [PPC_PLATFORM_PPC440]: Likewise.
15782         [PPC_PLATFORM_PPC464]: Likewise.
15783         [PPC_PLATFORM_PPC476]: Likewise.
15784         (_dl_string_platform): Add support for detecting ppc405, ppc440,
15785         ppc464, and ppc476 platform strings merging from ports/
15786         dl-procinfo.h.
15787
15788 2013-06-11  Andreas Schwab  <schwab@suse.de>
15789
15790         [BZ #14991]
15791         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
15792         (from_ucs4_idx): Regenerate.
15793         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
15794         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
15795         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
15796         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
15797         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
15798         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
15799         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
15800         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
15801         from FROM_LOOP and TO_LOOP specific macros.
15802         (BODY): Handle combining characters.
15803         * iconvdata/BIG5HKSCS.irreversible: Update.
15804         * iconvdata/BIG5HKSCS.precomposed: New file.
15805         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
15806         characters.
15807         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
15808
15809 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15810
15811         * include/sys/time.h: Fix indentation and add copyright header.
15812
15813         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
15814         (do_test): Likewise.
15815         * string/test-memchr.c (do_one_test): Likewise.
15816         (do_test): Likewise.
15817         * string/test-memcmp.c (do_one_test): Likewise.
15818         (do_test): Likewise.
15819         * string/test-memcpy.c (do_one_test): Likewise.
15820         (do_test): Likewise.
15821         * string/test-memmem.c (do_one_test): Likewise.
15822         (do_test): Likewise.
15823         (do_random_tests): Likewise.
15824         * string/test-memmove.c (do_one_test): Likewise.
15825         (do_test): Likewise.
15826         * string/test-memset.c (do_one_test): Likewise.
15827         (do_test): Likewise.
15828         * string/test-rawmemchr.c (do_one_test): Likewise.
15829         (do_test): Likewise.
15830         * string/test-strcasecmp.c (do_one_test): Likewise.
15831         (do_test): Likewise.
15832         * string/test-strcasestr.c (do_one_test): Likewise.
15833         (do_test): Likewise.
15834         * string/test-strcat.c (do_one_test): Likewise.
15835         (do_test): Likewise.
15836         * string/test-strchr.c (do_one_test): Likewise.
15837         (do_test): Likewise.
15838         * string/test-strcmp.c (do_one_test): Likewise.
15839         (do_test): Likewise.
15840         * string/test-strcpy.c (do_one_test): Likewise.
15841         (do_test): Likewise.
15842         * string/test-string.h: Likewise.
15843         (test_init): Likewise.
15844         * string/test-strlen.c (do_one_test): Likewise.
15845         (do_test): Likewise.
15846         * string/test-strncasecmp.c (do_one_test): Likewise.
15847         (do_test): Likewise.
15848         * string/test-strncat.c (do_one_test): Likewise.
15849         (do_test): Likewise.
15850         * string/test-strncmp.c (do_one_test): Likewise.
15851         (do_test_limit): Likewise.
15852         (do_test): Likewise.
15853         * string/test-strncpy.c (do_one_test): Likewise.
15854         (do_test): Likewise.
15855         * string/test-strnlen.c (do_one_test): Likewise.
15856         (do_test): Likewise.
15857         * string/test-strpbrk.c (do_one_test): Likewise.
15858         (do_test): Likewise.
15859         * string/test-strrchr.c (do_one_test): Likewise.
15860         (do_test): Likewise.
15861         * string/test-strspn.c (do_one_test): Likewise.
15862         (do_test): Likewise.
15863         * string/test-strstr.c (do_one_test): Likewise.
15864         (do_test): Likewise.
15865
15866         * benchtests/Makefile (string-bench): Add string benchmarks.
15867         * benchtests/bench-bcopy-ifunc.c: New file.
15868         * benchtests/bench-bcopy.c: New file.
15869         * benchtests/bench-bzero-ifunc.c: New file.
15870         * benchtests/bench-bzero.c: New file.
15871         * benchtests/bench-memccpy-ifunc.c: New file.
15872         * benchtests/bench-memccpy.c: New file.
15873         * benchtests/bench-memchr-ifunc.c: New file.
15874         * benchtests/bench-memchr.c: New file.
15875         * benchtests/bench-memcmp-ifunc.c: New file.
15876         * benchtests/bench-memcmp.c: New file.
15877         * benchtests/bench-memmem-ifunc.c: New file.
15878         * benchtests/bench-memmem.c: New file.
15879         * benchtests/bench-memmove-ifunc.c: New file.
15880         * benchtests/bench-memmove.c: New file.
15881         * benchtests/bench-mempcpy-ifunc.c: New file.
15882         * benchtests/bench-mempcpy.c: New file.
15883         * benchtests/bench-memset-ifunc.c: New file.
15884         * benchtests/bench-memset.c: New file.
15885         * benchtests/bench-rawmemchr-ifunc.c: New file.
15886         * benchtests/bench-rawmemchr.c: New file.
15887         * benchtests/bench-stpcpy-ifunc.c: New file.
15888         * benchtests/bench-stpcpy.c: New file.
15889         * benchtests/bench-stpncpy-ifunc.c: New file.
15890         * benchtests/bench-stpncpy.c: New file.
15891         * benchtests/bench-strcasecmp-ifunc.c: New file.
15892         * benchtests/bench-strcasecmp.c: New file.
15893         * benchtests/bench-strcasestr-ifunc.c: New file.
15894         * benchtests/bench-strcasestr.c: New file.
15895         * benchtests/bench-strcat-ifunc.c: New file.
15896         * benchtests/bench-strcat.c: New file.
15897         * benchtests/bench-strchr-ifunc.c: New file.
15898         * benchtests/bench-strchr.c: New file.
15899         * benchtests/bench-strchrnul-ifunc.c: New file.
15900         * benchtests/bench-strchrnul.c: New file.
15901         * benchtests/bench-strcmp-ifunc.c: New file.
15902         * benchtests/bench-strcmp.c: New file.
15903         * benchtests/bench-strcpy-ifunc.c: New file.
15904         * benchtests/bench-strcpy.c: New file.
15905         * benchtests/bench-strcspn-ifunc.c: New file.
15906         * benchtests/bench-strcspn.c: New file.
15907         * benchtests/bench-strlen-ifunc.c: New file.
15908         * benchtests/bench-strlen.c: New file.
15909         * benchtests/bench-strncasecmp-ifunc.c: New file.
15910         * benchtests/bench-strncasecmp.c: New file.
15911         * benchtests/bench-strncat-ifunc.c: New file.
15912         * benchtests/bench-strncat.c: New file.
15913         * benchtests/bench-strncmp-ifunc.c: New file.
15914         * benchtests/bench-strncmp.c: New file.
15915         * benchtests/bench-strncpy-ifunc.c: New file.
15916         * benchtests/bench-strncpy.c: New file.
15917         * benchtests/bench-strnlen-ifunc.c: New file.
15918         * benchtests/bench-strnlen.c: New file.
15919         * benchtests/bench-strpbrk-ifunc.c: New file.
15920         * benchtests/bench-strpbrk.c: New file.
15921         * benchtests/bench-strrchr-ifunc.c: New file.
15922         * benchtests/bench-strrchr.c: New file.
15923         * benchtests/bench-strspn-ifunc.c: New file.
15924         * benchtests/bench-strspn.c: New file.
15925         * benchtests/bench-strstr-ifunc.c: New file.
15926         * benchtests/bench-strstr.c: New file.
15927
15928         * benchtests/Makefile: Disable parallel execution of targets.
15929         (string-bench): Add memcpy.
15930         (benchset): New variable to store a list of benchmark sets.
15931         (bench-func): Renamed from bench.
15932         (bench-set): New target.
15933         (bench): Depend on bench-func and bench-set.
15934         * benchtests/README: Add section on benchmark sets.
15935         * benchtests/bench-memcpy-ifunc.c: New file.
15936         * benchtests/bench-memcpy.c: New file.
15937         * benchtests/bench-string.h: New file.
15938
15939 2013-06-11  Andreas Schwab  <schwab@suse.de>
15940
15941         [BZ #15577]
15942         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
15943         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
15944         values in the triple.
15945         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
15946         terminator in the group key.
15947
15948 2013-06-11  Andreas Jaeger  <aj@suse.de>
15949
15950         * po/zh_TW.po: Update Chinese (traditional) translation from
15951         translation project.
15952
15953 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15954
15955         * include/time.h (__clock_gettime): Add libc_hidden_proto.
15956         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
15957         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
15958         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15959         (clock_getcpuclockid): Likewise.
15960         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
15961         Add weak_alias and libc_hidden_def.
15962         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
15963         * rt/clock_gettime.c (clock_gettime): Rename to
15964         __clock_gettime.  Add weak_alias and libc_hidden_def.
15965         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
15966         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
15967         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
15968         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
15969         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
15970         Likewise.
15971         * rt/clock_settime.c (clock_settime): Rename to
15972         __clock_settime.  Add weak_alias and libc_hidden_def.
15973         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
15974
15975 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
15976
15977         * mach/err_boot.sub: Remove trailing whitespace.
15978         * mach/err_ipc.sub: Likewise.
15979         * mach/err_mach.sub: Likewise.
15980
15981         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
15982         (ROUNDING_TESTS_double): Likewise.
15983         (ROUNDING_TESTS_long_double): Likewise.
15984         (ROUNDING_TESTS): Likewise.
15985         * math/libm-test.inc: Include <math-tests.h>.
15986         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
15987         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
15988         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
15989         (IF_ROUND_INIT_FE_UPWARD): Likewise.
15990
15991 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15992
15993         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
15994         of assigning.
15995
15996 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
15997
15998         * sysdeps/gnu/errlist.awk: Do not generate space at end of
15999         otherwise empty TRANS lines.
16000         * sysdeps/gnu/errlist.c: Regenerated.
16001
16002         * catgets/gencat.c (error_print): Use (void) in function
16003         definition.
16004         * crypt/crypt_util.c (__init_des): Likewise.
16005         * crypt/speeds.c (Stop): Likewise.
16006         (main): Likewise.
16007         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
16008         * inet/ruserpass.c (token): Likewise.
16009         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
16010         * intl/localealias.c (extend_alias_table): Likewise.
16011         * intl/plural-exp.c (init_germanic_plural): Likewise.
16012         * libio/fcloseall.c (__fcloseall): Likewise.
16013         * libio/genops.c (_IO_flush_all): Likewise.
16014         (_IO_flush_all_linebuffered): Likewise.
16015         (_IO_cleanup): Likewise.
16016         (_IO_iter_begin): Likewise.
16017         (_IO_iter_end): Likewise.
16018         (_IO_list_lock): Likewise.
16019         (_IO_list_unlock): Likewise.
16020         (_IO_list_resetlock): Likewise.
16021         * libio/getchar.c (getchar): Likewise.
16022         * libio/getchar_u.c (getchar_unlocked): Likewise.
16023         * libio/getwchar.c (getwchar): Likewise.
16024         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
16025         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
16026         * login/getpt.c (__getpt): Likewise.
16027         * login/tst-utmp.c (main): Likewise.
16028         * malloc/hooks.c (__malloc_check_init): Likewise.
16029         * malloc/malloc.c (__malloc_stats): Likewise.
16030         * malloc/mtrace.c (tr_break): Likewise.
16031         (mtrace): Likewise.
16032         (muntrace): Likewise.
16033         * misc/fstab.c (endfsent): Likewise.
16034         * misc/getclktck.c (__getclktck): Likewise.
16035         * misc/getdtsz.c (__getdtablesize): Likewise.
16036         * misc/gethostid.c (gethostid): Likewise.
16037         * misc/getpagesize.c (__getpagesize): Likewise.
16038         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
16039         (__get_nprocs): Likewise.
16040         (__get_phys_pages): Likewise.
16041         (__get_avphys_pages): Likewise.
16042         * misc/getttyent.c (getttyent): Likewise.
16043         (setttyent): Likewise.
16044         (endttyent): Likewise.
16045         * misc/getusershell.c (getusershell): Likewise.
16046         (endusershell): Likewise.
16047         (setusershell): Likewise.
16048         (initshells): Likewise.
16049         * misc/hsearch.c (__hdestroy): Likewise.
16050         * misc/sync.c (sync): Likewise.
16051         * misc/syslog.c (closelog_internal): Likewise.
16052         (closelog): Likewise.
16053         * misc/ttyslot.c (ttyslot): Likewise.
16054         * misc/vhangup.c (vhangup): Likewise.
16055         * posix/fork.c (__fork): Likewise.
16056         * posix/getegid.c (__getegid): Likewise.
16057         * posix/geteuid.c (__geteuid): Likewise.
16058         * posix/getgid.c (__getgid): Likewise.
16059         * posix/getpid.c (__getpid): Likewise.
16060         * posix/getppid.c (__getppid): Likewise.
16061         * posix/getuid.c (__getuid): Likewise.
16062         * posix/pause.c (pause): Likewise.
16063         * posix/setpgrp.c (setpgrp): Likewise.
16064         * posix/setsid.c (__setsid): Likewise.
16065         * posix/test-vfork.c (noop): Likewise.
16066         * resolv/gethnamaddr.c (_endhtent): Likewise.
16067         (_gethtent): Likewise.
16068         (ht_endhostent): Likewise.
16069         (gethostent): Likewise.
16070         (dns_service): Likewise.
16071         * stdlib/drand48.c (drand48): Likewise.
16072         * stdlib/lrand48.c (lrand48): Likewise.
16073         * stdlib/mrand48.c (mrand48): Likewise.
16074         * stdlib/rand.c (rand): Likewise.
16075         * stdlib/random.c (__random): Likewise.
16076         * stdlib/setenv.c (clearenv): Likewise.
16077         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
16078         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
16079         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
16080         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
16081         (__get_nprocs): Likewise.
16082         (__get_phys_pages): Likewise.
16083         (__get_avphys_pages): Likewise.
16084         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
16085         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
16086         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
16087         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
16088         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
16089         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
16090         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
16091         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
16092         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
16093         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
16094         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
16095         * sysdeps/mach/hurd/sync.c (sync): Likewise.
16096         * sysdeps/posix/clock.c (clock): Likewise.
16097         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
16098         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
16099         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
16100         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
16101         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
16102         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
16103         (__get_nprocs_conf): Likewise.
16104         (__get_phys_pages): Likewise.
16105         (__get_avphys_pages): Likewise.
16106         * time/clock.c (clock): Likewise.
16107         * time/tzset.c (__tzname_max): Likewise.
16108
16109 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
16110
16111         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
16112         (__bswap_32): Do not use "register".
16113         * crypt/crypt.c (_ufc_doit_r): Likewise.
16114         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
16115         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
16116         * gmon/gmon.c (__monstartup): Likewise.
16117         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
16118         * hurd/hurdmalloc.c (more_memory): Likewise.
16119         (malloc): Likewise.
16120         (free): Likewise.
16121         (realloc): Likewise.
16122         (malloc_fork_prepare): Likewise.
16123         (malloc_fork_parent): Likewise.
16124         (malloc_fork_child): Likewise.
16125         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
16126         (_svcauth_des): Likewise.
16127         * inet/inet_lnaof.c (inet_lnaof): Likewise.
16128         * inet/inet_net.c (inet_network): Likewise.
16129         * inet/inet_netof.c (inet_netof): Likewise.
16130         * inet/rcmd.c (__validuser2_sa): Likewise.
16131         * io/fts.c (fts_open): Likewise.
16132         (fts_load): Likewise.
16133         (fts_close): Likewise.
16134         (fts_read): Likewise.
16135         (fts_children): Likewise.
16136         (fts_build): Likewise.
16137         (fts_stat): Likewise.
16138         (fts_sort): Likewise.
16139         (fts_alloc): Likewise.
16140         (fts_lfree): Likewise.
16141         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
16142         (_IO_file_xsgetn): Likewise.
16143         (_IO_file_xsgetn_mmap): Likewise.
16144         * libio/iofopncook.c (_IO_cookie_read): Likewise.
16145         (_IO_cookie_write): Likewise.
16146         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
16147         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
16148         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
16149         * malloc/obstack.c (_obstack_begin): Likewise.
16150         (_obstack_begin_1): Likewise.
16151         (_obstack_newchunk): Likewise.
16152         (_obstack_allocated_p): Likewise.
16153         (obstack_free): Likewise.
16154         (_obstack_memory_used): Likewise.
16155         * misc/getttyent.c (getttynam): Likewise.
16156         (getttyent): Likewise.
16157         (skip): Likewise.
16158         (value): Likewise.
16159         * misc/getusershell.c (initshells): Likewise.
16160         * misc/syslog.c (__vsyslog_chk): Likewise.
16161         * misc/ttyslot.c (ttyslot): Likewise.
16162         * nis/nis_hash.c (__nis_hash): Likewise.
16163         * posix/fnmatch_loop.c (FCT): Likewise.
16164         * posix/getconf.c (print_all): Likewise.
16165         (main): Likewise.
16166         * posix/getopt.c (exchange): Likewise.
16167         * posix/glob.c (globfree): Likewise.
16168         (prefix_array): Likewise.
16169         (__glob_pattern_type): Likewise.
16170         * resolv/arpa/nameser.h (NS_GET16): Likewise.
16171         (NS_GET32): Likewise.
16172         (NS_PUT16): Likewise.
16173         (NS_PUT32): Likewise.
16174         * resolv/gethnamaddr.c (getanswer): Likewise.
16175         (gethostbyname2): Likewise.
16176         (gethostbyaddr): Likewise.
16177         (_gethtent): Likewise.
16178         (_gethtbyname2): Likewise.
16179         (_gethtbyaddr): Likewise.
16180         * resolv/ns_print.c (dst_s_get_int16): Likewise.
16181         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
16182         * resolv/res_init.c (__res_vinit): Likewise.
16183         (net_mask): Likewise.
16184         * resolv/res_mkquery.c (outchar): Likewise.
16185         (PRINT): Likewise.
16186         * stdio-common/printf_fp.c (outchar): Likewise.
16187         (PRINT): Likewise.
16188         * stdio-common/printf_fphex.c (outchar): Likewise.
16189         (PRINT): Likewise.
16190         * stdio-common/printf_size.c (outchar): Likewise.
16191         (PRINT): Likewise.
16192         * stdio-common/test_rdwr.c (main): Likewise.
16193         * stdio-common/tfformat.c (matches): Likewise.
16194         * stdio-common/vfprintf.c (outchar): Likewise.
16195         (printf_unknown): Likewise.
16196         (buffered_vfprintf): Likewise.
16197         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
16198         * stdio-common/xbug.c (AppendToBuffer): Likewise.
16199         (ReadFile): Likewise.
16200         * stdlib/qsort.c (SWAP): Likewise.
16201         (_quicksort): Likewise.
16202         * stdlib/setenv.c (__add_to_environ): Likewise.
16203         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
16204         * stdlib/strtol_l.c (__strtol_l): Likewise.
16205         * stdlib/tst-strtod.c (main): Likewise.
16206         * stdlib/tst-strtol.c (main): Likewise.
16207         * stdlib/tst-strtoll.c (main): Likewise.
16208         * string/bits/string2.h (__strcmp_cc): Likewise.
16209         (__strcmp_cg): Likewise.
16210         (__strcspn_c1): Likewise.
16211         (__strcspn_c2): Likewise.
16212         (__strcspn_c3): Likewise.
16213         (__strspn_c1): Likewise.
16214         (__strspn_c2): Likewise.
16215         (__strspn_c3): Likewise.
16216         (__strsep_1c): Likewise.
16217         (__strsep_2c): Likewise.
16218         (__strsep_3c): Likewise.
16219         * string/memccpy.c (__memccpy): Likewise.
16220         * string/stpcpy.c (__stpcpy): Likewise.
16221         * string/strcmp.c (strcmp): Likewise.
16222         * string/strrchr.c (strrchr): Likewise.
16223         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
16224         Likewise.
16225         * sysdeps/mach/hurd/getcwd.c
16226         (_hurd_canonicalize_directory_name_internal): Likewise.
16227         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
16228         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
16229         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
16230         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
16231         Likewise, in both definitions.
16232         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
16233         definitions.
16234         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
16235         64] (__bswap_64): Likewise.
16236         * time/test_time.c (main): Likewise.
16237         * time/tzfile.c (__tzfile_read): Likewise.
16238         (__tzfile_compute): Likewise.
16239         * time/tzset.c (__tzset_parse_tz): Likewise.
16240         (tzset_internal): Likewise.
16241         (compute_change): Likewise.
16242         * wcsmbs/wcscat.c (__wcscat): Likewise.
16243         * wcsmbs/wcschr.c (wcschr): Likewise.
16244         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16245         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16246         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16247         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
16248         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16249         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16250         * wcsmbs/wmemchr.c (wmemchr): Likewise.
16251         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16252         * wcsmbs/wmemset.c (wmemset): Likewise.
16253
16254 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
16255
16256         * scripts/config.guess: Update to version 2013-05-16.
16257         * scripts/config.sub: Update to version 2013-04-24.
16258         * scripts/install-sh: Update to version 2011-11-20.07.
16259         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
16260         * scripts/move-if-change: Update to version 2012-01-06 07:23.
16261
16262 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
16263
16264         * debug/fgetws_u_chk.c: Fix leading whitespaces.
16265         * elf/sln.c: Likewise.
16266         * hurd/hurd/ioctl.h: Likewise.
16267         * hurd/hurdmalloc.c: Likewise.
16268         * hurd/xattr.c: Likewise.
16269         * include/shlib-compat.h: Likewise.
16270         * inet/ruserpass.c: Likewise.
16271         * libio/iofgets_u.c: Likewise.
16272         * libio/iofgetws_u.c: Likewise.
16273         * locale/programs/ld-identification.c: Likewise.
16274         * locale/programs/ld-time.c: Likewise.
16275         * mach/msg-destroy.c: Likewise.
16276         * nss/nss_files/files-netgrp.c: Likewise.
16277         * resolv/res_data.c: Likewise.
16278         * soft-fp/op-1.h: Likewise.
16279         * soft-fp/op-2.h: Likewise.
16280         * soft-fp/op-4.h: Likewise.
16281         * soft-fp/op-common.h: Likewise.
16282         * stdio-common/printf_fphex.c: Likewise.
16283         * stdlib/strtod_l.c: Likewise.
16284         * sunrpc/rpc/clnt.h: Likewise.
16285         * sysdeps/generic/framestate.c: Likewise.
16286         * sysdeps/i386/bsd-_setjmp.S: Likewise.
16287         * sysdeps/i386/bsd-setjmp.S: Likewise.
16288         * sysdeps/i386/__longjmp.S: Likewise.
16289         * sysdeps/i386/setjmp.S: Likewise.
16290         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16291         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16292         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16293         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16294         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16295         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16296         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16297         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16298         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16299         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
16300         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16301         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16302         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16303         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16304         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16305         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16306         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16307         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
16308         * sysdeps/ieee754/support.c: Likewise.
16309         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
16310         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
16311         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
16312         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
16313         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
16314         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
16315         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
16316         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
16317         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
16318         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
16319         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
16320         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
16321         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
16322         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
16323         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
16324         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
16325         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
16327
16328 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
16329
16330         * posix/transbug.c: Remove executable mode.
16331
16332 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
16333
16334         * crypt/speeds.c: Remove trailing whitespace.
16335         * dlfcn/default.c: Likewise.
16336         * elf/ifuncdep2.c: Likewise.
16337         * elf/ifuncmain1.c: Likewise.
16338         * elf/ifuncmain1vis.c: Likewise.
16339         * elf/testobj.h: Likewise.
16340         * elf/tst-stackguard1.c: Likewise.
16341         * gmon/sys/gmon.h: Likewise.
16342         * hurd/hurdmsg.c: Likewise.
16343         * hurd/new-fd.c: Likewise.
16344         * hurd/ports-get.c: Likewise.
16345         * iconvdata/ibm1008_420.c: Likewise.
16346         * inet/tst-getni1.c: Likewise.
16347         * inet/tst-getni2.c: Likewise.
16348         * libio/ioungetc.c: Likewise.
16349         * libio/wfiledoalloc.c: Likewise.
16350         * manual/libm-err-tab.pl: Likewise.
16351         * math/w_dremf.c: Likewise.
16352         * misc/ftruncate.c: Likewise.
16353         * posix/bug-glob2.c: Likewise.
16354         * posix/tst-pcre.c: Likewise.
16355         * posix/wait4.c: Likewise.
16356         * resolv/README: Likewise.
16357         * resolv/res_debug.h: Likewise.
16358         * resolv/tst-inet_ntop.c: Likewise.
16359         * setjmp/bug269-setjmp.c: Likewise.
16360         * soft-fp/extended.h: Likewise.
16361         * soft-fp/op-1.h: Likewise.
16362         * soft-fp/op-2.h: Likewise.
16363         * soft-fp/op-4.h: Likewise.
16364         * soft-fp/op-8.h: Likewise.
16365         * soft-fp/testit.c: Likewise.
16366         * stdio-common/bug16.c: Likewise.
16367         * stdlib/random.c: Likewise.
16368         * sunrpc/rpcsvc/rquota.x: Likewise.
16369         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
16370         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16371         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16372         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16373         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16374         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16375         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16376         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16377         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16378         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16379         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16380         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
16381         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16382         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16383         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16384         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16385         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16386         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16387         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16388         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16389         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16390         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16391         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
16392         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16393         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16394         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16395         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
16396         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16397         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16398         * sysdeps/ieee754/s_lib_version.c: Likewise.
16399         * sysdeps/mach/hurd/check_fds.c: Likewise.
16400         * sysdeps/mach/hurd/getsockname.c: Likewise.
16401         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
16402         * sysdeps/mach/hurd/recvfrom.c: Likewise.
16403         * sysdeps/powerpc/bits/link.h: Likewise.
16404         * sysdeps/powerpc/dl-procinfo.c: Likewise.
16405         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
16406         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
16407         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
16408         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
16409         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16410         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
16411         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
16412         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
16413         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16414         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
16415         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
16416         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
16417         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16418         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16419         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16420         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
16421         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
16422         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16423         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16424         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16425         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
16426         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
16427         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
16428         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
16429         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
16430         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
16431         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16432         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16433         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
16434         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
16435         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
16436         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
16437         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16438         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
16439         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
16440         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
16441         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
16442         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
16443         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
16444         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
16445         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
16446         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
16447         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
16448         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
16449         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
16450         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
16451         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
16452         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
16453         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
16454         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16455         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16456         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
16457         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
16458         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
16459         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
16460         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
16461         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
16462         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
16463         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
16464         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
16465         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
16466         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
16467         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
16468         * sysdeps/powerpc/sysdep.h: Likewise.
16469         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16470         * sysdeps/s390/s390-64/sub_n.S: Likewise.
16471         * sysdeps/sh/dl-trampoline.S: Likewise.
16472         * sysdeps/sh/memset.S: Likewise.
16473         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
16474         * sysdeps/sh/strlen.S: Likewise.
16475         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
16476         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
16477         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
16478         * sysdeps/sparc/sparc32/rem.S: Likewise.
16479         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
16480         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
16481         * sysdeps/sparc/sparc32/strchr.S: Likewise.
16482         * sysdeps/sparc/sparc32/udiv.S: Likewise.
16483         * sysdeps/sparc/sparc32/urem.S: Likewise.
16484         * sysdeps/sparc/sparc64/add_n.S: Likewise.
16485         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
16486         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
16487         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
16488         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
16489         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
16490         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
16491         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
16492         * sysdeps/unix/bsd/times.c: Likewise.
16493         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
16494         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
16495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
16496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
16497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
16498         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
16499         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
16500         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
16501         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
16502         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
16503         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
16504         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
16505         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
16506         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
16507         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
16508         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
16509         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
16510         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
16511         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
16512         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
16513         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
16514         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
16515         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
16516         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
16517         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
16518         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
16519         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
16520         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16521         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
16522         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
16523         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
16524         * sysdeps/x86_64/strcspn.S: Likewise.
16525
16526 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16527
16528         * locale/C-translit.h: Revert #include <stdint.h> because this is a
16529         generated file.  Regenerate properly from gen-translit.pl.
16530         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
16531         locale/C-translit.h.
16532
16533 2013-06-05  Andreas Schwab  <schwab@suse.de>
16534
16535         [BZ #15100]
16536         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
16537         week as 6 instead of -1.
16538         * time/tst-strptime.c (day_tests): Add test case.
16539
16540 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
16541
16542         * sysdeps/generic/math_private.h
16543         (libc_feholdexcept_setround_53bit): Replace with
16544         libc_feholdsetround_53bit.
16545         (libc_feupdateenv_53bit): Replace with
16546         libc_feresetround_53bit.
16547         (SET_RESTORE_ROUND_53BIT): Adjust.
16548
16549 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
16550
16551         * string/test-strchrnul.c: Add copyright header.
16552
16553         * posix/tst-getaddrinfo4.c: Increase test timeout.
16554
16555 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
16556
16557         [BZ #15536]
16558         * math/libm-test.inc (MAX_EXP): Remove
16559         (MIN_EXP): Define.
16560         (ulp): Use MIN_EXP - MANT_DIG.
16561         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
16562
16563 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
16564
16565         * po/be.po: Revert last change.
16566         * po/zh_CN.po: Likewise.
16567         * po/header.pot: Likewise.
16568
16569 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
16570
16571         * Makefile ($(common-objpfx)linkobj/libc.so): Define
16572         link-libc-deps to empty as target-specific variable.
16573         * Makerules (link-libc-args): New variable.
16574         (libc-for-link): Likewise.
16575         (link-libc-deps): Likewise.
16576         (lib%.so): Depend on $(link-libc-deps).  Link with
16577         $(link-libc-args).
16578         (build-module): Link with $(link-libc-args).
16579         (build-module-asneeded): Likewise.
16580         (build-module-helper-objlist): Filter out $(link-libc-deps) from
16581         list of objects.
16582         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
16583         target-specific variable.
16584         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
16585         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
16586         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
16587         libc.
16588         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
16589         libc and ld.so.
16590         ($(objpfx)libpcprofile.so): Likewise.
16591         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
16592         libc_nonshared.a.
16593         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
16594         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
16595         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
16596         $(link-libc-deps).
16597         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
16598         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
16599         * login/Makefile ($(objpfx)libutil.so): Likewise.
16600         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
16601         * math/Makefile ($(objpfx)libm.so): Likewise.
16602         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
16603         $(objpfx)libnsl.so): Define libc-for-link as target-specific
16604         variable instead of depending directly on libc.
16605         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
16606         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
16607         $(link-libc-deps).
16608         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
16609         libc.
16610         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
16611         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
16612         ($(objpfx)libanl.so): Likewise.
16613         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
16614         ld.so.
16615         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
16616         $(link-libc-deps).
16617         * sysdeps/i386/fpu/Makefile: Remove file.
16618         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
16619         ($(objpfx)libm.so): Remove dependency on ld.so.
16620
16621 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
16622
16623         [BZ # 15553]
16624         * nis/yp_xdr.c (XDRMAXNAME): Define.
16625         (XDRMAXRECORD): Define.
16626         (xdr_domainname): Use XDRMAXNAME.
16627         (xdr_mapname): Likewise.
16628         (xdr_peername): Likewise.
16629         (xdr_keydat): Use XDRMAXRECORD.
16630         (xdr_valdat): Likewise.
16631
16632 2013-05-30  Jeff Law  <law@redhat.com>
16633
16634         [BZ #14256]
16635         * manual/errno.texi (ESTALE): Update to account for more than
16636         just NFS file systems.
16637         * sysdeps/gnu/errlist.c: Regenerated.
16638
16639 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
16640
16641         [BZ #15465]
16642         * elf/Makefile (tests): Add tst-null-argv.
16643         (modules-names):  Add tst-null-argv-lib.
16644         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
16645         (tst-null-argv-ENV): Set environment for tst-null-argv.
16646         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
16647         (RTLD_PROGNAME): New macro.
16648         * elf/tst-null-argv.c: New test case.
16649         * elf/tst-null-argv-lib.c: Library for test case.
16650         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
16651         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
16652         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
16653         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
16654         * elf/dl-init.c (call_init): Likewise.
16655         (_dl_init): Likewise.
16656         * elf/dl-load.c (print_search_path): Likewise.
16657         (_dl_map_object): Likewise.
16658         * elf/dl-lookup.c (do_lookup_x): Likewise.
16659         (add_dependency): Likewise.
16660         (_dl_lookup_symbol_x): Likewise.
16661         (_dl_debug_bindings): Likewise.
16662         * elf/dl-open.c (_dl_show_scope): Likewise.
16663         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
16664         * elf/dl-version.c (match_symbol): Likewise.
16665         (_dl_check_map_versions): Likewise.
16666         * elf/rtld.c (dl_main): Likewise.
16667         (print_unresolved): Use RTLD_PROGNAME.
16668         (print_missing_version): Likewise.
16669         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16670         (elf_machine_rela): Likewise.
16671         * sysdeps/powerpc/powerpc32/dl-machine.c
16672         (__process_machine_rela): Likewise.
16673         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16674         Likewise.
16675         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16676         Likewise.
16677         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16678         Likewise.
16679         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16680         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16681         Likewise.
16682         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16683         Likewise.
16684         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16685
16686 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
16687
16688         * po/be.po: Add descriptive title.
16689         * po/zh_CN.po: Likewise.
16690         * po/header.pot: Likewise.
16691
16692 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
16693
16694         * locale/programs/locarchive.c (create_archive): Inlucde fname in
16695         error message.
16696         (enlarge_archive): Likewise.
16697
16698 2013-05-28  Ben North  <ben@redfrontdoor.org>
16699
16700         * manual/arith.texi (frexp): It is the magnitude of the return
16701         value which lies in [0.5, 1), not the return value itself.
16702
16703 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16704
16705         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16706
16707 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
16708
16709         * stdio-common/bug26.c (main): Correct fscanf template.
16710
16711         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
16712         declare _dl_skip_args.
16713
16714         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
16715         Don't declare.
16716
16717         * manual/platform.texi: Add missing @end deftypefun.
16718
16719 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16720
16721         [BZ #15529]
16722         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
16723         bit of mantissa of 2^16382.
16724         * math/libm-test.inc (hypot_test_data): Add more tests.
16725
16726         * math/libm-test.inc: Add drem and pow10 to list of tested
16727         functions.
16728         (pow10_test): New function.
16729         (drem_test): Likewise.
16730         (drem_test_tonearest): Likewise.
16731         (drem_test_towardzero): Likewise.
16732         (drem_test_downward): Likewise.
16733         (drem_test_upward): Likewise.
16734         (main): Call the new functions.
16735
16736         * math/libm-test.inc (finite_test_data): Remove.
16737         (finite_test): Run tests from isfinite_test_data.
16738         (gamma_test_data): Remove.
16739         (gamma_test): Run tests from lgamma_test_data.
16740         * sysdeps/i386/fpu/libm-test-ulps: Update.
16741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16742
16743 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16744
16745         * manual/platform.texi: Add PowerPC PPR function set documentation.
16746         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
16747         implementation.
16748
16749 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
16750
16751         * math/libm-test.inc (MAX_EXP): Define.
16752         (ULPDIFF): Define.
16753         (ulp): New function.
16754         (check_float_internal): Use ULPDIFF.
16755         (cpow_test): Disable failing test.
16756         (check_ulp): Test ulp() implemetnation.
16757         (main): Call check_ulp before starting tests.
16758
16759 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16760
16761         * math/gen-libm-test.pl (generate_testfile): Do not handle
16762         START_DATA and END_DATA.
16763         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
16764         END_DATA.
16765         (acos_tonearest_test_data): Likewise.
16766         (acos_towardzero_test_data): Likewise.
16767         (acos_downward_test_data): Likewise.
16768         (acos_upward_test_data): Likewise.
16769         (acosh_test_data): Likewise.
16770         (asin_test_data): Likewise.
16771         (asin_tonearest_test_data): Likewise.
16772         (asin_towardzero_test_data): Likewise.
16773         (asin_downward_test_data): Likewise.
16774         (asin_upward_test_data): Likewise.
16775         (asinh_test_data): Likewise.
16776         (atan_test_data): Likewise.
16777         (atanh_test_data): Likewise.
16778         (atan2_test_data): Likewise.
16779         (cabs_test_data): Likewise.
16780         (cacos_test_data): Likewise.
16781         (cacosh_test_data): Likewise.
16782         (carg_test_data): Likewise.
16783         (casin_test_data): Likewise.
16784         (casinh_test_data): Likewise.
16785         (catan_test_data): Likewise.
16786         (catanh_test_data): Likewise.
16787         (cbrt_test_data): Likewise.
16788         (ccos_test_data): Likewise.
16789         (ccosh_test_data): Likewise.
16790         (ceil_test_data): Likewise.
16791         (cexp_test_data): Likewise.
16792         (cimag_test_data): Likewise.
16793         (clog_test_data): Likewise.
16794         (clog10_test_data): Likewise.
16795         (conj_test_data): Likewise.
16796         (copysign_test_data): Likewise.
16797         (cos_test_data): Likewise.
16798         (cos_tonearest_test_data): Likewise.
16799         (cos_towardzero_test_data): Likewise.
16800         (cos_downward_test_data): Likewise.
16801         (cos_upward_test_data): Likewise.
16802         (cosh_test_data): Likewise.
16803         (cosh_tonearest_test_data): Likewise.
16804         (cosh_towardzero_test_data): Likewise.
16805         (cosh_downward_test_data): Likewise.
16806         (cosh_upward_test_data): Likewise.
16807         (cpow_test_data): Likewise.
16808         (cproj_test_data): Likewise.
16809         (creal_test_data): Likewise.
16810         (csin_test_data): Likewise.
16811         (csinh_test_data): Likewise.
16812         (csqrt_test_data): Likewise.
16813         (ctan_test_data): Likewise.
16814         (ctan_tonearest_test_data): Likewise.
16815         (ctan_towardzero_test_data): Likewise.
16816         (ctan_downward_test_data): Likewise.
16817         (ctan_upward_test_data): Likewise.
16818         (ctanh_test_data): Likewise.
16819         (ctanh_tonearest_test_data): Likewise.
16820         (ctanh_towardzero_test_data): Likewise.
16821         (ctanh_downward_test_data): Likewise.
16822         (ctanh_upward_test_data): Likewise.
16823         (erf_test_data): Likewise.
16824         (erfc_test_data): Likewise.
16825         (exp_test_data): Likewise.
16826         (exp_tonearest_test_data): Likewise.
16827         (exp_towardzero_test_data): Likewise.
16828         (exp_downward_test_data): Likewise.
16829         (exp_upward_test_data): Likewise.
16830         (exp10_test_data): Likewise.
16831         (exp2_test_data): Likewise.
16832         (expm1_test_data): Likewise.
16833         (fabs_test_data): Likewise.
16834         (fdim_test_data): Likewise.
16835         (finite_test_data): Likewise.
16836         (floor_test_data): Likewise.
16837         (fma_test_data): Likewise.
16838         (fma_towardzero_test_data): Likewise.
16839         (fma_downward_test_data): Likewise.
16840         (fma_upward_test_data): Likewise.
16841         (fmax_test_data): Likewise.
16842         (fmin_test_data): Likewise.
16843         (fmod_test_data): Likewise.
16844         (fpclassify_test_data): Likewise.
16845         (frexp_test_data): Likewise.
16846         (gamma_test_data): Likewise.
16847         (hypot_test_data): Likewise.
16848         (ilogb_test_data): Likewise.
16849         (isfinite_test_data): Likewise.
16850         (isgreater_test_data): Likewise.
16851         (isgreaterequal_test_data): Likewise.
16852         (isinf_test_data): Likewise.
16853         (isless_test_data): Likewise.
16854         (islessequal_test_data): Likewise.
16855         (islessgreater_test_data): Likewise.
16856         (isnan_test_data): Likewise.
16857         (isnormal_test_data): Likewise.
16858         (issignaling_test_data): Likewise.
16859         (isunordered_test_data): Likewise.
16860         (j0_test_data): Likewise.
16861         (j1_test_data): Likewise.
16862         (jn_test_data): Likewise.
16863         (ldexp_test_data): Likewise.
16864         (lgamma_test_data): Likewise.
16865         (lrint_test_data): Likewise.
16866         (lrint_tonearest_test_data): Likewise.
16867         (lrint_towardzero_test_data): Likewise.
16868         (lrint_downward_test_data): Likewise.
16869         (lrint_upward_test_data): Likewise.
16870         (llrint_test_data): Likewise.
16871         (llrint_tonearest_test_data): Likewise.
16872         (llrint_towardzero_test_data): Likewise.
16873         (llrint_downward_test_data): Likewise.
16874         (llrint_upward_test_data): Likewise.
16875         (log_test_data): Likewise.
16876         (log10_test_data): Likewise.
16877         (log1p_test_data): Likewise.
16878         (log2_test_data): Likewise.
16879         (logb_test_data): Likewise.
16880         (logb_downward_test_data): Likewise.
16881         (lround_test_data): Likewise.
16882         (llround_test_data): Likewise.
16883         (modf_test_data): Likewise.
16884         (nearbyint_test_data): Likewise.
16885         (nextafter_test_data): Likewise.
16886         (nexttoward_test_data): Likewise.
16887         (pow_test_data): Likewise.
16888         (pow_tonearest_test_data): Likewise.
16889         (pow_towardzero_test_data): Likewise.
16890         (pow_downward_test_data): Likewise.
16891         (pow_upward_test_data): Likewise.
16892         (remainder_test_data): Likewise.
16893         (remainder_tonearest_test_data): Likewise.
16894         (remainder_towardzero_test_data): Likewise.
16895         (remainder_downward_test_data): Likewise.
16896         (remainder_upward_test_data): Likewise.
16897         (remquo_test_data): Likewise.
16898         (rint_test_data): Likewise.
16899         (rint_tonearest_test_data): Likewise.
16900         (rint_towardzero_test_data): Likewise.
16901         (rint_downward_test_data): Likewise.
16902         (rint_upward_test_data): Likewise.
16903         (round_test_data): Likewise.
16904         (scalb_test_data): Likewise.
16905         (scalbn_test_data): Likewise.
16906         (scalbln_test_data): Likewise.
16907         (signbit_test_data): Likewise.
16908         (sin_test_data): Likewise.
16909         (sin_tonearest_test_data): Likewise.
16910         (sin_towardzero_test_data): Likewise.
16911         (sin_downward_test_data): Likewise.
16912         (sin_upward_test_data): Likewise.
16913         (sincos_test_data): Likewise.
16914         (sinh_test_data): Likewise.
16915         (sinh_tonearest_test_data): Likewise.
16916         (sinh_towardzero_test_data): Likewise.
16917         (sinh_downward_test_data): Likewise.
16918         (sinh_upward_test_data): Likewise.
16919         (sqrt_test_data): Likewise.
16920         (tan_test_data): Likewise.
16921         (tan_tonearest_test_data): Likewise.
16922         (tan_towardzero_test_data): Likewise.
16923         (tan_downward_test_data): Likewise.
16924         (tan_upward_test_data): Likewise.
16925         (tanh_test_data): Likewise.
16926         (tgamma_test_data): Likewise.
16927         (trunc_test_data): Likewise.
16928         (y0_test_data): Likewise.
16929         (y1_test_data): Likewise.
16930         (yn_test_data): Likewise.
16931         (significand_test_data): Likewise.
16932
16933         * math/gen-libm-test.pl (@functions): Remove variable.
16934         (generate_testfile): Don't handle START and END lines.
16935         * math/libm-test.inc (START): New macro.
16936         (END): Likewise.
16937         (END_COMPLEX): Likewise.
16938         (acos_test): Use END macro without arguments.
16939         (acos_test_tonearest): Likewise.
16940         (acos_test_towardzero): Likewise.
16941         (acos_test_downward): Likewise.
16942         (acos_test_upward): Likewise.
16943         (acosh_test): Likewise.
16944         (asin_test): Likewise.
16945         (asin_test_tonearest): Likewise.
16946         (asin_test_towardzero): Likewise.
16947         (asin_test_downward): Likewise.
16948         (asin_test_upward): Likewise.
16949         (asinh_test): Likewise.
16950         (atan_test): Likewise.
16951         (atanh_test): Likewise.
16952         (atan2_test): Likewise.
16953         (cabs_test): Likewise.
16954         (cacos_test): Use END_COMPLEX macro without arguments.
16955         (cacosh_test): Likewise.
16956         (carg_test): Use END macro without arguments.
16957         (casin_test): Use END_COMPLEX macro without arguments.
16958         (casinh_test): Likewise.
16959         (catan_test): Likewise.
16960         (catanh_test): Likewise.
16961         (cbrt_test): Use END macro without arguments.
16962         (ccos_test): Use END_COMPLEX macro without arguments.
16963         (ccosh_test): Likewise.
16964         (ceil_test): Use END macro without arguments.
16965         (cexp_test): Use END_COMPLEX macro without arguments.
16966         (cimag_test): Use END macro without arguments.
16967         (clog_test): Use END_COMPLEX macro without arguments.
16968         (clog10_test): Likewise.
16969         (conj_test): Likewise.
16970         (copysign_test): Use END macro without arguments.
16971         (cos_test): Likewise.
16972         (cos_test_tonearest): Likewise.
16973         (cos_test_towardzero): Likewise.
16974         (cos_test_downward): Likewise.
16975         (cos_test_upward): Likewise.
16976         (cosh_test): Likewise.
16977         (cosh_test_tonearest): Likewise.
16978         (cosh_test_towardzero): Likewise.
16979         (cosh_test_downward): Likewise.
16980         (cosh_test_upward): Likewise.
16981         (cpow_test): Use END_COMPLEX macro without arguments.
16982         (cproj_test): Likewise.
16983         (creal_test): Use END macro without arguments.
16984         (csin_test): Use END_COMPLEX macro without arguments.
16985         (csinh_test): Likewise.
16986         (csqrt_test): Likewise.
16987         (ctan_test): Likewise.
16988         (ctan_test_tonearest): Likewise.
16989         (ctan_test_towardzero): Likewise.
16990         (ctan_test_downward): Likewise.
16991         (ctan_test_upward): Likewise.
16992         (ctanh_test): Likewise.
16993         (ctanh_test_tonearest): Likewise.
16994         (ctanh_test_towardzero): Likewise.
16995         (ctanh_test_downward): Likewise.
16996         (ctanh_test_upward): Likewise.
16997         (erf_test): Use END macro without arguments.
16998         (erfc_test): Likewise.
16999         (exp_test): Likewise.
17000         (exp_test_tonearest): Likewise.
17001         (exp_test_towardzero): Likewise.
17002         (exp_test_downward): Likewise.
17003         (exp_test_upward): Likewise.
17004         (exp10_test): Likewise.
17005         (exp2_test): Likewise.
17006         (expm1_test): Likewise.
17007         (fabs_test): Likewise.
17008         (fdim_test): Likewise.
17009         (finite_test): Likewise.
17010         (floor_test): Likewise.
17011         (fma_test): Likewise.
17012         (fma_test_towardzero): Likewise.
17013         (fma_test_downward): Likewise.
17014         (fma_test_upward): Likewise.
17015         (fmax_test): Likewise.
17016         (fmin_test): Likewise.
17017         (fmod_test): Likewise.
17018         (fpclassify_test): Likewise.
17019         (frexp_test): Likewise.
17020         (gamma_test): Likewise.
17021         (hypot_test): Likewise.
17022         (ilogb_test): Likewise.
17023         (isfinite_test): Likewise.
17024         (isgreater_test): Likewise.
17025         (isgreaterequal_test): Likewise.
17026         (isinf_test): Likewise.
17027         (isless_test): Likewise.
17028         (islessequal_test): Likewise.
17029         (islessgreater_test): Likewise.
17030         (isnan_test): Likewise.
17031         (isnormal_test): Likewise.
17032         (issignaling_test): Likewise.
17033         (isunordered_test): Likewise.
17034         (j0_test): Likewise.
17035         (j1_test): Likewise.
17036         (jn_test): Likewise.
17037         (ldexp_test): Likewise.
17038         (lgamma_test): Likewise.
17039         (lrint_test): Likewise.
17040         (lrint_test_tonearest): Likewise.
17041         (lrint_test_towardzero): Likewise.
17042         (lrint_test_downward): Likewise.
17043         (lrint_test_upward): Likewise.
17044         (llrint_test): Likewise.
17045         (llrint_test_tonearest): Likewise.
17046         (llrint_test_towardzero): Likewise.
17047         (llrint_test_downward): Likewise.
17048         (llrint_test_upward): Likewise.
17049         (log_test): Likewise.
17050         (log10_test): Likewise.
17051         (log1p_test): Likewise.
17052         (log2_test): Likewise.
17053         (logb_test): Likewise.
17054         (logb_test_downward): Likewise.
17055         (lround_test): Likewise.
17056         (llround_test): Likewise.
17057         (modf_test): Likewise.
17058         (nearbyint_test): Likewise.
17059         (nextafter_test): Likewise.
17060         (nexttoward_test): Likewise.
17061         (pow_test): Likewise.
17062         (pow_test_tonearest): Likewise.
17063         (pow_test_towardzero): Likewise.
17064         (pow_test_downward): Likewise.
17065         (pow_test_upward): Likewise.
17066         (remainder_test): Likewise.
17067         (remainder_test_tonearest): Likewise.
17068         (remainder_test_towardzero): Likewise.
17069         (remainder_test_downward): Likewise.
17070         (remainder_test_upward): Likewise.
17071         (remquo_test): Likewise.
17072         (rint_test): Likewise.
17073         (rint_test_tonearest): Likewise.
17074         (rint_test_towardzero): Likewise.
17075         (rint_test_downward): Likewise.
17076         (rint_test_upward): Likewise.
17077         (round_test): Likewise.
17078         (scalb_test): Likewise.
17079         (scalbn_test): Likewise.
17080         (scalbln_test): Likewise.
17081         (signbit_test): Likewise.
17082         (sin_test): Likewise.
17083         (sin_test_tonearest): Likewise.
17084         (sin_test_towardzero): Likewise.
17085         (sin_test_downward): Likewise.
17086         (sin_test_upward): Likewise.
17087         (sincos_test): Likewise.
17088         (sinh_test): Likewise.
17089         (sinh_test_tonearest): Likewise.
17090         (sinh_test_towardzero): Likewise.
17091         (sinh_test_downward): Likewise.
17092         (sinh_test_upward): Likewise.
17093         (sqrt_test): Likewise.
17094         (tan_test): Likewise.
17095         (tan_test_tonearest): Likewise.
17096         (tan_test_towardzero): Likewise.
17097         (tan_test_downward): Likewise.
17098         (tan_test_upward): Likewise.
17099         (tanh_test): Likewise.
17100         (tgamma_test): Likewise.
17101         (trunc_test): Likewise.
17102         (y0_test): Likewise.
17103         (y1_test): Likewise.
17104         (yn_test): Likewise.
17105         (significand_test): Likewise.
17106
17107 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
17108
17109         [BZ #15381]
17110         * libio/genops.c (_IO_no_init): Initialize wide struct info.
17111
17112 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17113
17114         [BZ #14894]
17115         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
17116         __ppc_mdoio and __ppc_mdoom.
17117         * manual/platform.texi: Document new functions __ppc_yield,
17118         __ppc_mdoio and __ppc_mdoom.
17119
17120 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
17121
17122         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
17123         (main): Mention "tls" pseudo-hwcap is legacy.
17124         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
17125
17126 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17127
17128         * math/gen-libm-test.pl (parse_args): Output only string of
17129         arguments as text for test name, not full call or descriptions of
17130         tests for extra outputs.
17131         (generate_testfile): Do not pass function name to parse_args.
17132         Generate this_func variable from START.
17133         * math/libm-test.inc (struct test_f_f_data): Rename test_name
17134         field to arg_str.
17135         (struct test_ff_f_data): Likewise.
17136         (test_ff_f_data_nexttoward): Likewise.
17137         (struct test_fi_f_data): Likewise.
17138         (struct test_fl_f_data): Likewise.
17139         (struct test_if_f_data): Likewise.
17140         (struct test_fff_f_data): Likewise.
17141         (struct test_c_f_data): Likewise.
17142         (struct test_f_f1_data): Likewise.  Remove field extra_name.
17143         (struct test_fF_f1_data): Likewise.
17144         (struct test_ffI_f1_data): Likewise.
17145         (struct test_c_c_data): Rename test_name field to arg_str.
17146         (struct test_cc_c_data): Likewise.
17147         (struct test_f_i_data): Likewise.
17148         (struct test_ff_i_data): Likewise.
17149         (struct test_f_l_data): Likewise.
17150         (struct test_f_L_data): Likewise.
17151         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
17152         and extra2_name.
17153         (COMMON_TEST_SETUP): New macro.
17154         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
17155         (COMMON_TEST_CLEANUP): Likewise.
17156         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
17157         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
17158         macros.
17159         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
17160         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
17161         macros.
17162         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
17163         (RUN_TEST_fff_f): Take argument string.  Call new setup and
17164         cleanup macros.
17165         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
17166         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
17167         macros.
17168         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
17169         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
17170         macros.
17171         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17172         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
17173         cleanup macros.
17174         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17175         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
17176         cleanup macros.
17177         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17178         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
17179         cleanup macros.
17180         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17181         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
17182         macros.
17183         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
17184         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
17185         macros.
17186         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
17187         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
17188         macros.
17189         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
17190         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
17191         cleanup macros.
17192         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
17193         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
17194         cleanup macros.
17195         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
17196         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
17197         macros.
17198         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
17199         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
17200         cleanup macros.
17201         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
17202         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
17203         macros.
17204         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
17205         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
17206         macros.
17207         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
17208         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
17209         cleanup macros.
17210         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
17211
17212 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
17213
17214         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
17215         to _sifields.sigfault.
17216         (si_addr_lsb): Define new macro.
17217         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17218         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17219         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
17220
17221 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
17222
17223         [BZ #15441]
17224         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
17225         returns -1.
17226         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
17227         null return -1.
17228         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
17229         loading the domain.
17230
17231 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17232
17233         * math/gen-libm-test.pl (parse_args): Do not include expected
17234         result in test name.
17235         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
17236         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17237         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17238         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17239         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17241
17242 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17243
17244         * benchtests/Makefile: Sort function entries.
17245
17246         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
17247         tanh, asinh, acosh, atanh.
17248         * benchtests/acos-inputs: New file.
17249         * benchtests/acosh-inputs: New file.
17250         * benchtests/asin-inputs: New file.
17251         * benchtests/asinh-inputs: New file.
17252         * benchtests/atanh-inputs: New file.
17253         * benchtests/cosh-inputs: New file.
17254         * benchtests/log-inputs: New file.
17255         * benchtests/sinh-inputs: New file.
17256         * benchtests/tanh-inputs: New file.
17257
17258 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
17259
17260         [BZ #15339]
17261         * posix/tst-getaddrinfo4.c: New test.
17262         * posix/Makefile (tests): Add it.
17263
17264 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17265
17266         [BZ #15339]
17267         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
17268         when no services were used.
17269         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
17270         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
17271
17272 2013-05-21  Andreas Schwab  <schwab@suse.de>
17273
17274         [BZ #15014]
17275         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
17276         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
17277         successful.
17278         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
17279         redundant variable declarations and reallocation of buffer when
17280         parsing as IPv6 address.  Always set NSS status when called from
17281         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
17282         buffer too small.  Correct computation of needed size.
17283         * nss/Makefile (tests): Add test-digits-dots.
17284         * nss/test-digits-dots.c: New test.
17285
17286 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17287
17288         * benchtests/Makefile: Remove instructions for adding
17289         benchmark tests.
17290         * benchtests/README: New file to explain how to execute and
17291         enhance the benchmark tests.
17292
17293 2013-05-21  Andreas Schwab  <schwab@suse.de>
17294
17295         [BZ #15493]
17296         * setjmp/Makefile (tests): Add tst-sigsetjmp.
17297         * setjmp/tst-sigsetjmp.c: New test.
17298
17299 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17300
17301         * sysdeps/x86_64/memset.S (memset): New implementation.
17302         (__bzero): Likewise.
17303         (__memset_tail): New function.
17304
17305 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17306
17307         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
17308         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
17309         __memcpy_sse2_unaligned ifunc selection.
17310         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
17311         Add memcpy-sse2-unaligned.S.
17312         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
17313         Add: __memcpy_sse2_unaligned.
17314
17315 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
17316
17317         [BZ #15490]
17318         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
17319         math_force_eval before restoring floating-point envrionment.
17320         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
17321         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
17322         Likewise.
17323         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
17324         <math_private.h>.
17325         (__nearbyintl): Use math_force_eval before restoring
17326         floating-point environment.
17327         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
17328
17329         * math/gen-libm-test.pl (special_functions): Remove.
17330         (parse_args): Don't handle TEST_extra.  Handle functions with no
17331         return value.
17332         * math/libm-test.inc (struct test_sincos_data): Replace with
17333         struct test_fFF_11_data.
17334         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
17335         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
17336         (sincos_test_data): Change element type to struct
17337         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
17338         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
17339         RUN_TEST_LOOP_sincos.
17340         * math/README.libm-test: Don't mention special handling of
17341         individual functions.
17342         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
17343         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17344         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17345         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17346         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17348
17349         * math/gen-libm-test.pl (get_variable): Remove function.
17350         (parse_args): Don't show pointer parameters to call in test
17351         names.  Use "extra output N" in test names for extra outputs
17352         rather than naming variables.
17353
17354 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
17355
17356         [BZ #15488]
17357         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
17358         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
17359         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
17360         double tests.
17361         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
17362         disable.
17363         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
17364         check_long_double.
17365
17366         * math/gen-libm-test.pl (@tests): Remove variable.
17367         ($count): Likewise.
17368         (new_test): Remove function.
17369         (show_exceptions): New function.
17370         (special_functions): Use show_exceptions instead of new_test.
17371         (parse_args): Likewise.
17372         (generate_testfile): Pass only function name in generated call to
17373         print_max_error or print_complex_max_error.
17374         (get_ulps): Do not handle complex tests specially.
17375         (output_test): Rename to ...
17376         (get_all_ulps_for_test): ... this.  Return a string rather than
17377         printing to a file.  Require ulps to be present.
17378         (output_ulps): Generate arrays rather than #defines.
17379         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
17380         (struct ulp_data): New type.
17381         (BUILD_COMPLEX_ULP): Remove macro.
17382         (compare_ulp_data): New function.
17383         (find_ulps): Likewise.
17384         (find_test_ulps): Likewise.
17385         (find_function_ulps): Likewise.
17386         (find_complex_function_ulps): Likewise.
17387         (print_max_error): Determine allowed ulps using
17388         find_function_ulps.
17389         (print_complex_max_error): Determine allowed ulps using
17390         find_complex_function_ulps.
17391         (check_float_internal): Determine max ulps using find_test_ulps.
17392         (check_float): Do not take max_ulp parameter.  Update call to
17393         check_float_internal.
17394         (check_complex): Likewise.
17395         (check_int): Do not take max_ulp parameter.
17396         (check_long): Likewise.
17397         (check_bool): Likewise.
17398         (check_longlong): Likewise.
17399         (struct test_f_f_data): Remove max_ulp field.
17400         (struct test_ff_f_data): Likewise.
17401         (struct test_ff_f_data_nexttoward): Likewise.
17402         (struct test_fi_f_data): Likewise.
17403         (struct test_fl_f_data): Likewise.
17404         (struct test_if_f_data): Likewise.
17405         (struct test_fff_f_data): Likewise.
17406         (struct test_c_f_data): Likewise.
17407         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
17408         (struct test_fF_f1_data): Likewise.
17409         (struct test_ffI_f1_data): Likewise.
17410         (struct test_c_c_data): Remove max_ulp field.
17411         (struct test_cc_c_data): Likewise.
17412         (struct test_f_i_data): Likewise.
17413         (struct test_ff_i_data): Likewise.
17414         (struct test_f_l_data): Likewise.
17415         (struct test_f_L_data): Likewise.
17416         (struct test_sincos_data): Likewise.
17417         (RUN_TEST_f_f): Do not handle ulps.
17418         (RUN_TEST_LOOP_f_f): Likewise.
17419         (RUN_TEST_2_f): Likewise.
17420         (RUN_TEST_LOOP_2_f): Likewise.
17421         (RUN_TEST_fff_f): Likewise.
17422         (RUN_TEST_LOOP_fff_f): Likewise.
17423         (RUN_TEST_c_f): Likewise.
17424         (RUN_TEST_LOOP_c_f): Likewise.
17425         (RUN_TEST_f_f1): Likewise.
17426         (RUN_TEST_LOOP_f_f1): Likewise.
17427         (RUN_TEST_fF_f1): Likewise.
17428         (RUN_TEST_LOOP_fF_f1): Likewise.
17429         (RUN_TEST_fI_f1): Likewise.
17430         (RUN_TEST_LOOP_fI_f1): Likewise.
17431         (RUN_TEST_ffI_f1): Likewise.
17432         (RUN_TEST_LOOP_ffI_f1): Likewise.
17433         (RUN_TEST_c_c): Likewise.
17434         (RUN_TEST_LOOP_c_c): Likewise.
17435         (RUN_TEST_cc_c): Likewise.
17436         (RUN_TEST_LOOP_cc_c): Likewise.
17437         (RUN_TEST_f_i): Likewise.
17438         (RUN_TEST_LOOP_f_i): Likewise.
17439         (RUN_TEST_f_i_tg): Likewise.
17440         (RUN_TEST_LOOP_f_i_tg): Likewise.
17441         (RUN_TEST_ff_i_tg): Likewise.
17442         (RUN_TEST_LOOP_ff_i_tg): Likewise.
17443         (RUN_TEST_f_b): Likewise.
17444         (RUN_TEST_LOOP_f_b): Likewise.
17445         (RUN_TEST_f_b_tg): Likewise.
17446         (RUN_TEST_LOOP_f_b_tg): Likewise.
17447         (RUN_TEST_f_l): Likewise.
17448         (RUN_TEST_LOOP_f_l): Likewise.
17449         (RUN_TEST_f_L): Likewise.
17450         (RUN_TEST_LOOP_f_L): Likewise.
17451         (RUN_TEST_sincos): Likewise.
17452         (RUN_TEST_LOOP_sincos): Likewise.
17453
17454 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
17455
17456         [BZ #15480]
17457         [BZ #15485]
17458         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
17459         main case of finite arguments, set rounding mode to FE_TONEAREST
17460         and discard exceptions.
17461         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
17462         exceptions.
17463         (remainder_tonearest_test_data): New variable.
17464         (remainder_test_tonearest): New function.
17465         (remainder_towardzero_test_data): New variable.
17466         (remainder_test_towardzero): New function.
17467         (remainder_downward_test_data): New variable.
17468         (remainder_test_downward): New function.
17469         (remainder_upward_test_data): New variable.
17470         (remainder_test_upward): New function.
17471         (main): Call the new test functions.
17472
17473         * math/libm-test.inc (struct test_f_f1_data): Remove field
17474         extra_init.
17475         (struct test_fF_f1_data): Likewise.
17476         (struct test_ffI_f1_data): Likewise.
17477         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
17478         based on value of EXTRA_EXPECTED.
17479         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17480         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
17481         EXTRA_VAR based on value of EXTRA_EXPECTED.
17482         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17483         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
17484         EXTRA_VAR based on value of EXTRA_EXPECTED.
17485         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17486         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
17487         EXTRA_VAR based on value of EXTRA_EXPECTED.
17488         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17489         * math/gen-libm-test.pl (parse_args): Don't output initializers
17490         for extra output values.
17491
17492         * math/libm-test.inc (check_int): Expect result to be exactly
17493         equal to expected value and do not handle ulps.
17494         (check_long): Likewise.
17495         (check_longlong): Likewise.
17496
17497         * math/libm-test.inc (ceil_test_data): Test for "inexact"
17498         exceptions.
17499         (cimag_test_data): Likewise.
17500         (conj_test_data): Likewise.
17501         (copysign_test_data): Likewise.
17502         (cproj_test_data): Likewise.
17503         (creal_test_data): Likewise.
17504         (fabs_test_data): Likewise.
17505         (fdim_test_data): Likewise.
17506         (finite_test_data): Likewise.
17507         (floor_test_data): Likewise.
17508         (fmax_test_data): Likewise.
17509         (fmin_test_data): Likewise.
17510         (fmod_test_data): Likewise.
17511         (fpclassify_test_data): Likewise.
17512         (frexp_test_data): Likewise.
17513         (ilogb_test_data): Likewise.
17514         (isfinite_test_data): Likewise.
17515         (isgreater_test_data): Likewise.
17516         (isgreaterequal_test_data): Likewise.
17517         (isinf_test_data): Likewise.
17518         (isless_test_data): Likewise.
17519         (islessequal_test_data): Likewise.
17520         (islessgreater_test_data): Likewise.
17521         (isnan_test_data): Likewise.
17522         (isnormal_test_data): Likewise.
17523         (issignaling_test_data): Likewise.
17524         (isunordered_test_data): Likewise.
17525         (ldexp_test_data): Likewise.
17526         (lrint_test_data): Likewise.
17527         (lrint_test_data) [TEST_FLOAT]: Disable one test.
17528         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
17529         (lrint_tonearest_test_data): Test for "inexact" exceptions.
17530         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17531         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
17532         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17533         test input.
17534         (lrint_towardzero_test_data): Test for "inexact" exceptions.
17535         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17536         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
17537         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
17538         that test input.
17539         (lrint_downward_test_data): Test for "inexact" exceptions.
17540         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17541         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
17542         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17543         test input.
17544         (lrint_upward_test_data): Test for "inexact" exceptions.
17545         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
17546         test input.
17547         (llrint_test_data): Test for "inexact" exceptions.
17548         (llrint_test_data) [TEST_FLOAT]: Disable one test.
17549         (llrint_tonearest_test_data): Test for "inexact" exceptions.
17550         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17551         (llrint_towardzero_test_data): Test for "inexact" exceptions.
17552         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17553         (llrint_downward_test_data): Test for "inexact" exceptions.
17554         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17555         (llrint_upward_test_data): Test for "inexact" exceptions.
17556         (logb_test_data): Likewise.
17557         (logb_downward_test_data): Likewise.
17558         (nextafter_test_data): Likewise.
17559         (nexttoward_test_data): Likewise.
17560         (remainder_test_data): Likewise.
17561         (remquo_test_data): Likewise.
17562         (scalbn_test_data): Likewise.
17563         (scalbln_test_data): Likewise.
17564         (signbit_test_data): Likewise.
17565         (sqrt_test_data): Likewise.
17566         (significand_test_data): Likewise.
17567
17568 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
17569
17570         [BZ #15424]
17571         * benchtests/bench-modf.c (struct args): Mark arg0 as
17572         volatile.
17573         * scripts/bench.pl: Mark members of struct args as volatile.
17574
17575 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17576
17577         [BZ # 15497]
17578         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
17579         negative infinity on POWER6 or lower.
17580         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
17581
17582 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
17583
17584         [BZ #15442]
17585         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
17586         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
17587         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
17588         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
17589         (_FP_SETQNAN): New macro.
17590         (_FP_SETQNAN_SEMIRAW): Likewise.
17591         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
17592         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
17593         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
17594         (FP_EXTEND): Use _FP_FRAC_SNANP.
17595         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
17596         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
17597         into account.
17598         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17599         New macro.
17600         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17601         Likewise.
17602
17603 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17604
17605         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
17606         with DIVIDE_BY_ZERO_EXCEPTION.
17607         (gamma_test_data): Likewise.
17608         (lgamma_test_data): Likewise.
17609         (log_test_data): Likewise.
17610         (log10_test_data): Likewise.
17611         (log2_test_data): Likewise.
17612         (tgamma_test_data): Likewise.
17613
17614         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
17615         (acos_test_tonearest): Likewise.
17616         (acos_test_towardzero): Likewise.
17617         (acos_test_downward): Likewise.
17618         (acos_test_upward): Likewise.
17619         (acosh_test): Likewise.
17620         (asin_test): Likewise.
17621         (asin_test_tonearest): Likewise.
17622         (asin_test_towardzero): Likewise.
17623         (asin_test_downward): Likewise.
17624         (asin_test_upward): Likewise.
17625         (asinh_test): Likewise.
17626         (atan_test): Likewise.
17627         (atanh_test): Likewise.
17628         (atan2_test): Likewise.
17629         (cabs_test): Likewise.
17630         (cacos_test): Likewise.
17631         (cacosh_test): Likewise.
17632         (casin_test): Likewise.
17633         (casinh_test): Likewise.
17634         (catan_test): Likewise.
17635         (catanh_test): Likewise.
17636         (cbrt_test): Likewise.
17637         (ccos_test): Likewise.
17638         (ccosh_test): Likewise.
17639         (cexp_test): Likewise.
17640         (clog_test): Likewise.
17641         (clog10_test): Likewise.
17642         (cos_test): Likewise.
17643         (cos_test_tonearest): Likewise.
17644         (cos_test_towardzero): Likewise.
17645         (cos_test_downward): Likewise.
17646         (cos_test_upward): Likewise.
17647         (cosh_test): Likewise.
17648         (cosh_test_tonearest): Likewise.
17649         (cosh_test_towardzero): Likewise.
17650         (cosh_test_downward): Likewise.
17651         (cosh_test_upward): Likewise.
17652         (cpow_test): Likewise.
17653         (csin_test): Likewise.
17654         (csinh_test): Likewise.
17655         (csqrt_test): Likewise.
17656         (ctan_test): Likewise.
17657         (ctan_test_tonearest): Likewise.
17658         (ctan_test_towardzero): Likewise.
17659         (ctan_test_downward): Likewise.
17660         (ctan_test_upward): Likewise.
17661         (ctanh_test): Likewise.
17662         (ctanh_test_tonearest): Likewise.
17663         (ctanh_test_towardzero): Likewise.
17664         (ctanh_test_downward): Likewise.
17665         (ctanh_test_upward): Likewise.
17666         (erf_test): Likewise.
17667         (erfc_test): Likewise.
17668         (exp_test): Likewise.
17669         (exp_test_tonearest): Likewise.
17670         (exp_test_towardzero): Likewise.
17671         (exp_test_downward): Likewise.
17672         (exp_test_upward): Likewise.
17673         (exp10_test): Likewise.
17674         (exp2_test): Likewise.
17675         (expm1_test): Likewise.
17676         (fmod_test): Likewise.
17677         (gamma_test): Likewise.
17678         (hypot_test): Likewise.
17679         (j0_test): Likewise.
17680         (j1_test): Likewise.
17681         (jn_test): Likewise.
17682         (lgamma_test): Likewise.
17683         (log_test): Likewise.
17684         (log10_test): Likewise.
17685         (log1p_test): Likewise.
17686         (log2_test): Likewise.
17687         (logb_test_downward): Likewise.
17688         (pow_test): Likewise.
17689         (pow_test_tonearest): Likewise.
17690         (pow_test_towardzero): Likewise.
17691         (pow_test_downward): Likewise.
17692         (pow_test_upward): Likewise.
17693         (remainder_test): Likewise.
17694         (remquo_test): Likewise.
17695         (sin_test): Likewise.
17696         (sin_test_tonearest): Likewise.
17697         (sin_test_towardzero): Likewise.
17698         (sin_test_downward): Likewise.
17699         (sin_test_upward): Likewise.
17700         (sincos_test): Likewise.
17701         (sinh_test): Likewise.
17702         (sinh_test_tonearest): Likewise.
17703         (sinh_test_towardzero): Likewise.
17704         (sinh_test_downward): Likewise.
17705         (sinh_test_upward): Likewise.
17706         (sqrt_test): Likewise.
17707         (tan_test): Likewise.
17708         (tan_test_tonearest): Likewise.
17709         (tan_test_towardzero): Likewise.
17710         (tan_test_downward): Likewise.
17711         (tan_test_upward): Likewise.
17712         (tanh_test): Likewise.
17713         (tgamma_test): Likewise.
17714         (y0_test): Likewise.
17715         (y1_test): Likewise.
17716         (yn_test): Likewise.
17717
17718         * math/gen-libm-test.pl (adjust_arg): Remove function.
17719         (special_function): Remove argument $in_func.  Only handle
17720         generating output for tables of tests, not inside functions.
17721         (parse_args): Likewise.
17722         (generate_testfile): Remove variable $in_func.  Update call to
17723         parse_args.
17724         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
17725         (MINUS_ZERO_INIT): Rename macro to minus_zero.
17726         (PLUS_INFTY_INIT): Rename macro to plus_infty.
17727         (MINUS_INFTY_INIT): Rename macro to minus_infty.
17728         (QNAN_VALUE_INIT): Rename macro to qnan_value.
17729         (MAX_VALUE_INIT): Rename macro to max_value.
17730         (MIN_VALUE_INIT): Rename macro to min_value.
17731         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
17732         (plus_zero): Remove variable.
17733         (minus_zero): Likewise.
17734         (plus_infty): Likewise.
17735         (minus_infty): Likewise.
17736         (qnan_value): Likewise.
17737         (max_value): Likewise.
17738         (min_value): Likewise.
17739         (min_subnorm_value): Likewise.
17740
17741 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17742
17743         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
17744         uint64_t or uint32_t usage.
17745         * crypt/sha256-block.c: Likewise.
17746         * crypt/sha256-crypt.c: Likewise.
17747         * crypt/sha256.c: Likewise.
17748         * crypt/sha512-block.c: Likewise.
17749         * crypt/sha512-crypt.c: Likewise.
17750         * crypt/sha512.c: Likewise.
17751         * debug/backtrace-tst.c: Likewise.
17752         * debug/pcprofiledump.c: Likewise.
17753         * elf/cache.c: Likewise.
17754         * elf/dl-cache.c: Likewise.
17755         * elf/dl-misc.c: Likewise.
17756         * elf/dl-profile.c: Likewise.
17757         * elf/dl-support.c: Likewise.
17758         * elf/ldconfig.c: Likewise.
17759         * elf/sprof.c: Likewise.
17760         * iconv/dummy-repertoire.c: Likewise.
17761         * iconv/iconv_charmap.c: Likewise.
17762         * iconv/skeleton.c: Likewise.
17763         * iconvdata/8bit-generic.c: Likewise.
17764         * iconvdata/cp737.h: Likewise.
17765         * iconvdata/cp775.h: Likewise.
17766         * iconvdata/ibm1008.h: Likewise.
17767         * iconvdata/ibm1025.h: Likewise.
17768         * iconvdata/ibm1046.h: Likewise.
17769         * iconvdata/ibm1097.h: Likewise.
17770         * iconvdata/ibm1112.h: Likewise.
17771         * iconvdata/ibm1122.h: Likewise.
17772         * iconvdata/ibm1123.h: Likewise.
17773         * iconvdata/ibm1124.h: Likewise.
17774         * iconvdata/ibm1129.h: Likewise.
17775         * iconvdata/ibm1130.h: Likewise.
17776         * iconvdata/ibm1132.h: Likewise.
17777         * iconvdata/ibm1133.h: Likewise.
17778         * iconvdata/ibm1137.h: Likewise.
17779         * iconvdata/ibm1140.h: Likewise.
17780         * iconvdata/ibm1141.h: Likewise.
17781         * iconvdata/ibm1142.h: Likewise.
17782         * iconvdata/ibm1143.h: Likewise.
17783         * iconvdata/ibm1144.h: Likewise.
17784         * iconvdata/ibm1145.h: Likewise.
17785         * iconvdata/ibm1146.h: Likewise.
17786         * iconvdata/ibm1147.h: Likewise.
17787         * iconvdata/ibm1148.h: Likewise.
17788         * iconvdata/ibm1149.h: Likewise.
17789         * iconvdata/ibm1153.h: Likewise.
17790         * iconvdata/ibm1154.h: Likewise.
17791         * iconvdata/ibm1155.h: Likewise.
17792         * iconvdata/ibm1156.h: Likewise.
17793         * iconvdata/ibm1157.h: Likewise.
17794         * iconvdata/ibm1158.h: Likewise.
17795         * iconvdata/ibm1160.h: Likewise.
17796         * iconvdata/ibm1161.h: Likewise.
17797         * iconvdata/ibm1162.h: Likewise.
17798         * iconvdata/ibm1163.h: Likewise.
17799         * iconvdata/ibm1164.h: Likewise.
17800         * iconvdata/ibm1166.h: Likewise.
17801         * iconvdata/ibm1167.h: Likewise.
17802         * iconvdata/ibm12712.h: Likewise.
17803         * iconvdata/ibm1390.h: Likewise.
17804         * iconvdata/ibm1399.h: Likewise.
17805         * iconvdata/ibm16804.h: Likewise.
17806         * iconvdata/ibm4517.h: Likewise.
17807         * iconvdata/ibm4899.h: Likewise.
17808         * iconvdata/ibm4909.h: Likewise.
17809         * iconvdata/ibm4971.h: Likewise.
17810         * iconvdata/ibm5347.h: Likewise.
17811         * iconvdata/ibm803.h: Likewise.
17812         * iconvdata/ibm856.h: Likewise.
17813         * iconvdata/ibm901.h: Likewise.
17814         * iconvdata/ibm902.h: Likewise.
17815         * iconvdata/ibm9030.h: Likewise.
17816         * iconvdata/ibm9066.h: Likewise.
17817         * iconvdata/ibm921.h: Likewise.
17818         * iconvdata/ibm922.h: Likewise.
17819         * iconvdata/ibm9448.h: Likewise.
17820         * iconvdata/isiri-3342.h: Likewise.
17821         * iconvdata/jis0201.h: Likewise.
17822         * include/link.h: Likewise.
17823         * include/netdb.h: Likewise.
17824         * inet/check_native.c: Likewise.
17825         * inet/check_pf.c: Likewise.
17826         * inet/getipv4sourcefilter.c: Likewise.
17827         * inet/getnameinfo.c: Likewise.
17828         * inet/getsourcefilter.c: Likewise.
17829         * inet/htonl.c: Likewise.
17830         * inet/setipv4sourcefilter.c: Likewise.
17831         * inet/setsourcefilter.c: Likewise.
17832         * inet/test-inet6_opt.c: Likewise.
17833         * inet/tst-network.c: Likewise.
17834         * locale/C-collate.c: Likewise.
17835         * locale/C-ctype.c: Likewise.
17836         * locale/C-time.c: Likewise.
17837         * locale/C-translit.h: Likewise.
17838         * locale/loadarchive.c: Likewise.
17839         * locale/programs/3level.h: Likewise.
17840         * locale/programs/charmap.c: Likewise.
17841         * locale/programs/charmap.h: Likewise.
17842         * locale/programs/ld-address.c: Likewise.
17843         * locale/programs/ld-collate.c: Likewise.
17844         * locale/programs/ld-ctype.c: Likewise.
17845         * locale/programs/ld-identification.c: Likewise.
17846         * locale/programs/ld-measurement.c: Likewise.
17847         * locale/programs/ld-messages.c: Likewise.
17848         * locale/programs/ld-monetary.c: Likewise.
17849         * locale/programs/ld-name.c: Likewise.
17850         * locale/programs/ld-numeric.c: Likewise.
17851         * locale/programs/ld-paper.c: Likewise.
17852         * locale/programs/ld-telephone.c: Likewise.
17853         * locale/programs/ld-time.c: Likewise.
17854         * locale/programs/linereader.c: Likewise.
17855         * locale/programs/locale.c: Likewise.
17856         * locale/programs/locarchive.c: Likewise.
17857         * locale/programs/locfile.h: Likewise.
17858         * locale/programs/repertoire.c: Likewise.
17859         * locale/programs/simple-hash.c: Likewise.
17860         * locale/programs/simple-hash.h: Likewise.
17861         * malloc/memusage.c: Likewise.
17862         * malloc/memusagestat.c: Likewise.
17863         * nis/nis_defaults.c: Likewise.
17864         * nis/nis_hash.c: Likewise.
17865         * nis/nis_print.c: Likewise.
17866         * nis/nis_xdr.c: Likewise.
17867         * nscd/connections.c: Likewise.
17868         * nscd/hstcache.c: Likewise.
17869         * nscd/nscd_gethst_r.c: Likewise.
17870         * nscd/nscd_getserv_r.c: Likewise.
17871         * nscd/nscd_helper.c: Likewise.
17872         * nscd/servicescache.c: Likewise.
17873         * nss/makedb.c: Likewise.
17874         * nss/nss_db/db-XXX.c: Likewise.
17875         * nss/nss_db/db-initgroups.c: Likewise.
17876         * nss/nss_db/db-netgrp.c: Likewise.
17877         * nss/nss_files/files-network.c: Likewise.
17878         * nss/nss_files/files-parse.c: Likewise.
17879         * posix/bug-regex5.c: Likewise.
17880         * posix/fnmatch_loop.c: Likewise.
17881         * posix/regcomp.c: Likewise.
17882         * posix/regexec.c: Likewise.
17883         * posix/tst-rfc3484-2.c: Likewise.
17884         * posix/tst-rfc3484-3.c: Likewise.
17885         * posix/tst-rfc3484.c: Likewise.
17886         * resolv/nss_dns/dns-canon.c: Likewise.
17887         * resolv/nss_dns/dns-network.c: Likewise.
17888         * resolv/res_init.c: Likewise.
17889         * resolv/res_mkquery.c: Likewise.
17890         * resolv/tst-aton.c: Likewise.
17891         * stdlib/cxa_atexit.c: Likewise.
17892         * stdlib/cxa_finalize.c: Likewise.
17893         * stdlib/gen-fpioconst.c: Likewise.
17894         * stdlib/strtol_l.c: Likewise.
17895         * string/tst-endian.c: Likewise.
17896         * sunrpc/auth_des.c: Likewise.
17897         * sunrpc/clnt_udp.c: Likewise.
17898         * sunrpc/rtime.c: Likewise.
17899         * sunrpc/svcauth_des.c: Likewise.
17900         * sunrpc/xdr.c: Likewise.
17901         * sunrpc/xdr_intXX_t.c: Likewise.
17902         * sunrpc/xdr_rec.c: Likewise.
17903         * sysdeps/generic/ldconfig.h: Likewise.
17904         * sysdeps/generic/ldsodefs.h: Likewise.
17905         * sysdeps/generic/memusage.h: Likewise.
17906         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17907         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
17908         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
17909         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17910         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17911         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17912         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17913         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17914         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17915         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17916         * sysdeps/posix/getaddrinfo.c: Likewise.
17917         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17918         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17919         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17920         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17921         * sysdeps/powerpc/test-gettimebase.c: Likewise.
17922         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
17923         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
17924         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
17925         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
17926         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
17927         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17928         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17929         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
17930         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
17931         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
17932         * sysdeps/x86_64/dl-tls.h: Likewise.
17933         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
17934         * time/alt_digit.c: Likewise.
17935         * time/era.c: Likewise.
17936         * wcsmbs/tst-c16c32-1.c: Likewise.
17937
17938 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17939
17940         * math/libm-test.inc (struct test_sincos_data): New type.
17941         (RUN_TEST_LOOP_sincos): New macro.
17942         (sincos_test_data): New variable.
17943         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
17944
17945 2013-05-16  Richard Henderson  <rth@redhat.com>
17946
17947         * math/atest-exp2.c (LIMB64): New macro.
17948         (CONSTSZ): New macro.
17949         (mp_exp1, mp_exp_m1, mp_log2): New variables.
17950         (hexdig): Move ...
17951         (print_mpn_fp): ... to function scope.
17952         (read_mpn_hex): Remove.
17953         (get_log2): Remove.
17954         (exp2_mpn): Use mp_log2.
17955         (main): Use mp_exp1.
17956
17957 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17958
17959         * math/libm-test.inc: Remove comment about not testing "inexact"
17960         exceptions.
17961         (INEXACT_EXCEPTION): New macro.
17962         (NO_INEXACT_EXCEPTION): Likewise.
17963         (INVALID_EXCEPTION_OK): Update value.
17964         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17965         (OVERFLOW_EXCEPTION_OK): Likewise.
17966         (UNDERFLOW_EXCEPTION_OK): Likewise.
17967         (IGNORE_ZERO_INF_SIGN): Likewise.
17968         (ERRNO_UNCHANGED): Likewise.
17969         (ERRNO_EDOM): Likewise.
17970         (ERRNO_ERANGE): Likewise.
17971         (test_exceptions): Handle testing "inexact" exceptions.
17972         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
17973         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
17974         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
17975         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
17976         INEXACT_EXCEPTION.
17977         (rint_towardzero_test_data): Likewise.
17978         (rint_downward_test_data): Likewise.
17979         (rint_upward_test_data): Likewise.
17980
17981         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
17982         with OVERFLOW_EXCEPTION.
17983         (exp10_test_data): Likewise.
17984         (exp2_test_data): Likewise.
17985         (expm1_test_data): Likewise.
17986         (lgamma_test_data): Likewise.
17987         (pow_test_data): Likewise.
17988         (tgamma_test_data): Likewise.
17989         (yn_test_data): Remove duplicate test of overflow.
17990
17991         * math/libm-test.inc (struct test_cc_c_data): New type.
17992         (RUN_TEST_LOOP_cc_c): New macro.
17993         (cpow_test_data): New variable.
17994         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
17995
17996         * math/libm-test.inc (struct test_f_L_data): New type.
17997         (RUN_TEST_LOOP_f_L): New macro.
17998         (llrint_test_data): New variable.
17999         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
18000         (llrint_tonearest_test_data): New variable.
18001         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
18002         (llrint_towardzero_test_data): New variable.
18003         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
18004         (llrint_downward_test_data): New variable.
18005         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
18006         (llrint_upward_test_data): New variable.
18007         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
18008         (llround_test_data): New variable.
18009         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
18010
18011 2013-05-13  Peter Collingbourne  <pcc@google.com>
18012
18013         * math/atest-exp2.c (get_log2): Remove const attribute.
18014
18015 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18016
18017         * math/libm-test.inc (struct test_f_l_data): New type.
18018         (RUN_TEST_LOOP_f_l): New macro.
18019         (lrint_test_data): New variable.
18020         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
18021         (lrint_tonearest_test_data): New variable.
18022         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
18023         (lrint_towardzero_test_data): New variable.
18024         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
18025         (lrint_downward_test_data): New variable.
18026         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
18027         (lrint_upward_test_data): New variable.
18028         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
18029         (lround_test_data): New variable.
18030         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
18031
18032 2013-05-15  Peter Collingbourne  <pcc@google.com>
18033
18034         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
18035         (EXTRACT_WORDS64) Use where appropriate.
18036         (INSERT_WORDS64) Likewise.
18037
18038         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
18039         constraints with x constraints.
18040         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
18041
18042         * malloc/obstack.c (_obstack_compat): Add initializer.
18043
18044 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
18045
18046         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
18047         si_trapno and add si_addr_lsb to _sifields.sigfault.
18048         (si_trapno): Remove macro.
18049         (si_addr_lsb): Define new macro.
18050         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
18051
18052 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18053
18054         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
18055         instead of TEST_f_l.
18056         (llrint_test_tonearest): Likewise.
18057         (llrint_test_towardzero): Likewise.
18058         (llrint_test_downward): Likewise.
18059         (llrint_test_upward): Likewise.
18060         (llround_test): Likewise.
18061
18062         * math/libm-test.inc (struct test_f_i_data): Add comment.
18063         (RUN_TEST_LOOP_f_b): New macro.
18064         (RUN_TEST_LOOP_f_b_tg): Likewise.
18065         (finite_test_data): New variable.
18066         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
18067         (isfinite_test_data): New variable.
18068         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18069         (isinf_test_data): New variable.
18070         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18071         (isnan_test_data): New variable.
18072         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18073         (isnormal_test_data): New variable.
18074         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18075         (issignaling_test_data): New variable.
18076         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18077         (signbit_test_data): New variable.
18078         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18079
18080         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
18081         with INVALID_EXCEPTION.
18082         (acosh_test_data): Likewise.
18083         (asin_test_data): Likewise.
18084         (atanh_test_data): Likewise.
18085         (fmod_test_data): Likewise.
18086         (log_test_data): Likewise.
18087         (log10_test_data): Likewise.
18088         (log2_test_data): Likewise.
18089         (pow_test_data): Likewise.
18090         (sqrt_test_data): Likewise.
18091         (y0_test_data): Likewise.
18092         (y1_test_data): Likewise.
18093         (yn_test_data): Likewise.
18094
18095         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
18096         function contents.
18097
18098         * math/libm-test.inc (struct test_ff_i_data): New type.
18099         (RUN_TEST_LOOP_ff_i_tg): New macro.
18100         (isgreater_test_data): New variable.
18101         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18102         (isgreaterequal_test_data): New variable.
18103         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18104         (isless_test_data): New variable.
18105         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18106         (islessequal_test_data): New variable.
18107         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18108         (islessgreater_test_data): New variable.
18109         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18110         (isunordered_test_data): New variable.
18111         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18112
18113 2013-05-14  David S. Miller  <davem@davemloft.net>
18114
18115         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18116
18117 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
18118
18119         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
18120
18121         * math/libm-test.inc (struct test_fF_f1_data): Change type of
18122         extra_test to int.
18123         (struct test_f_i_data): Change type of max_ulp to int.
18124
18125         * math/libm-test.inc (test_ffI_f1_data): New type.
18126         (RUN_TEST_LOOP_ffI_f1): New macro.
18127         (remquo_test_data): New variable.
18128         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
18129
18130         * setjmp/tst-setjmp-fp.c: New file.
18131         * setjmp/Makefile (tests): Add tst-setjmp-fp.
18132         (link-libm): New variable.
18133         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
18134
18135         * math/libm-test.inc (struct test_f_i_data): New type.
18136         (RUN_TEST_LOOP_f_i): New macro.
18137         (RUN_TEST_LOOP_f_i_tg): Likewise.
18138         (fpclassify_test_data): New variable.
18139         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
18140         (ilogb_test_data): New variable.
18141         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
18142
18143         * math/libm-test.inc (scalbln_test): Correct function name in END
18144         call.
18145
18146         * math/libm-test.inc (struct test_f_f1_data): Add comment.
18147         (RUN_TEST_LOOP_fI_f1): New macro.
18148         (frexp_test_data): New variable.
18149         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
18150
18151         * math/libm-test.inc (struct test_fF_f1_data): New type.
18152         (RUN_TEST_LOOP_fF_f1): New macro.
18153         (modf_test_data): New variable.
18154         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
18155
18156         * math/libm-test.inc (struct test_f_f1_data): New type.
18157         (RUN_TEST_LOOP_f_f1): New macro.
18158         (gamma_test_data): New variable.
18159         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18160         (lgamma_test_data): New variable.
18161         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18162
18163 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
18164
18165         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
18166         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
18167         (main): Comment "tls" pseudo-hwcap.
18168
18169 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
18170
18171         * math/libm-test.inc (struct test_fl_f_data): New type.
18172         (RUN_TEST_LOOP_fl_f): New variable.
18173         (scalbln_test_data): New variable.
18174         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
18175
18176         * math/libm-test.inc (struct test_fi_f_data): New type.
18177         (RUN_TEST_LOOP_fi_f): New macro.
18178         (ldexp_test_data): New variable.
18179         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
18180         (scalbn_test_data): New variable.
18181         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
18182
18183         * math/libm-test.inc (struct test_c_f_data): New type.
18184         (RUN_TEST_LOOP_c_f): New macro.
18185         (cabs_test_data): New variable.
18186         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
18187         (carg_test_data): New variable.
18188         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
18189         (cimag_test_data): New variable.
18190         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
18191         (creal_test_data): New variable.
18192         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
18193
18194         * math/libm-test.inc (struct test_if_f_data): New type.
18195         (RUN_TEST_LOOP_if_f): New macro.
18196         (jn_test_data): New variable.
18197         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
18198         (yn_test_data): New variable.
18199         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
18200
18201         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
18202
18203 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18204
18205         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
18206         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
18207
18208 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
18209
18210         * benchtests/Makefile (CPPFLAGS-nonlib): Add
18211         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
18212         (bench-deps): Add bench-timing.h.
18213         * benchtests-bench-skeleton.c: Include bench-timing.h.
18214         (main): Use TIMING_* macros instead of clock_gettime.
18215         * benchtests/bench-timing.h: New file.
18216
18217         [BZ #14582]
18218         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
18219         Renamed from _LIB_VERSION.
18220         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
18221
18222 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
18223
18224         * math/libm-test.inc (struct test_fff_f_data): New type.
18225         (RUN_TEST_LOOP_fff_f): New macro.
18226         (fma_test_data): New variable.
18227         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
18228         (fma_towardzero_test_data): New variable.
18229         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
18230         (fma_downward_test_data): New variable.
18231         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
18232         (fma_upward_test_data): New variable.
18233         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
18234
18235         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
18236         (struct test_c_c_data): New type.
18237         (RUN_TEST_LOOP_c_c): New macro.
18238         (cacos_test_data): New variable.
18239         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
18240         (cacosh_test_data): New variable.
18241         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
18242         (casin_test_data): New variable.
18243         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
18244         (casinh_test_data): New variable.
18245         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
18246         (catan_test_data): New variable.
18247         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
18248         (catanh_test_data): New variable.
18249         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
18250         (ccos_test_data): New variable.
18251         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
18252         (ccosh_test_data): New variable.
18253         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
18254         (cexp_test_data): New variable.
18255         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
18256         (clog_test_data): New variable.
18257         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
18258         (clog10_test_data): New variable.
18259         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
18260         (conj_test_data): New variable.
18261         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
18262         (cproj_test_data): New variable.
18263         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
18264         (csin_test_data): New variable.
18265         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
18266         (csinh_test_data): New variable.
18267         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
18268         (csqrt_test_data): New variable.
18269         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
18270         (ctan_test_data): New variable.
18271         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
18272         (ctan_tonearest_test_data): New variable.
18273         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18274         (ctan_towardzero_test_data): New variable.
18275         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18276         (ctan_downward_test_data): New variable.
18277         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18278         (ctan_upward_test_data): New variable.
18279         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18280         (ctanh_test_data): New variable.
18281         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
18282         (ctanh_tonearest_test_data): New variable.
18283         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18284         (ctanh_towardzero_test_data): New variable.
18285         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18286         (ctanh_downward_test_data): New variable.
18287         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18288         (ctanh_upward_test_data): New variable.
18289         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18290         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
18291         of BUILD_COMPLEX.
18292
18293         * math/libm-test.inc (struct test_ff_f_data): New type.
18294         (struct test_ff_f_data_nexttoward): Likewise.
18295         (RUN_TEST_LOOP_2_f): New macro.
18296         (RUN_TEST_LOOP_ff_f): Likewise.
18297         (atan2_test_data): New variable.
18298         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
18299         (copysign_test_data): New variable.
18300         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
18301         (fdim_test_data): New variable.
18302         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
18303         (fmax_test_data): New variable.
18304         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
18305         (fmin_test_data): New variable.
18306         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
18307         (fmod_test_data): New variable.
18308         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
18309         (hypot_test_data): New variable.
18310         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
18311         (nextafter_test_data): New variable.
18312         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
18313         (nexttoward_test_data): New variable.
18314         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
18315         (pow_test_data): New variable.
18316         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
18317         (pow_tonearest_test_data): New variable.
18318         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
18319         (pow_towardzero_test_data): New variable.
18320         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
18321         (pow_downward_test_data): New variable.
18322         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
18323         (pow_upward_test_data): New variable.
18324         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
18325         (remainder_test_data): New variable.
18326         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
18327         (scalb_test_data): New variable.
18328         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
18329         * sysdeps/i386/fpu/libm-test-ulps: Update.
18330
18331 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
18332
18333         * math/libm-test.inc (fma_test): Use max_value instead of local
18334         variable fltmax.
18335         (nextafter_test): Likewise.
18336
18337         * math/libm-test.inc (acos_towardzero_test_data): New variable.
18338         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18339         (acos_downward_test_data): New variable.
18340         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18341         (acos_upward_test_data): New variable.
18342         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18343         (acosh_test_data): New variable.
18344         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
18345         (asin_test_data): New variable.
18346         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
18347         (asin_tonearest_test_data): New variable.
18348         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18349         (asin_towardzero_test_data): New variable.
18350         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18351         (asin_downward_test_data): New variable.
18352         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18353         (asin_upward_test_data): New variable.
18354         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18355         (asinh_test_data): New variable.
18356         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
18357         (atan_test_data): New variable.
18358         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
18359         (atanh_test_data): New variable.
18360         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
18361         (cbrt_test_data): New variable.
18362         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
18363         (ceil_test_data): New variable.
18364         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
18365         (cos_test_data): New variable.
18366         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
18367         (cos_tonearest_test_data): New variable.
18368         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18369         (cos_towardzero_test_data): New variable.
18370         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18371         (cos_downward_test_data): New variable.
18372         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18373         (cos_upward_test_data): New variable.
18374         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18375         (cosh_test_data): New variable.
18376         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
18377         (cosh_tonearest_test_data): New variable.
18378         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18379         (cosh_towardzero_test_data): New variable.
18380         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18381         (cosh_downward_test_data): New variable.
18382         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18383         (cosh_upward_test_data): New variable.
18384         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18385         (erf_test_data): New variable.
18386         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
18387         (erfc_test_data): New variable.
18388         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
18389         (exp_test_data): New variable.
18390         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
18391         (exp_tonearest_test_data): New variable.
18392         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18393         (exp_towardzero_test_data): New variable.
18394         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18395         (exp_downward_test_data): New variable.
18396         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18397         (exp_upward_test_data): New variable.
18398         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18399         (exp10_test_data): New variable.
18400         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
18401         (exp2_test_data): New variable.
18402         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
18403         (expm1_test_data): New variable.
18404         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
18405         (fabs_test_data): New variable.
18406         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
18407         (floor_test_data): New variable.
18408         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
18409         (j0_test_data): New variable.
18410         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
18411         (j1_test_data): New variable.
18412         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
18413         (log_test_data): New variable.
18414         (log_test): Run tests with RUN_TEST_LOOP_f_f.
18415         (log10_test_data): New variable.
18416         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
18417         (log1p_test_data): New variable.
18418         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
18419         (log2_test_data): New variable.
18420         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
18421         (logb_test_data): New variable.
18422         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
18423         (logb_downward_test_data): New variable.
18424         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18425         (nearbyint_test_data): New variable.
18426         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
18427         (rint_test_data): New variable.
18428         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
18429         (rint_tonearest_test_data): New variable.
18430         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18431         (rint_towardzero_test_data): New variable.
18432         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18433         (rint_downward_test_data): New variable.
18434         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18435         (rint_upward_test_data): New variable.
18436         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18437         (round_test_data): New variable.
18438         (round_test): Run tests with RUN_TEST_LOOP_f_f.
18439         (sin_test_data): New variable.
18440         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
18441         (sin_tonearest_test_data): New variable.
18442         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18443         (sin_towardzero_test_data): New variable.
18444         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18445         (sin_downward_test_data): New variable.
18446         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18447         (sin_upward_test_data): New variable.
18448         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18449         (sinh_test_data): New variable.
18450         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
18451         (sinh_tonearest_test_data): New variable.
18452         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18453         (sinh_towardzero_test_data): New variable.
18454         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18455         (sinh_downward_test_data): New variable.
18456         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18457         (sinh_upward_test_data): New variable.
18458         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18459         (sqrt_test_data): New variable.
18460         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
18461         (tan_test_data): New variable.
18462         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
18463         (tan_tonearest_test_data): New variable.
18464         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18465         (tan_towardzero_test_data): New variable.
18466         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18467         (tan_downward_test_data): New variable.
18468         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18469         (tan_upward_test_data): New variable.
18470         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18471         (tanh_test_data): New variable.
18472         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
18473         (tgamma_test_data): New variable.
18474         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
18475         (trunc_test_data): New variable.
18476         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
18477         (y0_test_data): New variable.
18478         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
18479         (y1_test_data): New variable.
18480         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
18481         (significand_test_data): New variable.
18482         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
18483
18484 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
18485
18486         [BZ #12387]
18487         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
18488
18489 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18490
18491         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
18492
18493 2013-05-10  Andreas Jaeger  <aj@suse.de>
18494
18495         [BZ #15448]
18496         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
18497         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
18498
18499 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18500
18501         * math/gen-libm-test.pl (adjust_arg): New function.
18502         (special_functions): Handle generating output in both functions
18503         and arrays.
18504         (parse_args): Likewise.
18505         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
18506         $in_func argument to parse_args.
18507         * math/libm-test.inc (struct test_f_f_data): New type.
18508         (IF_ROUND_INIT_): New macro.
18509         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
18510         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
18511         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
18512         (IF_ROUND_INIT_FE_UPWARD): Likewise.
18513         (ROUND_RESTORE_): Likewise.
18514         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
18515         (ROUND_RESTORE_FE_TONEAREST): Likewise.
18516         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
18517         (ROUND_RESTORE_FE_UPWARD): Likewise.
18518         (RUN_TEST_LOOP_f_f): New macro.
18519         (acos_test_data): New variable.
18520         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
18521         (acos_tonearest_test_data): New variable.
18522         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18523
18524 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18525
18526         * benchtests/bench-skeleton.c (startup): Fix coding style.
18527
18528 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18529
18530         [BZ #6809]
18531         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
18532         negative infinity argument.
18533         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
18534         negative infinity argument.
18535         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
18536         negative infinity argument.
18537         * math/libm-test.inc (tgamma_test): Expect errno to be set for
18538         domain errors.
18539
18540 2013-05-10  Florian Weimer  <fweimer@redhat.com>
18541
18542         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
18543         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
18544         * iconv/iconv_prog.c (main): Likewise.
18545         * locale/programs/charmap-dir.c (charmap_readdir)
18546         (fopen_uncompressed): Likewise.
18547         * locale/programs/locfile.c (siblings_uncached)
18548         (write_locale_data): Use lstat64 instead of lstat.
18549         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
18550         stat.
18551
18552 2013-05-10  Andreas Jaeger  <aj@suse.de>
18553
18554         [BZ #15395]
18555         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
18556         localization.
18557         Include <locale.h>.
18558
18559 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
18560
18561         * elf/dl-close.c (_dl_close_worker): Add comments.
18562
18563 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
18564
18565         [BZ #15359]
18566         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
18567         high part of pi/2.
18568         (__ieee754_rem_pio2l): Update comments.
18569
18570         [BZ #15429]
18571         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
18572         high part of pi/2.
18573         (__ieee754_rem_pio2l): Update comments.
18574
18575         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
18576         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
18577
18578         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
18579         M_PI_4l.
18580
18581         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
18582         (M_PI_34_LOG10El): Likewise.
18583         (M_PI2_LOG10El): Likewise.
18584         (M_PI4_LOG10El): Likewise.
18585         (M_PI_LOG10El): Likewise.
18586
18587 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18588
18589         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18590
18591 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
18592
18593         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
18594         (MINUS_ZERO_INIT): Likewise.
18595         (PLUS_INFTY_INIT): Likewise.
18596         (MINUS_INFTY_INIT): Likewise.
18597         (QNAN_VALUE_INIT): Likewise.
18598         (MAX_VALUE_INIT): Likewise.
18599         (MIN_VALUE_INIT): Likewise.
18600         (MIN_SUBNORM_VALUE_INIT): Likewise.
18601         (plus_zero): Initialize with PLUS_ZERO_INIT.
18602         (minus_zero): Initialize with MINUS_ZERO_INIT.
18603         (plus_infty): Initialize with PLUS_INFTY_INIT.
18604         (minus_infty): Initialize with MINUS_INFTY_INIT.
18605         (qnan_value): Initialize with QNAN_VALUE_INIT.
18606         (max_value): Initialize with MAX_VALUE_INIT.
18607         (min_value): Initialize with MIN_VALUE_INIT.
18608         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
18609
18610         * math/libm-test.inc (RUN_TEST_if_f): New macro.
18611         (jn_test): Use TEST_if_f instead of TEST_ff_f.
18612         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
18613         (yn_test): Use TEST_if_f instead of TEST_ff_f.
18614
18615         * math/libm-test.inc (RUN_TEST_f_f): New macro.
18616         (RUN_TEST_2_f): Likewise.
18617         (RUN_TEST_ff_f): Likewise.
18618         (RUN_TEST_fi_f): Likewise.
18619         (RUN_TEST_fl_f): Likewise.
18620         (RUN_TEST_fff_f): Likewise.
18621         (RUN_TEST_c_f): Likewise.
18622         (RUN_TEST_f_f1): Likewise.
18623         (RUN_TEST_fF_f1): Likewise.
18624         (RUN_TEST_fI_f1): Likewise.
18625         (RUN_TEST_ffI_f1): Likewise.
18626         (RUN_TEST_c_c): Likewise.
18627         (RUN_TEST_cc_c): Likewise.
18628         (RUN_TEST_f_i): Likewise.
18629         (RUN_TEST_f_i_tg): Likewise.
18630         (RUN_TEST_ff_i_tg): Likewise.
18631         (RUN_TEST_f_b): Likewise.
18632         (RUN_TEST_f_b_tg): Likewise.
18633         (RUN_TEST_f_l): Likewise.
18634         (RUN_TEST_f_L): Likewise.
18635         (RUN_TEST_sincos): Likewise.
18636         * math/gen-libm-test.pl (new_test): Take new argument to indicate
18637         whether to show exceptions.  Do not include ");\n" in return
18638         value.
18639         (special_functions): Output call to RUN_TEST_sincos instead of
18640         check_float calls.  Update calls to new_test.
18641         (parse_args): Output call to single RUN_TEST_* macro instead of
18642         check_* calls and other assignments.  Update calls to new_test.
18643
18644         [BZ #2546]
18645         [BZ #2560]
18646         [BZ #5159]
18647         [BZ #15426]
18648         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
18649         input to result for tgamma overflow.
18650         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
18651         (gamma_coeff): New variable.
18652         (NCOEFF): New macro.
18653         (gamma_positive): New function.
18654         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
18655         underflow here.  Use gamma_positive instead of exp (lgamma) for
18656         other arguments.
18657         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
18658         (gamma_coeff): New variable.
18659         (NCOEFF): New macro.
18660         (gammaf_positive): New function.
18661         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
18662         underflow here.  Use gamma_positive instead of exp (lgamma) for
18663         other arguments.
18664         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
18665         (gamma_coeff): New variable.
18666         (NCOEFF): New macro.
18667         (gammal_positive): New function.
18668         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
18669         underflow here.  Use gamma_positive instead of exp (lgamma) for
18670         other arguments.
18671         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
18672         (gamma_coeff): New variable.
18673         (NCOEFF): New macro.
18674         (gammal_positive): New function.
18675         (__ieee754_gammal_r): Handle positive infinity, overflow and
18676         underflow here.  Handle NaN the same as positive infinity.  Remove
18677         check x < 0xffffffff for negative integers.  Use gamma_positive
18678         instead of exp (lgamma) for other arguments.
18679         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
18680         (gamma_coeff): New variable.
18681         (NCOEFF): New macro.
18682         (gammal_positive): New function.
18683         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
18684         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18685         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
18686         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
18687         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18688         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
18689         * sysdeps/generic/math_private.h (__gamma_productf): New
18690         prototype.
18691         (__gamma_product): Likewise.
18692         (__gamma_productl): Likewise.
18693         * math/Makefile (libm-calls): Add gamma_product.
18694         * math/libm-test.inc (tgamma_test): Add more tests.
18695         * sysdeps/i386/fpu/libm-test-ulps: Update.
18696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18697
18698 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
18699
18700         * benchtests/bench-skeleton.c (main): Preheat CPU.
18701
18702 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
18703
18704         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
18705
18706 2013-05-07  Roland McGrath  <roland@hack.frob.com>
18707
18708         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
18709         and _dl_skip_args_internal.
18710
18711 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
18712
18713         * manual/message.texi (Message Translation): Talk about users.
18714         Message to key mapping impacts design.
18715
18716 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18717
18718         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
18719
18720         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
18721
18722         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
18723         * sysdeps/wordsize-64/glob64.c: ... here.
18724
18725         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
18726         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
18727         New macros.
18728
18729         * debug/getlogin_r_chk.c: Moved to ...
18730         * login/getlogin_r_chk.c: ... here.
18731         * debug/Makefile (routines): Move getlogin_r_chk to ...
18732         * login/Makefile (routines): ... here.
18733         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
18734         * login/Versions (libc: GLIBC_2.4): ... here.
18735
18736         * io/poll.c (__poll): Renamed from poll.
18737         Add libc_hidden_def.
18738         (poll): Define as weak alias.
18739
18740         * debug/ptsname_r_chk.c: Moved to ...
18741         * login/ptsname_r_chk.c: ... here.
18742         * debug/Makefile (routines): Move ptsname_r_chk to ...
18743         * login/Makefile (routines): ... here.
18744         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
18745         * login/Versions (libc: GLIBC_2.4): ... here.
18746
18747         * posix/getlogin.c: Moved to ...
18748         * login/getlogin.c: ... here.
18749         * posix/getlogin_r.c: Moved to ...
18750         * login/getlogin_r.c: ... here.
18751         * posix/getlogin_r.c: Moved to ...
18752         * login/getlogin_r.c: ... here.
18753         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
18754         * login/Makefile (routines): ... here.
18755         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
18756         * login/Versions (libc: GLIBC_2.0): ... here.
18757
18758         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
18759         (setrlimit): Define as weak alias.
18760
18761         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
18762         Call __ names for open, ftruncate, and close.
18763         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
18764         (truncate): Define as weak alias.
18765
18766 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
18767
18768         * math/gen-libm-test.pl (parse_args): Initialize x before each
18769         test of frexp, modf and remquo.
18770
18771         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
18772         test signgam value.
18773
18774 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18775
18776         [BZ #15418]
18777         [BZ #15419]
18778         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
18779         internal tests.
18780         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18781
18782 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18783
18784         * elf/dl-writev.h: New file.
18785         * elf/dl-misc.c: Include it.
18786         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
18787         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
18788
18789 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
18790
18791         * math/libm-test.inc (noXFails): Remove variable.
18792         (noXPasses): Likewise.
18793         (BUILD_COMPLEX_INT): Remove macro.
18794         (print_screen): Remove xfail argument.
18795         (print_screen_max_error): Likewise.
18796         (update_stats): Likewise.
18797         (print_max_error): Likewise.  Update calls to other affected
18798         functions.
18799         (print_complex_max_error): Likewise.
18800         (test_single_exception): Update calls to print_screen.
18801         (test_single_errno): Likewise.
18802         (check_float_internal): Remove xfail argument.  Update calls to
18803         other affected functions.
18804         (check_float): Likewise.
18805         (check_complex): Likewise.
18806         (check_int): Likewise.
18807         (check_long): Likewise.
18808         (check_bool): Likewise.
18809         (check_longlong): Likewise.
18810         (main): Don't print noXFails and noXPasses.
18811         * math/gen-libm-test.pl (top level): Don't mention expected
18812         failure handling in comment.
18813         (new_test): Don't handle expected failures.
18814         (parse_args): Don't mention expected failure handling in comment.
18815         (generate_testfile): Don't handle expected failures.
18816         (parse_ulps): Likewise.
18817         (print_ulps_file): Likewise.
18818         (get_failure): Remove function.
18819         (output_test): Don't handle expected failures.
18820         * make/README.libm-test: Don't mention expected failure handling.
18821
18822         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
18823         (minus_zero): Likewise.
18824         (plus_infty): Likewise.
18825         (minus_infty): Likewise.
18826         (qnan_value): Likewise.
18827         (max_value): Likewise.
18828         (min_value): Likewise.
18829         (min_subnorm_value): Likewise.
18830         (initialize): Do not initialize those variables dynamically.
18831
18832 2013-05-03  Roland McGrath  <roland@hack.frob.com>
18833
18834         * io/open.c (__open_2): Moved to ...
18835         * io/open_2.c: ... this new file.
18836         * io/open64.c (__open64_2): Moved to ...
18837         * io/open64_2.c: ... this new file.
18838         * io/openat.c (__openat_2): Moved to ...
18839         * io/openat_2.c: ... this new file.
18840         * io/openat64.c (__openat64_2): Moved to ...
18841         * io/openat64_2.c: ... this new file.
18842         * io/Makefile (routines): Add them.
18843         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
18844         * sysdeps/unix/sysv/linux/open_2.c: File removed.
18845         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
18846         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
18847         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
18848         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
18849         (__openat64): Add hidden_ver.
18850         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
18851         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
18852
18853         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
18854         Separately conditionalize setting of GLRO(dl_sysinfo) so
18855         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
18856         as well, but the actual setting is only under [NEED_DL_SYSINFO].
18857
18858 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18859
18860         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
18861         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
18862         definition.
18863         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
18864         * sysdeps/unix/sysv/linux/powerpc/init-first.c
18865         (_libc_vdso_platform_setup): Add __vdso_time initialization.
18866         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
18867         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
18868
18869 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
18870
18871         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
18872         test signgam value.
18873
18874         * math/libm-test.inc (hypot_test): Do not use
18875         IGNORE_ZERO_INF_SIGN.
18876
18877 2013-05-03  Andreas Jaeger  <aj@suse.de>
18878
18879         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
18880         Linux 3.9.
18881         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
18882         (PF_MAX): Adjust for VSOCK change.
18883
18884 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18885
18886         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18887
18888 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
18889
18890         [BZ #15264]
18891         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
18892         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
18893         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
18894
18895 2013-05-02  David S. Miller  <davem@davemloft.net>
18896
18897         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18898
18899 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
18900
18901         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
18902
18903 2013-05-01  Roland McGrath  <roland@hack.frob.com>
18904
18905         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
18906
18907 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
18908
18909         [BZ #14952]
18910         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
18911         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18912         Use __attribute__ ((__gnu_inline__)).
18913         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18914         Don't use __attribute__ ((__gnu_inline__)).
18915
18916 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
18917
18918         [BZ #15423]
18919         * math/s_catan.c (__catan): Handle small real or imaginary part of
18920         input specially to avoid spurious underflow.
18921         * math/s_catanf.c (__catanf): Likewise.
18922         * math/s_catanh.c (__catanh): Likewise.
18923         * math/s_catanhf.c (__catanhf): Likewise.
18924         * math/s_catanhl.c (__catanhl): Likewise.
18925         * math/s_catanl.c (__catanl): Likewise.
18926         * math/libm-test.inc (catan_test): Add more tests.
18927         (catanh_test): Likewise.
18928         * sysdeps/i386/fpu/libm-test-ulps: Update.
18929         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18930
18931 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18932
18933         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18934
18935 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
18936
18937         [BZ #15416]
18938         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
18939         accurately for denominator in atan2.
18940         * math/s_catanf.c (__catanf): Likewise.
18941         * math/s_catanh.c (__catanh): Likewise.
18942         * math/s_catanhf.c (__catanhf): Likewise.
18943         * math/s_catanhl.c (__catanhl): Likewise.
18944         * math/s_catanl.c (__catanl): Likewise.
18945         * math/libm-test.inc (catan_test): Add more tests.
18946         (catanh_test): Likewise.
18947         * sysdeps/i386/fpu/libm-test-ulps: Update.
18948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18949
18950 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18951
18952         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
18953
18954         * benchtests/Makefile (bench): Remove slow benchmarks.
18955         * benchtests/atan-inputs: Add slow benchmark inputs.
18956         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
18957         (BENCH_FUNC): Accept variant offset.
18958         (VARIANT): Define.
18959         * benchtests/bench-skeleton.c (main): Run benchmark for each
18960         variant.
18961         * benchtests/cos-inputs: Add slow benchmark inputs.
18962         * benchtests/exp-inputs: Likewise.
18963         * benchtests/pow-inputs: Likewise.
18964         * benchtests/sin-inputs: Likewise.
18965         * benchtests/slowatan-inputs: Remove.
18966         * benchtests/slowatan.c: Remove.
18967         * benchtests/slowcos-inputs: Remove.
18968         * benchtests/slowcos.c: Remove.
18969         * benchtests/slowexp-inputs: Remove.
18970         * benchtests/slowexp.c: Remove.
18971         * benchtests/slowpow-inputs: Remove.
18972         * benchtests/slowpow.c: Remove.
18973         * benchtests/slowsin-inputs: Remove.
18974         * benchtests/slowsin.c: Remove.
18975         * benchtests/slowtan-inputs: Remove.
18976         * benchtests/slowtan.c: Remove.
18977         * benchtests/tan-inputs: Add slow benchmark inputs.
18978         * scripts/bench.pl: Parse comments and directives.
18979
18980         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
18981         in CPPFLAGS.
18982         ($(objpfx)bench-%.c): Remove *-ITER.
18983         * benchtests/bench-modf.c: Remove definition of ITER.
18984         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
18985         (main): Loop for DURATION seconds instead of fixed number of
18986         iterations.
18987         * scripts/bench.pl: Don't expect iterations in parameters.
18988
18989 2013-04-29  Roland McGrath  <roland@hack.frob.com>
18990
18991         * io/fchdir.c (__fchdir): Renamed from fchdir.
18992         (fchdir): Define as weak alias.
18993
18994 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18995
18996         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
18997         (ERRNO_EDOM): Likewise.
18998         (ERRNO_ERANGE): Likewise.
18999         (noErrnoTests): New variable.
19000         (init_max_error): Set errno to 0.
19001         (test_single_errno): New function.
19002         (test_errno): Likewise.
19003         (check_float_internal): Call test_errno.  Set errno to 0.
19004         (check_complex): Refer to errno tests in comment.
19005         (check_int): Call test_errno.  Set errno to 0.
19006         (check_long): Likewise.
19007         (check_bool): Likewise.
19008         (check_longlong): Likewise.
19009         (cos_test): Use ERRNO_* flags for errno tests instead of
19010         check_int.
19011         (expm1_test): Likewise.
19012         (fmod_test): Likewise.
19013         (ilogb_test): Likewise.
19014         (lgamma_test): Likewise.
19015         (pow_test): Likewise.
19016         (remainder_test): Likewise.
19017         (sin_test): Likewise.
19018         (tan_test): Likewise.
19019         (yn_test): Likewise.
19020         (initialize): Set errno to 0.
19021         (main): Print number of errno tests.
19022         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
19023
19024 2013-04-29  Andreas Jaeger  <aj@suse.de>
19025
19026         [BZ #15084]
19027         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
19028         and RES_USEVC.
19029
19030         [BZ #15085]
19031         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
19032         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
19033         unimplemented.
19034
19035         [BZ #15380]
19036         * stdlib/random.c (__initstate): Return NULL if
19037         __initstate fails.
19038
19039         [BZ #15086]
19040         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
19041         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
19042         RES_SNGLKUPREOP.
19043
19044 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19045
19046         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19047
19048 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19049
19050         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
19051         of individual tests.
19052         (casin_test): Likewise.
19053         (casinh_test): Likewise.
19054
19055 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
19056
19057         [BZ #15409]
19058         * math/s_catan.c (__catan): Handle arguments with large real or
19059         imaginary part separately without squaring.
19060         * math/s_catanf.c (__catanf): Likewise.
19061         * math/s_catanh.c (__catanh): Likewise.
19062         * math/s_catanhf.c (__catanhf): Likewise.
19063         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19064         and redefine.
19065         (__catanhl): Handle arguments with large real or imaginary part
19066         separately without squaring.
19067         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19068         and redefine.
19069         (__catanl): Handle arguments with large real or imaginary part
19070         separately without squaring.
19071         * math/libm-test.inc (catan_test): Add more tests.
19072         (catanh_test): Likewise.
19073         * sysdeps/i386/fpu/libm-test-ulps: Update.
19074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19075
19076 2013-04-27  Andreas Jaeger  <aj@suse.de>
19077
19078         [BZ #15007]
19079         * stdlib/stdlib.h: Update guards for qecvt.
19080         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
19081         <stdlib.h>.
19082
19083 2013-04-27  Allan McRae  <allan@archlinux.org>
19084
19085         * sysdeps/i386/fpu/libm-test-ulps: Update.
19086
19087 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
19088
19089         [BZ #15406]
19090         * math/s_catan.c: Include <float.h>.
19091         (__catan): Ensure underflow exception occurs for underflowed
19092         result.
19093         * math/s_catanf.c: Include <float.h>.
19094         (__catanf): Ensure underflow exception occurs for underflowed
19095         result.
19096         * math/s_catanh.c: Include <float.h>.
19097         (__catanh): Ensure underflow exception occurs for underflowed
19098         result.
19099         * math/s_catanhf.c: Include <float.h>.
19100         (__catanhf): Ensure underflow exception occurs for underflowed
19101         result.
19102         * math/s_catanhl.c: Include <float.h>.
19103         (__catanhl): Ensure underflow exception occurs for underflowed
19104         result.
19105         * math/s_catanl.c: Include <float.h>.
19106         (__catanl): Ensure underflow exception occurs for underflowed
19107         result.
19108         * math/libm-test.inc (catan_test): Add more tests.
19109         (catanh_test): Likewise.
19110
19111         [BZ #15405]
19112         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
19113         underflowed result.
19114         * math/s_ccoshf.c (__ccoshf): Likewise.
19115         * math/s_ccoshl.c (__ccoshl): Likewise.
19116         * math/s_csin.c (__csin): Likewise.
19117         * math/s_csinf.c (__csinf): Likewise.
19118         * math/s_csinh.c (__csinh): Likewise.
19119         * math/s_csinhf.c (__csinhf): Likewise.
19120         * math/s_csinhl.c (__csinhl): Likewise.
19121         * math/s_csinl.c (__csinl): Likewise.
19122         * math/libm-test.inc (ccos_test): Add more tests.
19123         (ccosh_test): Likewise.
19124         (csin_test): Likewise.
19125         (csinh_test): Likewise.
19126
19127 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19128
19129         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
19130         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
19131         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
19132         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
19133         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
19134         powerpc/power5+/fpu folders.
19135         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
19136
19137
19138 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19139
19140         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19141
19142 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
19143
19144         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
19145         additions to variable.
19146         [$(config-machine) = x86_64] (modules-names): Likewise.
19147         ($(objpfx)tst-audit3): Remove dependency.
19148         ($(objpfx)tst-audit3.out): Likewise.
19149         ($(objpfx)tst-audit4): Likewise.
19150         ($(objpfx)tst-audit4.out): Likewise.
19151         ($(objpfx)tst-audit5): Likewise.
19152         ($(objpfx)tst-audit5.out): Likewise.
19153         ($(objpfx)tst-audit6): Likewise.
19154         ($(objpfx)tst-audit6.out): Likewise.
19155         ($(objpfx)tst-audit7): Likewise.
19156         ($(objpfx)tst-audit7.out): Likewise.
19157         (tst-audit3-ENV): Remove variable.
19158         (tst-audit4-ENV): Likewise.
19159         (tst-audit5-ENV): Likewise.
19160         (tst-audit6-ENV): Likewise.
19161         (tst-audit7-ENV): Likewise.
19162         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
19163         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
19164         addition to variable.
19165         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
19166         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
19167         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
19168         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
19169         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
19170         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
19171         tst-audit3, tst-audit4 and tst-audit5.
19172         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
19173         tst-audit6 and tst-audit7.
19174         [$(subdir) = elf] (modules-names): Add audit modules for those
19175         tests.
19176         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
19177         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
19178         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
19179         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
19180         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
19181         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
19182         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
19183         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
19184         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
19185         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
19186         [$(subdir) = elf] (tst-audit3-ENV): New variable.
19187         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
19188         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
19189         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
19190         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
19191         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
19192         Likewise.
19193         [$(subdir) = elf && $(config-cflags-avx) = yes]
19194         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
19195         [$(subdir) = elf && $(config-cflags-avx) = yes]
19196         (CFLAGS-tst-auditmod4a.c): Likewise.
19197         [$(subdir) = elf && $(config-cflags-avx) = yes]
19198         (CFLAGS-tst-auditmod4b.c): Likewise.
19199         [$(subdir) = elf && $(config-cflags-avx) = yes]
19200         (CFLAGS-tst-auditmod6b.c): Likewise.
19201         [$(subdir) = elf && $(config-cflags-avx) = yes]
19202         (CFLAGS-tst-auditmod6c.c): Likewise.
19203         [$(subdir) = elf && $(config-cflags-avx) = yes]
19204         (CFLAGS-tst-auditmod7b.c): Likewise.
19205         * elf/tst-audit3.c: Move to ...
19206         * sysdeps/x86_64/tst-audit3.c: ... here.
19207         * elf/tst-audit4.c: Move to ...
19208         * sysdeps/x86_64/tst-audit4.c: ... here.
19209         * elf/tst-audit5.c: Move to ...
19210         * sysdeps/x86_64/tst-audit5.c: ... here.
19211         * elf/tst-audit6.c: Move to ...
19212         * sysdeps/x86_64/tst-audit6.c: ... here.
19213         * elf/tst-audit7.c: Move to ...
19214         * sysdeps/x86_64/tst-audit7.c: ... here.
19215         * elf/tst-auditmod3a.c: Move to ...
19216         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
19217         * elf/tst-auditmod3b.c: Move to ...
19218         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
19219         * elf/tst-auditmod4a.c: Move to ...
19220         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
19221         * elf/tst-auditmod4b.c: Move to ...
19222         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
19223         * elf/tst-auditmod5a.c: Move to ...
19224         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
19225         * elf/tst-auditmod5b.c: Move to ...
19226         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
19227         * elf/tst-auditmod6a.c: Move to ...
19228         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
19229         * elf/tst-auditmod6b.c: Move to ...
19230         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
19231         * elf/tst-auditmod6c.c: Move to ...
19232         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
19233         * elf/tst-auditmod7a.c: Move to ...
19234         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
19235         * elf/tst-auditmod7b.c: Move to ...
19236         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
19237
19238 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
19239
19240         [BZ #15366]
19241         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
19242         define unconditionally.
19243         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
19244         define unconditionally.
19245         (INT8_C, INT16_C, etc.): Likewise.
19246
19247 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
19248
19249         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
19250         __ehdr_start with hidden visibility.
19251
19252         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
19253
19254 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
19255
19256         * math/libm-test.inc (cos_test): Use accurate hex constants.
19257         (sincost_test): Likewise.
19258
19259 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
19260
19261         * math/libm-test.inc (catan_test): Add more tests.
19262         (catanh_test): Likewise.
19263
19264         * math/s_catanf.c (__catanf): Use suffixed floating-point
19265         constants.
19266         * math/s_catanhf.c (__catanhf): Likewise.
19267         * math/s_catanhl.c (__catanhl): Likewise.
19268         * math/s_catanl.c (__catanl): Likewise.
19269
19270         [BZ #15394]
19271         * math/s_catan.c (__catan): Calculate imaginary part of result
19272         with log1p not log unless computing log of number close to 0.
19273         * math/s_catanf.c (__catanf): Likewise.
19274         * math/s_catanl.c (__catanl): Likewise.
19275         * math/s_catanh.c (__catanh): Calculate real part of result with
19276         log1p not log unless computing log of number close to 0.
19277         * math/s_catanhf.c (__catanhf): Likewise.
19278         * math/s_catanhl.c (__catanhl): Likewise.
19279         * math/libm-test.inc (catan_test): Add more tests.
19280         (catanh_test): Likewise.
19281         * sysdeps/i386/fpu/libm-test-ulps: Update.
19282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19283
19284 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19285
19286         * benchtests/Makefile: Mention files in which fast and slow
19287         paths of math functions are implemented.
19288
19289 2013-04-23  Roland McGrath  <roland@hack.frob.com>
19290
19291         * sysdeps/posix/timespec_get.c: New file.
19292
19293 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19294
19295         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
19296         POWER.
19297         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
19298         for POWER.
19299         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
19300         powerpc/power5/fpu folders.
19301         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
19302         * benchtests/Makefile: Add modf testcase.
19303         * benchtests/bench-modf.c: New file: Benchmark test for mo
19304
19305 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
19306
19307         [BZ #14888]
19308         * time/Makefile (tests): Add tst-strptime-whitespace.
19309         * time/strptime_l.c (get_number): Use ISSPACE.
19310         (__strptime_internal): Likewise.
19311         * time/tst-strptime-whitespace.c: New test case.
19312
19313 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
19314
19315         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
19316         member.
19317         (_nss_files_init): Set it here.
19318
19319 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
19320
19321         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
19322         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
19323         unsigned.
19324
19325 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
19326
19327         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
19328
19329 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
19330
19331         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
19332         size just once.
19333
19334 2013-04-21  David S. Miller  <davem@davemloft.net>
19335
19336         * po/ru.po: Update Russion translation from translation project.
19337
19338 2013-04-17  Adam Conrad  <adconrad@0c3.net>
19339
19340         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
19341         and setfsgid.
19342
19343 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
19344
19345         * configure.in: Remove i386 configure warning. Remove i386 case.
19346         * configure: Regenerate.
19347         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
19348         Add example to error message.
19349         * sysdeps/i386/configure: Regenerate.
19350
19351 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
19352
19353         * benchtests/Makefile (bench): Add cos, tan, slowcos and
19354         slowtan.
19355         * benchtests/cos-inputs: New file.
19356         * benchtests/slowcos-inputs: New file.
19357         * benchtests/slowcos.c: New file.
19358         * benchtests/slowtan-inputs: New file.
19359         * benchtests/slowtan.c: New file.
19360         * benchtests/tan-inputs: New file.
19361
19362 2013-04-16  Roland McGrath  <roland@hack.frob.com>
19363
19364         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
19365         considered kosher.
19366
19367 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
19368
19369         * benchtests/Makefile: Include cppflags-iterator.mk to add
19370         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
19371
19372         * Makefile.in (bench-clean): New target.
19373         * benchtests/Makefile (bench-clean): Likewise.
19374
19375 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
19376
19377         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
19378
19379 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
19380
19381         * stdio-common/tstdiomisc.c: Fix coding-style violation.
19382
19383 2013-04-15  Andreas Schwab  <schwab@suse.de>
19384
19385         * nscd/grpcache.c (cache_addgr): Properly check for short write.
19386         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19387         * nscd/pwdcache.c (cache_addpw): Likewise.
19388         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
19389         more than recsize.
19390
19391 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19392
19393         * benchtests/Makefile (bench): Write all output to
19394         bench-out.tmp together.
19395
19396 2013-04-15  Andreas Schwab  <schwab@suse.de>
19397
19398         * nscd/nscd.c (main): Don't fork again after closing files.
19399
19400 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19401
19402         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
19403
19404         * benchtests/Rules (bench-deps): Collect dependencies into a
19405         single variable.  Add Makefile to dependencies.
19406         ($(objpfx)bench-%.c): Depend on bench-deps.
19407
19408 2013-04-12  Roland McGrath  <roland@hack.frob.com>
19409             Xavier Roche  <roche+kml2@exalead.com>
19410
19411         [BZ #15361]
19412         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
19413         just that it's a file descriptor.
19414         * manual/llio.texi (Synchronizing AIO Operations): Update description
19415         for EBADF error from aio_fsync.
19416
19417 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
19418
19419         * Rules (bench): Move target definition...
19420         * benchtests/Makefile: ... here.
19421
19422 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
19423
19424         * math/libm-test.inc (cos_test): Fix PI/2 test.
19425         (sincos_test): Likewise.
19426         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
19427         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19428
19429 2013-04-11  Andreas Schwab  <schwab@suse.de>
19430
19431         [BZ #13988]
19432         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
19433         accept exponent character only when digits were seen.
19434         * stdio-common/Makefile (tests): Add bug26.
19435         * stdio-common/bug26.c: New file.
19436
19437         [BZ #14293]
19438         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
19439         non-freeable.
19440
19441 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
19442
19443         * Makeconfig (rtld-prefix): Define built linker prefix.
19444         * Rules (run-bench): Use it.
19445         * math/Makefile (run-regen-ulps): Likewise.
19446
19447         * Rules (bench): Remove eval.
19448
19449 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19450             Roland McGrath  <roland@hack.frob.com>
19451             Ondrej Bilka  <neleai@seznam.cz>
19452
19453         [BZ #15346]
19454         * time/getdate.c: Include ctype.h and alloca.h.
19455         (__getdate_r): Trim leading and trailing spaces of input.
19456         * time/tst-getdate.c (tests): Add tests with leading and
19457         trailing spaces.
19458
19459 2013-04-08  Roland McGrath  <roland@hack.frob.com>
19460
19461         [BZ #14280]
19462         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
19463         when computing value.
19464
19465 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19466
19467         * math/README.libm-test (How can I generate "libm-test-ulps"?):
19468         Use testrun.sh to run libm tests.
19469
19470         [BZ #15309]
19471         * elf/dl-open.c (dl_open_worker): memset all of seen array.
19472
19473 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
19474
19475         [BZ #15264]
19476         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
19477
19478 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19479
19480         * Makefile.in (regen-ulps): New target.
19481         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
19482         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
19483         [ifneq (no,$(PERL)] (regen-ulps): New target.
19484         [ifeq (no,$(PERL)] (regen-ulps): New target.
19485         * math/libm-test.inc (ulps_file_name): Define.
19486         (output_dir): New variable.
19487         (options): Add "output-dir" option.
19488         (parse_opt): Handle 'o' case.
19489         (main): If output_dir is non-NULL use it as a prefix
19490         otherwise use "".
19491         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
19492
19493 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19494
19495         [BZ #10060, #10062]
19496         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
19497         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
19498         fail configure if __sync_val_compare_and_swap is not inlined.
19499         * sysdeps/i386/configure: Regenerate.
19500         * configure.in: Build for i686 when configured for i386.
19501         * configure: Regenerate.
19502         * README: Remove i386 reference.
19503
19504 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19505
19506         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
19507         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19508
19509 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
19510
19511         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
19512         (lmsnanval): New variables.
19513         (F): Add conversion tests.
19514         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
19515         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
19516
19517         * stdio-common/tstdiomisc.c (F): Properly collect individual
19518         tests' results.
19519
19520         [BZ #14686, #15336]
19521         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
19522         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
19523         Instead, use input NaN values or generate a qNaN by arithmetic
19524         operation.  Also fix bugs to comply with the standard.
19525         * math/libm-test.inc (remainder_test): Add more tests.
19526
19527         [BZ #15335, #15342]
19528         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
19529         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
19530         input NaN values or generate a qNaN by arithmetic operation.
19531
19532         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
19533         unreachable code.
19534
19535         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
19536         definitions.
19537
19538 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
19539
19540         [BZ #14478]
19541         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
19542         underflowed result.
19543         * math/s_cexpf.c (__cexpf): Likewise.
19544         * math/s_cexpl.c (__cexpl): Likewise.
19545         * math/libm-test.inc (cexp_test): Add more tests.
19546
19547 2013-04-03  Andreas Schwab  <schwab@suse.de>
19548
19549         [BZ #15330]
19550         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
19551         order arrays from heap if bigger than alloca cutoff.
19552
19553 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
19554
19555         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
19556         (SNAN_TESTS_double): Refer to GCC PR56831.
19557         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
19558         GCC PR56828.
19559
19560 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
19561
19562         * Rules (bench): Move bench.out after the run is complete.
19563
19564         * Rules (bench): Echo currently running benchmark.
19565
19566         * benchtests/Makefile (bench): Add atan and slowatan.
19567         * benchtests/atan-inputs: New file.
19568         * benchtests/slowatan-inputs: New file.
19569         * benchtests/slowatan.c: New file.
19570
19571         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
19572         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
19573         its value.
19574
19575         [BZ #15305]
19576         * sysdeps/unix/sysv/linux/kernel-features.h
19577         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
19578         __ASSUME_XFS_RESTRICTED_CHOWN.
19579         * sysdeps/unix/sysv/linux/pathconf.c
19580         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
19581         Save and restore errno.
19582
19583 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
19584
19585         [BZ #15327]
19586         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
19587         arguments using __kernel_casinh.
19588         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
19589         arguments using __kernel_casinhf.
19590         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
19591         arguments using __kernel_casinhl.
19592         * math/libm-test.inc (cacosh_test): Add more tests.
19593         * sysdeps/i386/fpu/libm-test-ulps: Update.
19594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19595
19596 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
19597
19598         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
19599         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
19600
19601         * bench/Makefile (bench): Add sin and slowsin.
19602         * benchtests/sin-inputs: New file.
19603         * benchtests/slowsin-inputs: New file.
19604         * benchtests/slowsin.c: New file.
19605
19606         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
19607         (bench): Add slowexp and slowpow.
19608         (exp-ITER): Increase iterations.
19609         (pow-ITER): Likewise.
19610         * benchtests/exp-inputs: Change input.
19611         * benchtests/pow-inputs: Likewise.
19612         * benchtests/slowexp-inputs: New file.
19613         * benchtests/slowexp.c: New file.
19614         * benchtests/slowpow-inputs: New file.
19615         * benchtests/slowpow.c: New file.
19616
19617 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19618
19619         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
19620         instructions.
19621         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19622         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
19623         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
19624         * benchtests/Makefile: Add rint benchtest.
19625         * benchtests/rint-inputs: Input for rint benchtest.
19626
19627 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
19628
19629         * Versions.def (libm): Add GLIBC_2.18.
19630         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
19631         hidden libm prototypes.
19632         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
19633         * math/Makefile (libm-calls): Add s_issignaling.
19634         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
19635         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
19636         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
19637         declaration.
19638         * math/math.h [__USE_GNU] (issignaling): New macro.
19639         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
19640         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
19641         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
19642         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
19643         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
19644         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
19645         * manual/arith.texi (issignaling): New section.
19646         * manual/libm-err-tab.pl (@all_functions): Update comment.
19647         * math/gen-libm-test.pl (parse_args): Apply special handling for
19648         issignaling.
19649         * math/libm-test.inc (print_float, issignaling_test): New
19650         functions.
19651         (check_float_internal): Add issignaling checks.
19652         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
19653         default definition.
19654         * sysdeps/powerpc/math-tests.h: New file.
19655         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
19656         tests.
19657         * math/test-snan.c (TEST_FUNC): Likewise.
19658
19659 2013-03-30  David S. Miller  <davem@davemloft.net>
19660
19661         * po/de.po: Update from translation team.
19662
19663 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
19664
19665         [BZ #10357]
19666         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19667         imaginary part less than 1.0 and real part less than 0.5
19668         specially.
19669         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19670         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19671         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
19672         (cacos_test): Add more tests.
19673         (casin_test): Likewise.
19674         (casinh_test): Likewise.
19675         * sysdeps/i386/fpu/libm-test-ulps: Update.
19676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19677
19678 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19679
19680         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
19681         ONE with its value.
19682
19683         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
19684         (__pow_mp): Replace ONE and MONE with their values.
19685         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19686         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
19687         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19688         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
19689         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19690         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19691
19692         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
19693
19694         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
19695         (__pow_mp): Replace ZERO and MZERO with their values.
19696         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19697         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19698         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19699         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
19700         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19701         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
19702         (__sqr): Likewise.
19703
19704         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
19705
19706         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
19707
19708 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19709
19710         * include/stdlib.h [!SHARED] (__call_tls_dtors):
19711         Declare with __attribute__ ((weak)).
19712         * stdlib/exit.c (__libc_atexit) [!SHARED]:
19713         Call __call_tls_dtors only if it's not NULL.
19714
19715 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19716
19717         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
19718         didn't do it already, then set _dl_phdr and _dl_phnum based on the
19719         magic __ehdr_start linker symbol if it's defined.
19720         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
19721         them up here if it was already done.
19722
19723         * elf/dl-support.c (_dl_phdr): Make pointer to const.
19724         (_dl_aux_init): Use const in cast when setting it.
19725         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
19726         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
19727         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
19728
19729         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
19730         Declare them here.
19731         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
19732         * csu/libc-tls.c: Nor here.
19733         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
19734
19735         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
19736         (__libc_message): Never call vsyslog.
19737
19738 2013-03-28  Alan Modra  <amodra@gmail.com>
19739
19740         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
19741         Define as empty.
19742         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
19743         Likewise.
19744
19745 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19746
19747         [BZ #15214]
19748         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
19749         underflow.
19750         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19751
19752 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19753
19754         [BZ #15304]
19755         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
19756         Don't add gid passed as argument.
19757
19758         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
19759
19760 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
19761
19762         [BZ #15307]
19763         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19764         imaginary part between 1.0 and 1.5 and real part less than 0.5
19765         specially.
19766         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19767         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19768         * math/libm-test.inc (cacos_test): Add more tests.
19769         (casin_test): Likewise.
19770         (casinh_test): Likewise.
19771         * sysdeps/i386/fpu/libm-test-ulps: Update.
19772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19773
19774 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19775
19776         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
19777         constants.
19778         (norm): Likewise.
19779         (denorm): Likewise.
19780         (__dbl_mp): Likewise.
19781         (add_magnitudes): Likewise.
19782         (sub_magnitudes): Likewise.
19783         (__add): Likewise.
19784         (__sub): Likewise.
19785         (__mul): Likewise.
19786         (__sqr): Likewise.
19787         (__inv): Likewise.
19788         (__dvd): Likewise.
19789
19790         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
19791         commented code.
19792         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
19793         (__dubcos): Likewise.
19794         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
19795         (__ieee754_acos): Likewise.
19796         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19797         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
19798         (__exp1): Likewise.
19799         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19800         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19801         (log1): Likewise.
19802         (my_log2): Likewise.
19803         (checkint): Likewise.
19804         * sysdeps/ieee754/dbl-64/e_remainder.c
19805         (__ieee754_remainder): Likewise.
19806         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19807         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
19808         (bsloww): Likewise.
19809         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19810
19811         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19812         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
19813         MANTISSA_STORE_T to store computations on mantissa.  Use
19814         macros for rounding and division.
19815         (denorm): Likewise.
19816         (__dbl_mp): Likewise.
19817         (add_magnitudes): Likewise.
19818         (sub_magnitudes): Likewise.
19819         (__mul): Likewise.
19820         (__sqr): Likewise.
19821         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19822         powers of two in terms of TWOPOW macro.
19823         (mp_no): Make type of mantissa as MANTISSA_T.
19824         [!RADIXI]: Define RADIXI.
19825         [!TWO52]: Define TWO52.
19826         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19827
19828 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19829
19830         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
19831         llroundl symbol when building for PPC32.
19832
19833 2013-03-24  Mark H Weaver  <mhw@netris.org>
19834
19835         * manual/arith.texi (Normalization Functions): Fix prototypes for
19836         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
19837
19838 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19839
19840         [BZ #13889]
19841         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
19842         high value to check if expl overflow.
19843         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
19844         to check for underflow and overflow.
19845         * math/libm-test.inc: Add exp test.
19846
19847 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
19848
19849         [BZ #11120]
19850         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
19851         with NOT_IN_libc.
19852
19853 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19854
19855         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
19856         symbol.
19857
19858 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19859
19860         * math/gen-libm-test.pl (parse_args, special_functions): Properly
19861         wrap blocks consisting of several statements.
19862
19863         * sysdeps/generic/math-tests.h: New file.
19864         * sysdeps/i386/fpu/math-tests.h: Likewise.
19865         * math/test-snan.c: Include it.
19866         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
19867
19868 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19869
19870         [BZ #15285]
19871         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
19872         (__ieee754_j0l): Do not improve calculations using cos of twice
19873         input for inputs above LDBL_MAX / 2.0L.
19874         (__ieee754_y0l): Likewise.
19875         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
19876         (__ieee754_j1l): Do not improve calculations using cos of twice
19877         input for inputs above LDBL_MAX / 2.0L.
19878         (__ieee754_y1l): Likewise.
19879         * math/libm-test.inc (j0_test): Add another test.
19880         (j1_test): Likewise.
19881         (y0_test): Likewise.
19882         (y1_test): Likewise.
19883         * sysdeps/i386/fpu/libm-test-ulps: Update.
19884
19885 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19886
19887         * Rules ($(objpfx)bench-%.c): Include code from a C source
19888         file.
19889
19890 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19891
19892         [BZ #15287]
19893         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19894         imaginary part 1.0 and real part less than 0.5 specially.
19895         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19896         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19897         * math/libm-test.inc (cacos_test): Add more tests.
19898         (casin_test): Likewise.
19899         (casinh_test): Likewise.
19900         * sysdeps/i386/fpu/libm-test-ulps: Update.
19901         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19902
19903 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19904
19905         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
19906         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
19907
19908 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
19909
19910         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
19911         * config.make.in (config-cflags-sse4): Remove variable.
19912         (config-cflags-avx): Likewise.
19913         (config-cflags-sse2avx): Likewise.
19914         (config-cflags-novzeroupper): Likewise.
19915         (config-asflags-i686): Likewise.
19916         (have-mfma4): Likewise.
19917         (have-as-vis3): Likewise.
19918         (MIG): Likewise.
19919         * configure.in (MIG): Do not AC_SUBST.
19920         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
19921         (libc_cv_cc_sse4): Do not AC_SUBST.
19922         (libc_cv_cc_avx): Likewise.
19923         (libc_cv_cc_sse2avx): Likewise.
19924         (libc_cv_cc_novzeroupper): Likewise.
19925         (libc_cv_cc_fma4): Likewise.
19926         (libc_cv_as_i686): Likewise.
19927         (libc_cv_sparc_as_vis3): Likewise.
19928         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
19929         LIBC_CONFIG_VAR.
19930         (config-asflags-i686): Likewise.
19931         (config-cflags-avx): Likewise.
19932         (config-cflags-sse2avx): Likewise.
19933         (have-mfma4): Likewise.
19934         (config-cflags-novzeroupper): Likewise.
19935         * sysdeps/mach/configure.in (MIG): Likewise.
19936         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
19937         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
19938         LIBC_CONFIG_VAR.
19939         (config-cflags-avx): Likewise.
19940         (config-cflags-sse2avx): Likewise.
19941         (have-mfma4): Likewise.
19942         (config-cflags-novzeroupper): Likewise.
19943         * configure: Regenerated.
19944         * sysdeps/i386/configure: Likewise.
19945         * sysdeps/mach/configure: Likewise.
19946         * sysdeps/sparc/configure: Likewise.
19947         * sysdeps/x86_64/configure: Likewise.
19948
19949 2013-03-20  Roland McGrath  <roland@hack.frob.com>
19950
19951         [BZ #14812]
19952         * locale/programs/localedef.c (options): Put N_ translation marker
19953         on argument names, not just descriptions.
19954
19955 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
19956
19957         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
19958
19959 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
19960
19961         [BZ #14176]
19962         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
19963
19964 2013-03-19  Roland McGrath  <roland@hack.frob.com>
19965
19966         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
19967         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
19968         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
19969         [!BEFORE_ABORT] (before_abort): New function.
19970         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
19971         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
19972         (writev_for_fatal): New function.
19973         (WRITEV_FOR_FATAL): New macro; call that.
19974         (backtrace_and_maps): New function.
19975         (BEFORE_ABORT): New macro; call that.
19976         (struct str_list): Type removed.
19977         (__libc_message, __libc_fatal): Functions removed.
19978         Include <sysdeps/posix/libc_fatal.c> instead.
19979
19980 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
19981
19982         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
19983         constants.
19984         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
19985         double constants.
19986
19987 2013-03-19  Andreas Schwab  <schwab@suse.de>
19988
19989         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
19990         * sysdeps/gnu/configure: Regenerate.
19991
19992         * configure.in: Substitute libc_cv_rtlddir.
19993         * configure: Regenerate.
19994         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
19995         * Makeconfig (rtlddir, inst_rtlddir): New variables.
19996         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
19997         * elf/Makefile (install-others, CFLAGS-interp.c)
19998         (ldso_install, common-ldd-rewrite): Likewise.
19999         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
20000         $(inst_slibdir)/$(rtld-installed-name).
20001         * scripts/rellns-sh: Add -p option.
20002         * Makerules (make-shlib-link): Use rellns-sh to get relative name
20003         for source.
20004
20005 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20006
20007         * manual/nptl.texi: Renamed to ...
20008         * manual/threads.texi: ... this.
20009         * manual/Makefile (chapters): Update.
20010
20011 2013-03-18  Roland McGrath  <roland@hack.frob.com>
20012
20013         [BZ #14812]
20014         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
20015         on argument names, not just descriptions.
20016         * malloc/memusagestat.c (options): Likewise.
20017         * nss/getent.c (options): Likewise.
20018
20019 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
20020
20021         [BZ #14812]
20022         * iconv/iconv_prog.c (options): Put N_ translation marker
20023         on argument names, not just descriptions.
20024         * iconv/iconvconfig.c (options): Likewise.
20025
20026 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
20027
20028         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
20029         implementation which is faster on all x86_64 architectures.
20030         Tested on AMD, Intel Nehalem, SNB, IVB.
20031         * sysdeps/x86_64/strnlen.S: Likewise.
20032
20033         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
20034         Remove all multiarch strlen and strnlen versions.
20035         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
20036         Remove strlen and strnlen related parts.
20037
20038         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
20039         Inline strlen part.
20040         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
20041
20042         * sysdeps/x86_64/multiarch/strlen.S: Remove.
20043         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
20044         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
20045         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
20046         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
20047         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
20048
20049 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
20050
20051         * manual/memory.texi (Malloc Tunable Parameters):
20052         Sort parameters alphabetically. Add comments for missing entries.
20053
20054 2013-03-17  David S. Miller  <davem@davemloft.net>
20055
20056         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20057
20058 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
20059
20060         [BZ #15283]
20061         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
20062         for arguments at most half maximum finite value.
20063         * math/libm-test.inc (j0_test): Add more tests.
20064         (j1_test): Likewise.
20065         (y0_test): Likewise.
20066         (y1_test): Likewise.
20067         * sysdeps/i386/fpu/libm-test-ulps: Update.
20068         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20069
20070         [BZ #14155]
20071         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
20072         1 / x and functions P and Q for arguments above 0x1p256L.
20073         (__ieee754_y0l): Likewise.
20074         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20075         (__ieee754_y1l): Likewise.
20076         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
20077         (j1_test): Likewise.
20078         (y0_test): Likewise.
20079         (y1_test): Likewise.
20080
20081 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
20082
20083         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
20084         variable.
20085
20086 2013-03-15  Roland McGrath  <roland@hack.frob.com>
20087
20088         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
20089         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
20090         zero since it's initialized to EXEC_PAGESIZE.
20091
20092         * sysdeps/unix/sysv/linux/ldsodefs.h
20093         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
20094         * sysdeps/generic/ldsodefs.h: ... here.
20095
20096 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
20097
20098         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
20099
20100         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
20101         math/test-snan.c.
20102         * math/test-snan.c: Renamed from
20103         sysdeps/powerpc/fpu/test-powerpc-snan.c.
20104         * math/Makefile (tests): Add test-snan.
20105         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
20106         test-powerpc-snan.
20107
20108         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
20109         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
20110         functions.
20111         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
20112         __builtin_nan family of functions.
20113         * math/libm-test.inc (initialize): Initialize qnan_value with
20114         __builtin_nan family of functions.
20115         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
20116         Remove variables.
20117         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
20118         Remove functions.
20119         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
20120         storage class.  Initialize qNaN_var and sNaN_var with
20121         __builtin_nan and __builtin_nans families of functions,
20122         respectively.
20123
20124         * math/libm-test.inc (acosh_test): Also test with qNaN input.
20125         (sqrt_test): Remove duplicate test with qNaN input.
20126         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
20127         (round_test, signbit_test, significand_test): Note missing +/-Inf
20128         as well as qNaN tests.
20129
20130         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
20131         qNaN_var.  Fix a few strings, too.
20132         * math/libm-test.inc (nan_value): Rename to qnan_value.
20133         * math/gen-libm-test.pl (%beautify): Adjust to that.
20134         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
20135         * math/test-misc.c (main): Likewise.
20136         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
20137         to __qnan_bytes, and __qnan_union, respectively.
20138         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
20139         Likewise.
20140         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
20141         and lqnanval, respectively.
20142         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
20143         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
20144         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
20145         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
20146
20147         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
20148         * math/test-misc.c (main) [__x86_64__]: Enable test for long
20149         doubles.
20150
20151         * math/test-misc.c (main): Fix copy'n'pastos.
20152         * misc/tst-efgcvt.c (special): Likewise.
20153
20154         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
20155         Remove declarations.
20156
20157 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20158
20159         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
20160         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
20161         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
20162         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
20163
20164 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20165
20166         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
20167         macro to return vdso values correctly in IFUNC implementations.
20168         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
20169         Optimization by using IFUNC.
20170
20171 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20172             Richard Henderson  <rth@redhat.com>
20173             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20174
20175         * Makefile.in (bench): New target.
20176         * NEWS: Mention the benchmark framework.
20177         * Rules (bench): Likewise.
20178         (binaries-bench): Generate binaries for functions to
20179         benchmark.
20180         * benchtests/Makefile: New makefile for benchmark tests.
20181         * benchtests/bench-skeleton.c: New skeleton file for benchmark
20182         programs.
20183         * benchtests/exp-inputs: New input file for EXP function.
20184         * benchtests/pow-inputs: New input file for POW function.
20185         * scripts/bench.pl: New script to generate source files for
20186         benchmark programs.
20187
20188 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20189
20190         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20191         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
20192         computations on mantissa.  Use macros for rounding and
20193         division.
20194         (denorm): Likewise.
20195         (__dbl_mp): Likewise.
20196         (add_magnitudes): Likewise.
20197         (sub_magnitudes): Likewise.
20198         (__mul): Likewise.
20199         (__sqr): Likewise.
20200         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20201         powers of two in terms of TWOPOW macro.
20202         (mp_no): Make type of mantissa as MANTISSA_T.
20203         [!RADIXI]: Define RADIXI.
20204         [!TWO52]: Define TWO52.
20205         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20206
20207         * manual/nptl.texi (cindex): Modify threads to pthreads.
20208
20209 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
20210
20211         * sysdeps/x86_64/preconfigure: Regenerated.
20212
20213 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
20214
20215         [BZ #14155]
20216         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
20217         0x1p28 and above.
20218         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
20219         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
20220         0x1p28 and above.
20221         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
20222         * math/libm-test.inc (j0_test): Do not allow one spurious
20223         underflow exception.
20224         (y1_test): Likewise.
20225
20226 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20227
20228         * manual/Makefile (chapters): Add nptl.
20229         * manual/debug.texi (Debugging Support): Add link to Threads
20230         chapter.
20231         * manual/nptl.texi: New file.
20232
20233         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
20234
20235 2013-03-14  Petr Baudis  <pasky@ucw.cz>
20236
20237         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
20238         for non-NULL pointer before the memory validity test. Pointed
20239         out by Holger Brunck <holger.brunck@keymile.com>.
20240
20241 2013-03-13  Andreas Schwab  <schwab@suse.de>
20242
20243         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
20244         instead of .os.
20245
20246 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
20247
20248         * timezone/zic.c: Update from tzcode 2013b.
20249
20250 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
20251
20252         * manual/install.texi (Configuring and compiling):
20253         Mention i686 and i586.
20254         * INSTALL: Regenerate.
20255
20256 2013-03-12  Roland McGrath  <roland@hack.frob.com>
20257
20258         * sysdeps/init_array/elf-init.c: New file.
20259         * csu/elf-init.c
20260         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
20261         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
20262
20263         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
20264         __gmon_start__ as global, but as static with a .preinit_array pointer.
20265         * sysdeps/init_array/gmon-start.c: New file.  Use that.
20266         * sysdeps/init_array/crti.S: New file, empty except for comments.
20267         * sysdeps/init_array/crtn.S: Likewise.
20268
20269 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
20270
20271         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
20272         definining bcopy.
20273         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20274         Remove Prefer_SSE_for_memop.
20275         * sysdeps/x86_64/multiarch/init-arch.h: Remove
20276         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
20277         HAS_PREFER_SSE_FOR_MEMOP.
20278         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
20279         memset-x86-64.
20280         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
20281         Remove bzero, memset ifunc support.
20282         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
20283         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
20284         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20285         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20286
20287 2013-03-11  Andreas Schwab  <schwab@suse.de>
20288
20289         [BZ #15234]
20290         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
20291         by SHLIB_COMPAT.
20292         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
20293         (GLIBC_2.16): Remove pthread_atfork.
20294
20295 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20296
20297         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
20298         (ptestcases.h): Likewise.
20299
20300 2013-03-08  Roland McGrath  <roland@hack.frob.com>
20301
20302         * Makeconfig ($(common-objpfx)config.status): Depend on
20303         sysdeps/*/preconfigure{,.in} too.
20304
20305 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
20306
20307         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
20308         (__free_hook): Use void * instead of __malloc_ptr_t.
20309         (__malloc_hook): Likewise.
20310         (__realloc_hook): Likewise.
20311         (__memalign_hook): Likewise.
20312         (__after_morecore_hook): Likewise.
20313         * malloc/arena.c (save_malloc_hook): Likewise.
20314         (save_free_hook): Likewise.
20315         * malloc/hooks.c (malloc_hook_ini): Likewise.
20316         (realloc_hook_ini): Likewise.
20317         (memalign_hook_ini): Likewise.
20318         * malloc/malloc.c (malloc_hook_ini): Likewise.
20319         (realloc_hook_ini): Likewise.
20320         (memalign_hook_ini): Likewise.
20321         (__free_hook): Likewise.
20322         (__malloc_hook): Likewise.
20323         (__realloc_hook): Likewise.
20324         (__memalign_hook): Likewise.
20325         (__libc_malloc): Likewise.
20326         (__libc_free): Likewise.
20327         (__libc_realloc): Likewise.
20328         (__libc_memalign): Likewise.
20329         (__libc_valloc): Likewise.
20330         (__libc_pvalloc): Likewise.
20331         (__libc_calloc): Likewise.
20332         (__posix_memalign): Likewise.
20333         * malloc/morecore.c (__sbrk): Likewise.
20334         (__default_morecore): Likewise.
20335
20336         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
20337
20338         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
20339         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
20340         __malloc_ptrdiff_t.
20341
20342         * malloc/malloc.h (__malloc_size_t): Remove macro.
20343         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
20344         __malloc_size_t.
20345         (old_memalign_hook): Likewise.
20346         (old_realloc_hook): Likewise.
20347         (struct hdr): Likewise.
20348         (flood): Likewise.
20349         (mallochook): Likewise.
20350         (memalignhook): Likewise.
20351         (reallochook): Likewise.
20352         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
20353         (tr_old_realloc_hook): Likewise.
20354         (tr_old_memalign_hook): Likewise.
20355         (tr_mallochook): Likewise.
20356         (tr_reallochook): Likewise.
20357         (tr_memalignhook): Likewise.
20358
20359 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20360
20361         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
20362         default_ldbl_pack and using as default implementation.
20363         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
20364         implementation.
20365         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
20366         redundant definition.
20367         (ldbl_insert_mantissa): Likewise.
20368         (ldbl_canonicalize): Likewise.
20369         (ldbl_nearbyint): Likewise.
20370         (ldbl_pack): Rename to ldbl_pack_ppc.
20371         (ldbl_unpack): Rename to ldbl_unpack_ppc.
20372         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
20373         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
20374
20375 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
20376
20377         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
20378         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
20379         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
20380         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
20381         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
20382         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
20383         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
20384         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
20385
20386 2013-03-07  Andreas Jaeger  <aj@suse.de>
20387
20388         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20389         bits/mman-linux.h.
20390
20391 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
20392
20393         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
20394         Include mpa.h and declare __MPEXP.
20395         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
20396         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20397         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20398         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
20399         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20400         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20401         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
20402
20403         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
20404         (__slowpow): Use long double EXPL and LOGL functions to
20405         compute POW.
20406         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20407         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20408         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
20409         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20410         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20411         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
20412
20413         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
20414         intermediate variable to calculate exponent.
20415         (__sqr): Likewise.
20416         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20417         Likewise.
20418         (__sqr): Likewise.
20419
20420         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
20421         [!NO__SQR]: Define __sqr.
20422         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
20423         and NO__SQR.  Remove all code except __mul and __sqr.  Include
20424         sysdeps/ieee754/dbl-64/mpa.c.
20425         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20426
20427         [BZ #12723]
20428         * posix/Makefile (tests): Add tst-pathconf.
20429         * posix/tst-pathconf.c: New test case.
20430         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
20431         _PC_PIPE_BUF.
20432         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
20433
20434 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
20435
20436         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
20437
20438 2013-03-06  Andreas Jaeger  <aj@suse.de>
20439
20440         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
20441         definition via __MAP_ANONYMOUS.
20442
20443         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
20444         it's not part of Linux headers.
20445
20446         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
20447         (MAP_HUGE_MASK): Define.
20448
20449         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20450         Define.
20451         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20452         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20453         Define.
20454         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20455         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20456         Define.
20457         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20458         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
20459         Define.
20460         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20461
20462         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
20463         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
20464         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
20465         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
20466         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
20467         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
20468
20469         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20470         Handle f2fs.
20471
20472         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20473         Handle f2fs and efivarfs.
20474
20475         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
20476         f2fs.
20477
20478         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
20479         (EFIVARFS_MAGIC): Add.
20480         (F2FS_LINK_MAX): Add.
20481
20482 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20483
20484         * stdio-common/vfprintf.c: Replace __builtin_expect with
20485         __glibc_unlikely.
20486
20487 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
20488
20489         [BZ #13550]
20490         * sysdeps/generic/bp-sym.h: Remove file.
20491         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
20492         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
20493         <bp-sym.h> and <bp-asm.h>.
20494         (__longjmp): Don't use BP_SYM.
20495         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
20496         and <bp-asm.h>.
20497         (memcpy): Don't use BP_SYM.
20498         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
20499         <bp-sym.h> and <bp-asm.h>.
20500         (memcpy): Don't use BP_SYM.
20501         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
20502         <bp-asm.h>.
20503         (memcpy): Don't use BP_SYM.
20504         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
20505         <bp-asm.h>.
20506         (memset): Don't use BP_SYM.
20507         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20508         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20509         (__bzero): Don't use BP_SYM.
20510         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20511         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20512         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
20513         <bp-sym.h> and <bp-asm.h>.
20514         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20515         pointers.
20516         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
20517         <bp-sym.h> and <bp-asm.h>.
20518         (memcpy): Don't use BP_SYM.
20519         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
20520         <bp-sym.h> and <bp-asm.h>.
20521         (memset): Don't use BP_SYM.
20522         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20523         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20524         (__bzero): Don't use BP_SYM.
20525         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20526         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20527         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
20528         <bp-sym.h> and <bp-asm.h>.
20529         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20530         pointers.
20531         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
20532         <bp-sym.h> and <bp-asm.h>.
20533         (memcpy): Don't use BP_SYM.
20534         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
20535         <bp-sym.h> and <bp-asm.h>.
20536         (memset): Don't use BP_SYM.
20537         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20538         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20539         (__bzero): Don't use BP_SYM.
20540         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20541         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20542         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
20543         <bp-sym.h> and <bp-asm.h>.
20544         (__memchr): Don't use BP_SYM.
20545         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
20546         <bp-sym.h> and <bp-asm.h>.
20547         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20548         pointers.
20549         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
20550         <bp-sym.h> and <bp-asm.h>.
20551         (memcpy): Don't use BP_SYM.
20552         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
20553         <bp-sym.h> and <bp-asm.h>.
20554         (__mempcpy): Don't use BP_SYM.
20555         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
20556         <bp-sym.h> and <bp-asm.h>.
20557         (__memrchr): Don't use BP_SYM.
20558         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
20559         <bp-sym.h> and <bp-asm.h>.
20560         (memset): Don't use BP_SYM.
20561         (__bzero): Likewise.
20562         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
20563         <bp-sym.h> and <bp-asm.h>.
20564         (__rawmemchr): Don't use BP_SYM.
20565         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
20566         <bp-sym.h> and <bp-asm.h>.
20567         (__STRCMP): Don't use BP_SYM.
20568         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
20569         <bp-sym.h> and <bp-asm.h>.
20570         (strchr): Don't use BP_SYM.
20571         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
20572         <bp-sym.h> and <bp-asm.h>.
20573         (__strchrnul): Don't use BP_SYM.
20574         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
20575         <bp-sym.h> and <bp-asm.h>.
20576         (strlen): Don't use BP_SYM.
20577         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
20578         <bp-sym.h> and <bp-asm.h>.
20579         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20580         pointers.
20581         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
20582         <bp-sym.h> and <bp-asm.h>.
20583         (__strnlen): Don't use BP_SYM.
20584         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
20585         <bp-sym.h> and <bp-asm.h>.
20586         (__GI__setjmp): Don't use BP_SYM.
20587         (_setjmp): Likewise.
20588         (__sigsetjmp): Likewise.
20589         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
20590         (L(start_addresses)): Don't use BP_SYM.
20591         (_start): Likewise.
20592         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
20593         <bp-asm.h>.
20594         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
20595         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
20596         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20597         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20598         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
20599         <bp-asm.h>.
20600         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
20601         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
20602         about bounded pointers.
20603         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20604         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20605         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
20606         <bp-asm.h>.
20607         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20608         about bounded pointers.  Remove GKM FIXME comments.
20609         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20610         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
20611         <bp-asm.h>.
20612         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
20613         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
20614         Remove GKM FIXME comments.
20615         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20616         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20617         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
20618         <bp-asm.h>.
20619         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20620         about bounded pointers.  Remove GKM FIXME comment.
20621         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
20622         and <bp-asm.h>.
20623         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20624         pointers.
20625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
20626         <bp-sym.h> and <bp-asm.h>.
20627         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
20629         <bp-sym.h> and <bp-asm.h>.
20630         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20631         comment.
20632
20633 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20634
20635         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
20636         call free(NULL).
20637
20638 2013-03-05  David S. Miller  <davem@davemloft.net>
20639
20640         * po/es.po: Update from translation team.
20641
20642 2013-03-05  Andreas Jaeger  <aj@suse.de>
20643
20644         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
20645         <bits/mman-linux.h>.
20646         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20647         is fine.
20648         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
20649         <bits/mman-linux.h> to end of file.
20650         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20651         is fine.
20652         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
20653         <bits/mman-linux.h> to end of file.
20654         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20655         is fine.
20656         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
20657         <bits/mman-linux.h> to end of file.
20658
20659         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
20660         (MCL_CURRENT, MCL_FUTURE): Define here.
20661
20662 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20663
20664         [BZ #15232]
20665         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
20666         attribute_hidden.
20667         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
20668
20669 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20670
20671         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
20672         fourth parameter needed for rt_sigprocmask syscall.
20673         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
20674         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
20675         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20676         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
20677         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
20678         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
20679
20680 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
20681
20682         [BZ #13550]
20683         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
20684         comment about bounded pointers.
20685         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
20686         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
20687
20688 2013-03-04  Andreas Jaeger  <aj@suse.de>
20689
20690         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
20691         common definitions.
20692
20693         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
20694         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
20695         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
20696         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20697         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20698         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20699
20700 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20701
20702         [BZ #15055]
20703         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20704         __ieee754_sqrl instead of __sqrl.
20705
20706 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
20707
20708         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
20709         * sysdeps/powerpc/fpu_control.h: ... here.
20710         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
20711         * sysdeps/powerpc/bits/fenvinline.h: ... here.
20712         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
20713         * sysdeps/powerpc/bits/mathinline.h: ... here.
20714
20715 2013-03-01  Roland McGrath  <roland@hack.frob.com>
20716
20717         * elf/dl-hwcaps.c (_dl_important_hwcaps):
20718         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
20719         to just [NEED_DL_SYSINFO_DSO].
20720         * elf/dl-support.c: Likewise.
20721         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
20722         * elf/rtld.c (dl_main): Likewise.
20723         * elf/setup-vdso.h (setup_vdso): Likewise.
20724         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
20725         * sysdeps/unix/sysv/linux/dl-sysdep.c
20726         (_dl_discover_osversion): Likewise.
20727
20728 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
20729
20730         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
20731         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20732
20733 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20734
20735         * NEWS: Mention libm performance improvements and non-x86 PI
20736         futex support.
20737
20738         * csu/libc-start.c (__pthread_initialize_minimal): Change
20739         function arguments.
20740         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20741
20742 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
20743
20744         [BZ #13550]
20745         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
20746         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
20747         <bp-sym.h> and <bp-asm.h>.
20748         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20749         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
20750         and <bp-asm.h>.
20751         (memcpy): Don't use BP_SYM.
20752         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
20753         <bp-asm.h>.
20754         (__mpn_add_n): Don't use BP_SYM.
20755         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
20756         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
20757         and <bp-asm.h>.
20758         (__mpn_addmul_1): Don't use BP_SYM.
20759         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20760         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
20761         <bp-sym.h>.
20762         (_setjmp): Don't use BP_SYM.
20763         (__novmx_setjmp): Likewise.
20764         (__GI__setjmp): Likewise.
20765         (__vmx_setjmp): Likewise.
20766         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
20767         <bp-sym.h>.
20768         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
20769         (__bzero): Don't use BP_SYM.
20770         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20771         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20772         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
20773         <bp-sym.h> and <bp-asm.h>.
20774         (memcpy): Don't use BP_SYM.
20775         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
20776         <bp-sym.h> and <bp-asm.h>.
20777         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20778         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
20779         <bp-sym.h> and <bp-asm.h>.
20780         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20781         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
20782         <bp-asm.h>.
20783         (__mpn_lshift): Don't use BP_SYM.
20784         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20785         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
20786         <bp-asm.h>.
20787         (memset): Don't use BP_SYM.
20788         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20789         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20790         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
20791         <bp-asm.h>.
20792         (__mpn_mul_1): Don't use BP_SYM.
20793         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20794         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
20795         <bp-sym.h> and <bp-asm.h>.
20796         (memcmp): Don't use BP_SYM.
20797         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
20798         <bp-sym.h> and <bp-asm.h>.
20799         (memcpy): Don't use BP_SYM.
20800         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
20801         <bp-sym.h> and <bp-asm.h>.
20802         (memset): Don't use BP_SYM.
20803         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
20804         <bp-sym.h> and <bp-asm.h>.
20805         (strncmp): Don't use BP_SYM.
20806         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
20807         <bp-sym.h> and <bp-asm.h>.
20808         (memcpy): Don't use BP_SYM.
20809         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
20810         <bp-sym.h> and <bp-asm.h>.
20811         (memset): Don't use BP_SYM.
20812         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
20813         <bp-sym.h> and <bp-asm.h>.
20814         (__memchr): Don't use BP_SYM.
20815         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
20816         <bp-sym.h> and <bp-asm.h>.
20817         (memcmp): Don't use BP_SYM.
20818         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
20819         <bp-sym.h> and <bp-asm.h>.
20820         (memcpy): Don't use BP_SYM.
20821         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
20822         <bp-sym.h> and <bp-asm.h>.
20823         (__mempcpy): Don't use BP_SYM.
20824         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
20825         <bp-sym.h> and <bp-asm.h>.
20826         (__memrchr): Don't use BP_SYM.
20827         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
20828         <bp-sym.h> and <bp-asm.h>.
20829         (memset): Don't use BP_SYM.
20830         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
20831         <bp-sym.h> and <bp-asm.h>.
20832         (__rawmemchr): Don't use BP_SYM.
20833         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
20834         <bp-sym.h> and <bp-asm.h>.
20835         (__STRCMP): Don't use BP_SYM.
20836         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
20837         <bp-sym.h> and <bp-asm.h>.
20838         (strchr): Don't use BP_SYM.
20839         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
20840         <bp-sym.h> and <bp-asm.h>.
20841         (__strchrnul): Don't use BP_SYM.
20842         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
20843         <bp-sym.h> and <bp-asm.h>.
20844         (strlen): Don't use BP_SYM.
20845         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
20846         <bp-sym.h> and <bp-asm.h>.
20847         (strncmp): Don't use BP_SYM.
20848         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
20849         <bp-sym.h> and <bp-asm.h>.
20850         (__strnlen): Don't use BP_SYM.
20851         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
20852         <bp-asm.h>.
20853         (__mpn_rshift): Don't use BP_SYM.
20854         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20855         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
20856         <bp-sym.h> and <bp-asm.h>.
20857         (__sigsetjmp): Don't use BP_SYM.
20858         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
20859         (L(start_addresses)): Don't use BP_SYM.
20860         (_start): Likewise.
20861         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
20862         <bp-asm.h>.
20863         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
20864         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20865         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20866         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
20867         <bp-asm.h>.
20868         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
20869         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20870         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20871         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
20872         <bp-asm.h>.
20873         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20874         comments.
20875         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20876         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
20877         <bp-asm.h>.
20878         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
20879         FIXME comments.
20880         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20881         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20882         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
20883         <bp-asm.h>.
20884         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20885         comment.
20886         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
20887         and <bp-asm.h>.
20888         (strncmp): Don't use BP_SYM,
20889         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
20890         <bp-asm.h>.
20891         (__mpn_sub_n): Don't use BP_SYM.
20892         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20893         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
20894         and <bp-asm.h>.
20895         (__mpn_submul_1): Don't use BP_SYM.
20896         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
20898         <bp-sym.h> and <bp-asm.h>.
20899         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
20901         <bp-sym.h> and <bp-asm.h>.
20902         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20903         comment.
20904
20905 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20906
20907         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
20908         Use ZK to minimize writes to Z.
20909         (sub_magnitudes): Simplify code a bit.
20910         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
20911         Use ZK to minimize writes to Z.
20912         (sub_magnitudes): Simplify code a bit.
20913
20914 2013-02-27  Roland McGrath  <roland@hack.frob.com>
20915
20916         * csu/gmon-start.c: Add special exception to license text.
20917
20918 2013-02-27  Richard Henderson  <rth@redhat.com>
20919
20920         * scripts/config.guess: Update from config.git.
20921         * scripts/config.sub: Likewise.
20922
20923 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
20924
20925         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
20926
20927         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
20928
20929         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
20930
20931         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
20932
20933         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
20934
20935 2013-02-26  Roland McGrath  <roland@hack.frob.com>
20936
20937         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
20938         [$(build-shared = yes].
20939
20940 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20941
20942         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
20943         (__mul): Reduce iterations for calculating mantissa.
20944
20945         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
20946         MPTWO.
20947         (__mpranred): Likewise.
20948
20949         [BZ #15160]
20950         * malloc/memusagestat.c (main): Draw graphs for heap and stack
20951         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
20952
20953 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20954
20955         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
20956         Define __attribute__.
20957
20958 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20959
20960         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
20961         unused.
20962         * posix/regex_internal.h (__attribute): Remove.
20963         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
20964         (re_string_context_at): Likewise.
20965         (bitset_not): Use __attribute__ and mark function as possibly
20966         unused.
20967         (bitset_merge): Likewise.
20968         (bitset_mask): Likewise.
20969         (re_string_char_size_at): Likewise.
20970         (re_string_wchar_at): Likewise.
20971         (re_string_elem_size_at): Likewise.
20972
20973 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
20974
20975         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
20976         code.
20977         (cc32): Likewise.
20978
20979         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
20980         (__acr): Likewise.
20981         (__cpy): Likewise.
20982         (norm): Likewise.
20983         (denorm): Likewise.
20984         (__dbl_mp): Likewise.
20985         (add_magnitudes): Likewise.
20986         (sub_magnitudes): Likewise.
20987         (__mul): Likewise.
20988         (__inv): Likewise.
20989
20990         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
20991         style.
20992
20993         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
20994         style.
20995
20996         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
20997         code.
20998
20999         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
21000         up changes with default code.
21001         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
21002         Likewise.
21003
21004 2013-02-24  Allan McRae  <allan@archlinux.org>
21005
21006         * manual/socket.texi (The Internet Namespace): Order menu items
21007         to match that in the file.
21008
21009         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
21010         node listing of the info page menu.
21011
21012 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
21013
21014         [BZ #13550]
21015         * sysdeps/i386/bp-asm.h: Remove file.
21016         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21017         (PARMS): Do not use macros from bp-asm.h.
21018         (S1): Likewise.
21019         (S2): Likewise.
21020         (SIZE): Likewise.
21021         (__mpn_add_n): Do not use BP_SYM
21022         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
21023         "bp-asm.h".
21024         (PARMS): Do not use macros from bp-asm.h.
21025         (S1): Likewise.
21026         (SIZE): Likewise.
21027         (__mpn_addmul_1): Do not use BP_SYM
21028         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
21029         "bp-asm.h".
21030         (PARMS): Do not use macros from bp-asm.h.
21031         (SIGMSK): Likewise.
21032         (_setjmp): Likewise.  Do not use BP_SYM.
21033         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
21034         "bp-asm.h".
21035         (PARMS): Do not use macros from bp-asm.h.
21036         (SIGMSK): Likewise.
21037         (setjmp): Likewise.  Do not use BP_SYM.
21038         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
21039         "bp-asm.h".
21040         (PARMS): Do not use macros from bp-asm.h.
21041         (__frexp): Do not use BP_SYM.
21042         (frexp): Likewise.
21043         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
21044         "bp-asm.h".
21045         (PARMS): Do not use macros from bp-asm.h.
21046         (__frexpf): Do not use BP_SYM.
21047         (frexpf): Likewise.
21048         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
21049         "bp-asm.h".
21050         (PARMS): Do not use macros from bp-asm.h.
21051         (__frexpl): Do not use BP_SYM.
21052         (frexpl): Likewise.
21053         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
21054         "bp-asm.h".
21055         (PARMS): Do not use macros from bp-asm.h.
21056         (__remquo): Do not use BP_SYM.
21057         (remquo): Likewise.
21058         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
21059         "bp-asm.h".
21060         (PARMS): Do not use macros from bp-asm.h.
21061         (__remquof): Do not use BP_SYM.
21062         (remquof): Likewise.
21063         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
21064         "bp-asm.h".
21065         (PARMS): Do not use macros from bp-asm.h.
21066         (__remquol): Do not use BP_SYM.
21067         (remquol): Likewise.
21068         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
21069         "bp-asm.h".
21070         (PARMS): Do not use macros from bp-asm.h.
21071         (DEST): Likewise.
21072         (SRC): Likewise.
21073         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
21074         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
21075         "bp-asm.h".
21076         (PARMS): Do not use macros from bp-asm.h.
21077         (strlen): Do not use BP_SYM.
21078         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
21079         "bp-asm.h".
21080         (PARMS): Do not use macros from bp-asm.h.
21081         (S1): Likewise.
21082         (S2): Likewise.
21083         (SIZE): Likewise.
21084         (__mpn_add_n): Do not use BP_SYM.
21085         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
21086         "bp-asm.h".
21087         (PARMS): Do not use macros from bp-asm.h.
21088         (S1): Likewise.
21089         (SIZE): Likewise.
21090         (__mpn_addmul_1): Do not use BP_SYM.
21091         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
21092         weak_alias.
21093         (bzero): Likewise.
21094         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
21095         "bp-asm.h".
21096         (PARMS): Do not use macros from bp-asm.h.
21097         (S): Likewise.
21098         (SIZE): Likewise.
21099         (__mpn_lshift): Do not use BP_SYM.
21100         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
21101         "bp-asm.h".
21102         (PARMS): Do not use macros from bp-asm.h.
21103         (DEST): Likewise.
21104         (SRC): Likewise.
21105         (LEN): Likewise.
21106         (memcpy): Likewise.  Do not use BP_SYM.
21107         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
21108         libc_hidden_def and weak_alias.
21109         (mempcpy): Do not use BP_SYM in weak_alias.
21110         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
21111         "bp-asm.h".
21112         (PARMS): Do not use macros from bp-asm.h.
21113         (DEST): Likewise.
21114         (LEN): Likewise.
21115         [!BZERO_P] (CHR): Likewise.
21116         (memset): Likewise.  Do not use BP_SYM.
21117         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
21118         "bp-asm.h".
21119         (PARMS): Do not use macros from bp-asm.h.
21120         (S1): Likewise.
21121         (SIZE): Likewise.
21122         (__mpn_mul_1): Do not use BP_SYM.
21123         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
21124         "bp-asm.h".
21125         (PARMS): Do not use macros from bp-asm.h.
21126         (S): Likewise.
21127         (SIZE): Likewise.
21128         (__mpn_rshift): Do not use BP_SYM.
21129         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
21130         "bp-asm.h".
21131         (PARMS): Do not use macros from bp-asm.h.
21132         (STR): Likewise.
21133         (CHR): Likewise.
21134         (strchr): Likewise.  Do not use BP_SYM.
21135         (index): Do not use BP_SYM in weak_alias.
21136         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
21137         "bp-asm.h".
21138         (PARMS): Do not use macros from bp-asm.h.
21139         (DEST): Likewise.
21140         (SRC): Likewise.
21141         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
21142         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
21143         "bp-asm.h".
21144         (PARMS): Do not use macros from bp-asm.h.
21145         (strlen): Do not use BP_SYM.
21146         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
21147         "bp-asm.h".
21148         (PARMS): Do not use macros from bp-asm.h.
21149         (S1): Likewise.
21150         (S2): Likewise.
21151         (SIZE): Likewise.
21152         (__mpn_sub_n): Do not use BP_SYM.
21153         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
21154         "bp-asm.h".
21155         (PARMS): Do not use macros from bp-asm.h.
21156         (S1): Likewise.
21157         (SIZE): Likewise.
21158         (__mpn_submul_1): Do not use BP_SYM.
21159         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
21160         "bp-asm.h".
21161         (PARMS): Do not use macros from bp-asm.h.
21162         (S1): Likewise.
21163         (S2): Likewise.
21164         (SIZE): Likewise.
21165         (__mpn_add_n): Do not use BP_SYM.
21166         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
21167         weak_alias.
21168         (bzero): Likewise.
21169         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
21170         "bp-asm.h".
21171         (PARMS): Do not use macros from bp-asm.h.
21172         (BLK2): Likewise.
21173         (LEN): Likewise.
21174         (memcmp): Do not use BP_SYM.
21175         (bcmp): Do not use BP_SYM in weak_alias.
21176         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
21177         "bp-asm.h".
21178         (PARMS): Do not use macros from bp-asm.h.
21179         (DEST): Likewise.
21180         (SRC): Likewise.
21181         (LEN): Likewise.
21182         (memcpy): Likewise.  Do not use BP_SYM.
21183         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
21184         "bp-asm.h".
21185         (PARMS): Do not use macros from bp-asm.h.
21186         (DEST): Likewise.
21187         (SRC): Likewise.
21188         (LEN): Likewise.
21189         (memmove): Likewise.  Do not use BP_SYM.
21190         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
21191         "bp-asm.h".
21192         (PARMS): Do not use macros from bp-asm.h.
21193         (DEST): Likewise.
21194         (SRC): Likewise.
21195         (LEN): Likewise.
21196         (__mempcpy): Likewise.  Do not use BP_SYM.
21197         (mempcpy): Do not use BP_SYM in weak_alias.
21198         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
21199         "bp-asm.h".
21200         (PARMS): Do not use macros from bp-asm.h.
21201         (DEST): Likewise.
21202         (LEN): Likewise.
21203         [!BZERO_P] (CHR): Likewise.
21204         (memset): Likewise.  Do not use BP_SYM.
21205         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
21206         "bp-asm.h".
21207         (PARMS): Do not use macros from bp-asm.h.
21208         (STR2): Likewise.
21209         (strcmp): Do not use BP_SYM.
21210         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
21211         "bp-asm.h".
21212         (PARMS): Do not use macros from bp-asm.h.
21213         (STR): Likewise.
21214         (DELIM): Likewise.
21215         [USE_AS_STRTOK_R] (SAVE): Likewise.
21216         (FUNCTION): Likewise.  Do not use BP_SYM.
21217         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
21218         aliases.
21219         (strtok_r): Likewise.
21220         (__GI___strtok_r): Likewise.
21221         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21222         (PARMS): Do not use macros from bp-asm.h.
21223         (S): Likewise.
21224         (SIZE): Likewise.
21225         (__mpn_lshift): Do not use BP_SYM.
21226         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21227         (PARMS): Do not use macros from bp-asm.h.
21228         (STR): Likewise.
21229         (CHR): Likewise.
21230         (__memchr): Do not use BP_SYM.
21231         (memchr): Do not use BP_SYM in weak_alias.
21232         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21233         (PARMS): Do not use macros from bp-asm.h.
21234         (BLK2): Likewise.
21235         (LEN): Likewise.
21236         (memcmp): Do not use BP_SYM.
21237         (bcmp): Do not use BP_SYM in weak_alias.
21238         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
21239         (PARMS): Do not use macros from bp-asm.h.
21240         (S1): Likewise.
21241         (SIZE): Likewise.
21242         (__mpn_mul_1): Do not use BP_SYM.
21243         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
21244         "bp-asm.h".
21245         (PARMS): Do not use macros from bp-asm.h.
21246         (STR): Likewise.
21247         (CHR): Likewise.
21248         (__rawmemchr): Do not use BP_SYM.
21249         (rawmemchr): Do not use BP_SYM in weak_alias.
21250         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21251         (PARMS): Do not use macros from bp-asm.h.
21252         (S): Likewise.
21253         (SIZE): Likewise.
21254         (__mpn_rshift): Do not use BP_SYM.
21255         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21256         (PARMS): Do not use macros from bp-asm.h.
21257         (SIGMSK): Likewise.
21258         (__sigsetjmp): Likewise.  Do not use BP_SYM.
21259         * sysdeps/i386/start.S: Do not include "bp-sym.h".
21260         (_start): Do not use BP_SYM.
21261         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
21262         (PARMS): Do not use macros from bp-asm.h.
21263         (DEST): Likewise.
21264         (SRC): Likewise.
21265         (__stpcpy): Likewise.  Do not use BP_SYM.
21266         (stpcpy): Do not use BP_SYM in weak_alias.
21267         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
21268         "bp-asm.h".
21269         (PARMS): Do not use macros from bp-asm.h.
21270         (DEST): Likewise.
21271         (SRC): Likewise.
21272         (LEN): Likewise.
21273         (__stpncpy): Likewise.  Do not use BP_SYM.
21274         (stpncpy): Do not use BP_SYM in weak_alias.
21275         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21276         (PARMS): Do not use macros from bp-asm.h.
21277         (STR): Likewise.
21278         (CHR): Likewise.
21279         (strchr): Likewise.  Do not use BP_SYM.
21280         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
21281         "bp-asm.h".
21282         (PARMS): Do not use macros from bp-asm.h.
21283         (STR): Likewise.
21284         (CHR): Likewise.
21285         (__strchrnul): Likewise.  Do not use BP_SYM.
21286         (strchrnul): Do not use BP_SYM in weak_alias.
21287         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
21288         "bp-asm.h".
21289         (PARMS): Do not use macros from bp-asm.h.
21290         (STOP): Likewise.
21291         (strcspn): Do not use BP_SYM.
21292         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
21293         "bp-asm.h".
21294         (PARMS): Do not use macros from bp-asm.h.
21295         (STR): Likewise.
21296         (STOP): Likewise.
21297         (strpbrk): Likewise.  Do not use BP_SYM.
21298         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
21299         "bp-asm.h".
21300         (PARMS): Do not use macros from bp-asm.h.
21301         (STR): Likewise.
21302         (CHR): Likewise.
21303         (strrchr): Likewise.  Do not use BP_SYM.
21304         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
21305         (PARMS): Do not use macros from bp-asm.h.
21306         (SKIP): Likewise.
21307         (strspn): Do not use BP_SYM.
21308         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
21309         (PARMS): Do not use macros from bp-asm.h.
21310         (STR): Likewise.
21311         (DELIM): Likewise.
21312         (SAVE): Likewise.
21313         (FUNCTION): Likewise.  Do not use BP_SYM.
21314         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
21315         aliases.
21316         (strtok_r): Likewise.
21317         (__GI___strtok_r): Likewise.
21318         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21319         (PARMS): Do not use macros from bp-asm.h.
21320         (S1): Likewise.
21321         (S2): Likewise.
21322         (SIZE): Likewise.
21323         (__mpn_sub_n): Do not use BP_SYM.
21324         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
21325         "bp-asm.h".
21326         (PARMS): Do not use macros from bp-asm.h.
21327         (S1): Likewise.
21328         (SIZE): Likewise.
21329         (__mpn_submul_1): Do not use BP_SYM.
21330         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
21331         <bp-sym.h>.
21332         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
21333         and <bp-asm.h>.
21334         (PARMS): Do not use macros from bp-asm.h.
21335         (FLAGS): Likewise.
21336         (PTID): Likewise.
21337         (TLS): Likewise.
21338         (CTID): Likewise.
21339         (__clone): Do not use BP_SYM.
21340         (clone): Do not use BP_SYM in weak_alias.
21341         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
21342         and <bp-asm.h>.
21343         (PARMS): Do not use macros from bp-asm.h.
21344         (LEN): Likewise.
21345         (__mmap64): Do not use BP_SYM.
21346         (mmap64): Do not use BP_SYM in weak_alias.
21347         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
21348         <bp-sym.h> and <bp-asm.h>.
21349         (PARMS): Do not use macros from bp-asm.h.
21350         (__posix_fadvise64_l64): Do not use BP_SYM.
21351         * sysdeps/unix/sysv/linux/i386/semtimedop.S
21352         (PARMS): Do not use macros from bp-asm.h.
21353         (NSOPS): Likewise.
21354         (semtimedop): Do not use BP_SYM.
21355         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
21356         and <bp-asm.h>.
21357
21358 2013-02-21  Allan McRae  <allan@archlinux.org>
21359
21360         * manual/message.texi (Charset conversion in gettext):
21361         Move @end statement to beginning of line.
21362
21363 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21364
21365         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
21366         static.
21367         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
21368         Likewise.
21369
21370         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
21371         (denorm): Likewise.
21372         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
21373         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
21374
21375 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21376
21377         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
21378         tail-call to the resolved function if pltexit isn't needed.
21379
21380 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21381
21382         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
21383         or Y being zero as being unlikely.
21384         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21385         Likewise.
21386
21387 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
21388
21389         * manual/nss.texi (System Databases and Name Service Switch):
21390         Remove frobnicate @pxref.
21391
21392 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21393
21394         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21395         __attribute__ ((unused)) to __attribute__ ((__unused__)).
21396
21397 2013-02-20  Petr Machata  <pmachata@redhat.com>
21398
21399         * elf/elf.h (R_ARM_TARGET1): New macro.
21400         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
21401         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
21402         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
21403         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
21404         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
21405         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
21406         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
21407         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
21408         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
21409         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
21410         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
21411         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
21412         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
21413         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
21414         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
21415         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
21416         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
21417         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
21418         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
21419         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
21420         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
21421         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
21422         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
21423         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
21424         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
21425         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
21426         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
21427         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
21428         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
21429         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
21430         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
21431         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
21432         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
21433         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
21434         (R_ARM_THM_GOT_BREL12): Likewise.
21435         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
21436         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
21437         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
21438         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
21439         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
21440         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
21441         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
21442         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
21443         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
21444
21445 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21446
21447         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21448         __attribute_used__ to __attribute__ ((unused)).
21449
21450 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
21451
21452         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
21453         powerpc mpa.c.
21454         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
21455         comment formatting.
21456         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
21457
21458 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
21459
21460         [BZ #13550]
21461         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
21462         Remove macro.
21463         (ENTER): Remove both macro definitions.
21464         (LEAVE): Likewise.
21465         (CHECK_BOUNDS_LOW): Likewise.
21466         (CHECK_BOUNDS_HIGH): Likewise.
21467         (CHECK_BOUNDS_BOTH): Likewise.
21468         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
21469         (RETURN_BOUNDED_POINTER): Likewise.
21470         (RETURN_NULL_BOUNDED_POINTER): Likewise.
21471         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
21472         (POP_ERRNO_LOCATION_RETURN): Likewise.
21473         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
21474         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21475         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
21476         macros.
21477         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21478         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
21479         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
21480         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
21481         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
21482         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
21483         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
21484         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
21485         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
21486         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
21487         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
21488         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
21489         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21490         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
21491         removed macros.
21492         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21493         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
21494         macros.
21495         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21496         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
21497         * sysdeps/i386/i586/memset.S (memset): Likewise.
21498         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
21499         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21500         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
21501         macros.
21502         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21503         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
21504         Change uses of L(2) to L(out).
21505         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
21506         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
21507         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
21508         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21509         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
21510         removed macros.
21511         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21512         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
21513         macros.
21514         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21515         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
21516         (RETURN): Do not use macro LEAVE.
21517         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
21518         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
21519         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
21520         * sysdeps/i386/i686/memset.S (memset): Likewise.
21521         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
21522         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
21523         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21524         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
21525         Likewise.
21526         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21527         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
21528         L(1_2) and L(1_3) into L(1).
21529         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21530         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
21531         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21532         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
21533         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21534         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
21535         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
21536         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21537         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
21538         macros.
21539         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
21540         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21541         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
21542         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
21543         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
21544         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21545         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
21546         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
21547         * sysdeps/i386/strcspn.S (strcspn): Likewise.
21548         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
21549         * sysdeps/i386/strrchr.S (strrchr): Likewise.
21550         * sysdeps/i386/strspn.S (strspn): Likewise.
21551         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
21552         conditional code.
21553         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21554         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
21555         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21556         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
21557         L(1_3) into L(1_1).
21558         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
21559         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21560         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
21561         macros.
21562         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21563
21564 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
21565
21566         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
21567         macro.
21568
21569 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21570
21571         * math/atest-exp.c (exp_mpn): Remove ROUND.
21572         * math/atest-exp2.c (exp_mpn): Likewise.
21573         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
21574
21575         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
21576         * stdlib/tst-tls-atexit-lib.c: Likewise.
21577         * stdlib/tst-tls-atexit.c: Likewise.
21578
21579 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21580
21581         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
21582         and __attribute_alloc_size__.
21583
21584 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21585
21586         * include/programs/xmalloc.h: Change __attribute_alloc_size to
21587         __attribute_alloc_size__.
21588         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
21589         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
21590
21591 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21592
21593         * include/programs/xmalloc.h: New file.
21594         * catgets/gencat.c: Include it.
21595         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
21596         * elf/pldd.c: Likewise.
21597         * iconv/iconv_charmap.c: Likewise.
21598         * iconv/iconvconfig.c: Likewise.
21599         * iconv/strtab.c: Likewise.
21600         * locale/programs/locale.c: Likewise.
21601         * locale/programs/localedef.h: Likewise.
21602         * locale/programs/simple-hash.c: Likewise.
21603         * nscd/nscd.h: Likewise.
21604         * nss/makedb.c: Likewise.
21605         * sysdeps/generic/ldconfig.h: Likewise.
21606
21607 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21608
21609         * Versions.def: Add GLIBC_2.18.
21610         * include/link.h (struct link_map): New member l_tls_dtor_count.
21611         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
21612         (__call_tls_dtors): Likewise.
21613         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
21614         __cxa_thread_atexit_impl.
21615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21616         Likewise.
21617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21618         Likewise.
21619         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
21620         Likewise.
21621         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
21622         Likewise.
21623         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21624         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
21625         Likewise.
21626         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
21627         Likewise.
21628         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21629         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
21630         Likewise.
21631         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
21632         (tests): Add test case tst-tls-atexit.
21633         (modules-names): Add shared library for tst-tls-atexit.
21634         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
21635         (GLIBC_PRIVATE): Add __call_tls_dtors.
21636         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
21637         for libstdc++.
21638         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
21639         * stdlib/tst-tls-atexit.c: New test case.
21640         * stdlib/tst-tls-atexit-lib.c: New test case.
21641
21642         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
21643
21644         * elf/Versions (ld): Add _dl_find_dso_for_object.
21645         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
21646         * elf/dl-open.c (_dl_find_dso_for_object): New function.
21647         (dl_open_worker): Use _dl_find_dso_for_object.
21648         * elf/dl-sym.c (do_sym): Likewise.
21649         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
21650
21651 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21652
21653         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
21654         Syntactic changes only.
21655         (_dl_runtime_profile): Do a tail-call to the resolved function.
21656
21657 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
21658
21659         [BZ #13550]
21660         * sysdeps/x86_64/bp-asm.h: Remove file.
21661         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
21662         <bp-sym.h> and <bp-asm.h>.
21663         (__clone): Do not use BP_SYM.
21664         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
21665         <bp-sym.h> and <bp-asm.h>.
21666         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21667         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
21668         "bp-asm.h".
21669         (_setjmp): Do not use BP_SYM.
21670         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
21671         "bp-asm.h".
21672         (setjmp): Do not use BP_SYM.
21673         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
21674         libc_hidden_def.
21675         (mempcpy): Do not use BP_SYM in weak_alias.
21676         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
21677         "bp-asm.h".
21678         (strchr): Do not use BP_SYM.
21679         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
21680         "bp-asm.h".
21681         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
21682         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
21683         (_start): Do not use BP_SYM.
21684         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
21685         "bp-asm.h".
21686         (strcat): Do not use BP_SYM.
21687         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
21688         "bp-asm.h".
21689         (STRCMP): Do not use BP_SYM.
21690         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
21691         "bp-asm.h".
21692         (STRCPY): Do not use BP_SYM.
21693         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
21694         "bp-asm.h".
21695         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
21696         "bp-asm.h".
21697         (FUNCTION): Do not use BP_SYM.
21698         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
21699         weak_alias.
21700         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
21701
21702 2013-02-17  Andreas Jaeger  <aj@suse.de>
21703
21704         * time/Versions: Sort entries.
21705         * string/Versions: Likewise.
21706         * resolv/Versions: Likewise.
21707         * posix/Versions: Likewise.
21708         * iconv/Versions: Likewise.
21709         * elf/Versions: Likewise.
21710         * wcsmbs/Versions: Likewise.
21711
21712 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21713
21714         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
21715         loop termination condition.
21716
21717         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
21718         variable to calculate EZ.
21719         (__sqr): Likewise.
21720
21721         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
21722         the lower precision input.
21723
21724 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
21725
21726         [BZ #13550]
21727         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
21728         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
21729         (run-via-rtld-prefix): Do not handle %-bp tests.
21730         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
21731         (all-object-suffixes): Remove .ob.
21732         (bppfx): Remove variable.
21733         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
21734         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
21735         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
21736         [$(build-bounded) = yes] (libtype.ob): Likewise.
21737         * Makerules (elide-routines.ob): Remove variable.
21738         (do-tests-clean): Do not handle *-bp.out.
21739         (common-mostlyclean): Do not handle *-bp and *-bp.out.
21740         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
21741         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
21742         (tests): Do not include $(tests-bp.out).
21743         (xtests): Do not include $(xtests-bp.out).
21744         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
21745         [$(build-bounded) = yes] ($(addprefix
21746         $(objpfx),$(binaries-bounded))): Remove rule.
21747         ($(objpfx)%-bp.out): Remove rule.
21748         * config.make.in (build-bounded): Remove variable.
21749         * crypt/Makefile [$(build-bounded) = yes]
21750         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
21751         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
21752         append to variable.
21753         [$(build-bounded) = yes] (install-lib): Likewise.
21754         [$(build-bounded) = yes] (generated): Likewise.
21755         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
21756         Remove rule.
21757         * intl/Makefile [$(build-bounded) = yes]
21758         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
21759         * math/Makefile [$(build-bounded) = yes]
21760         ($(tests:%=$(objpfx)%-bp): Likewise.
21761         * misc/Makefile [$(build-bounded) = yes]
21762         ($(objpfx)tst-tsearch-bp): Likewise.
21763         * nptl/Makeconfig (bounded-thread-library): Remove variable.
21764         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
21765         Remove dependency.
21766         * string/Makefile (o-objects.ob): Remove variable.
21767         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
21768         (CFLAGS-.ob): Remove variable.
21769         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
21770         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
21771         both definitions of variable.
21772         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
21773         (ASFLAGS-.ob): Remove variable.
21774
21775 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
21776
21777         [BZ #13550]
21778         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
21779         Remove __BOUNDED_POINTERS__ from condition.
21780         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
21781         * string/bits/string2.h [!__NO_STRING_INLINES &&
21782         !__BOUNDED_POINTERS__]: Likewise.
21783         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
21784         Likewise.
21785         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
21786         Remove conditional code.
21787         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
21788         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
21789         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
21790         condition.
21791
21792         [BZ #13550]
21793         * csu/libc-start.c: Do not include <bp-sym.h>.
21794         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
21795         * elf/dl-open.c: Do not include <bp-sym.h>.
21796         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
21797         * math/fegetenv.c: Do not include <bp-sym.h>.
21798         (fegetenv): Do not use BP_SYM in versioned symbols.
21799         * nptl/sysdeps/pthread/bits/libc-lockP.h
21800         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
21801         <bp-sym.h>.
21802         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21803         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
21804         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21805         (__pthread_mutex_destroy): Likewise.
21806         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21807         (__pthread_mutex_lock): Likewise.
21808         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21809         (__pthread_mutex_trylock): Likewise.
21810         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21811         (__pthread_mutex_unlock): Likewise.
21812         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21813         (__pthread_mutexattr_init): Likewise.
21814         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21815         (__pthread_mutexattr_destroy): Likewise.
21816         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21817         (__pthread_mutexattr_settype): Likewise.
21818         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21819         (__pthread_rwlock_init): Likewise.
21820         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21821         (__pthread_rwlock_destroy): Likewise.
21822         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21823         (__pthread_rwlock_rdlock): Likewise.
21824         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21825         (__pthread_rwlock_tryrdlock): Likewise.
21826         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21827         (__pthread_rwlock_wrlock): Likewise.
21828         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21829         (__pthread_rwlock_trywrlock): Likewise.
21830         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21831         (__pthread_rwlock_unlock): Likewise.
21832         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21833         (__pthread_key_create): Likewise.
21834         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21835         (__pthread_setspecific): Likewise.
21836         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21837         (__pthread_getspecific): Likewise.
21838         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
21839         Likewise.
21840         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21841         (_pthread_cleanup_push_defer): Likewise.
21842         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21843         (_pthread_cleanup_pop_restore): Likewise.
21844         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21845         (pthread_setcancelstate): Likewise.
21846         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
21847         <bp-sym.h>.
21848         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
21849         (memchr): Do not use BP_SYM in weak_alias.
21850         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
21851         (fegetenv): Do not use BP_SYM in versioned symbols.
21852         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
21853         (fesetenv): Do not use BP_SYM in versioned symbols.
21854         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21855         (feupdateenv): Do not use BP_SYM in versioned symbols.
21856         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21857         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21858         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
21859         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
21860         (open64): Do not use BP_SYM in weak_alias.
21861         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
21862         (fegetenv): Do not use BP_SYM in versioned symbols.
21863         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
21864         (fesetenv): Do not use BP_SYM in versioned symbols.
21865         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21866         (feupdateenv): Do not use BP_SYM in versioned symbols.
21867         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
21868         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
21869         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
21870         (feraiseexcept): Do not use BP_SYM in versioned symbols.
21871         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21872         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21873         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
21874         <bp-sym.h>.
21875         (__libc_start_main): Do not use BP_SYM.
21876
21877 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21878
21879         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
21880         redundant return line.
21881         (norm): Likewise.
21882         (denorm): Likewise.
21883         (dbl_mp): Likewise.
21884         (sub_magnitudes): Likewise.
21885         (__add): Likewise.
21886         (__sub): Likewise.
21887         (__mul): Likewise.
21888         (__inv): Likewise.
21889         (__dvd): Likewise.
21890         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
21891         (norm): Likewise.
21892         (denorm): Likewise.
21893         (dbl_mp): Likewise.
21894         (sub_magnitudes): Likewise.
21895         (__add): Likewise.
21896         (__sub): Likewise.
21897         (__mul): Likewise.
21898         (__inv): Likewise.
21899         (__dvd): Likewise.
21900
21901         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
21902         instead of __mul.
21903         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21904         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
21905         (cc32): Likewise.
21906
21907         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
21908         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
21909         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
21910         of __mul for squares.
21911         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
21912         function
21913         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
21914         Likewise.
21915         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
21916         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21917
21918 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
21919
21920         [BZ #13550]
21921         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
21922         code.
21923         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
21924         prototype or function definition.  Rename ubp_* variables and
21925         parameters.  Remove argv definitions conditional on
21926         [__BOUNDED_POINTERS__].
21927         * debug/backtrace.c (__backtrace): Do not use __unbounded.
21928         * elf/dl-runtime.c (_dl_fixup): Likewise.
21929         * include/set-hooks.h (RUN_HOOK): Likewise.
21930         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
21931         definition.
21932         * string/strcpy.c (strcpy): Do not use __unbounded.
21933         * sysdeps/generic/frame.h (struct layout): Likewise.
21934         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
21935         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
21936         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
21937         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
21938         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
21939         (__backtrace): Likewise.
21940         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
21941         use __ptrvalue.
21942         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
21943         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
21944         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
21945         Likewise.
21946         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
21947         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
21948         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21949         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21950         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
21951         Do not use __unbounded.
21952         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
21953         Rename __unboundedrlimits parameter to rlimits in prototype.
21954         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
21955         Do not use __unbounded.
21956         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
21957         not use __ptrvalue.
21958         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21959         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
21960         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
21961         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
21962         __ptrvalue or __unbounded.
21963         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
21964         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
21965         use __unbounded.
21966         (__new_msgctl): Do not use __ptrvalue.
21967         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
21968         __unbounded.
21969         (__libc_msgrcv): Do not use __ptrvalue.
21970         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
21971         startup_info): Do not use __unbounded.
21972         (__libc_start_main): Likewise.  Rename ubp_* variables and
21973         parameters.  Remove argv definitions conditional on
21974         [__BOUNDED_POINTERS__].
21975         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
21976         __ptrvalue.
21977         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
21978         use __unbounded.
21979         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
21980         or __ptrvalue.
21981         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
21982         use __unbounded.
21983         (__new_shmctl): Do not use __ptrvalue.
21984         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
21985         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
21986         Likewise.
21987         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
21988         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
21989         (__libc_sigaction): Likewise.
21990         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
21991         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
21992         Likewise.
21993         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
21994
21995 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
21996
21997         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
21998
21999         * string/mempcpy.c: Implement by calling memcpy.
22000
22001 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
22002
22003         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
22004
22005         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
22006         evaluation.
22007
22008         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
22009         values in the mantissa.
22010
22011         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
22012         minimize writes to Z.
22013         (sub_magnitudes): Simplify code a bit.
22014
22015 2013-02-12  Roland McGrath  <roland@hack.frob.com>
22016
22017         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
22018         from the message.  The linker prefixes all warnings with that already.
22019
22020 2013-02-12  Andreas Schwab  <schwab@suse.de>
22021
22022         [BZ #15078]
22023         * posix/regexec.c (extend_buffers): Add parameter min_len.
22024         (check_matching): Pass minimum needed length.
22025         (clean_state_log_if_needed): Likewise.
22026         (get_subexp): Likewise.
22027         * posix/Makefile (tests): Add bug-regex34.
22028         (bug-regex34-ENV): Define.
22029         * posix/bug-regex34.c: New file.
22030
22031         [BZ #11561]
22032         * posix/regcomp.c (parse_bracket_exp): When looking up collating
22033         elements compare against the byte sequence of it, not its name.
22034         * posix/Makefile (tests): Add bug-regex35.
22035         (bug-regex35-ENV): Define.
22036         * posix/bug-regex35.c: New file.
22037
22038 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22039
22040         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
22041         comment.
22042         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
22043         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
22044         (CHECK_EOL): Add undef.
22045
22046 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
22047
22048         * bits/stdlib-bsearch.h: New file.
22049         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
22050         * stdlib/stdlib.h: Likewise.
22051
22052 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22053
22054         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
22055         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
22056         declaration.
22057         * manual/search.texi (Array Search Function): Add missing const in
22058         lfind prototype.
22059         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
22060         declaration to use rlim_t.
22061         (Basic Scheduling Functions): Remove erroneous const from
22062         sched_getparam prototype.  Remove erroneous * from
22063         sched_get_priority_max and sched_get_priority_min prototypes.
22064         (Resource Usage): Fix summary @comment on vtimes to refer to
22065         sys/vtimes.h rather than vtimes.h.
22066         Add missing *s in vtimes prototype.
22067         (Limits on Resources): Fix ulimit prototype to return long int.
22068         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
22069         prototypes to use long int rather than double.
22070         (BSD Random): Fix initstate and setstate to use char *, not void *.
22071         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
22072         prototype to make second argument 'struct aiocb64 *const[]'.
22073         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
22074         (Status of AIO Operations): Remove erroneous const in aio_return and
22075         aio_return64 prototypes.
22076         (Synchronizing I/O): Fix sync prototype to return void.
22077         * manual/startup.texi (Suboptions): Remove an erroneous const in
22078         getsubopt prototype.
22079         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
22080         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
22081         use size_t rather than int.
22082         (Scanning All Users): Likewise for getpwent_r.
22083         (Setting Groups): Add missing const to setgroups prototype.
22084         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
22085         * manual/socket.texi (Host Names): Fix gethostbyaddr and
22086         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
22087         'const void *' rather than 'const char *'.
22088         (Host Address Functions): Likewise for inet_ntop.
22089         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
22090         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
22091         ssize_t for return value.
22092         (Sending Data): Likewise for send, sendto, sendmsg.
22093         (Socket Option Functions): Add a missing const in setsockopt prototype.
22094         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
22095         use wchar_t for the argument.
22096         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
22097         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
22098         take no arguments.
22099         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
22100         double/float/long double for second argument.
22101         Fix return types of significand, significandf, significandl.
22102         * manual/filesys.texi (Setting Permissions): Use mode_t for second
22103         argument in fchmod prototype.
22104         (File Owner): Use uid_t and gid_t in fchown prototype.
22105         (File Times): Add const to utimes, futimes, and lutimes prototypes.
22106         (Making Special Files): Use mode_t and dev_t in mknod prototype.
22107         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
22108         use 'const struct dirent **' as argument types to CMP function pointer
22109         argument.
22110         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
22111         (File Times): Fix summary magic @comment for struct utimbuf and utime
22112         to refer to utime.h, not time.h.
22113         * manual/string.texi (Argz Functions): Add missing const in
22114         argz_extract and argz_next prototypes.
22115         (Finding Tokens in a String): Likewise for basename.
22116         (String/Array Comparison): Fix typo in wcscasecmp prototype.
22117         (Copying and Concatenation): Fix typo in wmemmove prototype.
22118         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
22119         (Signal Stack): Remove erroneous const in sigstack prototype.
22120         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
22121         prototype.
22122         (Simple Calendar Time): Likewise for stime.
22123         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
22124         prototype.
22125         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
22126         say sys/sysctl.h instead.
22127         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
22128         and vsyslog prototypes.
22129
22130 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22131
22132         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
22133         Remove.
22134
22135 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22136
22137         * misc/sys/mman.h: Fix typo in mremap comment.
22138
22139 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22140
22141         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
22142         the '\0' terminator.
22143
22144 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22145
22146         [BZ #13550]
22147         * debug/segfault.c: Don't include <bp-checks.h>.
22148         * sysdeps/generic/bp-checks.h: Remove file.
22149         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
22150         (__GETDENTS): Don't use CHECK_N.
22151         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
22152         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
22153         (__getgroups): Don't use CHECK_N.
22154         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
22155         (setgroups): Don't use CHECK_N.
22156         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
22157         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
22158         (__libc_msgrcv): Don't use CHECK_N.
22159         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
22160         (__libc_msgsnd): Don't use CHECK_N.
22161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
22162         <bp-checks.h>.
22163         (__libc_pread): Don't use CHECK_N.
22164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
22165         include <bp-checks.h>.
22166         (__libc_pread64): Don't use CHECK_N.
22167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
22168         include <bp-checks.h>.
22169         (__libc_pwrite): Don't use CHECK_N.
22170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
22171         include <bp-checks.h>.
22172         (__libc_pwrite64): Don't use CHECK_N.
22173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
22174         <bp-checks.h>.
22175         (__libc_pread): Don't use CHECK_N.
22176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
22177         include <bp-checks.h>.
22178         (__libc_pread64): Don't use CHECK_N.
22179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
22180         include <bp-checks.h>.
22181         (__libc_pwrite): Don't use CHECK_N.
22182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
22183         include <bp-checks.h>.
22184         (__libc_pwrite64): Don't use CHECK_N.
22185         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
22186         (do_pread): Don't use CHECK_N.
22187         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
22188         (do_pread64): Don't use CHECK_N.
22189         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
22190         (do_pwrite): Don't use CHECK_N.
22191         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
22192         (do_pwrite64): Don't use CHECK_N.
22193         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
22194         (__libc_readv): Don't use CHECK_N.
22195         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
22196         (semop): Don't use CHECK_N.
22197         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
22198         <bp-checks.h>.
22199         (semtimedop): Don't use CHECK_N.
22200         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
22201         (__libc_pread): Don't use CHECK_N.
22202         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
22203         <bp-checks.h>.
22204         (__libc_pread64): Don't use CHECK_N.
22205         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
22206         <bp-checks.h>.
22207         (__libc_pwrite): Don't use CHECK_N.
22208         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
22209         <bp-checks.h>.
22210         (__libc_pwrite64): Don't use CHECK_N.
22211         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
22212         <bp-checks.h>.
22213         (__libc_msgrcv): Don't use CHECK_N.
22214         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
22215         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
22216         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
22217         (__libc_writev): Don't use CHECK_N.
22218
22219 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22220
22221         * string/strcpy.c: Removed unused variable.
22222
22223         * Makeconfig (+sysdep-includes): Define with := rather than =.
22224         Use an existing include/ subdir of each sysdeps dir before it.
22225
22226 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22227
22228         * nscd/connection.c (register_traced_file): Comment function.
22229         [HAVE_INOTIFY] (union __inev): Define.
22230         [HAVE_INOTIFY] (inotify_check_files): New function.
22231         [HAVE_INOTIFY] (clear_db_cache): Likewise.
22232         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
22233         clear_db_cache.
22234         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
22235
22236 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22237
22238         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
22239         loaded if not already and that a failure is permanent.
22240
22241 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22242
22243         [BZ #15006]
22244         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
22245         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
22246
22247 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22248
22249         [BZ #13550]
22250         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
22251         (CHECK_1_NULL_OK): Likewise.
22252         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
22253         (__fxstat): Do not use CHECK_1.
22254         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
22255         <bp-checks.h>.
22256         (___fxstat64): Do not use CHECK_1.
22257         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
22258         <bp-checks.h>.
22259         (__fxstatat): Do not use CHECK_1.
22260         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
22261         <bp-checks.h>.
22262         (__fxstatat64): Do not use CHECK_1.
22263         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
22264         <bp-checks.h>.
22265         (__fxstat): Do not use CHECK_1.
22266         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
22267         <bp-checks.h>.
22268         (__fxstatat): Do not use CHECK_1.
22269         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22270         <bp-checks.h>.
22271         (__getresgid): Do not use CHECK_1.
22272         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22273         <bp-checks.h>.
22274         (__getresuid): Do not use CHECK_1.
22275         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
22276         <bp-checks.h>.
22277         (__lxstat): Do not use CHECK_1.
22278         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22279         <bp-checks.h>.
22280         (__old_msgctl): Do not use CHECK_1.
22281         (__new_msgctl): Likewise.
22282         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
22283         <bp-checks.h>.
22284         (__new_setrlimit): Do not use CHECK_1.
22285         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22286         <bp-checks.h>.
22287         (__old_shmctl): Do not use CHECK_1.
22288         (__new_shmctl): Likewise.
22289         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
22290         <bp-checks.h>.
22291         (__xstat): Do not use CHECK_1.
22292         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
22293         (__lxstat): Do not use CHECK_1.
22294         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
22295         <bp-checks.h>.
22296         (___lxstat64): Do not use CHECK_1.
22297         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
22298         (__old_msgctl): Do not use CHECK_1.
22299         (__new_msgctl): Likewise.
22300         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
22301         <bp-checks.h>.
22302         (__gettimeofday): Do not use CHECK_1.
22303         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
22304         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
22305         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
22306         <bp-checks.h>.
22307         (__gettimeofday): Do not use CHECK_1.
22308         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
22309         (__old_shmctl): Do not use CHECK_1_NULL_OK.
22310         (__new_shmctl): Do not use CHECK_1.
22311         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
22312         <bp-checks.h>.
22313         (do_sigtimedwait): Do not use CHECK_1.
22314         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
22315         <bp-checks.h>.
22316         (do_sigwaitinfo): Do not use CHECK_1.
22317         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
22318         <bp-checks.h>.
22319         (msgctl): Do not use CHECK_1.
22320         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
22321         <bp-checks.h>.
22322         (shmctl): Do not use CHECK_1.
22323         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
22324         (ustat): Do not use CHECK_1.
22325         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
22326         <bp-checks.h>.
22327         (__fxstat): Do not use CHECK_1.
22328         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
22329         <bp-checks.h>.
22330         (__fxstatat): Do not use CHECK_1.
22331         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
22332         <bp-checks.h>.
22333         (__lxstat): Do not use CHECK_1.
22334         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
22335         <bp-checks.h>.
22336         (__xstat): Do not use CHECK_1.
22337         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
22338         (__xstat): Do not use CHECK_1.
22339         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
22340         (___xstat64): Do not use CHECK_1.
22341
22342         [BZ #13550]
22343         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
22344         definitions.
22345         (CHECK_BOUNDS_HIGH): Likewise.
22346         * string/strcpy.c: Do not include <bp-checks.h>.
22347         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
22348
22349 2013-02-07  Roland McGrath  <roland@hack.frob.com>
22350
22351         * nscd/nscd-client.h (__nscd_drop_map_ref):
22352         Add __attribute__ ((unused)).
22353         * nis/nss-nisplus.h (niserr2nss): Likewise.
22354
22355         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
22356         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
22357
22358         * csu/libc-tls.c (init_static_tls, init_slotinfo):
22359         Remove inline keyword.
22360         * include/rounding-mode.h (round_away): Likewise.
22361         * libio/wfileops.c (adjust_wide_data): Likewise.
22362         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
22363         (__m128i_strloadu_tolower): Likewise.
22364         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
22365         (__m128i_strloadu_tolower): Likewise.
22366         * time/mktime.c (ydhms_diff): Likewise.
22367         * locale/elem-hash.h (elem_hash): Likewise.
22368         * locale/setlocale.c (setdata): Likewise.
22369         * posix/regex_internal.h (re_string_char_size_at): Likewise.
22370         (re_string_wchar_at): Likewise.
22371         (bitset_not, bitset_merge, bitset_mask): Likewise.
22372         [!(__GNUC__ > 3)] (inline): Remove macro.
22373         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
22374         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
22375         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22376         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22377         * string/memcmp.c (memcmp_bytes): Likewise.
22378         * locale/programs/locarchive.c (compute_hashval): Likewise.
22379         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
22380         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
22381         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
22382         * nss/getent.c (print_rpc, print_protocols): Likewise.
22383         (print_passwd, print_group, print_aliases): Likewise.
22384         * nis/nss-nisplus.h (niserr2nss): Likewise.
22385         * nscd/connections.c (restart_p): Likewise.
22386         Change return type to bool.
22387
22388 2013-02-05  Roland McGrath  <roland@hack.frob.com>
22389
22390         * Makeconfig (all-Depend-files): Add existing
22391         $(sorted-subdirs:=/Depend) files.
22392         (all-subdirs): Remove nss.
22393         * sysdeps/unix/inet/Subdirs: Add it here instead.
22394         * hesiod/Depend: New file.
22395
22396         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
22397         instead of calling alloca.
22398
22399         * io/lseek.c (__lseek): Rename to __libc_lseek.
22400         Define __lseek as an alias.
22401
22402         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
22403
22404 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
22405
22406         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
22407         else clause and remove check for non-standard endianness.
22408
22409 2013-02-04  David S. Miller  <davem@davemloft.net>
22410
22411         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22412
22413 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
22414
22415         [BZ #13550]
22416         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
22417         (__ubp_memchr): Remove prototype.
22418         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
22419         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22420         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
22421         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22422         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
22423         Remove alias.
22424         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
22425         (__ubp_memchr): Likewise.
22426         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
22427         (__ubp_memchr): Likewise.
22428         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
22429         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
22430         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
22431         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
22432         CHECK_STRING.
22433         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
22434         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
22435         (__getcwd): Do not use CHECK_STRING.
22436         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22437         <bp-checks.h>.
22438         (__real_chown): Do not use CHECK_STRING.
22439         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
22440         <bp-checks.h>.
22441         (fchownat): Do not use CHECK_STRING.
22442         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
22443         CHECK_STRING.
22444         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22445         <bp-checks.h>.
22446         (__lchown): Do not use CHECK_STRING.
22447         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22448         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22449         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22450         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
22451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22452         include <bp-checks.h>.
22453         (truncate64): Do not use CHECK_STRING.
22454         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22455         <bp-checks.h>.
22456         (__real_chown): Do not use CHECK_STRING.
22457         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22458         <bp-checks.h>.
22459         (__lchown): Do not use CHECK_STRING.
22460         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22461         <bp-checks.h>.
22462         (__chown): Do not use CHECK_STRING.
22463         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
22464         <bp-checks.h>.
22465         (truncate64): Do not use CHECK_STRING.
22466         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
22467         Likewise.
22468         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
22469         (__xmknod): Do not use CHECK_STRING.
22470         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
22471         <bp-checks.h>.
22472         (__xmknodat): Do not use CHECK_STRING.
22473         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22474         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
22475
22476 2013-02-04  Andreas Schwab  <schwab@suse.de>
22477
22478         [BZ #14142]
22479         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
22480         * include/netdb.h: Likewise for h_errno.
22481         * elf/tst-stackguard1.c: Include <tls.h>.
22482
22483 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
22484
22485         * elf/link.h (struct link_map): Extend the l_addr comment.
22486         * include/link.h (struct link_map): Likewise.
22487
22488 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
22489
22490         [BZ #13550]
22491         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
22492         (BOUNDED_1): Remove macro.
22493         * debug/backtrace.c: Don't include <bp-checks.h>.
22494         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
22495         (__backtrace): Likewise.
22496         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
22497         <bp-checks.h>.
22498         (__backtrace): Don't use BOUNDED_1.
22499         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
22500         <bp-checks.h>.
22501         (__backtrace): Don't use BOUNDED_1.
22502         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
22503         (__backtrace): Don't use BOUNDED_1.
22504         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
22505         (shmat): Don't use BOUNDED_N.
22506
22507 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
22508
22509         [BZ #13550]
22510         * sysdeps/generic/bp-start.h: Remove file.
22511         * csu/libc-start.c: Don't include <bp-start.h>.
22512         (LIBC_START_MAIN): Set up __environ directly instead of using
22513         INIT_ARGV_and_ENVIRON.
22514         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
22515         <bp-start.h>.
22516
22517         [BZ #13550]
22518         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
22519         definitions.
22520         (CHECK_FCNTL): Likewise.
22521         (CHECK_N_PAGES): Likewise.
22522
22523         [BZ #13550]
22524         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
22525         definitions.
22526         (CHECK_SIGSET_NULL_OK): Likewise.
22527         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
22528         <bp-checks.h>.
22529         (sigpending): Don't use CHECK_SIGSET.
22530         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
22531         <bp-checks.h>.
22532         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22533         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
22534         <bp-checks.h>.
22535         (do_sigsuspend): Don't use CHECK_SIGSET.
22536         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
22537         use CHECK_SIGSET.
22538         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
22539         (do_sigwait): Don't use CHECK_SIGSET.
22540         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
22541         use CHECK_SIGSET.
22542         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
22543         include <bp-checks.h>.
22544         (sigpending): Don't use CHECK_SIGSET.
22545         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
22546         include <bp-checks.h>.
22547         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22548         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
22549         <bp-checks.h>.
22550         (sigpending): Don't use CHECK_SIGSET.
22551         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
22552         <bp-checks.h>.
22553         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22554
22555         [BZ #13550]
22556         * sysdeps/generic/bp-semctl.h: Remove file.
22557         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
22558         <bp-checks.h> and <bp-semctl.h>.
22559         (__old_semctl): Don't use CHECK_SEMCTL.
22560         (__new_semctl): Likewise.
22561         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
22562         and <bp-semctl.h>.
22563         (__old_semctl): Don't use CHECK_SEMCTL.
22564         (__new_semctl): Likewise.
22565         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
22566         <bp-checks.h> and <bp-semctl.h>.
22567         (__old_semctl): Don't use CHECK_SEMCTL.
22568         (__new_semctl): Likewise.
22569         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
22570         <bp-checks.h> and <bp-semctl.h>.
22571         (semctl): Don't use CHECK_SEMCTL.
22572
22573         [BZ #13550]
22574         * Makerules (elide-bp-thunks): Remove variable.
22575         (elide-routines.oS): Don't use $(elide-bp-thunks).
22576         (elide-routines.os): Likewise.
22577         (elide-routines.o): Likewise.
22578         (elide-routines.op): Likewise.
22579         (elide-routines.og): Likewise.
22580         (objects): Don't use $(bp-thunks).
22581         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
22582         include.
22583         (common-generated): Do not add s-proto-bp.d.
22584         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
22585         (int): Likewise.
22586         (typ): Likewise.
22587         Do not generate makefile rules for bounded-pointer thunks.
22588         * sysdeps/generic/bp-thunks.h: Remove file.
22589         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
22590         * sysdeps/unix/s-proto-bp.S: Likewise.
22591
22592         [BZ #15062]
22593         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
22594         parts of result separately when argument is not close to line from
22595         -i to i and one part of argument is small.
22596         * math/k_casinhf.c (__kernel_casinhf): Likewise.
22597         * math/k_casinhl.c (__kernel_casinhl): Likewise.
22598         * math/libm-test.inc (cacos_test): Add more tests.
22599         (casin_test): Likewise.
22600         (casinh_test): Likewise.
22601         * sysdeps/i386/fpu/libm-test-ulps: Update.
22602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22603
22604 2013-01-31  David S. Miller  <davem@davemloft.net>
22605
22606         * po/de.po: Update from translation team.
22607
22608 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
22609
22610         * time/tzfile.c: Include stdint.h for SIZE_MAX.
22611
22612 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
22613
22614         * configure.in (_AC_PROG_CC_C89): New definition.
22615         * configure: Regenerate.
22616
22617         * configure.in (AC_PROG_CPP): New definition.
22618         * configure: Regenerate.
22619
22620 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22621
22622         * debug/tst-backtrace.h: New file.
22623         * debug/tst-backtrace2.c: Include tst-backtrace.h.
22624         (ret): Remove variable.
22625         (x): Likewise.
22626         (FAIL): Remove macro.
22627         (NO_INLINE): Likewise.
22628         (fn1): Use match function instead of strstr.
22629         * debug/tst-backtrace3.c: Include tst-backtrace.h.
22630         (ret): Remove variable.
22631         (x): Likewise.
22632         (FAIL): Remove macro.
22633         (NO_INLINE): Likewise.
22634         (fn): Use match function instead of strstr.
22635         * debug/tst-backtrace4.c: Include tst-backtrace.h.
22636         (ret): Remove variable.
22637         (x): Likewise.
22638         (FAIL): Remove macro.
22639         (NO_INLINE): Likewise.
22640         (handle_signal): Use match function instead of strstr.
22641         * debug/tst-backtrace5.c: Include tst-backtrace.h.
22642         (ret): Remove variable.
22643         (x): Likewise.
22644         (FAIL): Remove macro.
22645         (NO_INLINE): Likewise.
22646         (handle_signal): Use match function instead of strstr.
22647
22648 2013-01-23  Roland McGrath  <roland@hack.frob.com>
22649
22650         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
22651
22652 2013-01-23  David S. Miller  <davem@davemloft.net>
22653
22654         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
22655         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
22656         argument of CAS if possible.
22657         * sysdeps/sparc/sparc64/bits/atomic.h
22658         (__arch_compare_and_exchange_val_32_acq): Likewise.
22659         (__arch_compare_and_exchange_val_64_acq): Likewise.
22660
22661 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
22662
22663         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
22664         * sysdeps/posix/ulimit.c: ... this.
22665         Include <limits.h>.
22666         * sysdeps/unix/bsd/ulimit.c: Remove file.
22667
22668 2013-01-23  Adam Conrad  <adconrad@0c3.net>
22669
22670         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
22671         (LDFLAGS-tst-array5): Likewise.
22672
22673 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22674
22675         [BZ #15036]
22676         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
22677         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
22678         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
22679         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
22680
22681 2013-01-21  David S. Miller  <davem@davemloft.net>
22682
22683         * sysdeps/sparc/backtrace.c: New file.
22684         * sysdeps/sparc/sparc32/backtrace.h: New file.
22685         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
22686         * sysdeps/sparc/sparc64/backtrace.h: New file.
22687         * sysdeps/sparc/sparc64/backtrace.c: Delete.
22688         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
22689         -funwind-tables.
22690
22691 2013-01-21  Andreas Schwab  <schwab@suse.de>
22692
22693         [BZ #15020]
22694         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
22695         closed its stdout.
22696
22697 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
22698
22699         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
22700         "mpa2.h".
22701         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22702
22703 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
22704             Mark Mitchell  <mark@codesourcery.com>
22705             Tom de Vries  <tom@codesourcery.com>
22706             Paul Pluzhnikov  <ppluzhnikov@google.com>
22707
22708         * debug/tst-backtrace2.c: New file.
22709         * debug/tst-backtrace3.c: Likewise.
22710         * debug/tst-backtrace4.c: Likewise.
22711         * debug/tst-backtrace5.c: Likewise.
22712         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
22713         (CFLAGS-tst-backtrace3.c): Likewise.
22714         (CFLAGS-tst-backtrace4.c): Likewise.
22715         (CFLAGS-tst-backtrace5.c): Likewise.
22716         (LDFLAGS-tst-backtrace2): Likewise.
22717         (LDFLAGS-tst-backtrace3): Likewise.
22718         (LDFLAGS-tst-backtrace4): Likewise.
22719         (LDFLAGS-tst-backtrace5): Likewise.
22720         (tests): Add new tests tst-backtrace2, tst-backtrace3,
22721         tst-backtrace4 and tst-backtrace5.
22722
22723 2013-01-18  Anton Blanchard  <anton@samba.org>
22724             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22725
22726         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
22727         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
22728         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
22729         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
22730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22731         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
22732         "+r" and remove output regs list as redundant.  Add explicit inline
22733         asm to specify register of return val to work around compiler codegen
22734         bug.  Remove (int) cast on return value.  Add return type parameter to
22735         use in macro so that this macro does not truncate return value for
22736         64-bit values.
22737         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
22738         pass to INTERNAL_VSYSCALL_NCS.
22739         (INLINE_VSYSCALL): Add 'long int' as return type to
22740         INTERNAL_VSYSCALL_NCS macro invocation.
22741         (INTERNAL_VSYSCALL): Add 'long int' as return type to
22742         INTERNAL_VSYSCALL_NCS macro invocation.
22743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22744
22745 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22746
22747         [BZ #14496]
22748         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
22749         Fix application of SIMD FP exception mask.
22750
22751         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
22752         mp_no from a power of two.
22753         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
22754         __mpexp_twomm1.  Use __pow_mp.
22755
22756         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
22757         multiplication.
22758
22759 2013-01-17  David S. Miller  <davem@davemloft.net>
22760
22761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22762
22763 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22764
22765         [BZ #15023]
22766         * include/complex.h: Condition contents on [!_COMPLEX_H].
22767         (__kernel_casinhf): New prototype.
22768         (__kernel_casinh): Likewise.
22769         (__kernel_casinhl): Likewise.
22770         * math/Makefile (libm_calls): Add k_casinh.
22771         * math/k_casinh.c: New file.
22772         * math/k_casinhf.c: Likewise.
22773         * math/k_casinhl.c: Likewise.
22774         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
22775         finite nonzero arguments.
22776         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
22777         finite nonzero arguments.
22778         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
22779         finite nonzero arguments.
22780         * math/s_casinh.c: Do not include <float.h>.
22781         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
22782         * math/s_casinhf.c: Do not include <float.h>.
22783         (__casinhf): Move code for finite nonzero arguments to
22784         k_casinhf.c.
22785         * math/s_casinhl.c: Do not include <float.h>.
22786         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
22787         redefine.
22788         (__casinhl): Move code for finite nonzero arguments to
22789         k_casinhl.c.
22790         * math/libm-test.inc (cacos_test): Add more tests.
22791         * sysdeps/i386/fpu/libm-test-ulps: Update.
22792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22793
22794 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
22795
22796         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
22797         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
22798         [!HAVE_MREMAP]: Remove [defined linux] case.
22799         * malloc/arena.c: Do not include <malloc-sysdep.h>.
22800
22801 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
22802
22803         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
22804
22805 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22806
22807         * elf/elf.h (R_386_SIZE32): New relocation.
22808         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
22809         R_386_SIZE32.
22810         (elf_machine_rela): Likewise.
22811         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
22812         R_X86_64_SIZE64 and R_X86_64_SIZE32.
22813
22814 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22815
22816         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
22817         (FP_FAST_FMA): Do not define.
22818         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
22819         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
22820         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
22821         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
22822         !_SOFT_FLOAT]: Likewise.
22823         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
22824         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
22825         value.
22826         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
22827         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
22828         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
22829         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
22830         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
22831         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
22832         file.
22833
22834 2013-01-16  Andreas Schwab  <schwab@suse.de>
22835
22836         [BZ #14327]
22837         * include/stdlib.h (__mktemp): Add declaration.
22838         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
22839         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
22840
22841 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22842
22843         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
22844         definitions.
22845         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22846         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
22847         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
22848         definitions here.
22849         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
22850         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
22851         definitions.
22852         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
22853         and ONE.
22854         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
22855         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
22856         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
22857         definitions.
22858         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
22859         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
22860         definitions.
22861         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22862
22863         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
22864
22865 2013-01-15  David S. Miller  <davem@davemloft.net>
22866
22867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22868         trunc{,f} to libm-sysdep_routes.
22869         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
22871         file.
22872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
22873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
22874         file.
22875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
22876         file.
22877         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
22878         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
22879         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
22880         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
22881         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
22882         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
22883         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
22884         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
22885
22886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22887         nearbyint{,f} to libm-sysdep_routes.
22888         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
22890         New file.
22891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
22892         file.
22893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
22894         New file.
22895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
22896         file.
22897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
22898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
22899         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
22900         file.
22901         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
22902         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
22903         file.
22904         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
22905         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
22906         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
22907
22908         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
22909         libc_feholdexcept and libc_fesetenv.
22910
22911 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
22912
22913         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
22914
22915 2013-01-14  David S. Miller  <davem@davemloft.net>
22916
22917         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
22918         (SPARC_ASM_VIS2_IFUNC): Likewise.
22919         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
22920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
22921         use of 'siam' instruction.
22922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
22923         Likewise.
22924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
22925         Likewise.
22926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
22927         Likewise.
22928         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
22929         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
22930         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
22931         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
22932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
22933         file.
22934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
22935         file.
22936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
22937         file.
22938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
22939         file.
22940         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
22941         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
22942         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
22943         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
22944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
22945         new VIS2 routines.
22946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
22947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
22949         Likewise.
22950         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
22951         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
22952         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
22953         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
22954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
22955         routines to libm-sysdep_routines.
22956         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22957
22958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22959         fdim/fdimf to libm-sysdep_routines.
22960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
22961         file.
22962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
22963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
22964         file.
22965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
22966         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
22967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
22968         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
22969         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
22970         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
22971         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
22972
22973 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22974
22975         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
22976         to optimize copies.
22977
22978         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
22979         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22980         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22981
22982         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
22983         local variable MPTWO.
22984         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
22985         Likewise.
22986
22987 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22988
22989         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
22990         GLOB_NOESCAPE.
22991
22992 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22993
22994         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
22995
22996 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22997
22998         * manual/pattern.texi (glob_t): Document gl_flags.
22999         (glob64_t): Likewise.
23000
23001 2013-01-11  David S. Miller  <davem@davemloft.net>
23002
23003         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
23004         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
23005         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
23006         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
23007         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
23008         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
23009         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
23010         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
23011         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
23012         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
23013         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
23014         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
23015         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
23016
23017         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23018         sparc V9 rather than using V8 code.
23019         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23020         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23021
23022         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
23023         Move to...
23024         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
23025         Here.
23026
23027 2013-01-11  Roland McGrath  <roland@hack.frob.com>
23028
23029         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
23030         not in the main loop.
23031         * configure: Regenerated.
23032
23033 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
23034
23035         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
23036         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
23037         to just #else.
23038         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
23039         [!__GLIBC_HAVE_LONG_LONG] case.
23040         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
23041         condition to just #else.
23042         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
23043         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
23044         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
23045         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
23046         unconditional.
23047         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
23048         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23049         #elif condition to just #else.
23050         * sysdeps/unix/sysv/linux/sys/sysmacros.h
23051         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
23052         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23053         #elif condition to just #else.
23054
23055 2013-01-11  Steve Ellcey  <sellcey@mips.com>
23056
23057         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
23058         (EF_MIPS_ARCH_64): Fix value.
23059         (EF_MIPS_ARCH_32R2): New.
23060         (EF_MIPS_ARCH_64R2): New.
23061
23062 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
23063
23064         * Makeconfig (+link-pie-before-libc): New.
23065         (+link-pie-after-libc): Likewise.
23066         (+link-pie-tests): Likewise.
23067         (+link-pie): Rewritten.
23068         (link-before-libc): Remove $(config-LDFLAGS).
23069         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
23070         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
23071         (config-LDFLAGS): Renamed to ...
23072         (rtld-LDFLAGS): This.
23073         (rtld-tests-LDFLAGS): New macro.
23074         (link-libc-rpath-link): Likewise.
23075         (link-libc-tests-rpath-link): Likewise.
23076         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
23077         (link-libc): Prepand $(link-libc-rpath-link).
23078         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
23079         (test-program-prefix): New macro.
23080         (test-via-rtld-prefix): Likewise.
23081         (test-program-cmd): Likewise.
23082         (host-test-program-cmd): Likewise.
23083         * Makefile ($(common-objpfx)testrun.sh): Replace
23084         $(run-program-prefix) with $(test-program-prefix).
23085         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
23086         $(rtld-LDFLAGS).
23087         ($(common-objpfx)shlib.lds): Likewise.
23088         (build-module-helper): Likewise.
23089         ($(common-objpfx)format.lds): Likewise.
23090         * Rules (binaries-pie-tests): New.
23091         (binaries-pie-notests): Likewise.
23092         (binaries-pie): Rewritten.
23093         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
23094         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
23095         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
23096         (make-test-out): Replace $(host-built-program-cmd) with
23097         $(host-test-program-cmd).
23098         * config.make.in (build-hardcoded-path-in-tests): New variable.
23099         * configure.in (--enable-hardcoded-path-in-tests): New configure
23100         option.
23101         (hardcoded_path_in_tests): New AC_SUBST.
23102         * configure: Regenerated.
23103         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
23104         $(built-program-cmd) with $(test-program-cmd).
23105         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
23106         (test_program_cmd): This.
23107         * elf/Makefile ($(objpfx)order.out): Run test with
23108         $(test-program-prefix).
23109         ($(objpfx)order2.out): Likewise.
23110         ($(objpfx)tst-initorder.out): Likewise.
23111         ($(objpfx)tst-initorder2.out): Likewise.
23112         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
23113         $(test-program-cmd).
23114         ($(objpfx)tst-array1-static.out): Likewise.
23115         ($(objpfx)tst-array2.out): Likewise.
23116         ($(objpfx)tst-array3.out): Likewise.
23117         ($(objpfx)tst-array4.out): Likewise.
23118         ($(objpfx)tst-array5.out): Likewise.
23119         ($(objpfx)tst-array5-static.out): Likewise.
23120         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
23121         $(test-program-cmd).
23122         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
23123         $(run-program-prefix) with $(test-program-prefix).
23124         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
23125         (test_program_prefix): This.
23126         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
23127         $(run-program-prefix) with $(test-program-prefix).
23128         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
23129         (test_program_prefix): This.
23130         * iconvdata/tst-tables.sh: Likewise.
23131         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
23132         $(run-program-prefix) with $(test-program-prefix).
23133         ($(objpfx)tst-translit.out): Likewise.
23134         ($(objpfx)tst-gettext2.out): Likewise.
23135         ($(objpfx)tst-gettext4.out): Likewise.
23136         ($(objpfx)tst-gettext6.out): Likewise.
23137         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
23138         (test_program_prefix): This.
23139         * intl/tst-gettext2.sh: Likewise.
23140         * intl/tst-gettext4.sh  Likewise.
23141         * intl/tst-gettext6.sh: Likewise.
23142         * intl/tst-translit.sh: Likewise.
23143         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
23144         with $(test-program-cmd).
23145         * libio/Makefile ($(objpfx)test-freopen.out): Replace
23146         $(run-program-prefix) with $(test-program-prefix).
23147         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
23148         (test_program_prefix): This.
23149         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
23150         $(run-program-prefix) with $(test-program-prefix).
23151         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
23152         (test_program_prefix): This.
23153         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
23154         * posix/Makefile ($(objpfx)globtest.out): Replace
23155         $(run-via-rtld-prefix) and $(test-wrapper) with
23156         $(test-program-prefix) and $(test-via-rtld-prefix).
23157         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
23158         $(test-program-prefix).
23159         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
23160         $(host-test-program-cmd).
23161         (tst-spawn-ARGS): Likewise.
23162         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
23163         $(test-program-prefix).
23164         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
23165         (test_via_rtld_prefix): This.
23166         (test_wrapper): Renamed to ...
23167         (test_program_prefix): This.
23168         (run_program_prefix): Replaced by test_program_prefix.
23169         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
23170         (test_program_prefix): This.
23171         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
23172         with $(host-test-program-cmd).
23173         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
23174         $(run-program-prefix) with $(test-program-prefix).
23175         ($(objpfx)tst-printf.out): Likewise.
23176         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
23177         $(test-program-cmd).
23178         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
23179         (test_program_prefix): This.
23180         * stdio-common/tst-unbputc.sh: Likewise.
23181         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
23182         $(run-program-prefix) with $(test-program-prefix).
23183         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
23184         (test_program_prefix): This.
23185         * string/Makefile ($(objpfx)tst-svc.out):  Replace
23186         $(built-program-cmd) with $(test-program-cmd).
23187
23188 2013-01-11  Andreas Jaeger  <aj@suse.de>
23189
23190         [BZ #15003]
23191         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
23192         value. Sync with Linux 3.7.
23193
23194 2013-01-10  David S. Miller  <davem@davemloft.net>
23195
23196         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
23197         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23198         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23199
23200 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23201
23202         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
23203         never set.
23204         * configure: Regenerated.
23205
23206 2013-01-10  David S. Miller  <davem@davemloft.net>
23207
23208         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23209         sparc V9 rather than using V8 code.
23210         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23211         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23212
23213 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23214
23215         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
23216         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
23217         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
23218         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
23219         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
23220         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
23221         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
23222         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
23223         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
23224         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
23225         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
23226         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
23227         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
23228         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
23229         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
23230         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
23231         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
23232         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
23233         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
23234         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
23235         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
23236         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
23237         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
23238         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
23239         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
23240         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
23241         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
23242
23243 2013-01-10  David S. Miller  <davem@davemloft.net>
23244
23245         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23246
23247 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23248
23249         * posix/Makefile (tests-static): New variable.
23250         (tests): Add $(tests-static).
23251         (tst-exec-static-ARGS): New variable.
23252         (tst-spawn-static-ARGS): Likewise.
23253         * posix/tst-exec-static.c: New file.
23254         * posix/tst-spawn-static.c: Likewise.
23255         * posix/tst-exec.c: Support run directly.
23256         * posix/tst-spawn.c: Likewise.
23257
23258 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
23259
23260         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
23261         long.
23262         * math/bits/mathcalls.h (llrint): Likewise.
23263         (llround): Likewise.
23264         * stdlib/stdlib.h (struct drand48_data): Likewise.
23265         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
23266         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
23267         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
23268         Likewise.
23269         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
23270         Likewise.
23271         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
23272         (elf_greg_t): Likewise.
23273         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
23274         (__jmp_buf): Likewise.
23275         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
23276         definitions.
23277         (llrint): Likewise, for all definitions.
23278         (llrintl): Likewise.
23279
23280         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
23281         Remove [__GNUC__] condition.
23282         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
23283         condition to just [__USE_ISOC99].
23284         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
23285
23286 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23287
23288         [BZ #14200]
23289         * sysdeps/unix/sysv/linux/x86/bits/environments.h
23290         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
23291         defined.
23292         (_POSIX_V6_ILP32_OFF32): Likewise.
23293         (_XBS5_ILP32_OFF32): Likewise.
23294         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
23295         (__ILP32_OFFBIG_LDFLAGS): Likewise.
23296
23297 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23298
23299         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
23300
23301         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
23302         doubles __mpexp_twomm1.  Adjust usage.
23303         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
23304         Remove.
23305
23306 2013-01-10  Andreas Schwab  <schwab@suse.de>
23307
23308         [BZ #14964]
23309         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
23310         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
23311
23312 2013-01-09  David S. Miller  <davem@davemloft.net>
23313
23314         [BZ #15003]
23315         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
23316         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
23317         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
23318         (TCP_FASTOPEN): Define.
23319         (tcp_repair_opt): New structure.
23320         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
23321         enum values.
23322         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
23323         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
23324         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
23325         (tcp_cookie_transactions): New structure.
23326
23327 2013-01-09  Anton Blanchard  <anton@samba.org>
23328
23329         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
23330         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
23331         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
23332         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
23333
23334 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
23335
23336         * include/features.h (__USE_ANSI): Remove.
23337
23338 2013-01-09  Roland McGrath  <roland@hack.frob.com>
23339
23340         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
23341
23342         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
23343
23344 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
23345
23346         * sysdeps/s390/fpu/libm-test-ulps: Update.
23347
23348         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23349
23350         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
23351         (__acr): Likewise.
23352         (__cpy): Likewise.
23353         (norm): Likewise.
23354         (denorm): Likewise.
23355         (__mp_dbl): Likewise.
23356         (__dbl_mp): Likewise.
23357         (add_magnitudes): Likewise.
23358         (sub_magnitudes): Likewise.
23359         (__add): Likewise.
23360         (__sub): Likewise.
23361         (__mul): Likewise.
23362         (__inv): Likewise.
23363         (__dvd): Likewise.
23364         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
23365         (__acr): Likewise.
23366         (__cpy): Likewise.
23367         (norm): Likewise.
23368         (denorm): Likewise.
23369         (__mp_dbl): Likewise.
23370         (__dbl_mp): Likewise.
23371         (add_magnitudes): Likewise.
23372         (sub_magnitudes): Likewise.
23373         (__add): Likewise.
23374         (__sub): Likewise.
23375         (__mul): Likewise.
23376         (__inv): Likewise.
23377         (__dvd): Likewise.
23378         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
23379         (__acr): Likewise.
23380         (__cpy): Likewise.
23381         (norm): Likewise.
23382         (denorm): Likewise.
23383         (__mp_dbl): Likewise.
23384         (__dbl_mp): Likewise.
23385         (add_magnitudes): Likewise.
23386         (sub_magnitudes): Likewise.
23387         (__add): Likewise.
23388         (__sub): Likewise.
23389         (__mul): Likewise.
23390         (__inv): Likewise.
23391         (__dvd): Likewise.
23392
23393 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
23394
23395         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
23396         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
23397         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
23398         2 && __USE_EXTERN_INLINES]: Likewise.
23399
23400 2013-01-08  Andreas Jaeger  <aj@suse.de>
23401
23402         [BZ# 14985]
23403         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
23404         Remove.
23405         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23406         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23407
23408 2013-01-07  Anton Blanchard  <anton@samba.org>
23409
23410         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
23411         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
23412         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
23413         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
23414         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
23415         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23416         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
23417         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23418         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23419         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23420         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23421         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23422         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23423         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
23424         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
23425         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23426         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23427         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
23428         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
23429         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
23430         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
23431         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
23432         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
23433         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
23434         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
23435         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
23436         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23437         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
23438         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
23439         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23440         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
23441         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23442         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23443         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
23444         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
23445         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
23446         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
23447         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
23448         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
23449         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
23450         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
23451         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23452         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
23453
23454 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
23455
23456         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
23457         (__MALLOC_PMT): Likewise.
23458         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
23459         [__GNUC__], only on [_LIBC].
23460         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23461         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
23462         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23463         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
23464         forward declaration.
23465         (realloc_hook_ini): Likewise.
23466         (memalign_hook_ini): Likewise.
23467         (__libc_memalign): Do not use __MALLOC_PMT in variable
23468         declaration.
23469         (__libc_valloc): Likewise.
23470         (__libc_pvalloc): Likewise.
23471         (__libc_calloc): Likewise.
23472         (__posix_memalign): Likewise.
23473
23474         [BZ #14996]
23475         * math/s_casinh.c: Include <float.h>.
23476         (__casinh): Do not do computation with squaring and square root
23477         for large arguments.
23478         * math/s_casinhf.c: Include <float.h>.
23479         (__casinhf): Do not do computation with squaring and square root
23480         for large arguments.
23481         * math/s_casinhl.c: Include <float.h>.
23482         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
23483         (__casinhl): Do not do computation with squaring and square root
23484         for large arguments.
23485         * math/libm-test.inc (casin_test): Add more tests.
23486         (casinh_test): Likewise.
23487         * sysdeps/i386/fpu/libm-test-ulps: Update.
23488         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23489
23490 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23491
23492         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
23493         (__x86_64_raw_data_cache_size): Likewise.
23494         (__x86_64_data_cache_size_half): Likewise.
23495         (__x86_64_raw_data_cache_size_half): Likewise.
23496         (__x86_64_shared_cache_size): Likewise.
23497         (__x86_64_raw_shared_cache_size): Likewise.
23498         (__x86_64_shared_cache_size_half): Likewise.
23499         (__x86_64_raw_shared_cache_size_half): Likewise.
23500         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
23501         to ...
23502         (__x86_data_cache_size): This.
23503         (__x86_64_raw_data_cache_size): Renamed to ...
23504         (__x86_raw_data_cache_size): This.
23505         (__x86_64_data_cache_size_half): Renamed to ...
23506         (__x86_data_cache_size_half): This.
23507         (__x86_64_raw_data_cache_size_half): Renamed to ...
23508         (__x86_raw_data_cache_size_half): This.
23509         (__x86_64_shared_cache_size): Renamed to ...
23510         (__x86_shared_cache_size): This.
23511         (__x86_64_raw_shared_cache_size): Renamed to ...
23512         (__x86_raw_shared_cache_size): This.
23513         (__x86_64_shared_cache_size_half): Renamed to ...
23514         (__x86_shared_cache_size_half): This.
23515         (__x86_64_raw_shared_cache_size_half): Renamed to ...
23516         (__x86_raw_shared_cache_size_half): This.
23517         * sysdeps/x86_64/memcpy.S: Updated.
23518         * sysdeps/x86_64/memset.S: Likewise.
23519         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23520         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23521         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23522
23523 2013-01-04  David S. Miller  <davem@davemloft.net>
23524
23525         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23526
23527 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
23528
23529         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
23530         1 to avoid redefinition warning.
23531         (__USE_GNU): Don't define.
23532         (init_signaling_nan): Protoize.
23533
23534         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23535
23536 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23537
23538         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
23539         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
23540         (__cpymn): Likewise.
23541         (norm): Remove commented code.
23542         (denorm): Likewise.
23543         (__mp_dbl): Likewise.
23544         (__inv): Likewise.
23545         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
23546         (__cpymn): Likewise.
23547         (norm): Remove commented code.
23548         (denorm): Likewise.
23549         (__mp_dbl): Likewise.
23550         (__inv): Likewise.
23551
23552         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
23553         mp_no value for 1.0 and 2.0.
23554         (norm): Use RADIXI instead of radixi.d.
23555         (denorm): Likewise.
23556         (__mul): Use 0.0 instead of zero.d.
23557         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
23558         mp_no value for 1.0 and 2.0.
23559         (norm): Use RADIXI instead of radixi.d.
23560         (denorm): Likewise.
23561         (__mul): Use 0.0 instead of zero.d.
23562
23563 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
23564
23565         [BZ #14994]
23566         * math/s_casinh.c (__casinh): Reduce finite argument to first
23567         quadrant then set signs of results at the end.
23568         * math/s_casinhf.c (__casinhf): Likewise.
23569         * math/s_casinhl.c (__casinhl): Likewise.
23570         * math/libm-test.inc (casin_test): Add more tests.
23571         (casinh_test): Likewise.
23572         * sysdeps/i386/fpu/libm-test-ulps: Update.
23573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23574
23575 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23576
23577         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
23578
23579         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
23580
23581         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
23582         declarations.
23583         (denorm): Likewise.
23584         (__mp_dbl): Likewise.
23585         (__inv): Likewise.
23586
23587         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
23588         and adjust the header comment.
23589
23590         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
23591         variable name from declaration.
23592
23593 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23594
23595         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23596         Initialize COMMON_CPUID_INDEX_7 element.
23597         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
23598         (CPUID_RTM): Likewise.
23599         (HAS_RTM): Likewise.
23600         (COMMON_CPUID_INDEX_7): New enum.
23601
23602 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
23603
23604         [BZ #14981]
23605         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
23606         size is zero, record memory as freed.
23607
23608 2013-01-03  Andreas Jaeger  <aj@suse.de>
23609
23610         * po/ia.po: Add new Interlingua translation.
23611
23612 2012-01-03  Allan McRae  <allan@archlinux.org>
23613
23614         * locale/programs/localedef.c: Fix description of '--posix' flag.
23615
23616 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
23617
23618         * NEWS: Update dates in second copyright notice.
23619         * README: Update copyright dates in example.
23620         * manual/libc.texinfo: Update copyright dates.
23621         * scripts/test-installation.pl: Update copyright date in --version
23622         output.
23623
23624         * hurd/ctty-input.c: Fix copyright notice formatting.
23625         * hurd/ctty-output.c: Likewise.
23626         * hurd/dtable.c: Likewise.
23627         * hurd/hurd-raise.c: Likewise.
23628         * hurd/hurdprio.c: Likewise.
23629         * hurd/msgportdemux.c: Likewise.
23630         * misc/sys/file.h: Likewise.
23631         * misc/sys/ioctl.h: Likewise.
23632         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
23633         * sysdeps/mach/hurd/chdir.c: Likewise.
23634         * sysdeps/mach/hurd/fchdir.c: Likewise.
23635         * sysdeps/mach/hurd/rename.c: Likewise.
23636         * sysdeps/mach/hurd/rmdir.c: Likewise.
23637         * sysdeps/mach/hurd/seekdir.c: Likewise.
23638         * sysdeps/mach/hurd/setsid.c: Likewise.
23639         * sysdeps/posix/wait3.c: Likewise.
23640
23641         * All files with FSF copyright notices: Update copyright dates
23642         using scripts/update-copyrights.
23643         * intl/plural.c: Regenerated.
23644         * locale/programs/charmap-kw.h: Likewise.
23645         * locale/programs/locfile-kw.h: Likewise.
23646
23647 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
23648
23649         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
23650         four values.
23651
23652         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
23653         calculation loop and add branch prediction.
23654
23655         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
23656         check access beyond bounds of m1np.
23657
23658         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23659         MPTWO.
23660         (__inv): Remove local variable MPTWO to use the global
23661         constant.
23662         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
23663         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23664         variable MPTWO.
23665         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
23666         MP3HALFS static const.
23667
23668 2013-01-01  David S. Miller  <davem@davemloft.net>
23669
23670         * po/ca.po: Update from translation team.
23671
23672 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
23673
23674         * scripts/update-copyrights: New file.
23675         * Makeconfig: Reformat copyright notice.
23676         * ctype/ctype.h: Likewise.
23677         * debug/swprintf_chk.c: Likewise.
23678         * elf/dl-cache.c: Likewise.
23679         * elf/dl-debug.c: Likewise.
23680         * elf/dl-object.c: Likewise.
23681         * grp/initgroups.c: Likewise.
23682         * hurd/Makefile: Likewise.
23683         * hurd/hurd/signal.h: Likewise.
23684         * hurd/hurdfault.c: Likewise.
23685         * hurd/hurdioctl.c: Likewise.
23686         * hurd/hurdlookup.c: Likewise.
23687         * hurd/intr-msg.c: Likewise.
23688         * iconv/gconv_open.c: Likewise.
23689         * libio/swprintf.c: Likewise.
23690         * locale/lc-ctype.c: Likewise.
23691         * locale/nl_langinfo.c: Likewise.
23692         * mach/Machrules: Likewise.
23693         * mach/Makefile: Likewise.
23694         * malloc/obstack.h: Likewise.
23695         * manual/Makefile: Likewise.
23696         * manual/tsort.awk: Likewise.
23697         * misc/bits/stab.def: Likewise.
23698         * nis/nis_print_group_entry.c: Likewise.
23699         * nis/nis_table.c: Likewise.
23700         * nis/nss_compat/compat-pwd.c: Likewise.
23701         * nis/nss_compat/compat-spwd.c: Likewise.
23702         * po/Makefile: Likewise.
23703         * posix/fnmatch.c: Likewise.
23704         * posix/regex.h: Likewise.
23705         * resolv/Makefile: Likewise.
23706         * resolv/nss_dns/dns-network.c: Likewise.
23707         * resolv/res_hconf.c: Likewise.
23708         * scripts/gen-sorted.awk: Likewise.
23709         * soft-fp/soft-fp.h: Likewise.
23710         * stdio-common/printf.h: Likewise.
23711         * stdlib/monetary.h: Likewise.
23712         * stdlib/random.c: Likewise.
23713         * stdlib/random_r.c: Likewise.
23714         * sysdeps/generic/Makefile: Likewise.
23715         * sysdeps/gnu/Makefile: Likewise.
23716         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23717         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23718         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23719         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23720         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23721         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23722         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23723         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23724         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23725         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23726         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23727         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23728         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23729         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23730         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
23731         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23732         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23733         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23734         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23735         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23736         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23737         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23738         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23739         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
23740         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
23741         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23742         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
23743         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
23744         * sysdeps/mach/hurd/errnos.awk: Likewise.
23745         * sysdeps/mach/hurd/fork.c: Likewise.
23746         * sysdeps/mach/hurd/getcwd.c: Likewise.
23747         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
23748         * sysdeps/mach/hurd/mmap.c: Likewise.
23749         * sysdeps/mach/hurd/utimes.c: Likewise.
23750         * sysdeps/mach/hurd/xmknod.c: Likewise.
23751         * sysdeps/posix/profil.c: Likewise.
23752         * sysdeps/posix/readdir_r.c: Likewise.
23753         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23754         * sysdeps/powerpc/bits/setjmp.h: Likewise.
23755         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
23756         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23757         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23758         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23759         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23760         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
23761         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23762         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23763         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23764         * sysdeps/pthread/lio_listio.c: Likewise.
23765         * sysdeps/sparc/dl-procinfo.h: Likewise.
23766         * sysdeps/unix/i386/sysdep.S: Likewise.
23767         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
23768         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
23769         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
23770         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
23771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23772         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
23773         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
23774         * sysdeps/unix/sysv/linux/speed.c: Likewise.
23775         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
23776         * sysdeps/wordsize-32/divdi3.c: Likewise.
23777         * time/sys/time.h: Likewise.
23778         * wcsmbs/Makefile: Likewise.
23779
23780 2013-01-01  David S. Miller  <davem@davemloft.net>
23781
23782         * po/fr.po: Update from translation team.
23783
23784         * catgets/gencat.c: Update copyright year.
23785         * csu/version.c: Likewise.
23786         * debug/catchsegv.sh: Likewise.
23787         * debug/pcprofiledump.c: Likewise.
23788         * debug/xtrace.sh: Likewise.
23789         * elf/ldconfig.c: Likewise.
23790         * elf/ldd.bash.in: Likewise.
23791         * elf/pldd.c: Likewise.
23792         * elf/sotruss.ksh: Likewise.
23793         * elf/sprof.c: Likewise.
23794         * iconv/iconv_prog.c: Likewise.
23795         * iconv/iconvconfig.c: Likewise.
23796         * locale/programs/locale.c: Likewise.
23797         * locale/programs/localedef.c: Likewise.
23798         * login/programs/pt_chown.c: Likewise.
23799         * malloc/memusage.sh: Likewise.
23800         * malloc/memusagestat.c: Likewise.
23801         * malloc/mtrace.pl: Likewise.
23802         * nscd/nscd.c: Likewise.
23803         * nss/getent.c: Likewise.
23804         * nss/makedb.c: Likewise.
23805         * posix/getconf.c: Likewise.
23806
23807 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23808
23809         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
23810         numbers.
23811
23812 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
23813
23814         * math/bits/mathcalls.h (modf): Use __nonnull.
23815
23816 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
23817
23818         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
23819         (split): Use macro CN instead of the bare value.
23820         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
23821         could be used.
23822         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
23823         instead of the bare value.
23824         (power1): Likewise.
23825
23826 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23827
23828         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
23829         __ATAN_TWOM.
23830         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23831
23832         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
23833         their values.
23834         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23835         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
23836         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
23837         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23838
23839 2012-12-28  Andreas Jaeger  <aj@suse.de>
23840
23841         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
23842         values are from Linux 3.7.
23843
23844         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
23845         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
23846
23847 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23848
23849         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
23850         TRUE case.
23851
23852         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
23853         (norm): Likewise.
23854         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
23855         variables with preprocessor constants.
23856         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23857         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23858         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23859
23860 2012-12-27  Bruno Haible  <bruno@clisp.org>
23861
23862         [BZ #14317]
23863         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
23864         only if needed.
23865
23866 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23867
23868         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
23869         and use variable directly.
23870         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
23871
23872         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23873         MPONE.
23874         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
23875         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23876         variable MPONE.
23877         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
23878         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
23879         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
23880         include directive.  Remove local variable MPONE.
23881         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
23882         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
23883         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23884
23885 2012-12-25  David S. Miller  <davem@davemloft.net>
23886
23887         * version.h (RELEASE): Set to "development".
23888         (VERSION): Set to "2.17.90".
23889         * NEWS: Add 2.18 section.
23890
23891 2012-12-21  David S. Miller  <davem@davemloft.net>
23892
23893         * po/hr.po: Update from translation team.
23894
23895 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23896
23897         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
23898
23899 2012-12-19  Steve Ellcey  <sellcey@mips.com>
23900
23901         * NEWS:  Mention new memcpy for MIPS.
23902
23903 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23904
23905         * manual/contrib.texi (Contributors): Spelling correction.
23906
23907 2012-12-15  David S. Miller  <davem@davemloft.net>
23908
23909         * po/ru.po: Update from translation team.
23910
23911 2012-12-13  David S. Miller  <davem@davemloft.net>
23912
23913         * NEWS: Mention IFUNC testsuite enhancements.
23914
23915         * po/pl.po: Update from translation team.
23916         * po/bg.po: Likewise.
23917
23918         * manual/contrib.texi (Contributors): Update entries for Hongjiu
23919         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
23920
23921 2012-12-11  David S. Miller  <davem@davemloft.net>
23922
23923         * po/sv.po: Update from translation team.
23924
23925         * po/vi.po: Update from translation team.
23926
23927         * po/cs.po: Update from translation team.
23928
23929         * po/de.po: Update from translation team.
23930         * po/eo.po: Likewise.
23931         * po/nl.po: Likewise.
23932
23933 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
23934
23935         [BZ #14246]
23936         * manual/argp.texi (Argp Helper Functions): Move node to follow
23937         Argp Parsing State.
23938
23939         [BZ #14872]
23940         * manual/conf.texi (Limits on File System Capacity): Mention if
23941         terminating null is included in the max size.
23942
23943 2012-12-10  Andreas Jaeger  <aj@suse.de>
23944
23945         * po/cs.po: Update from translation team.
23946
23947 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
23948
23949         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
23950         void pointer and cast to uintptr_t.
23951         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
23952         path.
23953         * sysdeps/s390/s390-64/memcpy.S: Likewise.
23954         * sysdeps/s390/s390-64/memset.S: Likewise.
23955
23956 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
23957
23958         [BZ #14833]
23959         * menual/message.texi (Message Translation): Fix typos.
23960         (Helper programs for gettext): Likewise.
23961
23962 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
23963
23964         [BZ #14898]
23965         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
23966         Change to -1.
23967
23968 2012-12-07  David S. Miller  <davem@davemloft.net>
23969
23970         * po/libc.pot: Update.
23971
23972 2012-12-07  Richard Henderson  <rth@redhat.com>
23973
23974         [BZ #10114]
23975         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
23976         normal/normal case to before the switch.
23977         (_FP_DIV): Likewise.
23978
23979 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
23980             Mike Frysinger  <vapier@gentoo.org>
23981
23982         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
23983         check for __NR_fadvise64_64.
23984
23985 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
23986
23987         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
23988         0, not just to plain "0" as a statement.
23989         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
23990         with cw.
23991
23992 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
23993
23994         * NEWS: Use sourceware.org in Bugzilla URL.
23995
23996 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
23997
23998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23999         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24000
24001         * stdio-common/tst-put-error.c (do_test): Add newline to the
24002         padded test to ensure flush.
24003
24004 2012-12-05  Jeff Law  <law@redhat.com>
24005
24006         * sunrpc/etc.rpc (fedfs_admin): Add entry.
24007
24008 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
24009
24010         * README: Don't refer to ports add-on as distributed separately.
24011         Mention AArch64 in list of systems supported in the ports add-on.
24012
24013         * LICENSES: Add more non-FSF copyright and license notices.
24014
24015         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
24016         ((unused)).
24017
24018         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
24019
24020         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
24021         10000 as width of padded output.
24022
24023 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24024
24025         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
24026
24027         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
24028         variable LX with __attribute__ ((unused)).
24029         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
24030         Likewise.
24031         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
24032         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24033         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
24034         with __attribute__ ((unused)).
24035
24036 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
24037
24038         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
24039
24040 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24041
24042         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
24043         (CFLAGS-nldbl-acos.c): New variable.
24044         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
24045         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
24046         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
24047         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
24048         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
24049         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
24050         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
24051         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
24052         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
24053         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
24054         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
24055         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
24056         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
24057         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
24058         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
24059         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
24060         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
24061         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
24062         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
24063         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
24064         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
24065         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
24066         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
24067         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
24068         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
24069         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
24070         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
24071         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
24072         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
24073         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
24074         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
24075         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
24076         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
24077         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
24078         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
24079         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
24080         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
24081         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
24082         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
24083         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
24084         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
24085         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
24086         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
24087         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
24088         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
24089         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
24090         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
24091         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
24092         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
24093         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
24094         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
24095         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
24096         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
24097         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
24098         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
24099         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
24100         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
24101         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
24102         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
24103         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
24104         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
24105         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
24106         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
24107         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
24108         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
24109         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
24110         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
24111         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
24112         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
24113         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
24114         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
24115         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
24116         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
24117         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
24118         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
24119         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
24120         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
24121         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
24122         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
24123         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
24124         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
24125         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
24126         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
24127         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
24128         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
24129         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
24130         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
24131         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
24132         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
24133         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
24134         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
24135         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
24136         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
24137         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
24138         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
24139         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
24140         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
24141
24142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24143         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24144
24145         [BZ #14914]
24146         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
24147         whole low double instead of just low 47 bits when splitting values
24148         into two parts.
24149
24150 2012-12-03  Allan McRae  <allan@archlinux.org>
24151
24152         * manual/stdio.texi (Predefined Printf Handlers): Remove
24153         @hsep and @vsep usage.
24154
24155 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
24156
24157         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
24158         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
24159
24160 2012-12-03  Jeff Law  <law@redhat.com>
24161
24162         * time/sys/time.h (settimeofday): Do not mark TV argument
24163         as __nonnull.
24164
24165 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
24166
24167         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
24168         when currently writing and seek to current position when not.
24169         * libio/Makefile (tests): Remove bug-fclose1.
24170         * libio/bug-fclose1.c: Delete.
24171
24172 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
24173
24174         * manual/arith.texi (feenableexcept): Fix typo.
24175         (fedisableexcept): Likewise.
24176
24177 2012-11-30  Roland McGrath  <roland@hack.frob.com>
24178
24179         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
24180         second, differently-typed declaration, rather than a cast.
24181
24182 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
24183
24184         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
24185         * include/rpc/svc.h: ... here.
24186
24187 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
24188
24189         [BZ #13013]
24190         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
24191         depending n and resplen2 to catch cases where answer
24192         equals answerp2.
24193
24194 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
24195
24196         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
24197         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
24198
24199 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
24200
24201         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
24202
24203 2012-11-29  Roland McGrath  <roland@hack.frob.com>
24204
24205         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
24206
24207 2012-11-28  Jeff Law  <law@redhat.com>
24208
24209         [BZ #13761]
24210         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
24211         dataset_temporary.  Track alloca usage into alloca_used.
24212         If dataset is large allocate and release it via malloc/free.
24213
24214 2012-06-04  Florian Weimer  <fweimer@redhat.com>
24215
24216         [BZ #14197]
24217         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
24218
24219 2012-11-28  David S. Miller  <davem@davemloft.net>
24220
24221         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24222
24223 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24224
24225         [BZ #14803]
24226         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
24227         of pi/2 rounded to nearest to 64 bits.
24228         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
24229         nearest to 64 bits.
24230         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
24231         bits.
24232
24233 2012-11-28  Jeff Law <law@redhat.com>
24234             Martin Osvald <mosvald@redhat.com>
24235
24236         [BZ #14889]
24237         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
24238         * sunrpc/svc.c: Include time.h.
24239         (__svc_accept_failed): New function.
24240         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
24241         any reason other than EINTR, call __svc_accept_failed.
24242         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
24243         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
24244
24245 2012-11-28  Andreas Schwab  <schwab@suse.de>
24246
24247         * scripts/abilist.awk: Also handle indirect functions in .opd
24248         section.
24249
24250 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24251
24252         [BZ #13881]
24253         * sysdeps/x86/fpu/powl_helper.c: New file.
24254         * sysdeps/x86/fpu/Makefile: Likewise.
24255         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
24256         (p3): New object.
24257         (__ieee754_powl): Use __powl_helper for finite arguments except
24258         integer exponents below 8.
24259         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
24260         (p3): New object.
24261         (__ieee754_powl): Use __powl_helper for finite arguments except
24262         integer exponents below 8.
24263         * math/libm-test.inc (pow_test): Add more tests and enable some
24264         previously disabled tests.
24265         * sysdeps/i386/fpu/libm-test-ulps: Update.
24266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24267
24268 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24269             Carlos O'Donell  <carlos_odonell@mentor.com>
24270
24271         * nss/makedb.c (is_prime): Assert that input is odd and greater
24272         than 4.  Note that fact in a comment too.
24273         (next_prime): Add 4 to input.
24274
24275 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24276
24277         [BZ #11741]
24278         * libio/Makefile (tests): Add test case tst-fwrite-error.
24279         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
24280         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
24281         * libio/tst-fwrite-error.c: New test case.
24282
24283 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
24284
24285         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
24286         before casting to void *.
24287         * include/libc-internal.h (__pointer_type): New macro.
24288         (__integer_if_pointer_type_sub): Likewise.
24289         (__integer_if_pointer_type): Likewise.
24290         (cast_to_integer): Likewise.
24291         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
24292         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
24293         before casting to atomic64_t.
24294         (atomic_exchange_acq): Likewise.
24295         (__arch_exchange_and_add_body): Likewise.
24296         (__arch_add_body): Likewise.
24297         (atomic_add_negative): Likewise.
24298         (atomic_add_zero): Likewise.
24299
24300 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
24301
24302         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
24303         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
24304         (add_fdes): Likewise.
24305         (linear_search_fdes): Likewise.
24306         (binary_search_unencoded_fdes): Likewise.
24307
24308 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
24309
24310         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
24311
24312 2012-11-24  Adam Conrad  <adconrad@0c3.net>
24313
24314         * configure.in: Autodetect C++ header directories.
24315         * configure: Regenerated.
24316
24317 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
24318
24319         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
24320
24321 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
24322
24323         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24324
24325 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
24326
24327         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
24328         LDBL_MANT_DIG == 106]: Disable some tests.
24329         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24330         Likewise.
24331         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24332         Likewise.
24333
24334         [BZ #14871]
24335         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
24336         input for small inputs.  Return +/- pi/2 for large inputs.
24337         * math/libm-test.inc (atan_test): Add more tests.
24338
24339         * sysdeps/generic/unwind-dw2-fde-glibc.c
24340         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
24341         __attribute__ ((unused)).
24342
24343         [BZ #14645]
24344         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
24345         x * y if x and y are nonzero and z is zero.
24346
24347         [BZ #14811]
24348         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
24349         nonzero exponents with absolute value below 0x1p-117 to +/-
24350         0x1p-117.
24351
24352         [BZ #14869]
24353         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
24354         up arguments below 2**-450, not just those below 2**-500.
24355         * math/libm-test.inc (hypot_test): Add another test.
24356
24357         [BZ #14868]
24358         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24359         Return a+b for ratio over 2**120, not 2**60.
24360         * math/libm-test.inc (hypot_test): Add another test.
24361
24362         * math/libm-test.inc (clog_test): Use
24363         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
24364         (clog10_test): Likewise.
24365
24366         [BZ #6778]
24367         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
24368
24369 2012-11-22  Andreas Schwab  <schwab@suse.de>
24370
24371         * sysdeps/i386/fpu/libm-test-ulps: Update.
24372
24373 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
24374
24375         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
24376         printf output with newline.
24377
24378 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
24379
24380         [BZ #14865]
24381         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
24382         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
24383         -z nodlopen, -z initfirst and -z execstack support.
24384         * configure: Regenerated.
24385
24386         * elf/elf.h (DF_1_NODIRECT): New macro.
24387         (DF_1_IGNMULDEF): Likewise.
24388         (DF_1_NOKSYMS): Likewise.
24389         (DF_1_NOHDR): Likewise.
24390         (DF_1_EDITED): Likewise.
24391         (DF_1_NORELOC): Likewise.
24392         (DF_1_SYMINTPOSE): Likewise.
24393         (DF_1_GLOBAUDIT): Likewise.
24394         (DF_1_SINGLETON): Likewise.
24395         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
24396         DT_1_SUPPORTED_MASK bits.
24397         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
24398
24399 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
24400
24401         * sysdeps/unix/make-syscalls.sh: Document prefixes.
24402
24403 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
24404
24405         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
24406         macro.
24407
24408         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
24409         (sendmmsg): Move declarations...
24410         * socket/sys/socket.h: ... here.
24411         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
24412         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
24413         include it from...
24414         * socket/recvmmsg.c: ... this new file.
24415         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
24416         (sendmmsg): Rename to __sendmmsg, create weak alias and make
24417         definition of __sendmmsg hidden.
24418         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
24419         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
24420         Move ENOSYS stub into and include it from...
24421         * socket/sendmmsg.c: ... this new file.
24422         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
24423         (sysdep_routines): Move recvmmsg and sendmmsg...
24424         * socket/Makefile (routines): ... here.
24425         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
24426         (GLIBC_PRIVATE): Add __sendmmsg.
24427         * include/sys/socket.h (__sendmmsg): Add declarations.
24428         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
24429         sendmmsg.
24430
24431 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
24432
24433         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
24434         variable I1 with __attribute__ ((unused)).
24435         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
24436
24437 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24438
24439         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
24440         DUMMY variables with __attribute__ ((unused)).
24441
24442         * bits/byteswap.h: Include <bits/types.h>.
24443         (__bswap_64): Use __uint64_t instead of unsigned long long int.
24444
24445 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24446
24447         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
24448         string_t.  Do not manually set errno.
24449         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
24450         length with __strnlen.  Make sure to both set errno and return it on
24451         failure.
24452
24453 2012-11-19  David S. Miller  <davem@davemloft.net>
24454
24455         With help from Joseph Myers.
24456         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
24457         very large arguments properly.
24458         * math/libm-test.inc (atan_test): New tests.
24459         (atan2_test): New tests.
24460         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24461         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24462
24463 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24464
24465         [BZ #14856]
24466         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
24467         Define to 3.
24468
24469         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
24470         [POSIX] (EADDRNOTAVAIL): Likewise.
24471         [POSIX] (EAFNOSUPPORT): Likewise.
24472         [POSIX] (EALREADY): Likewise.
24473         [POSIX] (ECONNABORTED): Likewise.
24474         [POSIX] (ECONNREFUSED): Likewise.
24475         [POSIX] (ECONNRESET): Likewise.
24476         [POSIX] (EDESTADDRREQ): Likewise.
24477         [POSIX] (EDQUOT): Likewise.
24478         [POSIX] (EHOSTUNREACH): Likewise.
24479         [POSIX] (EIDRM): Likewise.
24480         [POSIX] (EISCONN): Likewise.
24481         [POSIX] (ELOOP): Likewise.
24482         [POSIX] (EMULTIHOP): Likewise.
24483         [POSIX] (ENETDOWN): Likewise.
24484         [POSIX] (ENETUNREACH): Likewise.
24485         [POSIX] (ENOBUFS): Likewise.
24486         [POSIX] (ENODATA): Likewise.
24487         [POSIX] (ENOLINK): Likewise.
24488         [POSIX] (ENOMSG): Likewise.
24489         [POSIX] (ENOPROTOOPT): Likewise.
24490         [POSIX] (ENOSR): Likewise.
24491         [POSIX] (ENOSTR): Likewise.
24492         [POSIX] (ENOTCONN): Likewise.
24493         [POSIX] (ENOTSOCK): Likewise.
24494         [POSIX] (EOPNOTSUPP): Likewise.
24495         [POSIX] (EOVERFLOW): Likewise.
24496         [POSIX] (EPROTO): Likewise.
24497         [POSIX] (EPROTONOSUPPORT): Likewise.
24498         [POSIX] (EPROTOTYPE): Likewise.
24499         [POSIX] (ESTALE): Likewise.
24500         [POSIX] (ETIME): Likewise.
24501         [POSIX] (ETXTBSY): Likewise.
24502         [POSIX] (EWOULDBLOCK): Likewise.
24503         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
24504         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
24505         [POSIX] (SEEK_CUR): Likewise.
24506         [POSIX] (SEEK_END): Likewise.
24507         [POSIX || UNIX98] (mode_t): Do not require.
24508         [POSIX] (off_t): Likewise.
24509         [POSIX] (pid_t): Likewise.
24510         [POSIX] (sys/stat.h): Do not allow header.
24511         [POSIX] (unistd.h): Likewise.
24512         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
24513         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
24514         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
24515         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
24516         require.
24517         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
24518         sigevent): Specify elements.
24519         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
24520         entry.
24521         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
24522         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
24523
24524         * conform/data/cpio.h-data [POSIX]: Disable whole file.
24525         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
24526         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
24527         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
24528         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
24529         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
24530         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
24531         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
24532         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
24533         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
24534         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
24535         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
24536         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
24537         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
24538         Likewise.
24539         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
24540         Likewise.
24541         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
24542         Likewise.
24543         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
24544         Likewise.
24545         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
24546         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
24547         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
24548         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
24549         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
24550         Specify lower bound on value.
24551         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
24552         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
24553         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
24554         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
24555         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
24556         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
24557         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
24558         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
24559         value.
24560         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
24561         as optional.
24562         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
24563         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
24564         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
24565         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
24566         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
24567         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
24568         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
24569         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
24570         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
24571         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
24572         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
24573         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
24574         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
24575         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
24576         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
24577         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
24578         entry.
24579         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
24580         optional.
24581         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
24582         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
24583         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
24584         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
24585         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
24586         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
24587         Likewise.
24588         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
24589         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
24590         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
24591         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
24592         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
24593         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
24594         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
24595         as optional.
24596         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
24597         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
24598         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
24599         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
24600         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
24601         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
24602         specify as optional.
24603         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
24604         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
24605         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
24606         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
24607         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
24608         [XPG3] (NL_LANGMAX): Likewise.
24609         [POSIX || XPG3] (NL_MSGMAX): Likewise.
24610         [POSIX || XPG3] (NL_NMAX): Likewise.
24611         [POSIX || XPG3] (NL_SETMAX): Likewise.
24612         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
24613         [XPG3] (NZERO): Likewise.
24614         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
24615         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
24616         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
24617         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
24618         (REG_ERANGE): Expect.
24619         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
24620         optional-constant.
24621         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
24622         Use (void) in prototype.
24623         [POSIX] (*_t): Allow.
24624         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
24625         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
24626         (WRDE_BADVAL): Expect.
24627
24628         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
24629         expect.
24630         [XPG3 || XPG4] (O_RSYNC): Likewise.
24631         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
24632         Likewise.
24633         [XPG3 || XPG4] (pthread_sigmask): Likewise.
24634         [XPG3 || XPG4] (sigqueue): Likewise.
24635         [XPG3 || XPG4] (sigtimedwait): Likewise.
24636         [XPG3 || XPG4] (sigwaitinfo): Likewise.
24637         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
24638         [XPG3 || XPG4] (vsnprintf): Likewise.
24639         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
24640         Likewise.
24641         [XPG3 || XPG4] (blksize_t): Likewise.
24642         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
24643         Likewise.
24644         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
24645         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
24646         [XPG3 || XPG4] (struct itimerspec): Likewise.
24647         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
24648         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
24649         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
24650         [XPG3 || XPG4] (clockid_t): Likewise.
24651         [XPG3 || XPG4] (timer_t): Likewise.
24652         [XPG3 || XPG4] (clock_getres): Likewise.
24653         [XPG3 || XPG4] (clock_gettime): Likewise.
24654         [XPG3 || XPG4] (clock_settime): Likewise.
24655         [XPG3 || XPG4] (nanosleep): Likewise.
24656         [XPG3 || XPG4] (timer_create): Likewise.
24657         [XPG3 || XPG4] (timer_delete): Likewise.
24658         [XPG3 || XPG4] (timer_gettime): Likewise.
24659         [XPG3 || XPG4] (timer_getoverrun): Likewise.
24660         [XPG3 || XPG4] (timer_settime): Likewise.
24661         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
24662         [XPG3 || XPG4] (getlogin_r): Likewise.
24663         [XPG3 || XPG4] (pread): Likewise.
24664         [XPG3 || XPG4] (pthread_atfork): Likewise.
24665         [XPG3 || XPG4] (pwrite): Likewise.
24666
24667         [BZ #14835]
24668         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
24669         <bits/siginfo.h>.
24670
24671 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24672
24673         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
24674         finalizing MALLSTREAM.
24675
24676         * sysdeps/mach/hurd/syncfs.c: New file.
24677
24678 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24679
24680         [BZ #14719]
24681         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
24682         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
24683         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
24684         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
24685         (_nss_dns_gethostbyname4_r): Likewise.
24686         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
24687         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
24688
24689 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
24690
24691         [BZ #13763]
24692         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
24693
24694 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
24695
24696         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
24697         * elf/cache.c (print_entry): Print ",AArch64" for
24698         FLAG_AARCH64_LIB64
24699
24700         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
24701         * elf/cache.c (print_entry): Print ",hard-float" for
24702         FLAG_ARM_LIBHF.
24703
24704 2012-11-18  David S. Miller  <davem@davemloft.net>
24705
24706         With help from Joseph Myers.
24707         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
24708         cutoff to 2**-13.
24709         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
24710         cutoff to 2**-25.
24711         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
24712         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
24713         small.
24714         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
24715         * math/libm-test.inc (y0_test): New tests.
24716         (y1_test): New tests.
24717         * sysdeps/i386/fpu/libm-test-ulps: Update.
24718         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24719         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24720
24721 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
24722
24723         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
24724         64-bit targets.
24725         * configure: Regenerated.
24726
24727 2012-11-17  David S. Miller  <davem@davemloft.net>
24728
24729         [BZ #14811]
24730         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
24731         nonzero exponents with absolute value below 0x1p-128 to +/-
24732         0x1p-128.
24733
24734 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
24735
24736         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
24737
24738         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
24739
24740         * posix/getconf-speclist.c: New file.
24741         * posix/posix-envs.def: Likewise.
24742         * posix/confstr.c (START_ENV_GROUP): New macro.
24743         (END_ENV_GROUP): Likewise.
24744         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24745         (KNOWN_PRESENT_ENV_STRING): Likewise.
24746         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24747         (UNKNOWN_ENVIRONMENT): Likewise.
24748         (confstr): Include posix-envs.def instead of handling
24749         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
24750         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
24751         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
24752         (END_ENV_GROUP): Likewise.
24753         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24754         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24755         (UNKNOWN_ENVIRONMENT): Likewise.
24756         (__sysconf): Include posix-envs.def instead of handling associated
24757         cases directly here.
24758         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
24759         preprocessing getconf-speclist.c rather than running getconf or
24760         generating empty file.
24761
24762 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
24763
24764         * scripts/check-local-headers.sh: Ignore 'mach' headers.
24765
24766 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
24767
24768         [BZ #14672]
24769         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
24770
24771 2012-11-16  David S. Miller  <davem@davemloft.net>
24772
24773         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
24774         smaller than LDBL_EPSILON/2.0L, just return xm1.
24775
24776 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
24777
24778         * elf/tst-array1.c (init): Set constructor priority to 1000.
24779         (fini): Set destructor priority to 1000.
24780         * elf/tst-array2dep.c: Likewise.
24781
24782 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24783
24784         [BZ #11741]
24785         * libio/fileops.c (_IO_new_file_write): Correctly return error.
24786         (_IO_new_file_xsputn): Also return EOF if none of the input
24787         data was written when overflow failed.
24788         * libio/iopadn.c (_IO_padn): Likewise.
24789         * libio/iowpadn.c (_IO_wpadn): Likewise.
24790         * stdio-common/tst-put-error.c: Add copyright notice.
24791         (do_test): Add case for printing padded string.
24792         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
24793         _IO_padn returned error.
24794         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
24795         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
24796         return EOF.
24797
24798 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24799
24800         * libio/libioP.h: Add comment note that the references to C++
24801         bits are now obsolete.
24802
24803 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24804
24805         * math/libm-test.inc (check_complex): Use asprintf.
24806
24807 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
24808
24809         * debug/pcprofiledump.c (print_version): Update copyright year.
24810         * malloc/memusagestat.c (print_version): Likewise.
24811
24812 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
24813
24814         [BZ #14831]
24815         * elf/Makefile (tests): Add tst-audit8.
24816         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
24817         ($(objpfx)tst-audit8.out): New target.
24818         (tst-audit8-ENV): New variable.
24819         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
24820         audit if l_reloc_result is NULL.
24821         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
24822         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
24823         * elf/tst-audit8.c: New file.
24824
24825 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24826
24827         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
24828         * misc/Makefile (CFLAGS-select.c): Define.
24829         * posix/Makefile (CFLAGS-pause.c): Define.
24830
24831 2012-11-13  David S. Miller  <davem@davemloft.net>
24832
24833         * crypt/Makefile: Move test targets after toplevel Rules
24834         inclusion.  Grab any necessary sysdep routines when linking.
24835         * crypt/md5.c (md5_process_block): Remove define, we will always
24836         name it __md5_process_block.
24837         (md5_finish_ctx): Update md5_process_block call.
24838         (md5_stream): Likewise.
24839         (md5_process_bytes): Likewise.
24840         (md5_process_block): Rename to __md5_process_block and move to ...
24841         * crypt/md5-block.c: ... here.
24842         * crypt/sha256.c (sha256_process_block): Move to ...
24843         * crypt/sha256-block.c: ... here.
24844         * crypt/sha512.c (sha512_process_block): Move to ...
24845         * crypt/sha512-block.c: ... here.
24846         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
24847         path.
24848         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
24849         * sysdeps/sparc/sparc64/multiarch/Makefile
24850         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
24851         crypt subdir.
24852         (localedef-aux): Add md5 crypto assembler when in locale subdir.
24853         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
24854         multiarch changes.
24855         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
24856         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
24857         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
24858         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
24859         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
24860         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
24861         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
24862         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
24863         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
24864         file.
24865         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
24866         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
24867         file.
24868         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
24869
24870 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
24871
24872         * timezone/tzselect.ksh: Update from tzcode git revision
24873         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
24874         * timezone/zdump.c: Likewise.
24875         * timezone/zic.c: Likewise.
24876         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
24877         in TZVERSION setting, not $(PKGVERSION).
24878         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
24879         REPORT_BUGS_TO settings.
24880
24881         [BZ #14838]
24882         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
24883         macro.
24884
24885 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24886
24887         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
24888         detection to immediately after _FP_ROUND().
24889         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
24890         bits are 0.
24891
24892 2012-11-11  David S. Miller  <davem@davemloft.net>
24893
24894         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
24895         inttypes.h
24896         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
24897         __close rather than their public counterparts.
24898
24899 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
24900
24901         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
24902         file.
24903         [UNIX98] (sem_timedwait): Do not expect.
24904         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
24905         [XPG4 || UNIX98] (sockatmark): Do not expect.
24906         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
24907         (clock_getcpuclockid): Do not expect.
24908         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
24909         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
24910         Do not expect.
24911         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
24912         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
24913         [UNIX98] (vwscanf): Likewise.
24914         [UNIX98] (vswscanf): Likewise.
24915
24916 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
24917
24918         * timezone/version.h: Remove file.
24919         * timezone/README: Do not refer to version.h.
24920         * timezone/Makefile ($(objpfx)zic.o): New dependency on
24921         $(objpfx)version.h.
24922         ($(objpfx)zdump.o): Likewise.
24923         ($(objpfx)version.h): New target.
24924
24925         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
24926         2012i.
24927         * timezone/README: Don't mention modification to tzselect.ksh.
24928         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
24929         work on unmodified tzselect.ksh.  Substitute version numbers in
24930         tzselect.ksh.
24931
24932         * Makefile (format-me): Remove.
24933         (INSTALL): Adjust indentation.  Use commands directly instead of
24934         using $(format-me).
24935
24936         * aclocal.m4 (ACX_PKGVERSION): New macro.
24937         (ACX_BUGURL): Likewise.
24938         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
24939         (PKGVERSION): New AC_DEFINE_UNQUOTED.
24940         (REPORT_BUGS_TO): Likewise.
24941         * configure: Regenerated.
24942         * config.h.in (PKGVERSION): New macro.
24943         (REPORT_BUGS_TO): Likewise.
24944         * config.make.in (PKGVERSION): New variable.
24945         (PKGVERSION_TEXI): Likewise.
24946         (REPORT_BUGS_TO): Likewise.
24947         (REPORT_BUGS_TEXI): Likewise.
24948         * Makefile (format-me): Use -I$(common-objpfx)manual.
24949         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
24950         ($(common-objpfx)manual/%): New target.
24951         (manual/%): Remove target.
24952         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
24953         (print_version): Use PKGVERSION.
24954         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
24955         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
24956         and REPORT_BUGS_TO.
24957         ($(objpfx)xtrace): Likewise.
24958         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
24959         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
24960         (print_version): Use PKGVERSION.
24961         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
24962         (do_version): Use PKGVERSION.
24963         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
24964         REPORT_BUGS_TO.
24965         (common-ldd-rewrite): Likewise.
24966         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
24967         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
24968         (print_version): Use PKGVERSION.
24969         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
24970         * elf/pldd.c (argp_program_bug_address): Remove variable.
24971         (more_help): New function.
24972         (argp): Use more_help.
24973         (print_version): Use PKGVERSION.
24974         * elf/sln.c (main): Use PKGVERSION.
24975         (usage): Use REPORT_BUGS_TO.
24976         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
24977         (top level): Use PKGVERSION.
24978         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
24979         (print_version): Use PKGVERSION.
24980         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
24981         (print_version): Use PKGVERSION.
24982         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
24983         (print_version): Use PKGVERSION.
24984         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
24985         (print_version): Use PKGVERSION.
24986         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
24987         (print_version): Use PKGVERSION.
24988         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
24989         (print_version): Use PKGVERSION.
24990         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
24991         and BUGURL.
24992         ($(objpfx)memusage): Likewise.
24993         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
24994         (do_version): Use PKGVERSION.
24995         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
24996         (print_version): Use PKGVERSION.
24997         * malloc/mtrace.pl ($PACKAGE): Remove variable.
24998         ($PKGVERSION): New variable.
24999         ($REPORT_BUGS_TO): Likewise.
25000         (usage): Use $REPORT_BUGS_TO.
25001         (top level): Use $PKGVERSION.
25002         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
25003         ($(objpfx)pkgvers.texi): New rule.
25004         ($(objpfx)stamp-pkgvers): Likewise.
25005         * manual/install.texi: Include pkgvers.texi.
25006         (--with-pkgversion): Document new configure option.
25007         (--with-bugurl): Likewise.
25008         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
25009         than necessarily for this particular distribution.  Use
25010         REPORT_BUGS_TO for where to report bugs.
25011         * INSTALL: Regenerated.
25012         * manual/libc.texinfo: Include pkgvers.texi.
25013         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
25014         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
25015         (print_version): Use PKGVERSION.
25016         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
25017         (print_version): Use PKGVERSION.
25018         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
25019         (print_version): Use PKGVERSION.
25020         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
25021         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
25022         macro.
25023         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
25024         (print_version): Use PKGVERSION.
25025         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
25026         (print_version): Use PKGVERSION.
25027         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
25028         and PKGVERSION.
25029
25030         * timezone/checktab.awk: Update from tzcode 2012i.
25031         * timezone/ialloc.c: Likewise.
25032         * timezone/private.h: Likewise.
25033         * timezone/scheck.c: Likewise.
25034         * timezone/tzfile.h: Likewise.
25035         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
25036         (TZVERSION): Hardcode tzcode version number.
25037         * timezone/zdump.c: Update from tzcode 2012i.
25038         * timezone/zic.c: Likewise.
25039         * timezone/version.h: New file.
25040         * timezone/README: Describe version.h.  Update upstream location.
25041
25042         [BZ #14824]
25043         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
25044         (mktemp): Enable declaration.
25045         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
25046         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
25047         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
25048         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
25049         Likewise.
25050         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
25051         Likewise.
25052         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
25053         Likewise.
25054         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
25055         Likewise.
25056         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
25057         Likewise.
25058         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
25059         Likewise.
25060
25061         [BZ #14821]
25062         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
25063         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
25064         for copies of such integer values.
25065         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
25066         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
25067
25068 2012-11-09  Andreas Jaeger  <aj@suse.de>
25069
25070         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
25071         definitions and declarations that are provided by
25072         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
25073
25074 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25075
25076         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
25077         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
25078         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
25079         definition.
25080
25081 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25082
25083         * elf/elf.h: Update comment before AArch64 relocations.
25084
25085 2012-11-07  David S. Miller  <davem@davemloft.net>
25086
25087         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
25088         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
25089         (__start_context): Declare.
25090         (__makecontext_ret): Delete.
25091         (__makecontext): Hook up __start_context instead of
25092         __makecontext_ret.
25093         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
25094         (sysdep_routines): Add __start_context when in stdlib.
25095
25096 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25097
25098         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
25099         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
25100         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
25101         hardcoded "nm".
25102         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
25103         (READELF): New variable.  Use it instead of hardcoded "readelf".
25104
25105 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25106
25107         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
25108         * sysdeps/x86/Makefile: Here.
25109         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
25110         * sysdeps/x86/tst-xmmymm.sh: This.
25111
25112 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25113
25114         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
25115         expectations.
25116         [UNIX98] (pthread_barrier_t): Do not expect.
25117         [UNIX98] (pthread_barrierattr_t): Likewise.
25118         [UNIX98] (pthread_spinlock_t): Likewise.
25119         [UNIX98] (pthread_barrier_destroy): Likewise.
25120         [UNIX98] (pthread_barrier_init): Likewise.
25121         [UNIX98] (pthread_barrier_wait): Likewise.
25122         [UNIX98] (pthread_barrierattr_destroy): Likewise.
25123         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
25124         [UNIX98] (pthread_barrierattr_init): Likewise.
25125         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
25126         [UNIX98] (pthread_getcpuclockid): Likewise.
25127         [UNIX98] (pthread_mutex_timedlock): Likewise.
25128         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
25129         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
25130         [UNIX98] (pthread_sigmask): Likewise.
25131         [UNIX98] (pthread_spin_destroy): Likewise.
25132         [UNIX98] (pthread_spin_init): Likewise.
25133         [UNIX98] (pthread_spin_lock): Likewise.
25134         [UNIX98] (pthread_spin_trylock): Likewise.
25135         [UNIX98] (pthread_spin_unlock): Likewise.
25136         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
25137         Do not expect.
25138         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
25139         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
25140         [XPG3 || XPG4] (pthread_cond_t): Likewise.
25141         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
25142         [XPG3 || XPG4] (pthread_key_t): Likewise.
25143         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
25144         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
25145         [XPG3 || XPG4] (pthread_once_t): Likewise.
25146         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
25147         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
25148         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
25149         [XPG3 || XPG4] (pthread_t): Likewise.
25150
25151         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
25152         not expect.
25153         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
25154
25155         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
25156         Change function return type to int.
25157
25158         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
25159         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
25160         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
25161         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
25162         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
25163         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
25164         [!POSIX] (posix_madvise): Likewise.
25165         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
25166         && !UNIX98].
25167         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
25168         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
25169         (mode_t): Likewise.
25170         (posix_mem_offset): Likewise.
25171         (posix_typed_mem_get_info): Likewise.
25172         (posix_typed_mem_open): Likewise.
25173
25174         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
25175         Change condition to [XOPEN2K8].
25176
25177         * conform/conformtest.pl: Preprocess allow-header data with -x c
25178         instead of from stdin.
25179         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
25180         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
25181         [C99-based standards] (cerfc): Likewise.
25182         [C99-based standards] (cexp2): Likewise.
25183         [C99-based standards] (cexpm1): Likewise.
25184         [C99-based standards] (clog10): Likewise.
25185         [C99-based standards] (clog1p): Likewise.
25186         [C99-based standards] (clog2): Likewise.
25187         [C99-based standards] (clgamma): Likewise.
25188         [C99-based standards] (ctgamma): Likewise.
25189         [C99-based standards] (cerff): Likewise.
25190         [C99-based standards] (cerfcf): Likewise.
25191         [C99-based standards] (cexp2f): Likewise.
25192         [C99-based standards] (cexpm1f): Likewise.
25193         [C99-based standards] (clog10f): Likewise.
25194         [C99-based standards] (clog1pf): Likewise.
25195         [C99-based standards] (clog2f): Likewise.
25196         [C99-based standards] (clgammaf): Likewise.
25197         [C99-based standards] (ctgammaf): Likewise.
25198         [C99-based standards] (cerfl): Likewise.
25199         [C99-based standards] (cerfcl): Likewise.
25200         [C99-based standards] (cexp2l): Likewise.
25201         [C99-based standards] (cexpm1l): Likewise.
25202         [C99-based standards] (clog10l): Likewise.
25203         [C99-based standards] (clog1pl): Likewise.
25204         [C99-based standards] (clog2l): Likewise.
25205         [C99-based standards] (clgammal): Likewise.
25206         [C99-based standards] (ctgammal): Likewise.
25207         * conform/data/inttypes.h-data [C99-based standards]: Include
25208         stdint.h-data.  Remove all expectations for stdint.h contents.
25209         [C99-based standards] (PRI*): Do not allow.
25210         [C99-based standards] (SCN*): Likewise.
25211         [C99-based standards] (*_t): Likewise.
25212         [C99-based-standards] (PRId8): Expect macro.
25213         [C99-based-standards] (PRIi8): Likewise.
25214         [C99-based-standards] (PRIo8): Likewise.
25215         [C99-based-standards] (PRIu8): Likewise.
25216         [C99-based-standards] (PRIx8): Likewise.
25217         [C99-based-standards] (PRIX8): Likewise.
25218         [C99-based-standards] (SCNd8): Likewise.
25219         [C99-based-standards] (SCNi8): Likewise.
25220         [C99-based-standards] (SCNo8): Likewise.
25221         [C99-based-standards] (SCNu8): Likewise.
25222         [C99-based-standards] (SCNx8): Likewise.
25223         [C99-based-standards] (PRIdLEAST8): Likewise.
25224         [C99-based-standards] (PRIiLEAST8): Likewise.
25225         [C99-based-standards] (PRIoLEAST8): Likewise.
25226         [C99-based-standards] (PRIuLEAST8): Likewise.
25227         [C99-based-standards] (PRIxLEAST8): Likewise.
25228         [C99-based-standards] (PRIXLEAST8): Likewise.
25229         [C99-based-standards] (SCNdLEAST8): Likewise.
25230         [C99-based-standards] (SCNiLEAST8): Likewise.
25231         [C99-based-standards] (SCNoLEAST8): Likewise.
25232         [C99-based-standards] (SCNuLEAST8): Likewise.
25233         [C99-based-standards] (SCNxLEAST8): Likewise.
25234         [C99-based-standards] (PRIdFAST8): Likewise.
25235         [C99-based-standards] (PRIiFAST8): Likewise.
25236         [C99-based-standards] (PRIoFAST8): Likewise.
25237         [C99-based-standards] (PRIuFAST8): Likewise.
25238         [C99-based-standards] (PRIxFAST8): Likewise.
25239         [C99-based-standards] (PRIXFAST8): Likewise.
25240         [C99-based-standards] (SCNdFAST8): Likewise.
25241         [C99-based-standards] (SCNiFAST8): Likewise.
25242         [C99-based-standards] (SCNoFAST8): Likewise.
25243         [C99-based-standards] (SCNuFAST8): Likewise.
25244         [C99-based-standards] (SCNxFAST8): Likewise.
25245         [C99-based-standards] (PRId16): Likewise.
25246         [C99-based-standards] (PRIi16): Likewise.
25247         [C99-based-standards] (PRIo16): Likewise.
25248         [C99-based-standards] (PRIu16): Likewise.
25249         [C99-based-standards] (PRIx16): Likewise.
25250         [C99-based-standards] (PRIX16): Likewise.
25251         [C99-based-standards] (SCNd16): Likewise.
25252         [C99-based-standards] (SCNi16): Likewise.
25253         [C99-based-standards] (SCNo16): Likewise.
25254         [C99-based-standards] (SCNu16): Likewise.
25255         [C99-based-standards] (SCNx16): Likewise.
25256         [C99-based-standards] (PRIdLEAST16): Likewise.
25257         [C99-based-standards] (PRIiLEAST16): Likewise.
25258         [C99-based-standards] (PRIoLEAST16): Likewise.
25259         [C99-based-standards] (PRIuLEAST16): Likewise.
25260         [C99-based-standards] (PRIxLEAST16): Likewise.
25261         [C99-based-standards] (PRIXLEAST16): Likewise.
25262         [C99-based-standards] (SCNdLEAST16): Likewise.
25263         [C99-based-standards] (SCNiLEAST16): Likewise.
25264         [C99-based-standards] (SCNoLEAST16): Likewise.
25265         [C99-based-standards] (SCNuLEAST16): Likewise.
25266         [C99-based-standards] (SCNxLEAST16): Likewise.
25267         [C99-based-standards] (PRIdFAST16): Likewise.
25268         [C99-based-standards] (PRIiFAST16): Likewise.
25269         [C99-based-standards] (PRIoFAST16): Likewise.
25270         [C99-based-standards] (PRIuFAST16): Likewise.
25271         [C99-based-standards] (PRIxFAST16): Likewise.
25272         [C99-based-standards] (PRIXFAST16): Likewise.
25273         [C99-based-standards] (SCNdFAST16): Likewise.
25274         [C99-based-standards] (SCNiFAST16): Likewise.
25275         [C99-based-standards] (SCNoFAST16): Likewise.
25276         [C99-based-standards] (SCNuFAST16): Likewise.
25277         [C99-based-standards] (SCNxFAST16): Likewise.
25278         [C99-based-standards] (PRId32): Likewise.
25279         [C99-based-standards] (PRIi32): Likewise.
25280         [C99-based-standards] (PRIo32): Likewise.
25281         [C99-based-standards] (PRIu32): Likewise.
25282         [C99-based-standards] (PRIx32): Likewise.
25283         [C99-based-standards] (PRIX32): Likewise.
25284         [C99-based-standards] (SCNd32): Likewise.
25285         [C99-based-standards] (SCNi32): Likewise.
25286         [C99-based-standards] (SCNo32): Likewise.
25287         [C99-based-standards] (SCNu32): Likewise.
25288         [C99-based-standards] (SCNx32): Likewise.
25289         [C99-based-standards] (PRIdLEAST32): Likewise.
25290         [C99-based-standards] (PRIiLEAST32): Likewise.
25291         [C99-based-standards] (PRIoLEAST32): Likewise.
25292         [C99-based-standards] (PRIuLEAST32): Likewise.
25293         [C99-based-standards] (PRIxLEAST32): Likewise.
25294         [C99-based-standards] (PRIXLEAST32): Likewise.
25295         [C99-based-standards] (SCNdLEAST32): Likewise.
25296         [C99-based-standards] (SCNiLEAST32): Likewise.
25297         [C99-based-standards] (SCNoLEAST32): Likewise.
25298         [C99-based-standards] (SCNuLEAST32): Likewise.
25299         [C99-based-standards] (SCNxLEAST32): Likewise.
25300         [C99-based-standards] (PRIdFAST32): Likewise.
25301         [C99-based-standards] (PRIiFAST32): Likewise.
25302         [C99-based-standards] (PRIoFAST32): Likewise.
25303         [C99-based-standards] (PRIuFAST32): Likewise.
25304         [C99-based-standards] (PRIxFAST32): Likewise.
25305         [C99-based-standards] (PRIXFAST32): Likewise.
25306         [C99-based-standards] (SCNdFAST32): Likewise.
25307         [C99-based-standards] (SCNiFAST32): Likewise.
25308         [C99-based-standards] (SCNoFAST32): Likewise.
25309         [C99-based-standards] (SCNuFAST32): Likewise.
25310         [C99-based-standards] (SCNxFAST32): Likewise.
25311         [C99-based-standards] (PRId64): Likewise.
25312         [C99-based-standards] (PRIi64): Likewise.
25313         [C99-based-standards] (PRIo64): Likewise.
25314         [C99-based-standards] (PRIu64): Likewise.
25315         [C99-based-standards] (PRIx64): Likewise.
25316         [C99-based-standards] (PRIX64): Likewise.
25317         [C99-based-standards] (SCNd64): Likewise.
25318         [C99-based-standards] (SCNi64): Likewise.
25319         [C99-based-standards] (SCNo64): Likewise.
25320         [C99-based-standards] (SCNu64): Likewise.
25321         [C99-based-standards] (SCNx64): Likewise.
25322         [C99-based-standards] (PRIdLEAST64): Likewise.
25323         [C99-based-standards] (PRIiLEAST64): Likewise.
25324         [C99-based-standards] (PRIoLEAST64): Likewise.
25325         [C99-based-standards] (PRIuLEAST64): Likewise.
25326         [C99-based-standards] (PRIxLEAST64): Likewise.
25327         [C99-based-standards] (PRIXLEAST64): Likewise.
25328         [C99-based-standards] (SCNdLEAST64): Likewise.
25329         [C99-based-standards] (SCNiLEAST64): Likewise.
25330         [C99-based-standards] (SCNoLEAST64): Likewise.
25331         [C99-based-standards] (SCNuLEAST64): Likewise.
25332         [C99-based-standards] (SCNxLEAST64): Likewise.
25333         [C99-based-standards] (PRIdFAST64): Likewise.
25334         [C99-based-standards] (PRIiFAST64): Likewise.
25335         [C99-based-standards] (PRIoFAST64): Likewise.
25336         [C99-based-standards] (PRIuFAST64): Likewise.
25337         [C99-based-standards] (PRIxFAST64): Likewise.
25338         [C99-based-standards] (PRIXFAST64): Likewise.
25339         [C99-based-standards] (SCNdFAST64): Likewise.
25340         [C99-based-standards] (SCNiFAST64): Likewise.
25341         [C99-based-standards] (SCNoFAST64): Likewise.
25342         [C99-based-standards] (SCNuFAST64): Likewise.
25343         [C99-based-standards] (SCNxFAST64): Likewise.
25344         [C99-based-standards] (PRIdMAX): Likewise.
25345         [C99-based-standards] (PRIiMAX): Likewise.
25346         [C99-based-standards] (PRIoMAX): Likewise.
25347         [C99-based-standards] (PRIuMAX): Likewise.
25348         [C99-based-standards] (PRIxMAX): Likewise.
25349         [C99-based-standards] (PRIXMAX): Likewise.
25350         [C99-based-standards] (SCNdMAX): Likewise.
25351         [C99-based-standards] (SCNiMAX): Likewise.
25352         [C99-based-standards] (SCNoMAX): Likewise.
25353         [C99-based-standards] (SCNuMAX): Likewise.
25354         [C99-based-standards] (SCNxMAX): Likewise.
25355         [C99-based-standards] (PRIdPTR): Likewise.
25356         [C99-based-standards] (PRIiPTR): Likewise.
25357         [C99-based-standards] (PRIoPTR): Likewise.
25358         [C99-based-standards] (PRIuPTR): Likewise.
25359         [C99-based-standards] (PRIxPTR): Likewise.
25360         [C99-based-standards] (PRIXPTR): Likewise.
25361         [C99-based-standards] (SCNdPTR): Likewise.
25362         [C99-based-standards] (SCNiPTR): Likewise.
25363         [C99-based-standards] (SCNoPTR): Likewise.
25364         [C99-based-standards] (SCNuPTR): Likewise.
25365         [C99-based-standards] (SCNxPTR): Likewise.
25366         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
25367         allow.
25368         * conform/data/stdint.h-data: Update comments to clarify
25369         requirements.
25370         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
25371         type.
25372         [C99-based standards] (INT8_MAX): Likewise.
25373         [C99-based standards] (INT16_MIN): Likewise.
25374         [C99-based standards] (INT16_MAX): Likewise.
25375         [C99-based standards] (INT32_MIN): Likewise.
25376         [C99-based standards] (INT32_MAX): Likewise.
25377         [C99-based standards] (INT64_MIN): Likewise.
25378         [C99-based standards] (INT64_MAX): Likewise.
25379         [C99-based standards] (UINT8_MAX): Likewise.
25380         [C99-based standards] (UINT16_MAX): Likewise.
25381         [C99-based standards] (UINT32_MAX): Likewise.
25382         [C99-based standards] (UINT64_MAX): Likewise.
25383         [C99-based standards] (INT_LEAST8_MIN): Likewise.
25384         [C99-based standards] (INT_LEAST8_MAX): Likewise.
25385         [C99-based standards] (INT_LEAST16_MIN): Likewise.
25386         [C99-based standards] (INT_LEAST16_MAX): Likewise.
25387         [C99-based standards] (INT_LEAST32_MIN): Likewise.
25388         [C99-based standards] (INT_LEAST32_MAX): Likewise.
25389         [C99-based standards] (INT_LEAST64_MIN): Likewise.
25390         [C99-based standards] (INT_LEAST64_MAX): Likewise.
25391         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
25392         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
25393         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
25394         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
25395         [C99-based standards] (INT_FAST8_MIN): Likewise.
25396         [C99-based standards] (INT_FAST8_MAX): Likewise.
25397         [C99-based standards] (INT_FAST16_MIN): Likewise.
25398         [C99-based standards] (INT_FAST16_MAX): Likewise.
25399         [C99-based standards] (INT_FAST32_MIN): Likewise.
25400         [C99-based standards] (INT_FAST32_MAX): Likewise.
25401         [C99-based standards] (INT_FAST64_MIN): Likewise.
25402         [C99-based standards] (INT_FAST64_MAX): Likewise.
25403         [C99-based standards] (UINT_FAST8_MAX): Likewise.
25404         [C99-based standards] (UINT_FAST16_MAX): Likewise.
25405         [C99-based standards] (UINT_FAST32_MAX): Likewise.
25406         [C99-based standards] (UINT_FAST64_MAX): Likewise.
25407         [C99-based standards] (INTPTR_MIN): Likewise.
25408         [C99-based standards] (INTPTR_MAX): Likewise.
25409         [C99-based standards] (UINTPTR_MAX): Likewise.
25410         [C99-based standards] (INTMAX_MIN): Likewise.
25411         [C99-based standards] (INTMAX_MAX): Likewise.
25412         [C99-based standards] (UINTMAX_MAX): Likewise.
25413         [C99-based standards] (PTRDIFF_MIN): Likewise.
25414         [C99-based standards] (PTRDIFF_MAX): Likewise.
25415         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
25416         [C99-based standards] (SIZE_MAX): Likewise.
25417         [C99-based standards] (WCHAR_MAX): Likewise.
25418         [C99-based standards] (WINT_MAX): Likewise.
25419         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
25420         constraint on value.
25421         [C99-based standards] (WCHAR_MIN): Likewise.
25422         [C99-based standards] (WINT_MIN): Likewise.
25423         [C99-based standards] (*_t): Allow.
25424         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
25425         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
25426         Include math.h-data and complex.h-data.  Remove all expectations
25427         of math.h and complex.h contents.
25428         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
25429         at end of line.
25430         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
25431         (struct tm): Expect tag.
25432         [C99-based-standards] (wcstof): Expect function.
25433         [C99-based-standards] (wcstold): Likewise.
25434         [C99-based-standards] (wcstoll): Likewise.
25435         [C99-based-standards] (wcstoull): Likewise.
25436         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
25437         macro-int-constant.  Specify type.
25438         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
25439         constraint on value.
25440         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25441         Specify type.
25442         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
25443         Specify value.
25444         [ISO C standards]: Do not allow headers.
25445         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
25446         wcs[abcdefghijklmnopqrstuvwxyz]*.
25447         [ISO C standards] (*_t): Do not allow.
25448         * conform/data/wctype.h-data [C99-based standards] (iswblank):
25449         Expect function.
25450         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
25451         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25452         Specify type.
25453         [ISO C standards]: Do not allow headers.
25454         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
25455         is[abcdefghijklmnopqrstuvwxyz]*.
25456         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
25457         to[abcdefghijklmnopqrstuvwxyz]*.
25458         [ISO C standards] (*_t): Do not allow.
25459         * conform/data/stdalign.h-data: New file.
25460         * conform/data/stdbool.h-data: Likewise.
25461         * conform/data/stdnoreturn.h-data: Likewise.
25462
25463 2012-11-07  Roland McGrath  <roland@hack.frob.com>
25464
25465         [BZ #14815]
25466         * manual/filesys.texi (Directory Entries): Typo fix.
25467         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
25468
25469 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25470
25471         * elf/elf.h (EM_AARCH64): New macro.
25472         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
25473         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
25474         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
25475         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
25476         (R_AARCH64_TLSDESC): Likewise.
25477         (NT_ARM_TLS): Likewise.
25478         (NT_ARM_HW_BREAK): Likewise.
25479         (NT_ARM_HW_WATCH): Likewise.
25480
25481 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25482
25483         [BZ #14811]
25484         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
25485         (__ieee754_powl): Saturate nonzero exponents with absolute value
25486         below 0x1p-79 to +/- 0x1p-79.
25487         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
25488         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
25489         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
25490         nonzero exponents with absolute value below 0x1p-32 to +/-
25491         0x1p-32.
25492         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
25493         (__ieee754_powl): Saturate nonzero exponents with absolute value
25494         below 0x1p-79 to +/- 0x1p-79.
25495         * math/libm-test.inc (pow_test): Add more tests.
25496
25497 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25498
25499         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
25500         _dl_s390_cap_flags with kernel. Increase string length.
25501         (_dl_s390_platforms): Add z196 and zEC12.
25502
25503 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25504
25505         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
25506         Change XOPEN21K to XOPEN2K.
25507
25508 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25509
25510         * string/memmove.c: Use memcpy when possible.
25511
25512 2012-11-06  Andreas Jaeger  <aj@suse.de>
25513
25514         * po/eo.po: Update from translation team.
25515
25516 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
25517
25518         [BZ #14793]
25519         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
25520         exponent and small x and y exponents, scale x or y up.  Increase
25521         by 2 the exponent used in scaling up.
25522         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25523         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25524         * math/libm-test.inc (fma_test): Add more tests.
25525         (fma_test_towardzero): Likewise.
25526         (fma_test_downward): Likewise.
25527         (fma_test_upward): Likewise.
25528
25529 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
25530
25531         [BZ #14805]
25532         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
25533         fenv_t *.
25534
25535         [BZ #14801]
25536         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
25537         namespace for names of struct fields.
25538         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
25539         fenv_t fields.
25540         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
25541         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
25542
25543 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25544
25545         [BZ #3665]
25546         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
25547
25548 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25549
25550         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
25551         PTR_DEMANGLE.
25552
25553         [BZ #5246]
25554         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
25555         PTR_DEMANGLE.
25556
25557 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
25558
25559         [BZ #14797]
25560         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
25561         definitely overflow as x * y not x * y + z.
25562         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25563         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25564         * math/libm-test.inc (fma_test): Add more tests.
25565         (fma_test_towardzero): Likewise.
25566         (fma_test_downward): Likewise.
25567         (fma_test_upward): Likewise.
25568
25569 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25570
25571         [BZ #157]
25572
25573         * include/stub-tag.h: Remove file.
25574         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
25575         '#include' of it.
25576         * manual/maint.texi (Porting): Don't reference it.
25577         * Makerules ($(objpfx)stubs): Likewise.
25578         * dirent/closedir.c: Don't include <stub-tag.h>.
25579         * dirent/dirfd.c: Likewise.
25580         * dirent/fdopendir.c: Likewise.
25581         * dirent/getdents.c: Likewise.
25582         * dirent/getdents64.c: Likewise.
25583         * dirent/opendir.c: Likewise.
25584         * dirent/readdir.c: Likewise.
25585         * dirent/readdir64.c: Likewise.
25586         * dirent/readdir64_r.c: Likewise.
25587         * dirent/readdir_r.c: Likewise.
25588         * dirent/rewinddir.c: Likewise.
25589         * dirent/seekdir.c: Likewise.
25590         * dirent/telldir.c: Likewise.
25591         * gmon/profil.c: Likewise.
25592         * grp/setgroups.c: Likewise.
25593         * inet/if_index.c: Likewise.
25594         * io/access.c: Likewise.
25595         * io/chdir.c: Likewise.
25596         * io/chmod.c: Likewise.
25597         * io/chown.c: Likewise.
25598         * io/close.c: Likewise.
25599         * io/dup.c: Likewise.
25600         * io/dup2.c: Likewise.
25601         * io/dup3.c: Likewise.
25602         * io/euidaccess.c: Likewise.
25603         * io/faccessat.c: Likewise.
25604         * io/fchdir.c: Likewise.
25605         * io/fchmod.c: Likewise.
25606         * io/fchmodat.c: Likewise.
25607         * io/fchown.c: Likewise.
25608         * io/fchownat.c: Likewise.
25609         * io/fcntl.c: Likewise.
25610         * io/flock.c: Likewise.
25611         * io/fstatfs.c: Likewise.
25612         * io/fstatfs64.c: Likewise.
25613         * io/fstatvfs.c: Likewise.
25614         * io/fstatvfs64.c: Likewise.
25615         * io/futimens.c: Likewise.
25616         * io/fxstat.c: Likewise.
25617         * io/fxstat64.c: Likewise.
25618         * io/fxstatat.c: Likewise.
25619         * io/fxstatat64.c: Likewise.
25620         * io/getcwd.c: Likewise.
25621         * io/isatty.c: Likewise.
25622         * io/lchmod.c: Likewise.
25623         * io/lchown.c: Likewise.
25624         * io/link.c: Likewise.
25625         * io/linkat.c: Likewise.
25626         * io/lseek.c: Likewise.
25627         * io/lseek64.c: Likewise.
25628         * io/lxstat64.c: Likewise.
25629         * io/mkdir.c: Likewise.
25630         * io/mkdirat.c: Likewise.
25631         * io/mkfifo.c: Likewise.
25632         * io/mkfifoat.c: Likewise.
25633         * io/open.c: Likewise.
25634         * io/open64.c: Likewise.
25635         * io/openat.c: Likewise.
25636         * io/openat64.c: Likewise.
25637         * io/pipe.c: Likewise.
25638         * io/pipe2.c: Likewise.
25639         * io/poll.c: Likewise.
25640         * io/posix_fadvise.c: Likewise.
25641         * io/posix_fadvise64.c: Likewise.
25642         * io/posix_fallocate.c: Likewise.
25643         * io/posix_fallocate64.c: Likewise.
25644         * io/read.c: Likewise.
25645         * io/readlink.c: Likewise.
25646         * io/readlinkat.c: Likewise.
25647         * io/rmdir.c: Likewise.
25648         * io/sendfile.c: Likewise.
25649         * io/sendfile64.c: Likewise.
25650         * io/statfs.c: Likewise.
25651         * io/statfs64.c: Likewise.
25652         * io/statvfs.c: Likewise.
25653         * io/statvfs64.c: Likewise.
25654         * io/symlink.c: Likewise.
25655         * io/symlinkat.c: Likewise.
25656         * io/ttyname.c: Likewise.
25657         * io/ttyname_r.c: Likewise.
25658         * io/umask.c: Likewise.
25659         * io/unlink.c: Likewise.
25660         * io/unlinkat.c: Likewise.
25661         * io/utime.c: Likewise.
25662         * io/utimensat.c: Likewise.
25663         * io/write.c: Likewise.
25664         * io/xmknod.c: Likewise.
25665         * io/xmknodat.c: Likewise.
25666         * io/xstat.c: Likewise.
25667         * io/xstat64.c: Likewise.
25668         * login/getpt.c: Likewise.
25669         * login/grantpt.c: Likewise.
25670         * login/unlockpt.c: Likewise.
25671         * math/e_acoshl.c: Likewise.
25672         * math/e_acosl.c: Likewise.
25673         * math/e_asinl.c: Likewise.
25674         * math/e_atan2l.c: Likewise.
25675         * math/e_atanhl.c: Likewise.
25676         * math/e_coshl.c: Likewise.
25677         * math/e_expl.c: Likewise.
25678         * math/e_fmodl.c: Likewise.
25679         * math/e_gammal_r.c: Likewise.
25680         * math/e_hypotl.c: Likewise.
25681         * math/e_j0l.c: Likewise.
25682         * math/e_j1l.c: Likewise.
25683         * math/e_jnl.c: Likewise.
25684         * math/e_lgammal_r.c: Likewise.
25685         * math/e_log10l.c: Likewise.
25686         * math/e_log2l.c: Likewise.
25687         * math/e_logl.c: Likewise.
25688         * math/e_powl.c: Likewise.
25689         * math/e_rem_pio2l.c: Likewise.
25690         * math/e_sinhl.c: Likewise.
25691         * math/e_sqrtl.c: Likewise.
25692         * math/fclrexcpt.c: Likewise.
25693         * math/fedisblxcpt.c: Likewise.
25694         * math/feenablxcpt.c: Likewise.
25695         * math/fegetenv.c: Likewise.
25696         * math/fegetexcept.c: Likewise.
25697         * math/fegetround.c: Likewise.
25698         * math/feholdexcpt.c: Likewise.
25699         * math/fesetenv.c: Likewise.
25700         * math/fesetround.c: Likewise.
25701         * math/feupdateenv.c: Likewise.
25702         * math/fgetexcptflg.c: Likewise.
25703         * math/fraiseexcpt.c: Likewise.
25704         * math/fsetexcptflg.c: Likewise.
25705         * math/ftestexcept.c: Likewise.
25706         * math/k_cosl.c: Likewise.
25707         * math/k_rem_pio2l.c: Likewise.
25708         * math/k_sinl.c: Likewise.
25709         * math/k_tanl.c: Likewise.
25710         * math/s_asinhl.c: Likewise.
25711         * math/s_atanl.c: Likewise.
25712         * math/s_cbrtl.c: Likewise.
25713         * math/s_erfl.c: Likewise.
25714         * math/s_expm1l.c: Likewise.
25715         * math/s_log1pl.c: Likewise.
25716         * math/s_tanhl.c: Likewise.
25717         * misc/acct.c: Likewise.
25718         * misc/brk.c: Likewise.
25719         * misc/chflags.c: Likewise.
25720         * misc/chroot.c: Likewise.
25721         * misc/fchflags.c: Likewise.
25722         * misc/fgetxattr.c: Likewise.
25723         * misc/flistxattr.c: Likewise.
25724         * misc/fremovexattr.c: Likewise.
25725         * misc/fsetxattr.c: Likewise.
25726         * misc/fsync.c: Likewise.
25727         * misc/ftruncate.c: Likewise.
25728         * misc/futimes.c: Likewise.
25729         * misc/futimesat.c: Likewise.
25730         * misc/getdomain.c: Likewise.
25731         * misc/getdtsz.c: Likewise.
25732         * misc/gethostid.c: Likewise.
25733         * misc/gethostname.c: Likewise.
25734         * misc/getloadavg.c: Likewise.
25735         * misc/getpagesize.c: Likewise.
25736         * misc/getsysstats.c: Likewise.
25737         * misc/getxattr.c: Likewise.
25738         * misc/gtty.c: Likewise.
25739         * misc/ioctl.c: Likewise.
25740         * misc/lgetxattr.c: Likewise.
25741         * misc/listxattr.c: Likewise.
25742         * misc/llistxattr.c: Likewise.
25743         * misc/lremovexattr.c: Likewise.
25744         * misc/lsetxattr.c: Likewise.
25745         * misc/lutimes.c: Likewise.
25746         * misc/madvise.c: Likewise.
25747         * misc/mincore.c: Likewise.
25748         * misc/mlock.c: Likewise.
25749         * misc/mlockall.c: Likewise.
25750         * misc/mmap.c: Likewise.
25751         * misc/mprotect.c: Likewise.
25752         * misc/msync.c: Likewise.
25753         * misc/munlock.c: Likewise.
25754         * misc/munlockall.c: Likewise.
25755         * misc/munmap.c: Likewise.
25756         * misc/preadv.c: Likewise.
25757         * misc/preadv64.c: Likewise.
25758         * misc/ptrace.c: Likewise.
25759         * misc/pwritev.c: Likewise.
25760         * misc/pwritev64.c: Likewise.
25761         * misc/readv.c: Likewise.
25762         * misc/reboot.c: Likewise.
25763         * misc/remap_file_pages.c: Likewise.
25764         * misc/removexattr.c: Likewise.
25765         * misc/revoke.c: Likewise.
25766         * misc/select.c: Likewise.
25767         * misc/setdomain.c: Likewise.
25768         * misc/setegid.c: Likewise.
25769         * misc/seteuid.c: Likewise.
25770         * misc/sethostid.c: Likewise.
25771         * misc/sethostname.c: Likewise.
25772         * misc/setregid.c: Likewise.
25773         * misc/setreuid.c: Likewise.
25774         * misc/setxattr.c: Likewise.
25775         * misc/sstk.c: Likewise.
25776         * misc/stty.c: Likewise.
25777         * misc/swapoff.c: Likewise.
25778         * misc/swapon.c: Likewise.
25779         * misc/sync.c: Likewise.
25780         * misc/syncfs.c: Likewise.
25781         * misc/syscall.c: Likewise.
25782         * misc/truncate.c: Likewise.
25783         * misc/ualarm.c: Likewise.
25784         * misc/usleep.c: Likewise.
25785         * misc/ustat.c: Likewise.
25786         * misc/utimes.c: Likewise.
25787         * misc/vhangup.c: Likewise.
25788         * misc/writev.c: Likewise.
25789         * posix/_exit.c: Likewise.
25790         * posix/alarm.c: Likewise.
25791         * posix/execve.c: Likewise.
25792         * posix/fexecve.c: Likewise.
25793         * posix/fork.c: Likewise.
25794         * posix/fpathconf.c: Likewise.
25795         * posix/getaddrinfo.c: Likewise.
25796         * posix/getegid.c: Likewise.
25797         * posix/geteuid.c: Likewise.
25798         * posix/getgid.c: Likewise.
25799         * posix/getgroups.c: Likewise.
25800         * posix/getlogin.c: Likewise.
25801         * posix/getlogin_r.c: Likewise.
25802         * posix/getpgid.c: Likewise.
25803         * posix/getpid.c: Likewise.
25804         * posix/getppid.c: Likewise.
25805         * posix/getresgid.c: Likewise.
25806         * posix/getresuid.c: Likewise.
25807         * posix/getsid.c: Likewise.
25808         * posix/getuid.c: Likewise.
25809         * posix/glob64.c: Likewise.
25810         * posix/nanosleep.c: Likewise.
25811         * posix/pathconf.c: Likewise.
25812         * posix/pause.c: Likewise.
25813         * posix/posix_madvise.c: Likewise.
25814         * posix/pread.c: Likewise.
25815         * posix/pread64.c: Likewise.
25816         * posix/pwrite.c: Likewise.
25817         * posix/pwrite64.c: Likewise.
25818         * posix/sched_getaffinity.c: Likewise.
25819         * posix/sched_getp.c: Likewise.
25820         * posix/sched_gets.c: Likewise.
25821         * posix/sched_primax.c: Likewise.
25822         * posix/sched_primin.c: Likewise.
25823         * posix/sched_rr_gi.c: Likewise.
25824         * posix/sched_setaffinity.c: Likewise.
25825         * posix/sched_setp.c: Likewise.
25826         * posix/sched_sets.c: Likewise.
25827         * posix/sched_yield.c: Likewise.
25828         * posix/setgid.c: Likewise.
25829         * posix/setlogin.c: Likewise.
25830         * posix/setpgid.c: Likewise.
25831         * posix/setresgid.c: Likewise.
25832         * posix/setresuid.c: Likewise.
25833         * posix/setsid.c: Likewise.
25834         * posix/setuid.c: Likewise.
25835         * posix/sleep.c: Likewise.
25836         * posix/spawni.c: Likewise.
25837         * posix/sysconf.c: Likewise.
25838         * posix/times.c: Likewise.
25839         * posix/wait.c: Likewise.
25840         * posix/wait3.c: Likewise.
25841         * posix/wait4.c: Likewise.
25842         * posix/waitpid.c: Likewise.
25843         * resolv/gai_sigqueue.c: Likewise.
25844         * resource/getpriority.c: Likewise.
25845         * resource/getrlimit.c: Likewise.
25846         * resource/getrusage.c: Likewise.
25847         * resource/nice.c: Likewise.
25848         * resource/setpriority.c: Likewise.
25849         * resource/setrlimit.c: Likewise.
25850         * resource/ulimit.c: Likewise.
25851         * rt/aio_cancel.c: Likewise.
25852         * rt/aio_fsync.c: Likewise.
25853         * rt/aio_read.c: Likewise.
25854         * rt/aio_sigqueue.c: Likewise.
25855         * rt/aio_suspend.c: Likewise.
25856         * rt/aio_write.c: Likewise.
25857         * rt/clock_getres.c: Likewise.
25858         * rt/clock_gettime.c: Likewise.
25859         * rt/clock_nanosleep.c: Likewise.
25860         * rt/clock_settime.c: Likewise.
25861         * rt/lio_listio.c: Likewise.
25862         * rt/mq_close.c: Likewise.
25863         * rt/mq_getattr.c: Likewise.
25864         * rt/mq_notify.c: Likewise.
25865         * rt/mq_open.c: Likewise.
25866         * rt/mq_receive.c: Likewise.
25867         * rt/mq_send.c: Likewise.
25868         * rt/mq_setattr.c: Likewise.
25869         * rt/mq_timedreceive.c: Likewise.
25870         * rt/mq_timedsend.c: Likewise.
25871         * rt/mq_unlink.c: Likewise.
25872         * rt/shm_open.c: Likewise.
25873         * rt/shm_unlink.c: Likewise.
25874         * rt/timer_create.c: Likewise.
25875         * rt/timer_delete.c: Likewise.
25876         * rt/timer_getoverr.c: Likewise.
25877         * rt/timer_gettime.c: Likewise.
25878         * rt/timer_settime.c: Likewise.
25879         * setjmp/__longjmp.c: Likewise.
25880         * setjmp/setjmp.c: Likewise.
25881         * signal/kill.c: Likewise.
25882         * signal/killpg.c: Likewise.
25883         * signal/raise.c: Likewise.
25884         * signal/sigaction.c: Likewise.
25885         * signal/sigaltstack.c: Likewise.
25886         * signal/sigblock.c: Likewise.
25887         * signal/sigignore.c: Likewise.
25888         * signal/sigintr.c: Likewise.
25889         * signal/signal.c: Likewise.
25890         * signal/sigpause.c: Likewise.
25891         * signal/sigpending.c: Likewise.
25892         * signal/sigqueue.c: Likewise.
25893         * signal/sigreturn.c: Likewise.
25894         * signal/sigset.c: Likewise.
25895         * signal/sigsetmask.c: Likewise.
25896         * signal/sigstack.c: Likewise.
25897         * signal/sigsuspend.c: Likewise.
25898         * signal/sigtimedwait.c: Likewise.
25899         * signal/sigvec.c: Likewise.
25900         * signal/sigwait.c: Likewise.
25901         * signal/sigwaitinfo.c: Likewise.
25902         * signal/sysv_signal.c: Likewise.
25903         * socket/accept.c: Likewise.
25904         * socket/accept4.c: Likewise.
25905         * socket/bind.c: Likewise.
25906         * socket/connect.c: Likewise.
25907         * socket/getpeername.c: Likewise.
25908         * socket/getsockname.c: Likewise.
25909         * socket/getsockopt.c: Likewise.
25910         * socket/isfdtype.c: Likewise.
25911         * socket/listen.c: Likewise.
25912         * socket/recv.c: Likewise.
25913         * socket/recvfrom.c: Likewise.
25914         * socket/recvmsg.c: Likewise.
25915         * socket/send.c: Likewise.
25916         * socket/sendmsg.c: Likewise.
25917         * socket/sendto.c: Likewise.
25918         * socket/setsockopt.c: Likewise.
25919         * socket/shutdown.c: Likewise.
25920         * socket/sockatmark.c: Likewise.
25921         * socket/socket.c: Likewise.
25922         * socket/socketpair.c: Likewise.
25923         * stdio-common/ctermid.c: Likewise.
25924         * stdio-common/cuserid.c: Likewise.
25925         * stdio-common/remove.c: Likewise.
25926         * stdio-common/rename.c: Likewise.
25927         * stdio-common/renameat.c: Likewise.
25928         * stdio-common/tempname.c: Likewise.
25929         * stdlib/getcontext.c: Likewise.
25930         * stdlib/makecontext.c: Likewise.
25931         * stdlib/setcontext.c: Likewise.
25932         * stdlib/swapcontext.c: Likewise.
25933         * stdlib/system.c: Likewise.
25934         * streams/fattach.c: Likewise.
25935         * streams/fdetach.c: Likewise.
25936         * streams/getmsg.c: Likewise.
25937         * streams/getpmsg.c: Likewise.
25938         * streams/putmsg.c: Likewise.
25939         * streams/putpmsg.c: Likewise.
25940         * sysdeps/unix/bsd/getpt.c: Likewise.
25941         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
25942         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
25943         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
25944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
25945         Likewise.
25946         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
25947         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
25948         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
25949         * sysvipc/msgctl.c: Likewise.
25950         * sysvipc/msgget.c: Likewise.
25951         * sysvipc/msgrcv.c: Likewise.
25952         * sysvipc/msgsnd.c: Likewise.
25953         * sysvipc/semctl.c: Likewise.
25954         * sysvipc/semget.c: Likewise.
25955         * sysvipc/semop.c: Likewise.
25956         * sysvipc/semtimedop.c: Likewise.
25957         * sysvipc/shmat.c: Likewise.
25958         * sysvipc/shmctl.c: Likewise.
25959         * sysvipc/shmdt.c: Likewise.
25960         * sysvipc/shmget.c: Likewise.
25961         * termios/tcdrain.c: Likewise.
25962         * termios/tcflow.c: Likewise.
25963         * termios/tcflush.c: Likewise.
25964         * termios/tcgetattr.c: Likewise.
25965         * termios/tcgetpgrp.c: Likewise.
25966         * termios/tcsendbrk.c: Likewise.
25967         * termios/tcsetattr.c: Likewise.
25968         * termios/tcsetpgrp.c: Likewise.
25969         * time/adjtime.c: Likewise.
25970         * time/clock.c: Likewise.
25971         * time/getitimer.c: Likewise.
25972         * time/gettimeofday.c: Likewise.
25973         * time/setitimer.c: Likewise.
25974         * time/settimeofday.c: Likewise.
25975         * time/stime.c: Likewise.
25976         * time/time.c: Likewise.
25977
25978 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
25979
25980         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
25981         /usr/old/bin.
25982
25983         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
25984         instead of spaces.
25985         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
25986
25987 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
25988
25989         [BZ #14796]
25990         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
25991         FE_TONEAREST before applying Dekker multiplication and Knuth
25992         addition.  Clear inexact exceptions and check for exact zero
25993         results afterwards.
25994         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25995         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
25996         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25997         * math/libm-test.inc (fma_test): Add more tests.
25998         (fma_test_towardzero): Likewise.
25999         (fma_test_downward): Likewise.
26000         (fma_test_upward): Likewise.
26001         * sysdeps/generic/math_private.h (default_libc_fesetround): New
26002         function.
26003         (libc_fesetround): New macro.
26004         (libc_fesetroundf): Likewise.
26005         (libc_fesetroundl): Likewise.
26006         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
26007         function.
26008         (libc_fesetround_387): Likewise.
26009         (libc_fesetroundf): New macro.
26010         (libc_fesetround): Likewise.
26011         (libc_fesetroundl): Likewise.
26012         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
26013         function.
26014         (libc_fesetroundf): New macro.
26015         (libc_fesetround): Likewise.
26016         (libc_fesetroundl): Likewise.
26017         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
26018         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
26019         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
26020         libm_hidden_ver.
26021         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
26022         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
26023         libm_hidden_def.
26024         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
26025         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
26026         libm_hidden_ver.
26027         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
26028         libm_hidden_def.
26029
26030         [BZ #3439]
26031         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
26032         integer constant usable in #if and use that to give value to enum
26033         constant.
26034         (FE_DIVBYZERO): Likewise.
26035         (FE_UNDERFLOW): Likewise.
26036         (FE_OVERFLOW): Likewise.
26037         (FE_INVALID): Likewise.
26038         (FE_INVALID_SNAN): Likewise.
26039         (FE_INVALID_ISI): Likewise.
26040         (FE_INVALID_IDI): Likewise.
26041         (FE_INVALID_ZDZ): Likewise.
26042         (FE_INVALID_IMZ): Likewise.
26043         (FE_INVALID_COMPARE): Likewise.
26044         (FE_INVALID_SOFTWARE): Likewise.
26045         (FE_INVALID_SQRT): Likewise.
26046         (FE_INVALID_INTEGER_CONVERSION): Likewise.
26047         (FE_TONEAREST): Likewise.
26048         (FE_TOWARDZERO): Likewise.
26049         (FE_UPWARD): Likewise.
26050         (FE_DOWNWARD): Likewise.
26051         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
26052         (FE_DIVBYZERO): Likewise.
26053         (FE_OVERFLOW): Likewise.
26054         (FE_UNDERFLOW): Likewise.
26055         (FE_INEXACT): Likewise.
26056         (FE_TONEAREST): Likewise.
26057         (FE_DOWNWARD): Likewise.
26058         (FE_UPWARD): Likewise.
26059         (FE_TOWARDZERO): Likewise.
26060         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
26061         (FE_UNDERFLOW): Likewise.
26062         (FE_OVERFLOW): Likewise.
26063         (FE_DIVBYZERO): Likewise.
26064         (FE_INVALID): Likewise.
26065         (FE_TONEAREST): Likewise.
26066         (FE_TOWARDZERO): Likewise.
26067         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
26068         (FE_OVERFLOW): Likewise.
26069         (FE_UNDERFLOW): Likewise.
26070         (FE_DIVBYZERO): Likewise.
26071         (FE_INEXACT): Likewise.
26072         (FE_TONEAREST): Likewise.
26073         (FE_TOWARDZERO): Likewise.
26074         (FE_UPWARD): Likewise.
26075         (FE_DOWNWARD): Likewise.
26076         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
26077         (FE_DIVBYZERO): Likewise.
26078         (FE_OVERFLOW): Likewise.
26079         (FE_UNDERFLOW): Likewise.
26080         (FE_INEXACT): Likewise.
26081         (FE_TONEAREST): Likewise.
26082         (FE_DOWNWARD): Likewise.
26083         (FE_UPWARD): Likewise.
26084         (FE_TOWARDZERO): Likewise.
26085
26086 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
26087
26088         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
26089
26090 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
26091
26092         * scripts/cross-test-ssh.sh (command): Use newlines to separate
26093         commands.  Quote $PWD.
26094         (blacklist_exports): Don't use remove_newlines.  Replace "declare
26095         -x" by "export".
26096         (remove_newlines): Remove.
26097
26098 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
26099
26100         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
26101         * stdlib/stdlib.h (atof): Moved to ...
26102         * include/bits/stdlib-float.h: Here.  New file.
26103         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
26104         * stdlib/bits/stdlib-float.h: New file.
26105         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
26106         -mno-sse -mno-mmx.
26107         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
26108         <xmmintrin.h>.
26109
26110 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26111
26112         * conform/conformtest.pl (@headers): Add fenv.h.
26113         * conform/data/fenv.h-data: New file.
26114         * include/fenv.h [_ISOMAC]: Disable all contents of file except
26115         include of <math/fenv.h>.
26116
26117         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
26118         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
26119         && !UNIX98].  Enables tests for XOPEN2K8.
26120         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
26121         POSIX2008]: Likewise.
26122
26123         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
26124         (struct rusage): Do not expect type or its members.
26125
26126         [BZ #3439]
26127         * math/math.h (FP_NAN): Define macro to integer constant usable in
26128         #if and use that to give value to enum constant.
26129         (FP_INFINITE): Likewise.
26130         (FP_ZERO): Likewise.
26131         (FP_SUBNORMAL): Likewise.
26132         (FP_NORMAL): Likewise.
26133
26134 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
26135
26136         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
26137         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
26138         arguments.
26139
26140 2012-11-02  Roland McGrath  <roland@hack.frob.com>
26141
26142         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
26143         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
26144         autoconf-time if not.
26145         * configure.in: Remove AC_PREREQ.
26146
26147 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26148
26149         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
26150         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
26151         of the internal implementation.
26152
26153 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26154
26155         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
26156         except include of <misc/sys/syslog.h>.
26157
26158 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26159
26160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
26161         function returns with a NULL context exit with zero.
26162
26163 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26164
26165         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
26166
26167 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26168
26169         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
26170         (run_program_cmd): This.
26171         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
26172         (tst_langinfo): New variable.  Use it.
26173
26174 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
26175
26176         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
26177         floating point opcodes.
26178
26179 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26180
26181         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
26182         variable.
26183
26184         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
26185
26186         * sysdeps/mach/hurd/powerpc: Remove directory.
26187         * sysdeps/mach/powerpc: Likewise.
26188
26189 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26190
26191         * scripts/check-local-headers.sh: Ignore c++ headers.
26192
26193 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26194
26195         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
26196         __libc_cleanup_region_start argument.
26197
26198 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
26199
26200         [BZ #14784]
26201         [BZ #14785]
26202         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
26203         x * y using scaling, not as x * y + z.
26204         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26205         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26206         * math/libm-test.inc (fma_test): Add more tests.
26207         (fma_test_towardzero): Likewise.
26208         (fma_test_downward): Likewise.
26209         (fma_test_upward): Likewise.
26210
26211 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26212
26213         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
26214
26215 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26216
26217         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
26218         New variable.
26219
26220 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
26221
26222         * rt/tst-shm.c (worker): Correct checking for mmap failure.
26223
26224 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26225
26226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26227         Fix sort order.
26228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26229         Likewise.
26230
26231 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26232
26233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26234         Fix the order of the list for glibc 2.17.
26235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26236         Likewise.
26237
26238 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26239
26240         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26241
26242 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26243
26244         [BZ #14610]
26245         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
26246         for low part of x being zero before using __atanl (y).
26247         * math/libm-test.inc (atan2_test): Add another test.
26248
26249         * manual/install.texi (Configuring and compiling): Document
26250         general use of test-wrapper and test-wrapper-env.
26251         * INSTALL: Regenerated.
26252
26253         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
26254         (__fma): Do not extract and scale down low bits on after-rounding
26255         systems when result rounded to normal precision would have normal
26256         exponent.
26257         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
26258         (__fmal): Do not extract and scale down low bits on after-rounding
26259         systems when result rounded to normal precision would have normal
26260         exponent.
26261         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
26262         (__fmal): Do not extract and scale down low bits on after-rounding
26263         systems when result rounded to normal precision would have normal
26264         exponent.
26265         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
26266         macro.
26267         (fma_test): Add more tests.
26268         (fma_test_towardzero): Likewise.
26269         (fma_test_downward): Likewise.
26270         (fma_test_upward): Likewise.
26271
26272 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26273
26274         * sysdeps/i386/tininess.h: Renamed to ...
26275         * sysdeps/x86/tininess.h: This.
26276         * sysdeps/x86_64/tininess.h: Removed.
26277
26278 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26279
26280         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
26281         input.  Use $(build-program-cmd).
26282         ($(objpfx)tst-array1-static.out): Likewise.
26283         ($(objpfx)tst-array2.out): Likewise.
26284         ($(objpfx)tst-array3.out): Likewise.
26285         ($(objpfx)tst-array4.out): Likewise.
26286         ($(objpfx)tst-array5.out): Likewise.
26287         ($(objpfx)tst-array5-static.out): Likewise.
26288
26289 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
26290
26291         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
26292         if defined.
26293
26294         * nss/nsswitch.h (nss_interface_function): Provide new
26295         macro for use with NSS functions.
26296         * grp/initgroups.c: Use new macro.
26297         * nss/getXXbyYY.c: Likewise.
26298         * nss/getXXbyYY_r.c: Likewise.
26299         * nss/getXXent.c: Likewise.
26300         * nss/getXXent_r.c: Likewise.
26301         * sysdeps/posix/getaddrinfo.c: Likewise.
26302
26303 2012-10-30  Andreas Jaeger  <aj@suse.de>
26304
26305         * po/ru.po: Update Russion translation from translation project.
26306
26307 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26308
26309         [BZ #14152]
26310         [BZ #14783]
26311         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
26312         result and shift together with sticky bit instead of replicating
26313         round-to-nearest rounding.
26314         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26315         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26316         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
26317         missing underflow exceptions.
26318         (fma_test_towardzero): Add more tests.
26319         (fma_test_downward): Likewise.
26320         (fma_test_upward): Likewise.
26321
26322         [BZ #14047]
26323         * sysdeps/generic/tininess.h: New file.
26324         * sysdeps/i386/tininess.h: Likewise.
26325         * sysdeps/sh/tininess.h: Likewise.
26326         * sysdeps/x86_64/tininess.h: Likewise.
26327         * stdlib/tst-strtod-underflow.c: Likewise.
26328         * stdlib/tst-tininess.c: Likewise.
26329         * stdlib/strtod_l.c: Include <tininess.h>.
26330         (round_and_return): Do not set errno for exact underflow cases.
26331         Force an underflow exception when setting errno for underflow.
26332         Determine underflow based on rounding to normal precision if
26333         TININESS_AFTER_ROUNDING.
26334         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
26335         ERANGE for exact underflow cases.
26336         * stdlib/Makefile (tests): Add tst-tininess and
26337         tst-strtod-underflow.
26338         ($(objpfx)tst-tininess): Use $(link-libm).
26339         ($(objpfx)tst-strtod-underflow): Likewise.
26340
26341 2012-10-30  Andreas Jaeger  <aj@suse.de>
26342
26343         [BZ#14767]
26344         * elf/Makefile (tests): Remove conditional for have-initfini-array
26345         since this is now always required and the variable does not exist
26346         anymore.
26347         (tests-static): Likewise.
26348         (modules-names): Likewise.
26349
26350         * po/eo.po: Add Esperanto translation from translation project.
26351
26352         * elf/tst-array1.c (fini_array): Make writeable so that it can be
26353         merged with constructor/destructor.
26354         (init_array): Likewise.
26355         * elf/tst-array2dep.c (fini_array): Likewise.
26356         (init_array): Likewise.
26357
26358 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
26359
26360         * manual/message.texi: Delete @cartouche tags.
26361
26362 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
26363
26364         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
26365         EOPNOTSUPP.
26366         * sysdeps/mach/hurd/fsync.c: Likewise.
26367
26368         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
26369         [_POSIX_REALTIME_SIGNALS]: Change condition to
26370         [_POSIX_REALTIME_SIGNALS > 0].
26371
26372 2012-10-27  Andreas Jaeger  <aj@suse.de>
26373
26374         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
26375         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
26376         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
26377         [__WORDSIZE != 64]: Likewise.
26378
26379 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
26380
26381         *  iconvdata/tst-table.sh: Remove ${SHELL}.
26382         *  iconvdata/tst-tables.sh: Likewise.
26383
26384 2012-10-25  David S. Miller  <davem@davemloft.net>
26385
26386         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26387         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
26388         of strtoull.
26389
26390         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
26391         ifunc-impl-list.c
26392         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26393         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
26394         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
26395         file.
26396
26397 2012-10-25  Roland McGrath  <roland@hack.frob.com>
26398
26399         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26400         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
26401         __getdirentries.
26402
26403 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26404             Jim Blandy  <jimb@codesourcery.com>
26405
26406         * scripts/cross-test-ssh.sh: New file.
26407         * manual/install.texi (Configuring and compiling): Document use of
26408         cross-test-ssh.sh.
26409         * INSTALL: Regenerated.
26410
26411 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
26412
26413         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
26414         EOPNOTSUPP.
26415
26416 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26417
26418         * Makeconfig (run-program-prefix): Fix comment.
26419
26420 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26421             Jim Blandy  <jimb@codesourcery.com>
26422
26423         * Makeconfig (test-wrapper): New variable,
26424         (test-wrapper-env): Likewise.
26425         [$(cross-compiling) = yes && $(test-wrapper) != ""]
26426         (run-built-tests): Define to yes.
26427         (run-program-prefix): Use $(test-wrapper).
26428         (built-program-cmd): Likewise.
26429         * Rules (make-test-out): Use $(test-wrapper-env) and
26430         $(host-built-program-cmd).
26431         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
26432         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
26433         tst-pathopt.sh.
26434         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
26435         $(test-wrapper-env) to tst-rtld-load-self.sh.
26436         ($(objpfx)order2.out): Use $(test-wrapper).
26437         ($(objpfx)tst-initorder.out): Likewise.
26438         ($(objpfx)tst-initorder2.out): Likewise.
26439         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
26440         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
26441         (test_wrapper_env): New variable.  Use it to run ld.so.
26442         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
26443         Use it to run ld.so.
26444         (test_wrapper_env): Likewise.
26445         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
26446         $(test-wrapper) to run-iconv-test.sh.
26447         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
26448         (ICONV): Use $test_wrapper.
26449         * posix/Makefile ($(objpfx)globtest.out): Pass
26450         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
26451         globtest.sh, not $(run-program-prefix).
26452         * posix/globtest.sh (run_via_rtld_prefix): New variable.
26453         (test_wrapper): Likewise.
26454         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
26455         set together with run_via_rtld_prefix.
26456         (run_program_prefix): Define in terms of test_wrapper and
26457         run_via_rtld_prefix.
26458
26459 2012-10-24  Roland McGrath  <roland@hack.frob.com>
26460
26461         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
26462         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
26463         Targets removed.
26464
26465         [BZ #14743]
26466         * include/time.h: Remove librt_hidden_proto (clock_gettime).
26467         Declare __clock_getres, __clock_gettime, __clock_settime,
26468         __clock_nanosleep, and __clock_getcpuclockid.
26469         * rt/clock_gettime.c: Define __clock_gettime as an alias.
26470         Remove librt_hidden_def (clock_gettime).
26471         * sysdeps/unix/clock_gettime.c: Likewise.
26472         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
26473         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
26474         * rt/clock_getres.c: Define __clock_getres as an alias.
26475         * sysdeps/posix/clock_getres.c: Likewise.
26476         * rt/clock_settime.c: Define __clock_settime as an alias.
26477         * sysdeps/unix/clock_settime.c: Likewise.
26478         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
26479         * sysdeps/unix/clock_nanosleep.c: Likewise.
26480         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
26481         * rt/clock-compat.c: New file.
26482         * rt/Makefile (librt-routines): Add clock-compat and move
26483         $(clock-routines) to ...
26484         (routines): ... here, new variable.
26485         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
26486         Don't add get_clockfreq here.
26487         * rt/Versions (libc: GLIBC_2.17): New version set.
26488         Add clock_* symbols here.
26489         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
26490         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
26491         (GLIBC_2.17): Add clock_* symbols.
26492         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
26493         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
26494         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
26495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26496         Likewise.
26497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26498         Likewise.
26499         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
26500         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
26501         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
26502         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
26503         * NEWS: Mention the move.
26504
26505         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
26506         Use __open, __read, __close rather than their public counterparts.
26507         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26508         (__get_clockfreq_via_cpuinfo): Likewise.
26509         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
26510         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
26511
26512         * config.h.in (HAVE_IFUNC): New #undef.
26513         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
26514         was successful.
26515         * configure: Regenerated.
26516
26517 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26518
26519         * configure.in: Move READELF check to start of file.
26520         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
26521         libc_cv_asm_gnu_indirect_function in the process.
26522         * configure: Regenerated.
26523
26524 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26525
26526         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
26527         send the output to /dev/null.
26528         (libc_cv_cc_with_libunwind): Likewise.
26529         (libc_cv_as_noexecstack): Likewise.
26530         * configure: Regenerate.
26531
26532 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26533
26534         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
26535
26536         * posix/globtest.sh (TMPDIR): Do not set.
26537         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
26538         (testout): Likewise.
26539
26540 2012-10-24  Andreas Jaeger  <aj@suse.de>
26541
26542         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
26543         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
26544         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
26545         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
26546         posix_fadvise64, posix_fallocate64.
26547
26548         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
26549         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
26550         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
26551         Likewise.
26552         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
26553         Likewise.
26554         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
26555
26556         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
26557         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
26558         <bits/fcntl-linux.h>.
26559         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
26560
26561         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
26562         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
26563         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
26564         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
26565         [__WORDSIZE != 64]: Likewise.
26566
26567 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26568
26569         * Makeconfig (run-built-tests): New variable.
26570         * Rules [$(cross-compiling) = yes]: Change condition to
26571         [$(run-built-tests) = no].
26572         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
26573         to [$(run-built-tests) = yes].
26574         * elf/Makefile [$(cross-compiling) = no]: Likewise
26575         * grp/Makefile [$(cross-compiling) = no]: Likewise.
26576         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
26577         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
26578         * intl/Makefile [$(cross-compiling) = no]: Likewise.
26579         * io/Makefile [$(cross-compiling) = no]: Likewise.
26580         * libio/Makefile [$(cross-compiling) = no]: Likewise.
26581         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
26582         * misc/Makefile [$(cross-compiling) = no]: Likewise.
26583         * posix/Makefile [$(cross-compiling) = no]: Likewise.
26584         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
26585         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
26586         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
26587         * string/Makefile [$(cross-compiling) = no]: Likewise.
26588
26589         * posix/Makefile ($(objpfx)globtest.out): Pass
26590         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
26591         $(rtld-installed-name).
26592         * posix/globtest.sh (elf_objpfx): Remove variable.
26593         (rtld_installed_name): Likewise.
26594         (library_path): Likewise.
26595         (run_program_prefix): New variable.  Use for running globtest
26596         binary.
26597
26598 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
26599             Joseph Myers  <joseph@codesourcery.com>
26600
26601         * Makeconfig (host-built-program-cmd): New variable.
26602         * elf/Makefile (tst-stackguard1-ARGS): Use
26603         $(host-built-program-cmd).
26604         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
26605         (tst-spawn-ARGS): Likewise.
26606         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
26607
26608 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26609             Jim Blandy  <jimb@codesourcery.com>
26610
26611         * Makeconfig (run-via-rtld-prefix): New variable.
26612         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
26613         (built-program-cmd): Likewise.
26614
26615 2012-10-22  Andreas Jaeger  <aj@suse.de>
26616
26617         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
26618         __O_RSYNC if it exists, otherwise to O_SYNC.
26619
26620 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
26621             Joseph Myers  <joseph@codesourcery.com>
26622
26623         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
26624         /dev/null.
26625         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
26626         from /dev/null
26627         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
26628         /dev/null.
26629
26630 2012-10-22  Andreas Jaeger  <aj@suse.de>
26631
26632         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
26633         Define always.
26634         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
26635
26636         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26637         bits/fcntl-linux.h.
26638
26639         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
26640         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
26641
26642         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
26643         to __O_LARGEFILE.
26644         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
26645         to __O_LARGEFILE.
26646
26647 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
26648             Joseph Myers  <joseph@codesourcery.com>
26649
26650         * config.make.in (NM): New variable.
26651
26652 2012-10-21  Andreas Jaeger  <aj@suse.de>
26653
26654         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
26655         definitions and declarations that are provided by
26656         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
26657
26658 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26659
26660         [BZ #14683]
26661         * elf/Makefile (tests-static): Add tst-leaks1-static.
26662         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
26663         ($(objpfx)tst-leaks1-static): New rule.
26664         ($(objpfx)tst-leaks1-static-mem): Likewise.
26665         (tst-leaks1-static-ENV): New macro.
26666         * elf/dl-open.c (dl_open_worker): Check the main application
26667         only if SHARED is defined.
26668         * elf/tst-leaks1-static.c: New file.
26669
26670 2012-10-20  Andreas Jaeger  <aj@suse.de>
26671
26672         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
26673         generic values for Linux.
26674         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
26675         and declarations that are provided by <bits/fcntl-linux.h> and
26676         include <bits/fcntl-linux.h>.
26677         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26678         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26679
26680 2012-10-20  Roland McGrath  <roland@hack.frob.com>
26681
26682         * io/fcntl.h: Move include of <bits/types.h> to the top and
26683         include it unconditionally.
26684
26685 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26686
26687         * wcsmbs/Makefile (tests-ifunc): New variable.
26688         (tests): Add $(tests-ifunc).
26689         * wcsmbs/test-wcschr-ifunc.c: New file.
26690         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
26691         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
26692         * wcsmbs/test-wcslen-ifunc.c: Likewise.
26693         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
26694         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26695
26696         * string/Makefile (tests-ifunc): New variable.
26697         (tests): Add $(tests-ifunc).
26698         * string/test-memccpy.c (TEST_NAME): New macro.
26699         * string/test-memchr.c (TEST_NAME): Likewise.
26700         * string/test-memcmp.c (TEST_NAME): Likewise.
26701         * string/test-memcpy.c (TEST_NAME): Likewise.
26702         * string/test-memmem.c (TEST_NAME): Likewise.
26703         * string/test-memmove.c (TEST_NAME): Likewise.
26704         * string/test-memset.c (TEST_NAME): Likewise.
26705         * string/test-rawmemchr.c (TEST_NAME): Likewise.
26706         * string/test-stpcpy.c (TEST_NAME): Likewise.
26707         * string/test-stpncpy.c (TEST_NAME): Likewise.
26708         * string/test-strcasecmp.c (TEST_NAME): Likewise.
26709         * string/test-strcasestr.c (TEST_NAME): Likewise.
26710         * string/test-strcat.c (TEST_NAME): Likewise.
26711         * string/test-strchr.c (TEST_NAME): Likewise.
26712         * string/test-strcmp.c(TEST_NAME): Likewise.
26713         * string/test-strcpy.c (TEST_NAME): Likewise.
26714         * string/test-strcspn.c (TEST_NAME): Likewise.
26715         * string/test-strlen.c (TEST_NAME): Likewise.
26716         * string/test-strncasecmp.c (TEST_NAME): Likewise.
26717         * string/test-strncmp.c (TEST_NAME): Likewise.
26718         * string/test-strncpy.c (TEST_NAME): Likewise.
26719         * string/test-strnlen.c (TEST_NAME): Likewise.
26720         * string/test-strpbrk.c (TEST_NAME): Likewise.
26721         * string/test-strrchr.c (TEST_NAME): Likewise.
26722         * string/test-strspn.c (TEST_NAME): Likewise.
26723         * string/test-strstr.c (TEST_NAME): Likewise.
26724         * string/test-bcopy-ifunc.c: New file.
26725         * string/test-bzero-ifunc.c: Likewise.
26726         * string/test-memccpy-ifunc.c: Likewise.
26727         * string/test-memchr-ifunc.c: Likewise.
26728         * string/test-memcmp-ifunc.c: Likewise.
26729         * string/test-memcpy-ifunc.c: Likewise.
26730         * string/test-memmem-ifunc.c: Likewise.
26731         * string/test-memmove-ifunc.c: Likewise.
26732         * string/test-mempcpy-ifunc.c: Likewise.
26733         * string/test-memset-ifunc.c: Likewise.
26734         * string/test-rawmemchr-ifunc.c: Likewise.
26735         * string/test-stpcpy-ifunc.c: Likewise.
26736         * string/test-stpncpy-ifunc.c: Likewise.
26737         * string/test-strcasecmp-ifunc.c: Likewise.
26738         * string/test-strcasestr-ifunc.c: Likewise.
26739         * string/test-strcat-ifunc.c: Likewise.
26740         * string/test-strchr-ifunc.c: Likewise.
26741         * string/test-strchrnul-ifunc.c: Likewise.
26742         * string/test-strcmp-ifunc.c: Likewise.
26743         * string/test-strcpy-ifunc.c: Likewise.
26744         * string/test-strcspn-ifunc.c: Likewise.
26745         * string/test-strlen-ifunc.c: Likewise.
26746         * string/test-strncasecmp-ifunc.c: Likewise.
26747         * string/test-strncat-ifunc.c: Likewise.
26748         * string/test-strncmp-ifunc.c: Likewise.
26749         * string/test-strncpy-ifunc.c: Likewise.
26750         * string/test-strnlen-ifunc.c: Likewise.
26751         * string/test-strpbrk-ifunc.c: Likewise.
26752         * string/test-strrchr-ifunc.c: Likewise.
26753         * string/test-strspn-ifunc.c: Likewise.
26754         * string/test-strstr-ifunc.c: Likewise.
26755
26756         * debug/Makefile (tests-ifunc): New variable.
26757         (tests): Add $(tests-ifunc).
26758         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
26759         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
26760         * debug/test-stpcpy_chk-ifunc.c: New file.
26761         * debug/test-strcpy_chk-ifunc.c: Likewise.
26762
26763 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
26764
26765         [BZ #13601]
26766         * elf/dl-load.c (open_verify): Retry read if the entire ELF
26767         header is not read in.
26768
26769 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
26770
26771         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
26772         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
26773         directly.  Pass built executable to script as
26774         $(built-program-cmd).
26775         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
26776         $testprogram without using LD_LIBRARY_PATH and $ldso.
26777
26778         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
26779         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
26780         $(rtld-installed-name).
26781         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
26782         (rtld_installed_name): Likewise.
26783         (library_path): Likewise.
26784         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
26785         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
26786         $(run-program-prefix) to tst-tables.sh.
26787         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26788         it to run tst-table-from and tst-table-to.
26789         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
26790         Pass it to tst-table.sh.
26791         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
26792         $(run-program-prefix) to tst-gettext.sh.
26793         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
26794         tst-translit.sh.
26795         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
26796         tst-gettext2.sh.
26797         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
26798         to run tst-gettext.
26799         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
26800         to run tst-gettext2.
26801         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
26802         to run tst-translit.
26803         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
26804         $(run-program-prefix) to tst-mtrace.sh.
26805         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
26806         to run tst-mtrace.
26807         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
26808         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
26809         $(rtld-installed-name).
26810         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
26811         (rtld_installed_name): Likewise.
26812         (run_program_prefix): New variable.  Use it to run wordexp-test.
26813
26814         * Makeconfig (ARCH): Remove all definitions.
26815         (machine): Likewise.
26816         [ARCH]: Remove conditional code.
26817         [!objdir]: Give error.
26818         [!objdir] (objpfx): Remove.
26819         [!objdir] (common-objpfx): Likewise.
26820         [!objdir] (common-objdir): Likewise.
26821         * configure.in (config_makefile): Remove.  Hardcode Makefile in
26822         AC_CONFIG_FILES call.
26823         * configure: Regenerated.
26824
26825         [BZ #13888]
26826         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
26827         or TMPDIR.
26828         (testout): Likewise.
26829
26830         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
26831         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
26832         $(rtld-installed-name).
26833         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
26834         (rtld_installed_name): Likwise.
26835         (runit): Remove function.
26836         (run_getconf): New variable,  Use it for running getconf binary.
26837
26838 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
26839
26840         [BZ #14716]
26841         * string/test-memmem.c (check_result): New function.
26842         (do_one_test): Use it.
26843         (check1): New function.
26844         (test_main): Use it.
26845
26846 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
26847
26848         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
26849
26850 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
26851
26852         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
26853         (_G_LSEEK64): Likewise.
26854         (_G_MMAP64): Likewise.
26855         (_G_FSTAT64): Likewise.
26856         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
26857         (_G_LSEEK64): Likewise.
26858         (_G_MMAP64): Likewise.
26859         (_G_FSTAT64): Likewise.
26860         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
26861         unconditional.  Call __mmap64 directly.
26862         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
26863         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
26864         __lseek64 directly.
26865         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
26866         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
26867         __mmap64 directly.
26868         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
26869         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26870         __lseek64 directly.
26871         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
26872         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26873         __lseek64 directly.
26874         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
26875         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
26876         __lseek64 directly.
26877         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
26878         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
26879         __fxstat64 directly.
26880         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
26881         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
26882         unconditional.
26883         (freopen64) [!_G_OPEN64]: Remove conditional code.
26884         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
26885         unconditional.
26886         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
26887         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
26888         unconditional.
26889         (ftello64) [!_G_LSEEK64]: Remove conditional code.
26890         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
26891         unconditional.
26892         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26893         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
26894         unconditional.
26895         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
26896         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
26897         unconditional.
26898         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26899         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
26900         unconditional.
26901         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26902         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
26903         unconditional.
26904         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26905
26906 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26907
26908         [BZ #12140]
26909         * manual/memory.texi (Malloc Tunable Parameters): Add note
26910         about free list pointers overwriting some perturb bytes.
26911         Wording suggested by Roland McGrath.
26912
26913 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
26914
26915         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
26916         (lgamma_test): Likewise.
26917         (tgamma_test): Likewise.
26918
26919 2012-10-16  Florian Weimer  <fweimer@redhat.com>
26920
26921         [BZ #14700]
26922         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
26923         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
26924
26925 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
26926
26927         * NEWS: Mention BZ #14716.
26928         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
26929         when removing AVAILABLE1_USES_J macro.
26930
26931 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
26932
26933         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
26934         (__bswap_64): __uint64_t for unsigned 64-bit int.
26935
26936 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
26937
26938         * include/string.h (memmem): Declare libc hidden alias.
26939         * string/memmem.c (memmem): Define libc hidden alias.
26940         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
26941         __read, __close instead of open, read, close.
26942
26943 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
26944
26945         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
26946         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
26947         global and hidden.
26948         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
26949         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
26950         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
26951         Likewise.
26952         (__rawmemchr_sse2): Likewise.
26953         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
26954         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
26955         (__strchr_sse2): Likewise.
26956         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
26957         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
26958         (__strcasecmp_sse2): Likewise.
26959         (__strncasecmp_sse2): Likewise.
26960         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
26961         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
26962         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
26963         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
26964         (__strrchr_sse2): Likewise.
26965         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
26966         ifunc-impl-list.c.
26967         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
26968         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
26969         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
26970         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26971         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
26972         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
26973         * sysdeps/x86_64/multiarch/memset.S: Likewise.
26974         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
26975         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
26976         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
26977         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
26978         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
26979         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
26980         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
26981         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
26982         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
26983         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
26984         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
26985         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
26986         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
26987         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
26988         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
26989         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
26990         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
26991         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
26992         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
26993         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
26994         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
26995         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
26996         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
26997
26998         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
26999         global and hidden.
27000         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
27001         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
27002         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
27003         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
27004         Likewise.
27005         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
27006         Likewise.
27007         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
27008         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
27009         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
27010         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
27011         ifunc-impl-list.c.
27012         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27013         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27014         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27015         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27016         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27017         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27018         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27019         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27020         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27021         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27022         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27023         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27024         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27025         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
27026         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
27027         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27028         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
27029         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
27030         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27031         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27032         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27033         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27034         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27035         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27036         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27037         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
27038         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
27039         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
27040         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
27041         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27042         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
27043         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27044         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27045         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
27046         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27047         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27048         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27049         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27050         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27051         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27052         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
27053
27054         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
27055         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
27056         * include/ifunc-impl-list.h: New file.
27057         * misc/ifunc-impl-list.c: Likewise.
27058         * misc/Makefile (routines): Add ifunc-impl-list.
27059         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
27060         * string/test-string.h: Include <ifunc-impl-list.h>.
27061         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
27062         TEST_NAME]: New variables.
27063         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
27064         are defined.
27065         (test_init): Call __libc_ifunc_impl_list to initialize
27066         func_list if TEST_IFUNC and TEST_NAME are defined.
27067
27068         * string/Makefile (strop-tests): Add bcopy and bzero.
27069         * string/test-bcopy.c: New file.
27070         * string/test-bzero.c: Likewise.
27071         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
27072         defined.
27073         * string/test-memset.c: Support bzero test if TEST_BZERO is
27074         defined.
27075         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
27076         __libc_memmove.
27077         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
27078         __libc_memset.
27079         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
27080         of memset.
27081
27082 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
27083
27084         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
27085         * configure: Regenerated.
27086
27087         * Makeconfig (+link-static-before-libc): Don't include
27088         $(link-static-libc).
27089
27090         * libio/libio.h (_IO_pos_t): Remove.
27091
27092 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27093
27094         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
27095         McGrath.
27096
27097 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27098
27099         * crypt/crypt-entry.c: Include fips-private.h.
27100         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
27101         * crypt/md5c-test.c (main): Tolerate disabled MD5.
27102         * sysdeps/unix/sysv/linux/fips-private.h: New file.
27103         * sysdeps/generic/fips-private.h: New file, dummy fallback.
27104
27105 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27106
27107         * crypt/crypt-private.h: Include stdbool.h.
27108         (_ufc_setup_salt_r): Return bool.
27109         * crypt/crypt-entry.c: Include errno.h.
27110         (__crypt_r): Return NULL with EINVAL for bad salt.
27111         * crypt/crypt_util.c (bad_for_salt): New.
27112         (_ufc_setup_salt_r): Check that salt is long enough and within
27113         the specified alphabet.
27114         * crypt/badsalttest.c: New file.
27115         * crypt/Makefile (tests): Add it.
27116         ($(objpfx)badsalttest): New.
27117
27118 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
27119
27120         * NEWS: Add entry for BZ #14602.
27121
27122 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27123
27124         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
27125         type-generic.
27126         * math/libm-test.inc: Update comment listing what functions and
27127         macros are tested.
27128         (isgreater_test): New function.
27129         (isgreaterequal_test): Likewise.
27130         (isless_test): Likewise.
27131         (islessequal_test): Likewise.
27132         (islessgreater_test): Likewise.
27133         (isunordered_test): Likewise.
27134         (main): Call the new functions.
27135
27136 2012-10-09  Roland McGrath  <roland@hack.frob.com>
27137
27138         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
27139         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
27140         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
27141         * sysdeps/i386/configure: Regenerated.
27142         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
27143         * sysdeps/mach/configure: Regenerated.
27144         * sysdeps/mach/hurd/configure: Regenerated.
27145         * sysdeps/powerpc/configure: Regenerated.
27146         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27147         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27148         * sysdeps/s390/s390-32/configure: Regenerated.
27149         * sysdeps/s390/s390-64/configure: Regenerated.
27150         * sysdeps/sh/configure: Regenerated.
27151         * sysdeps/sparc/configure: Regenerated.
27152         * sysdeps/unix/sysv/linux/configure: Regenerated.
27153         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
27154         * sysdeps/x86_64/configure: Regenerated.
27155
27156         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
27157         defined.  Don't check if MAP is NULL.
27158
27159 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27160
27161         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
27162         (_G_stat64): Likewise.
27163         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
27164         (_G_stat64): Likewise.
27165         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
27166         instead of struct _G_stat64.
27167         * libio/fileops.c (mmap_remap_check): Likewise.
27168         (decide_maybe_mmap): Likewise.
27169         (_IO_new_file_seekoff): Likewise.
27170         (_IO_file_stat): Likewise.
27171         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
27172         _G_off64_t.
27173         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
27174         instead of struct _G_stat64.
27175         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27176
27177 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
27178
27179         [BZ #14602]
27180         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27181         Replace with ...
27182         (CHECK_EOL): New macro.
27183         (two_way_short_needle): Check beginning of haystack for EOL.  Use
27184         CHECK_EOL.
27185         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27186         Replace with CHECK_EOL.
27187         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27188         Replace with CHECK_EOL.
27189
27190 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
27191
27192         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
27193         type-generic.
27194         * math/libm-test.inc: Update comment listing what functions and
27195         macros are tested.
27196         (finite_test): New function.
27197         (isinf_test): Likewise.
27198         (isnan_test): Likewise.
27199         (fpclassify_test): Test subnormal input.
27200         (isfinite_test): Likewise.
27201         (isnormal_test): Likewise.
27202         (main): Call the new functions.
27203
27204 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
27205
27206         [BZ #14660]
27207         * Makerules (%.dynsym): Force C locale when running
27208         $(OBJDUMP) --dynamic-syms.
27209
27210 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
27211
27212         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
27213         <stdint.h>.
27214
27215 2012-10-06  David S. Miller  <davem@davemloft.net>
27216
27217         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
27218         upper 32-bits of the length value in %o2 since we use branch-on-register
27219         tests which consider the entire 64-bit register.
27220
27221 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
27222
27223         * string/test-strstr.c (check2): Add a test for page boundary.
27224
27225 2012-10-05  David S. Miller  <davem@davemloft.net>
27226
27227         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
27228         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
27229         file.
27230         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27231         sysdep_routines.
27232         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27233         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
27234         and bzero when HWCAP_SPARC_CRYPTO is present.
27235
27236 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
27237
27238         [BZ #14602]
27239         * string/test-strstr.c (check2): New function.
27240         (test_main): Call check2.
27241
27242         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
27243         and bug-strchr1.
27244         * string/bug-strcasestr1.c (do_test): Moved to ...
27245         * string/test-strcasestr.c (check1): Here.  New function.
27246         (do_one_test): Break out result checking code into ...
27247         (check_result): This.  New function.
27248         (do_one_test): Call check_result.
27249         (test_main): Call check1.
27250         * string/bug-strchr1.c (do_test): Moved to ...
27251         * string/test-strchr.c (check1): Here.  New function.
27252         (do_one_test): Break out result checking code into ...
27253         (check_result): This.  New function.
27254         (do_one_test): Call check_result.
27255         (test_main): Call check1.
27256         * string/bug-strstr1.c (main): Moved to ...
27257         * string/test-strstr.c (check1): Here.  New function.
27258         (do_one_test): Break out result checking code into ...
27259         (check_result): This.  New function.
27260         (do_one_test): Call check_result.
27261         (test_main): Call check1.
27262         * string/bug-strcasestr1.c: Removed.
27263         * string/bug-strchr1.c: Likewise.
27264         * string/bug-strstr1.c: Likewise.
27265
27266         * elf/Makefile (dl-routines): Add hwcaps.
27267         * elf/dl-support.c (_dl_important_hwcaps): Removed.
27268         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
27269         (_dl_important_hwcaps): Moved to ...
27270         * elf/dl-hwcaps.c: Here.  New file.
27271         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
27272
27273         [BZ #14557]
27274         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
27275         if IS_IN_rtld isn't defined.
27276
27277         * elf/dl-support.c (_dl_sysinfo_map): New.
27278         Include "get-dynamic-info.h" and "setup-vdso.h".
27279         (_dl_non_dynamic_init): Call setup_vdso.
27280         * elf/dynamic-link.h: Don't include <assert.h>.
27281         (elf_get_dynamic_info): Moved to ...
27282         * elf/get-dynamic-info.h: Here.  New file.
27283         * elf/dynamic-link.h: Include "get-dynamic-info.h".
27284         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
27285         * elf/setup-vdso.h: Here.  New file.
27286         * elf/rtld.c: Include "setup-vdso.h".
27287         (dl_main): Call setup_vdso.
27288
27289 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
27290
27291         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
27292         creal in comment listing functions tested.  List finite, isinf,
27293         isnan, isless, islessequal, isgreater, isgreaterequal,
27294         islessgreater, isunordered, lgamma_r and pow10 as functions and
27295         macros not tested.  Mention which functions not tested are aliases
27296         for other functions.  Fix typo.  Note that signs of NaNs are not
27297         tested.
27298
27299         * scripts/config.guess: Update from config.git.
27300         * scripts/config.sub: Likewise.
27301
27302 2012-10-04  Roland McGrath  <roland@hack.frob.com>
27303
27304         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
27305         * misc/madvise.c (madvise): Renamed to __madvise.
27306         Make madvise a weak alias.
27307         * include/sys/mman.h: Declare __madvise.
27308         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
27309         * sysdeps/unix/syscalls.list
27310         (madvise): Make __madvise the strong name, and madvise a weak alias.
27311         * sysdeps/unix/sysv/linux/syscalls.list
27312         (madvise, mmap): Remove redundant entries.
27313         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
27314         * malloc/malloc.c (mtrim): Likewise.
27315         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
27316
27317 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27318
27319         * sysdeps/mach/hurd/dl-cache.c: File removed.
27320         * config.h.in (USE_LDCONFIG): New #undef.
27321         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
27322         * configure: Regenerated.
27323         * elf/Makefile (dl-routines): Add dl-cache only under
27324         [$(use-ldconfig) = yes].
27325         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
27326         cache on [USE_LDCONFIG].
27327         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
27328         [USE_LDCONFIG].
27329         * elf/rtld.c (dl_main): Likewise.
27330
27331 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
27332
27333         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
27334         _SC_LEVEL4_CACHE_LINESIZE.
27335
27336 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27337
27338         * sysdeps/unix/bsd/confstr.h: File removed.
27339
27340 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
27341
27342         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
27343         sys/sdt-config.h.
27344
27345 2012-10-02  Roland McGrath  <roland@hack.frob.com>
27346
27347         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
27348         Make 'mapoff' field ElfW(Off) rather than off_t.
27349
27350 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
27351
27352         * nscd/Makefile: Remove nscd-cflags and all its users.
27353         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
27354         (CFLAGS-nonlib): Add compiler flags for nscd modules.
27355
27356         [BZ #10631]
27357         * malloc.c (malloc_printerr): Clarify error message.
27358
27359 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
27360
27361         [BZ #14648]
27362         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27363         Set bit_FMA_Usable if FMA is supported.
27364         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
27365         macro.
27366         (bit_FMA4_Usable): Updated.
27367         (index_FMA_Usable): New macro.
27368         (CPUID_FMA): Likewise
27369         (HAS_FMA): Defined with bit_FMA_Usable.
27370
27371 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27372
27373         * bits/types.h (__swblk_t): Type removed.
27374         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
27375         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
27376         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27377         (__SWBLK_T_TYPE): Likewise.
27378         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
27379         (__SWBLK_T_TYPE): Likewise.
27380         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27381         (__SWBLK_T_TYPE): Likewise.
27382         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27383         (__SWBLK_T_TYPE): Likewise.
27384
27385 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
27386             Honza Horak <hhorak@redhat.com>
27387
27388         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
27389         (xdr_mapname): Use YPMAXMAP as maxsize.
27390         (xdr_peername): Use YPMAXPEER as maxsize.
27391         (xdr_keydat): Use YPAXRECORD as maxsize.
27392         (xdr_valdat): Use YPMAXRECORD as maxsize.
27393
27394 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27395
27396         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
27397
27398         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
27399         * csu/init-first.c: ... here.
27400         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
27401         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
27402         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27403         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27404         * sysdeps/i386/init-first.c: File removed.
27405         * sysdeps/sh/init-first.c: File removed.
27406
27407 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
27408
27409         [BZ #14645]
27410         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
27411         if x * y might underflow to zero and z is zero.
27412         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27413         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27414         * math/libm-test.inc (min_subnorm_value): New variable.
27415         (fma_test): Add more tests.
27416         (fma_test_towardzero): Likewise.
27417         (fma_test_downward): Likewise
27418         (fma_test_upward): Likewise.
27419         (initialize): Set min_subnorm_value.
27420
27421 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
27422
27423         [BZ #14638]
27424         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
27425         0 + 0.
27426         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
27427         mode for addition resulting in exact zero.
27428         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
27429         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
27430         exact 0 + 0.
27431         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27432         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27433         * math/libm-test.inc (fma_test): Add more tests.
27434         (fma_test_towardzero): New function.
27435         (fma_test_downward): Likewise.
27436         (fma_test_upward): Likewise.
27437         (main): Call the new functions.
27438
27439 2012-09-28  David S. Miller  <davem@davemloft.net>
27440
27441         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
27442
27443 2012-09-28  Roland McGrath  <roland@hack.frob.com>
27444
27445         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
27446         instead of SIGALRM.
27447
27448         * sysdeps/gnu/_G_config.h: Moved to ...
27449         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
27450         * sysdeps/mach/hurd/_G_config.h: Moved to ...
27451         * sysdeps/generic/_G_config.h: ... here.
27452
27453         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
27454
27455         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
27456
27457         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
27458         Conditionalize target on [libnss_test1.so-version].
27459
27460         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
27461
27462         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
27463         (elfobjdir): Move out of conditionals.
27464
27465         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
27466         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
27467         (__nss_lookup_function): Conditionalize label remove_from_tree on
27468         [!DO_STATIC_NSS || SHARED], matching its only use.
27469
27470 2012-09-28  David S. Miller  <davem@davemloft.net>
27471
27472         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
27473         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
27474         file.
27475         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27476         sysdep_routines.
27477         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27478         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
27479         when HWCAP_SPARC_CRYPTO is present.
27480
27481 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27482
27483         * io/tst-mknodat.c: Create a FIFO instead of a socket.
27484
27485 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
27486
27487         [BZ #6530]
27488         * stdio-common/vfprintf.c (process_string_arg): Revert
27489         2000-07-22 change.
27490
27491 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
27492
27493         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
27494         for testcase.
27495         * stdio-common/tst-sprintf.c: Include <locale.h>
27496         (main): Test sprintf's handling of incomplete multibyte
27497         characters.
27498
27499 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
27500
27501         * elf/dl-runtime.c (VERSYMIDX): Removed.
27502         * elf/dl-version.c (VERSYMIDX): Likewise.
27503         * elf/do-rel.h (VERSYMIDX): Likewise.
27504         (VALIDX): Likewise.
27505         * elf/dynamic-link.h (VERSYMIDX): Likewise.
27506         * elf/rtld.c (VALIDX): Likewise.
27507         (ADDRIDX): Likewise.
27508         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
27509         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
27510         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
27511         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
27512         (VALIDX): Likewise.
27513         (ADDRIDX): Likewise.
27514
27515 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27516
27517         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
27518
27519 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
27520
27521         [BZ #11438]
27522         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
27523         to global scope.
27524         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
27525         addresses are in the same scope as 192.0.2/24.
27526         * posix/gai.conf: Document new scope table defaults.
27527
27528 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27529
27530         [BZ #5298]
27531         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
27532         for ftell.  Compute offsets from write pointers instead.
27533         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27534
27535 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27536
27537         [BZ #14543]
27538         * libio/Makefile (tests): New test case tst-fseek.
27539         * libio/tst-fseek.c: New test case to verify that fseek/ftell
27540         combination works in wide mode.
27541         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
27542         state when the external buffer state changes.
27543
27544 2012-09-27  David S. Miller  <davem@davemloft.net>
27545
27546         [BZ #14376]
27547         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
27548         pass reloc->r_addend in as the 'high' argument to
27549         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
27550
27551         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27552
27553 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27554
27555         * rt/tst-aio2.c: Include <pthread.h>.
27556         * rt/tst-aio3.c: Likewise.
27557
27558 2012-09-27  Steve Ellcey  <sellcey@mips.com>
27559
27560         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
27561
27562 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
27563
27564         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
27565         contents on [SHARED].
27566
27567 2012-09-26  Marek Polacek  <polacek@redhat.com>
27568
27569         [BZ #14530]
27570         [BZ #13741]
27571         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
27572         for C++ and GCC <4.3 as well as for non GCC compilers.
27573
27574 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27575
27576         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27577
27578 2012-09-25  Roland McGrath  <roland@hack.frob.com>
27579
27580         * Makefile.in (all, install): Declare with .PHONY.
27581         Reported by Michael Hope <michael.hope@linaro.org>.
27582
27583 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27584
27585         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
27586         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
27587         system header.
27588         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
27589         Likewise.
27590         (sydep_routines): Add the new and the internal functions.
27591         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
27592         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
27593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
27594         (GLIBC_2.17): Add the new function.
27595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
27596         (GLIBC_2.17): Likewise.
27597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
27598         (GLIBC_2.17): Likewise.
27599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
27600         (GLIBC_2.17): Likewise.
27601         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
27602
27603 2012-09-25  Alan Modra  <amodra@gmail.com>
27604
27605         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
27606         Add release barrier before setting once_control to say
27607         initialisation is done.  Add hints on lwarx.  Use macro in
27608         place of isync.
27609         (clear_once_control): Add release barrier.
27610
27611 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27612
27613         [BZ #13629]
27614         * math/s_clog.c (__clog): Handle more values close to |z| = 1
27615         specially.
27616         * math/s_clog10.c (__clog10): Likewise.
27617         * math/s_clog10f.c (__clog10f): Likewise.
27618         * math/s_clog10l.c (__clog10l): Likewise.
27619         * math/s_clogf.c (__clogf): Likewise.
27620         * math/s_clogl.c (__clogl): Likewise.
27621         * math/Makefile (libm-calls): Add x2y2m1.
27622         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
27623         (__x2y2m1): Likewise.
27624         (__x2y2m1l): Likewise.
27625         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
27626         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
27627         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
27628         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
27629         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
27630         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
27631         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
27632         * sysdeps/i386/fpu/libm-test-ulps: Update.
27633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27634
27635         [BZ #14621]
27636         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
27637         int as type of variable DEPTH.
27638         (glob): Use size_t instead of int as type of variables NEWCOUNT
27639         and OLD_PATHC.
27640
27641 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27642
27643         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27644         Add s_sincosf-sse2.
27645         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
27646         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
27647         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
27648         macros for using routine as __sincosf_ia32.
27649         Use macro for function declaration and weak_alias.
27650         * sysdeps/i386/fpu/libm-test-ulps: Update.
27651
27652         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
27653         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27654
27655         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
27656         subnormal argument.
27657         * math/s_cexpf.c (__cexpf): Likewise.
27658         * math/s_csinf.c (__csinf): Likewise.
27659         * math/s_csinhf.c (__csinhf): Likewise.
27660         * math/s_ctanf.c (__ctanf): Likewise.
27661         * math/s_ctanhf.c (__ctanhf): Likewise.
27662         * math/s_ccosh.c (__ccoshf): Likewise.
27663         * math/s_cexp.c (__cexpl): Likewise.
27664         * math/s_csin.c (__csin): Likewise.
27665         * math/s_csinh.c (__csinh): Likewise.
27666         * math/s_ctan.c (__ctan): Likewise.
27667         * math/s_ctanh.c (ctanh): Likewise.
27668         * math/s_ccoshl.c (__ccoshl): Likewise.
27669         * math/s_cexpl.c (__cexpl): Likewise.
27670         * math/s_csinl.c (__csinl): Likewise.
27671         * math/s_csinhl.c (__csinhl): Likewise.
27672         * math/s_ctanl.c (__ctanl): Likewise.
27673         * math/s_ctanhl.c (__ctanhl): Likewise.
27674
27675 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27676
27677         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
27678         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
27679         (_IO_off_t): Define to __off_t, not _G_off_t.
27680         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
27681         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
27682         (_IO_wint_t): Define to wint_t, not _G_wint_t.
27683         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
27684         type of __dummy and __dummy2 fields.
27685         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
27686         (_G_ssize_t): Likewise.
27687         (_G_off_t): Likewise.
27688         (_G_pid_t): Likewise.
27689         (_G_uid_t): Likewise.
27690         (_G_wchar_t): Likewise.
27691         (_G_wint_t): Likewise.
27692         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
27693         (_G_ssize_t): Likewise.
27694         (_G_off_t): Likewise.
27695         (_G_pid_t): Likewise.
27696         (_G_uid_t): Likewise.
27697         (_G_wchar_t): Likewise.
27698         (_G_wint_t): Likewise.
27699         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
27700         (_G_ssize_t): Likewise.
27701         (_G_off_t): Likewise.
27702         (_G_pid_t): Likewise.
27703         (_G_uid_t): Likewise.
27704         (_G_wchar_t): Likewise.
27705         (_G_wint_t): Likewise.
27706
27707 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27708
27709         * malloc/arena.c: Include malloc-sysdep.h.
27710         (shrink_heap): Use check_may_shrink_heap to decide if madvise
27711         is sufficient to shrink the heap or an unmap is needed.
27712         * sysdeps/generic/malloc-sysdep.h: New file.  Define
27713         new function check_may_shrink_heap.
27714         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
27715         new function check_may_shrink_heap.
27716
27717 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27718
27719         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
27720         comments.
27721
27722 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
27723
27724         * catgets/test-gencat.sh: Add "set -e".
27725         * elf/tst-pathopt.sh: Likewise.
27726         * grp/tst_fgetgrent.sh: Likewise.
27727         * iconvdata/run-iconv-test.sh: Likewise.
27728         * intl/tst-gettext.sh: Likewise.
27729         * intl/tst-gettext2.sh: Likewise.
27730         * intl/tst-gettext4.sh: Likewise.
27731         * intl/tst-gettext6.sh: Likewise.
27732         * intl/tst-translit.sh: Likewise.
27733         * io/ftwtest-sh: Likewise.
27734         * libio/test-freopen.sh: Likewise.
27735         * malloc/tst-mtrace.sh: Likewise.
27736         * posix/globtest.sh: Likewise.
27737         * posix/tst-getconf.sh: Likewise.
27738         * posix/wordexp-tst.sh: Likewise.
27739         * stdio-common/tst-printf.sh: Likewise.
27740         * stdio-common/tst-unbputc.sh: Likewise.
27741         * stdlib/tst-fmtmsg.sh: Likewise.
27742         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27743         * catgets/Makefile: Do not specify -e option when running
27744         testsuite shell scripts.
27745         * elf/Makefile: Likewise.
27746         * grp/Makefile: Likewise.
27747         * iconvdata/Makefile: Likewise.
27748         * intl/Makefile: Likewise.
27749         * io/Makefile: Likewise.
27750         * libio/Makefile: Likewise.
27751         * malloc/Makefile: Likewise.
27752         * posix/Makefile: Likewise.
27753         * stdio-common/Makefile: Likewise.
27754         * stdlib/Makefile: Likewise.
27755         * sysdeps/x86_64/Makefile: Likewise.
27756
27757         * io/ftwtest-sh: Add copyright header.
27758         * posix/globtest.sh: Likewise.
27759         * posix/tst-getconf.sh: Likewise.
27760         * posix/wordexp-tst.sh: Likewise.
27761         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27762
27763 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
27764
27765         [BZ #13679]
27766         * Makeconfig (+link): Defined as $(+link-static) if
27767         $(build-shared) isn't yes.
27768         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
27769         isn't yes.
27770         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
27771
27772         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
27773
27774         [BZ #14562]
27775         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
27776         new chunk size with MALLOC_ALIGN_MASK.
27777
27778 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
27779
27780         [BZ #5044]
27781         * stdio-common/printf_fphex.c: Include <stdbool.h> and
27782         <rounding-mode.h>.
27783         (__printf_fphex): Determine rounding using get_rounding_mode and
27784         round_away.
27785         * stdio-common/tst-printf-round.c (struct hex_test): New
27786         structure.
27787         (hex_tests): New variable.
27788         (test_hex_in_one_mode): New function.
27789         (do_test): Also run tests for hex float output.
27790
27791 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
27792
27793         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27794         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27795         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27796         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27797         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27798         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
27799         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27800         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27801
27802 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
27803
27804         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
27805         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
27806         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
27807         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
27808
27809 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
27810
27811         [BZ #14579]
27812         * elf/rtld.c (dl_main): Limit the check for self loading to normal
27813         mode only.
27814         * elf/tst-rtld-load-self.sh: New test.
27815         * elf/Makefile: Run it.
27816
27817 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
27818
27819         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
27820         (tst-writev-ENV): Remove.
27821         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
27822
27823 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
27824
27825         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
27826
27827 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
27828
27829         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
27830         unconditional.
27831         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
27832         Likewise.
27833         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
27834         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
27835         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
27836         Likewise.
27837
27838 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
27839
27840         [BZ #14587]
27841         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
27842         * config.make.in (have-cpp-asm-debuginfo): Removed.
27843         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
27844         * configure: Regenerated.
27845
27846 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
27847
27848         [BZ #5044]
27849         * stdio-common/printf_fp.c: Include <stdbool.h> and
27850         <rounding-mode.h>.
27851         (___printf_fp): Determine rounding using get_rounding_mode and
27852         round_away.
27853         * stdio-common/tst-printf-round.c: New file.
27854         * stdio-common/Makefile (tests): Add tst-printf-round.
27855         (link-libm): New variable.
27856         ($(objpfx)tst-printf-round): Depend in $(link-libm).
27857
27858 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
27859
27860         [BZ #14576]
27861         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
27862         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
27863         Likewise.
27864         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
27865         Likewise.
27866
27867 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
27868
27869         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
27870         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27871         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27872         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27873
27874 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
27875
27876         [BZ #14518]
27877         * include/rounding-mode.h: New file.
27878         * sysdeps/generic/get-rounding-mode.h: Likewise.
27879         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
27880         * stdlib/strtod_l.c: Include <rounding-mode.h>.
27881         (MAX_VALUE): New macro.
27882         (MIN_VALUE): Likewise.
27883         (overflow_value): New function.
27884         (underflow_value): Likewise.
27885         (round_and_return): Use overflow_value and underflow_value to
27886         determine return values in overflow and underflow cases.  Use
27887         round_away to determine rounding depending on rounding mode.
27888         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
27889         determine return values in overflow and underflow cases.
27890         * stdlib/tst-strtod-round.c: Include <fenv.h>.
27891         (struct test_results): New structure.
27892         (struct test): Use struct test_results to store expected results
27893         for all rounding modes.
27894         (TEST): Include expected results for all rounding modes.
27895         (test_in_one_mode): New function.
27896         (do_test): Use test_in_one_mode to compute and check results.
27897         Check results for all rounding modes.
27898         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
27899         $(link-libm).
27900
27901 2012-12-09  Allan McRae  <allan@archlinux.org>
27902
27903         * sysdeps/i386/fpu/libm-test-ulps: Update
27904
27905 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
27906
27907         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
27908         (_G_int32_t): Likewise.
27909         (_G_uint16_t): Likewise.
27910         (_G_uint32_t): Likewise.
27911         (_G_HAVE_BOOL): Likewise.
27912         (_G_HAVE_ATEXIT): Likewise.
27913         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27914         (_G_HAVE_IO_FILE_OPEN): Likewise.
27915         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
27916         (_G_int32_t): Likewise.
27917         (_G_uint16_t): Likewise.
27918         (_G_uint32_t): Likewise.
27919         (_G_HAVE_BOOL): Likewise.
27920         (_G_HAVE_ATEXIT): Likewise.
27921         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27922         (_G_HAVE_IO_FILE_OPEN): Likewise.
27923         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
27924         (_G_int32_t): Likewise.
27925         (_G_uint16_t): Likewise.
27926         (_G_uint32_t): Likewise.
27927         (_G_HAVE_BOOL): Likewise.
27928         (_G_HAVE_ATEXIT): Likewise.
27929         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27930         (_G_HAVE_IO_FILE_OPEN): Likewise.
27931
27932 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
27933
27934         * csu/libc-tls.c: Update copyright years.
27935
27936 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
27937
27938         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
27939         [!_G_USING_THUNKS]: Remove conditional code.
27940         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
27941         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
27942
27943         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
27944         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
27945         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27946         (_G_VTABLE_LABEL_PREFIX): Likewise.
27947         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27948         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27949         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27950         (_G_VTABLE_LABEL_PREFIX): Likewise.
27951         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27952         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27953         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27954         (_G_VTABLE_LABEL_PREFIX): Likewise.
27955         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27956
27957 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
27958
27959         * libio/Makefile: Include ../Makeconfig before tests.
27960         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
27961         only if $(build-shared) is yes.
27962
27963         * iconv/gconv_db.c: Update copyright years.
27964
27965 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27966
27967         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
27968         unwind info if defined PIC. Fix special cases description.
27969         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
27970
27971         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
27972         DP_HI_MASK entry.
27973         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
27974
27975 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
27976
27977         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
27978
27979         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
27980         is NULL.
27981
27982         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
27983         (LDLIBS-tst-chk4): This.
27984         (LDFLAGS-tst-chk5): Renamed to ...
27985         (LDLIBS-tst-chk5): This.
27986         (LDFLAGS-tst-chk6): Renamed to ...
27987         (LDLIBS-tst-chk6): This.
27988         (LDFLAGS-tst-lfschk4): Renamed to ...
27989         (LDLIBS-tst-lfschk4): This.
27990         (LDFLAGS-tst-lfschk5): Renamed to ...
27991         (LDLIBS-tst-lfschk5): This.
27992         (LDFLAGS-tst-lfschk6): Renamed to ...
27993         (LDLIBS-tst-lfschk6): This.
27994
27995         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
27996         on $(common-objpfx)soversions.mk.
27997
27998 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
27999
28000         [BZ #10014]
28001         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
28002         example host name.
28003
28004 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
28005
28006         * malloc/arena.c (arena_get_retry): New function that gets
28007         another arena for the caller to try its request on.
28008         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
28009         current arena cannot fulfill the request.
28010         (__libc_memalign): Likewise.
28011         (__libc_memalign): Likewise.
28012         (__libc_pvalloc): Likewise.
28013         (__libc_calloc): Likewise.
28014
28015 2012-09-05  John Tobey  <john.tobey@gmail.com>
28016
28017         [BZ #13542]
28018         * manual/arith.texi (Operations on Complex): Fix description
28019         of carg branch cut.
28020
28021 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28022
28023         [BZ #10014]
28024         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
28025         host name.
28026
28027         [BZ #10038]
28028         * manual/memory.texi (Memory): Make order of menu items match
28029         order of sections.
28030
28031 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28032
28033         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
28034         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
28035         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
28036
28037 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28038
28039         * csu/libc-tls.c (static_dtv): Renamed to ...
28040         (_dl_static_dtv): This.  Make it global.
28041         (_dl_initial_dtv): Removed.
28042         (__libc_setup_tls): Updated.
28043         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
28044         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
28045         DL_INITIAL_DTV.
28046
28047 2012-09-06  Petr Machata  <pmachata@redhat.com>
28048
28049         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
28050         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
28051         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
28052         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
28053
28054 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28055
28056         [BZ #14545]
28057         * csu/libc-tls.c (_dl_initial_dtv): New variable.
28058         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
28059         freeing dtv[-1].
28060
28061 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28062
28063         [BZ #14544]
28064         * Makeconfig (link-static-before-libc): Replace $(+prector)
28065         with $(+prectorT).
28066         (link-static-after-libc): Replace $(+postctor) with
28067         $(+postctorT).
28068         (link-bounded): Replace $(+prector)/$(+postctor) with
28069         $(+prectorT)/$(+postctorT).
28070         (+prectorT): New macro.
28071         (+postctorT): Likewise.
28072
28073 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28074
28075         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
28076         (round_str): Handle values above the maximum for IBM long double
28077         as inexact.
28078         * stdlib/tst-strtod-round.c (tests): Regenerated.
28079
28080 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28081
28082         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
28083         assembler flag.
28084         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
28085         zarch_nohighgprs around the zarch optimized routines.
28086         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
28087         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
28088         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
28089         for zarch.
28090
28091 2012-09-05  David S. Miller  <davem@davemloft.net>
28092
28093         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28094
28095         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
28096         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
28097         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
28098         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
28099         entries.
28100
28101 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28102
28103         * malloc/arena.c: Fold copyright years.
28104         * malloc/mcheck.c, malloc/memusage.c: Likewise.
28105
28106 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28107
28108         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
28109
28110 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28111
28112         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
28113
28114 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28115
28116         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
28117         change internal state upon failure.
28118
28119 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28120
28121         * malloc/mcheck.c (mcheck_check_all): Fix typo.
28122         * malloc/memusage.c (mmap): Likewise.
28123         (mmap64, mremap): Likewise.  Adjust name in comment.
28124
28125 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28126
28127         * libio/fileops.c: Fix typos in comments.
28128         * libio/oldfileops.c: Likewise.
28129         * libio/wfileops.c: Likewise.
28130
28131 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28132
28133         [BZ #1349]
28134         * malloc/Makefile (tests): Add tst-malloc-usable test case.
28135         (tst-malloc-usable-ENV): Set environment for test case.
28136         * malloc/hooks.c (malloc_check_get_size): New function to get
28137         requested size.
28138         * malloc/malloc.c (musable): Use malloc_check_get_size.
28139         * malloc/tst-malloc-usable.c: New test case.
28140
28141 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28142
28143         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
28144
28145 2012-09-05  Allan McRae  <allan@archlinux.org>
28146
28147         [BZ #13966]
28148         * configure.in (CXX_SYSINCLUDES): Use compiler output to
28149         determine header location.
28150         * configure: Regenerated.
28151
28152 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28153
28154         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
28155         float format.
28156         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
28157         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
28158         format.
28159         (test): Regenerate.
28160
28161 2012-09-04  David S. Miller  <davem@davemloft.net>
28162
28163         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
28164         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
28165         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
28166
28167 2012-09-04  Florian Weimer  <fweimer@redhat.com>
28168
28169         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
28170         failures.
28171
28172         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
28173
28174 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
28175
28176         [BZ #9914]
28177         * libio/iogetdelim.c: Include <limits.h>.
28178         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
28179         + len + 1 would overflow.
28180
28181 2012-09-03  Andreas Jaeger  <aj@suse.de>
28182
28183         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28184         * sysdeps/i386/fpu/libm-test-ulps: Update.
28185
28186 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28187
28188         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
28189         Add s_sinf-sse2, s_conf-sse2.
28190
28191         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
28192         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
28193         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
28194         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
28195
28196         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
28197         for using routine as __sinf_ia32.
28198         Use macro for function declaration and weak_alias.
28199         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
28200         for using routine as __cosf_ia32.
28201         Use macro for function declaration and weak_alias.
28202
28203         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
28204         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
28205
28206         * sysdeps/x86_64/fpu/s_sinf.S: New file.
28207         * sysdeps/x86_64/fpu/s_cosf.S: New file.
28208         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28209
28210         * math/libm-test.inc (cos_test): Add more test cases.
28211         (sin_test): Likewise.
28212         (sincos_test): Likewise.
28213
28214 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28215
28216         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
28217         (IFUNC_RESOLVE): Make pointers to the specialized implementations
28218         hidden.
28219         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
28220
28221 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
28222
28223         [BZ #14538]
28224         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
28225         first element of the GOT.
28226         (elf_machine_load_address): Return the difference between
28227         the runtime address of _DYNAMIC and elf_machine_dynamic ().
28228
28229 2012-09-01  Allan McRae  <allan@archlinux.org>
28230
28231         [BZ #13412]
28232         * configure.in (AWK): Require gawk version 3.0 or later.
28233         * configure: Regenerated.
28234
28235 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
28236
28237         * sysdeps/unix/sysv/linux/kernel-features.h
28238         (__ASSUME_POSIX_CPU_TIMERS): Remove.
28239         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28240         [__NR_clock_getres]: Make code unconditional.
28241         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
28242         (clock_getcpuclockid): Remove code left unreachable by removal of
28243         conditionals.
28244         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
28245         code unconditional.
28246         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28247         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28248         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
28249         Make code unconditional.
28250         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28251         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28252         * sysdeps/unix/sysv/linux/clock_settime.c
28253         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
28254         conditional code.
28255         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
28256         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28257
28258 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
28259
28260         [BZ #14476]
28261         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
28262         scripts/test-installation.pl.
28263
28264         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
28265         and $ld_so_version if it is set.
28266
28267 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28268
28269         [BZ #14516]
28270         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
28271         failure if reading from procfs failed.
28272         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
28273
28274 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28275
28276         * sysdeps/unix/sysv/linux/kernel-features.h
28277         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
28278         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28279         Remove conditional code.
28280         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28281         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
28282         Remove conditional code.
28283         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28284         * sysdeps/unix/sysv/linux/i386/fxstat.c
28285         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28286         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28287         * sysdeps/unix/sysv/linux/i386/fxstatat.c
28288         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28289         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28290         * sysdeps/unix/sysv/linux/i386/lxstat.c
28291         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28292         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28293         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
28294         Remove conditional code.
28295         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28296         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28297         Remove conditional code.
28298         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28299         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
28300         <kernel-features.h>.
28301         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
28302         Remove.
28303         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
28304         Remove conditional code.
28305         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28306         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
28307         Remove conditional.
28308
28309 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
28310
28311         [BZ #5400]
28312         * NEWS: Add fixed bug number.
28313
28314 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28315
28316         [BZ #14519]
28317         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
28318         underflowing exponent in case of negative sign.
28319         * stdlib/tst-strtod-round-data: Add more tests.
28320         * stdlib/tst-strtod-round.c (tests): Regenerated.
28321
28322         [BZ #3479]
28323         * stdlib/strtod_l.c (NDIG): Remove.
28324         (HEXNDIG): Likewise.
28325         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
28326         smallest representable value.
28327         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
28328         lie within an exact representation of 1/2 ulp of the result.
28329         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
28330         unconditionally.
28331         (TENS_P9_IDX): Define unconditionally.
28332         (TENS_P9_SIZE): Likewise.
28333         (TENS_P10_IDX): Likewise.
28334         (TENS_P10_SIZE): Likewise.
28335         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
28336         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
28337         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
28338         entries for 10^2^13 and 10^2^14.
28339         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
28340         (TENS_P13_IDX): Define.
28341         (TENS_P13_SIZE): Likewise.
28342         (TENS_P14_IDX): Likewise.
28343         (TENS_P14_SIZE): Likewise.
28344         (_fpioconst_pow10): Change array size to
28345         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
28346         unconditional.
28347         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
28348         1024]: Add entries for 10^2^13 and 10^2^14.
28349         [LAST_POW10 > _LAST_POW10]: Remove #error.
28350         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
28351         (_fpioconst_pow10): Change array size to
28352         FPIOCONST_POW10_ARRAY_SIZE.
28353         * stdlib/gen-fpioconst.c: New file.
28354         * stdlib/gen-tst-strtod-round.c: Likewise.
28355         * stdlib/tst-strtod-round-data: Likewise.
28356         * stdlib/tst-strtod-round.c: Likewise.
28357         * stdlib/Makefile (tests): Add tst-strtod-round.
28358
28359         [BZ #14459]
28360         * stdlib/strtod_l.c: Include <stdint.h>.
28361         (NDEBUG): Do not define.
28362         (round_and_return): Change EXPONENT parameter to type intmax_t.
28363         Rearrange calculations to avoid internal overflow possibilities.
28364         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
28365         Rearrange calculations to avoid internal overflow possibilities.
28366         Assert that number fits inside MPNSIZE limbs.
28367         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
28368         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
28369         calculations and add assertions to avoid internal overflow
28370         possibilities.  Add casts to avoid signed/unsigned operations.
28371         * stdlib/tst-strtod-overflow.c: New file.
28372         * stdlib/Makefile (tests): Add tst-strtod-overflow.
28373
28374 2012-08-25  Marek Polacek  <polacek@redhat.com>
28375
28376         * time/time.h: Fix some typos in comments.
28377
28378 2012-08-23  Roland McGrath  <roland@hack.frob.com>
28379
28380         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
28381         * posix/tst-rfc3484-2.c: Likewise.
28382         * posix/tst-rfc3484-3.c: Likewise.
28383
28384 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
28385
28386         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
28387         (EF_ARM_ABI_FLOAT_HARD): Likewise.
28388
28389 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
28390
28391         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
28392         #include of fxstatat64.c.
28393
28394 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28395
28396         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
28397         * shadow/getspent_r.c: Likewise.
28398         * shadow/getspnam.c: Likewise.
28399         * shadow/getspnam_r.c: Likewise.
28400         * gshadow/getsgent.c: Likewise.
28401         * gshadow/getsgent_r.c: Likewise.
28402         * gshadow/getsgnam.c: Likewise.
28403         * gshadow/getsgnam_r.c: Likewise.
28404         * inet/getnetbyad.c: Likewise.
28405         * inet/getnetbyad_r.c: Likewise.
28406         * inet/getnetbynm.c: Likewise.
28407         * inet/getnetbynm_r.c: Likewise.
28408         * inet/getnetent.c: Likewise.
28409         * inet/getnetent_r.c: Likewise.
28410         * inet/getproto.c: Likewise.
28411         * inet/getproto_r.c: Likewise.
28412         * inet/getprtent.c: Likewise.
28413         * inet/getprtent_r.c: Likewise.
28414         * inet/getprtname.c: Likewise.
28415         * inet/getprtname_r.c: Likewise.
28416         * inet/getrpcbyname.c: Likewise.
28417         * inet/getrpcbyname_r.c: Likewise.
28418         * inet/getrpcbynumber.c: Likewise.
28419         * inet/getrpcbynumber_r.c: Likewise.
28420         * inet/getrpcent.c: Likewise.
28421         * inet/getrpcent_r.c: Likewise.
28422         * inet/getaliasent.c: Likewise.
28423         * inet/getaliasent_r.c: Likewise.
28424         * inet/getaliasname.c: Likewise.
28425         * inet/getaliasname_r.c: Likewise.
28426         * nscd/getgrgid_r.c: Likewise.
28427         * nscd/getgrnam_r.c: Likewise.
28428         * nscd/gethstbyad_r.c: Likewise.
28429         * nscd/gethstbynm3_r.c: Likewise.
28430         * nscd/getpwnam_r.c: Likewise.
28431         * nscd/getpwuid_r.c: Likewise.
28432         * nscd/getsrvbynm_r.c: Likewise.
28433         * nscd/getsrvbypt_r.c: Likewise.
28434         * nscd/gai.c: Likewise.
28435
28436         * configure.in (build_nscd): New substituted variable, set
28437         by --disable-build-nscd and defaults to $use_nscd.
28438         * configure: Regenerated.
28439         * config.make.in (build-nscd): New substituted variable.
28440         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
28441         Change conditional to require [$(build-nscd) = yes] as well.
28442         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
28443
28444         [BZ# 13696]
28445         * configure.in (use_nscd): New substituted variable, set by
28446         --disable-nscd.  If enabled, define USE_NSCD.
28447         * configure: Regenerated.
28448         * config.h.in: Add USE_NSCD.
28449         * config.make.in (use-nscd): New substituted variable.
28450         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
28451         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
28452         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
28453         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
28454         (CFLAGS-getgrnam_r.c): Likewise.
28455         (CFLAGS-initgroups.c): Likewise.
28456         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
28457         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
28458         Variables removed.
28459         * inet/getnetgrent_r.c
28460         (nscd_setnetgrent): New function, broken out of ...
28461         (setnetgrent): ... here.  Call it.
28462         (innetgr): Conditionalize nscd bits on [USE_NSCD].
28463         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
28464         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
28465         * nscd/Makefile (routines, aux): Move definitions after include of
28466         Makeconfig.  Conditionalize on [$(use-nscd) != no].
28467         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
28468         Conditionalize on [USE_NSCD].
28469         (is_nscd, nscd_init_cb): Likewise.
28470         (nss_load_library): Conditionalize init callback on [USE_NSCD].
28471         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
28472         * nss/nss_db/db-init.c: Likewise.
28473         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
28474         [USE_NSCD].
28475         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
28476         (make_request): Use it.
28477         (cache_valid_p): New function.
28478         (__check_pf): Use it.
28479         * NEWS: Add item for --disable-nscd.
28480
28481 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
28482
28483         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
28484         to support sed >= 4.2.1-20-ga9bf076.
28485         * configure: Regenerated.
28486
28487 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28488
28489         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
28490         Conditionalize whole body on [IREL].
28491
28492 2012-08-22  Jeff Law <law@redhat.com>
28493
28494         [BZ #14505]
28495         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
28496         if the family is PF_UNSPEC.
28497
28498 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
28499
28500         * Makerules (lib-version): Rename from V.
28501         (install-lib-nosubdir): Change V to lib-version.
28502
28503 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
28504
28505         [BZ #14252]
28506         * powerpc32/power6/wcschr.c: New file.
28507         * powerpc32/power6/wcscpy.c: New file.
28508         * powerpc32/power6/wcsrchr.c: New file.
28509         * powerpc64/power6/wcschr.c: New file.
28510         * powerpc64/power6/wcscpy.c: New file.
28511         * powerpc64/power6/wcsrchr.c: New file.
28512
28513 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28514
28515         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
28516         (two_way_short_needle): Use it.
28517         * string/strstr.c (AVAILABLE1_USES_J): Define.
28518         * string/strcasestr.c: Likewise.
28519
28520         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
28521         array references.
28522         * string/strcasestr.c (TOLOWER): Make side-effect safe.
28523
28524         [BZ #11607]
28525         * NEWS: Add an entry.
28526         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
28527         define their defaults.
28528         (two_way_short_needle): Detect end-of-string on-the-fly.
28529         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
28530         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
28531         * string/bug-strcasestr1.c: New test.
28532         * string/Makefile: Run it.
28533
28534 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28535
28536         [BZ #11607]
28537         * string/str-two-way.h (two_way_short_needle): Optimize matching of
28538         the first character.
28539
28540 2012-08-21  Roland McGrath  <roland@hack.frob.com>
28541
28542         * csu/elf-init.c (__libc_csu_irel): Function removed.
28543         * csu/libc-start.c (apply_irel): New function.
28544         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
28545
28546 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
28547
28548         * sysdeps/unix/sysv/linux/kernel-features.h
28549         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
28550         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
28551         <kernel-features.h>.
28552         [__NR_fadvise64_64]: Make code unconditional.
28553         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
28554         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28555         !__NR_fadvise64_64)]: Likewise.
28556         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28557         !__NR_fadvise64_64))]: Likewise.
28558         [__NR_fadvise64]: Make code unconditional.
28559         [!__NR_fadvise64]: Remove conditional code.
28560         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
28561         <kernel-features.h>.
28562         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28563         unconditional.
28564         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28565         conditional code.
28566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
28567         not include <kernel-features.h>.
28568         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28569         unconditional.
28570         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28571         conditional code.
28572         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
28573         include <kernel-features.h>.
28574         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28575         unconditional.
28576         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28577         conditional code.
28578
28579 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28580
28581         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
28582         slight instruction rearrangements per scrollpipe analysis.
28583         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
28584
28585 2012-08-20  Roland McGrath  <roland@hack.frob.com>
28586
28587         * manual/syslog.texi (syslog; vsyslog, closelog):
28588         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
28589         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
28590
28591         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
28592         DSOCAPS to match condition on defining it.
28593
28594 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
28595
28596         * sysdeps/unix/sysv/linux/kernel-features.h
28597         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
28598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
28599         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28600         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
28602         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28603         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
28605         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28606         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28607
28608         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
28609         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
28610
28611         * sysdeps/unix/sysv/linux/kernel-features.h
28612         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
28613         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
28614         unconditional.
28615         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28616         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
28617         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28618         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28619         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
28620         Make code unconditional.
28621         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28622         (__mmap64) [!__NR_mmap2]: Likewise.
28623         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
28624         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28625         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28626         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
28627         [__NR_mmap2]: Make code unconditional.
28628         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28629         (__mmap64) [!__NR_mmap2]: Likewise.
28630
28631 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28632
28633         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
28634
28635 2012-08-18  Andreas Jaeger  <aj@suse.de>
28636
28637         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
28638
28639 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28640
28641         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
28642         * include/unistd.h (__have_sock_cloexec): Likewise.
28643         (__have_pipe2): Likewise.
28644         (__have_dup3): Likewise.
28645
28646 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28647
28648         [BZ #9685]
28649         * include/unistd.h (__have_pipe2): Change define into an extern int.
28650         (__have_dup3): Likewise.
28651         * socket/have_sock_cloexec.c: Include fcntl.h.
28652         (__have_pipe2): New variable.
28653         (__have_dup3): Likewise.
28654
28655 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
28656
28657         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
28658
28659 2012-08-17  Marek Polacek  <polacek@redhat.com>
28660
28661         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
28662         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
28663
28664 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28665
28666         * configure.in: Add AC_SUBST for sysheaders.
28667         * configure: Regenerated.
28668         * config.make.in (sysheaders): New substituted variable.
28669
28670         * sysdeps/unix/mkfifo.c: Moved ...
28671         * sysdeps/posix/mkfifo.c: ... here.
28672         * sysdeps/unix/mkfifoat.c: Moved ...
28673         * sysdeps/posix/mkfifoat.c: ... here.
28674
28675         * sysdeps/unix/utime.c: Moved ...
28676         * sysdeps/posix/utime.c: ... here.
28677
28678         * sysdeps/unix/time.c: Moved ...
28679         * sysdeps/posix/time.c: ... here.
28680         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
28681         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
28682
28683         * sysdeps/unix/nice.c: Moved ...
28684         * sysdeps/posix/nice.c: ... here.
28685
28686         * sysdeps/unix/alarm.c: Moved ...
28687         * sysdeps/posix/alarm.c: ... here.
28688
28689         * intl/Makefile ($(codeset_mo)): Depend on the input file.
28690
28691 2012-08-17  Jeff Law <law@redhat.com>
28692
28693         * intl/Makefile (codeset_mo): New variable.
28694         ($(codeset_mo)): New target.
28695         (tst-codeset.out): Depend on that.  Remove explicit rule.
28696         (tst-gettext3.out, tst-gettext5.out): Likewise.
28697         (LOCPATH-ENV, tst-codeset-ENV): New variables.
28698         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
28699         * intl/tst-codeset.sh: Remove.
28700         * intl/tst-gettext3.sh: Likewise.
28701         * intl/tst-gettext5.sh: Likewise.
28702
28703 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28704
28705         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
28706         * sysdeps/unix/syscalls.list: ... here.
28707
28708         * sysdeps/posix/getaddrinfo.c
28709         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
28710         (gaiconf_init, gaiconf_reload): Use them.
28711         [!_STATBUF_ST_NSEC]
28712         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
28713         Define using time_t rather than struct timespec.
28714
28715         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
28716         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
28717         Macros removed.
28718         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
28719         [!NO_THREADS].
28720         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
28721         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
28722         Likewise.
28723
28724         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
28725         __libc_cleanup_push argument.
28726
28727         * bits/param.h: New file.
28728         * misc/sys/param.h: New file.
28729         * include/sys/param.h: New file.
28730         * misc/Makefile (headers): Add bits/param.h.
28731         * sysdeps/generic/sys/param.h: File removed.
28732         * sysdeps/unix/sysv/linux/bits/param.h: New file.
28733         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
28734         * sysdeps/mach/hurd/bits/param.h: New file.
28735         * sysdeps/mach/hurd/sys/param.h: File removed.
28736
28737         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
28738         last change.
28739
28740         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
28741         [_IO_MTSAFE_IO].
28742         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
28743         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
28744         New macros.
28745
28746         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
28747         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
28748         rather than -D_IO_MTSAFE_IO conditionally.
28749         * stdio-common/Makefile (CPPFLAGS): Likewise.
28750         * wcsmbs/Makefile (CPPFLAGS): Likewise.
28751         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
28752         Use $(libio-mtsafe).
28753         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
28754         of -D_IO_MTSAFE_IO.
28755         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
28756         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
28757         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
28758         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
28759         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
28760         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
28761         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
28762         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
28763         (CFLAGS-fread_u_chk.c): Likewise.
28764         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
28765         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
28766         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
28767         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
28768         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
28769         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
28770         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
28771         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
28772         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
28773
28774         * libio/Makefile: Test [$(libc-reentrant) = yes]
28775         instead of [$(filter %REENTRANT, $(defines)) nonempty].
28776
28777         * Makeconfig
28778         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
28779         * sysdeps/pthread/configure: File removed.
28780         * sysdeps/pthread/Makeconfig: New file.
28781         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
28782         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
28783
28784 2012-08-16  Gary Benson  <gbenson@redhat.com>
28785
28786         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
28787         unmapping the first object in a namespace.
28788
28789 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28790
28791         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
28792         (__internal_setnetgrent): ... this.  Add internal_function to
28793         definition.  Add libc_hidden_def.
28794         (setnetgrent): Update caller.
28795         (internal_endnetgrent): Renamed to ...
28796         (__internal_endnetgrent): ... this.  Add internal_function to
28797         definition.  Add libc_hidden_def.
28798         (endnetgrent): Update caller.
28799         (internal_getnetgrent_r): Renamed to ...
28800         (__internal_getnetgrent_r): ... this.  Add internal_function to
28801         definition.  Add libc_hidden_def.
28802         (__getnetgrent_r): Update caller.
28803         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
28804
28805 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28806
28807         * stdlib/longlong.h: Update from GCC.
28808
28809 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28810
28811         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
28812         on _QL, which is set by umul_ppmm but never used.
28813         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
28814         variables, which are set by GMP macros but never used.
28815         * stdio-common/_itowa.c (_itowa): Likewise.
28816         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
28817         * stdlib/mod_1.c (mpn_mod_1): Likewise.
28818
28819 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
28820
28821         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
28822         struct La_sh_regs is not constant.
28823         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
28824         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
28825         and struct La_sparc64_regs are not constant.
28826
28827 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28828
28829         * sysdeps/unix/sysv/linux/kernel-features.h
28830         (__ASSUME_POSIX_TIMERS): Remove.
28831         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28832         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28833         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
28834         Make code unconditional.
28835         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28836         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
28837         Make code unconditional.
28838         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28839         * sysdeps/unix/sysv/linux/clock_nanosleep.c
28840         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
28841         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28842         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
28843         Make code unconditional.
28844         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28845         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
28846         (__libc_missing_posix_timers): Remove.
28847
28848 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28849
28850         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
28851         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
28852
28853         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
28854
28855         * elf/dl-sym.c: Include <stdlib.h>.
28856
28857         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
28858         constants, which avoids warnings in 32-bit builds.
28859
28860         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
28861         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
28862
28863         * misc/lseek.c: File moved to ...
28864         * io/lseek.c: ... here.
28865
28866         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
28867
28868         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
28869         shifting LEN more than 31 bits at once.
28870
28871 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28872
28873         [BZ #14195]
28874         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
28875         segmentation fault for a case of two empty input strings.
28876         * string/test-strncasecmp.c (check1): Renamed to...
28877         (bz12205): ...this.
28878         (bz14195): Add new testcase for two empty input strings and N > 0.
28879         (test_main): Call new testcase, adapt for renamed function.
28880
28881 2012-08-15  Andreas Jaeger  <aj@suse.de>
28882
28883         [BZ #14090]
28884         * crypt/md5test2.c: New test, based on test supplied by Serge
28885         Belyshev <belyshev@depni.sinp.msu.ru>.
28886         * crypt/Makefile (xtests): Add md5test-giant..
28887         * crypt/Makefile ($(objpfx)md5test-giant): Add.
28888
28889 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28890
28891         [BZ #14090]
28892         * crypt/md5.c (md5_process_block): Don't assume the buffer
28893         length is less than 2**32.
28894         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
28895         length is less than 2**64.
28896
28897 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28898
28899         * string/str-two-way.h: Include <sys/param.h>.
28900         (MAX): Macro removed.
28901
28902         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
28903         Move #define and #undef of memmove to just before and after
28904         including <string.h>.
28905
28906         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
28907         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
28908         and after including <string.h>.  Move declarations of
28909         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
28910         to before #include "string/memmove.c".
28911
28912         * include/dirent.h: Declare __getdirentries.
28913
28914         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
28915         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
28916
28917 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
28918
28919         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
28920         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
28921         * sysdeps/i386/configure: Regenerated.
28922         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
28923         STABS_CURRENT_FILE, and STABS_FUN.
28924         (END): Remove call to STABS_FUN_END.
28925         (STABS_CURRENT_FILE1): Delete.
28926         (STABS_CURRENT_FILE): Likewise.
28927         (STABS_FUN): Likewise.
28928         (STABS_FUN_END): Likewise.
28929         (STABS_FUN2): Likewise.
28930         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
28931         * sysdeps/x86_64/configure: Regenerated.
28932
28933 2012-08-14  Roland McGrath  <roland@hack.frob.com>
28934
28935         * elf/dl-open.c: Include <atomic.h>.
28936         * elf/dl-lookup.c: Likewise.
28937
28938 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
28939
28940         * sysdeps/unix/sysv/linux/kernel-features.h
28941         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
28942         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
28943         unconditionally.
28944         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
28945         unconditionally.
28946         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
28947         condition on __ASSUME_CLONE_THREAD_FLAGS.
28948
28949 2012-08-14  Andreas Jaeger  <aj@suse.de>
28950
28951         * sysdeps/i386/fpu/libm-test-ulps: Update.
28952
28953 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
28954
28955         * include/atomic.h (atomic_exchange_and_add): Split into ...
28956         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
28957         New atomic macros.
28958
28959 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
28960
28961         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28962
28963 2012-08-13  Jeff Law <law@redhat.com>
28964
28965         * manual/stdio.texi (snprintf): Clarify handling of the trailing
28966         null byte in the output string.
28967
28968 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
28969
28970         * sysdeps/unix/sysv/linux/kernel-features.h
28971         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
28972         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
28973         (__ASSUME_ARG_MAX_STACK_BASED): Define.
28974         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
28975         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
28976         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
28977         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
28978
28979 2012-08-09  Jeff Law <law@redhat.com>
28980
28981         [BZ #13939]
28982         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
28983         When avoid_arena is set, don't retry in the that arena.  Pick the
28984         next one, whatever it might be.
28985         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
28986         (arena_lock): Pass in new parameter to arena_get2.
28987         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
28988         arena_get2.
28989         (__libc_malloc): Unify retrying after main arena failure with
28990         __libc_memalign version.
28991         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
28992
28993 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
28994
28995         [BZ #14166]
28996         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
28997         to __redirect_strstr.
28998         (__strstr_sse42): Use typeof __redirect_strstr.
28999         (__strstr_ia32): Likewise.
29000         (__libc_strstr): New prototype.
29001         (strstr): Renamed to ...
29002         (__libc_strstr): This.
29003         (strstr): New strong alias of __libc_strstr.
29004         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
29005         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
29006         __redirect_time.
29007         Include <time.h>.
29008         (__libc_time): New prototype.
29009         (time_ifunc): Replace time with __libc_time.
29010         (time): New strong alias and hidden definition of __libc_time.
29011         (__GI_time): Remove strong alias.
29012         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
29013         Include <stddef.h>.
29014         (memmove): Redefined to __redirect_memmove.
29015         (__memmove_sse2): Use typeof __redirect_memmove.
29016         (__memmove_ssse3): Likewise.
29017         (__memmove_ssse3_back): Likewise.
29018         (__libc_memmove): New prototype.
29019         (memmove): Renamed to ...
29020         (__libc_memmove): This.
29021         (memmove): New strong alias of __libc_memmove.
29022
29023 2012-08-08  Mark Salter  <msalter@redhat.com>
29024
29025         * elf/elf.h
29026         (R_MN10300_TLS_GD): Define.
29027         (R_MN10300_TLS_LD): Likewise.
29028         (R_MN10300_TLS_LDO): Likewise.
29029         (R_MN10300_TLS_GOTIE): Likewise.
29030         (R_MN10300_TLS_IE): Likewise.
29031         (R_MN10300_TLS_LE): Likewise.
29032         (R_MN10300_TLS_DTPMOD): Likewise.
29033         (R_MN10300_TLS_DTPOFF): Likewise.
29034         (R_MN10300_TLS_TPOFF): Likewise.
29035         (R_MN10300_SYM_DIFF): Likewise.
29036         (R_MN10300_ALIGN): Likewise.
29037         (R_MN10300_NUM): Update.
29038
29039 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
29040
29041         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
29042         Remove.
29043
29044 2012-08-08  Roland McGrath  <roland@hack.frob.com>
29045
29046         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
29047
29048         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
29049         sysdeps/unix -> sysdeps/posix move.
29050         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29051
29052 2012-08-07      Allan McRae     <allan@archlinux.org>
29053
29054         [BZ #14303]
29055         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
29056         (SUNOS_CPP): Likewise.
29057         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
29058         not found.
29059         (open_input): Call CPP using execvp.
29060
29061 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29062
29063         * sysdeps/unix/sysv/linux/kernel-features.h
29064         (__ASSUME_PROT_GROWSUPDOWN): Remove.
29065         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29066         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29067         (__ASSUME_WAITID_SYSCALL): Likewise.
29068         * sysdeps/unix/sysv/linux/dl-execstack.c
29069         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
29070         code unconditional.
29071         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
29072         conditional code.
29073         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
29074         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
29075         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
29076         code.
29077         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
29078         unconditional.
29079         [__ASSUME_WAITID_SYSCALL]: Likewise.
29080         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
29081
29082 2012-08-07  Roland McGrath  <roland@hack.frob.com>
29083
29084         * sysdeps/unix/closedir.c: Renamed to ...
29085         * sysdeps/posix/closedir.c: ... here.
29086         * sysdeps/unix/dirfd.c: Renamed to ...
29087         * sysdeps/posix/dirfd.c: ... here.
29088         * sysdeps/unix/dirstream.h: Renamed to ...
29089         * sysdeps/posix/dirstream.h: ... here.
29090         * sysdeps/unix/fdopendir.c: Renamed to ...
29091         * sysdeps/posix/fdopendir.c: ... here.
29092         * sysdeps/unix/opendir.c: Renamed to ...
29093         * sysdeps/posix/opendir.c: ... here.
29094         * sysdeps/unix/readdir.c: Renamed to ...
29095         * sysdeps/posix/readdir.c: ... here.
29096         * sysdeps/unix/readdir_r.c: Renamed to ...
29097         * sysdeps/posix/readdir_r.c: ... here.
29098         * sysdeps/unix/rewinddir.c: Renamed to ...
29099         * sysdeps/posix/rewinddir.c: ... here.
29100         * sysdeps/unix/seekdir.c: Renamed to ...
29101         * sysdeps/posix/seekdir.c: ... here.
29102         * sysdeps/unix/telldir.c: Renamed to ...
29103         * sysdeps/posix/telldir.c: ... here.
29104         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
29105         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
29106         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29107         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
29108
29109         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
29110         * bits/fcntl.h: ... here.
29111
29112         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
29113         not 0.
29114         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
29115         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
29116         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
29117         (struct flock): Move l_start, l_len to the beginning.
29118         Use __pid_t for l_pid.
29119         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
29120         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
29121         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
29122         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
29123         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
29124         [__USE_LARGEFILE64] (struct flock64): New type.
29125         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
29126
29127         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
29128         * bits/dirent.h: ... here.
29129
29130         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
29131         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
29132
29133 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29134
29135         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29136         Change from 2.6.0 to 2.6.16.
29137         * sysdeps/unix/sysv/linux/configure: Regenerated.
29138         * sysdeps/unix/sysv/linux/kernel-features.h
29139         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
29140         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
29141         version.
29142         (__ASSUME_UTIMES): Likewise.
29143         (__ASSUME_CLONE_STOPPED): Remove.
29144         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
29145         architectures, not kernel version.
29146         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
29147         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29148         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29149         (__ASSUME_WAITID_SYSCALL): Likewise.
29150         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
29151         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
29152         * README: State 2.6.16 as minimum Linux kernel version.  Do not
29153         refer to older versions.
29154
29155 2012-08-06  Roland McGrath  <roland@hack.frob.com>
29156
29157         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
29158         Define alphasort64 as an alias.
29159         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
29160         Define versionsort64 as an alias.
29161         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
29162         Define scandir64 as an alias.
29163         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
29164         Define scandirat64 as an alias.
29165         * dirent/alphasort64.c (alphasort64):
29166         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
29167         * dirent/versionsort64.c: Likewise.
29168         * dirent/scandir64.c: Likewise.
29169         * dirent/scandirat64.c: Likewise.
29170         * sysdeps/wordsize-64/alphasort.c: File removed.
29171         * sysdeps/wordsize-64/alphasort64.c: File removed.
29172         * sysdeps/wordsize-64/scandir.c: File removed.
29173         * sysdeps/wordsize-64/scandir64.c: File removed.
29174         * sysdeps/wordsize-64/scandirat.c: File removed.
29175         * sysdeps/wordsize-64/scandirat64.c: File removed.
29176         * sysdeps/wordsize-64/versionsort.c: File removed.
29177         * sysdeps/wordsize-64/versionsort64.c: File removed.
29178         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
29179         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
29180         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
29181         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
29182         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
29183         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
29184         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
29185         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
29186
29187         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
29188         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29189         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
29190         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29191         [defined __arch64__ || defined __sparcv9]
29192         (__INO_T_MATCHES_INO64_T): New macro.
29193         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29194         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
29195         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
29196         * sysdeps/unix/sysv/linux/bits/dirent.h
29197         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
29198         (_DIRENT_MATCHES_DIRENT64): New macro.
29199
29200         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
29201         Define lockf64 as an alias.
29202         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
29203         Define fseeko64 as an alias.
29204         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
29205         Define ftello64 as an alias.
29206         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
29207         Define _IO_fgetpos64 and fgetpos64 as aliases.
29208         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
29209         Define _IO_fsetpos64 and fsetpos64 as aliases.
29210         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
29211         Conditionalize body on this.
29212         * libio/fseeko64.c: Likewise.
29213         * libio/ftello64.c: Likewise.
29214         * libio/iofgetpos64.c: Likewise.
29215         * libio/iofsetpos64.c: Likewise.
29216         * sysdeps/wordsize-64/lockf.c: File removed.
29217         * sysdeps/wordsize-64/lockf64.c: File removed.
29218         * sysdeps/wordsize-64/fseeko.c: File removed.
29219         * sysdeps/wordsize-64/fseeko64.c: File removed.
29220         * sysdeps/wordsize-64/ftello.c: File removed.
29221         * sysdeps/wordsize-64/ftello64.c: File removed.
29222         * sysdeps/wordsize-64/iofgetpos.c: File removed.
29223         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
29224         * sysdeps/wordsize-64/iofsetpos.c: File removed.
29225         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
29226         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
29227         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
29228         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
29229         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
29230         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
29231         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
29232         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
29233         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
29234         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
29235         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
29236
29237         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29238         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29239         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
29240         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29241         [defined __arch64__ || defined __sparcv9]
29242         (__OFF_T_MATCHES_OFF64_T): New macro.
29243         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29244         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29245         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
29246         (__OFF_T_MATCHES_OFF64_T): New macro.
29247
29248 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29249
29250         * stdlib/secure-getenv.c (__secure_getenv): Replace
29251         GLIBC_2_16 with GLIBC_2_17.
29252
29253 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29254
29255         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
29256         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
29257
29258 2012-08-03  David S. Miller  <davem@davemloft.net>
29259
29260         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29261
29262 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29263
29264         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
29265         Remove.
29266         (__ASSUME_CORRECT_SI_PID): Likewise.
29267         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
29268         (__ASSUME_TMPFS_NAME): Likewise.
29269         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
29270         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
29271         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
29272         (HAVE_AUX_SECURE): Make definition unconditional.
29273         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
29274         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
29275
29276 2012-08-03  Roland McGrath  <roland@hack.frob.com>
29277
29278         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
29279         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
29280         * sysdeps/mach/hurd/eloop-threshold.h: New file.
29281         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
29282         __eloop_threshold instead of SYMLOOP_MAX.
29283
29284         * sysdeps/generic/eloop-threshold.h: New file.
29285         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
29286         of MAXSYMLINKS.
29287         * elf/chroot_canon.c (chroot_canon): Likewise.
29288
29289 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29290
29291         [BZ #13717]
29292         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29293         Change to 2.6.0 everywhere.
29294         * sysdeps/unix/sysv/linux/configure: Regenerated.
29295         * sysdeps/unix/sysv/linux/kernel-features.h
29296         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
29297         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
29298         kernel versions.
29299         (__ASSUME_POSIX_TIMERS): Define unconditionally.
29300         (__ASSUME_FUTEX_REQUEUE): Remove.
29301         (__ASSUME_STATFS64): Define unconditionally.
29302         (__ASSUME_AT_SECURE): Likewise.
29303         (__ASSUME_CORRECT_SI_PID): Likewise.
29304         (__ASSUME_TGKILL): Define without depending on kernel version for
29305         i386.
29306         (__ASSUME_UTIMES): Likewise.
29307         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
29308         kernel version.
29309         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
29310         (__ASSUME_TMPFS_NAME): Likewise.
29311         * README: Update reference to Linux kernel versions.
29312
29313 2012-08-02  Marek Polacek  <polacek@redhat.com>
29314
29315         [BZ# 14150]
29316         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
29317         libc_cv_asm_type_prefix with %.
29318         * configure: Regenerated.
29319         * include/libc-symbols.h: Remove comment about
29320         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29321         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
29322         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
29323         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
29324         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
29325         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29326         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
29327         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
29328         * elf/tst-unique2mod1.c: Likewise.
29329         * elf/tst-unique1mod2.c: Likewise.
29330         * elf/tst-unique1mod1.c: Likewise.
29331         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
29332         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
29333         Replace ASM_TYPE_DIRECTIVE with .type.
29334         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29335         * sysdeps/i386/sysdep.h: Likewise.
29336         * sysdeps/x86_64/sysdep.h: Likewise.
29337         * sysdeps/sh/sysdep.h: Likewise.
29338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
29339         Do not define ASM_TYPE_DIRECTIVE.
29340         * sysdeps/powerpc/sysdep.h: Likewise.
29341         * sysdeps/powerpc/powerpc32/sysdep.h:
29342         Replace ASM_TYPE_DIRECTIVE with .type.
29343         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29344         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29345         * sysdeps/i386/fpu/e_powf.S: Likewise.
29346         * sysdeps/i386/fpu/e_expl.S: Likewise.
29347         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29348         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29349         * sysdeps/i386/fpu/e_pow.S: Likewise.
29350         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
29351         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29352         * sysdeps/i386/fpu/s_expm1.S: Likewise.
29353         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
29354         * sysdeps/i386/fpu/e_log2.S: Likewise.
29355         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29356         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29357         * sysdeps/i386/fpu/e_powl.S: Likewise.
29358         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29359         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
29360         * sysdeps/i386/fpu/e_logl.S: Likewise.
29361         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
29362         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
29363         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
29364         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29365         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29366         * sysdeps/i386/fpu/e_log.S: Likewise.
29367         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29368         * sysdeps/i386/fpu/e_logf.S: Likewise.
29369         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29370         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29371         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
29372         * sysdeps/i386/fpu/e_log10.S: Likewise.
29373         * sysdeps/i386/fpu/s_frexp.S: Likewise.
29374         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29375         * sysdeps/i386/fpu/s_asinh.S: Likewise.
29376         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
29377         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29378         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29379         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
29380         * sysdeps/i386/i686/strtok.S: Likewise.
29381         * sysdeps/i386/i386-mcount.S: Likewise.
29382         * sysdeps/i386/strtok.S: Likewise.
29383         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
29384         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29385         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29386         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29387         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29388         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29389         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29390         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29391         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29392         * sysdeps/x86_64/_mcount.S: Likewise.
29393         * sysdeps/x86_64/strtok.S: Likewise.
29394         * sysdeps/sh/_mcount.S: Likewise.
29395
29396 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29397
29398         * libio/iofopen.c: Include <fcntl.h>.
29399         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
29400         (_IO_fopen64, fopen64): Define as aliases.
29401         * libio/iofopen64.c: Include <fcntl.h>.
29402         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
29403         Conditionalize body on this.
29404         * sysdeps/wordsize-64/iofopen.c: File removed.
29405         * sysdeps/wordsize-64/iofopen64.c: File removed.
29406
29407 2012-08-01  Marek Polacek  <polacek@redhat.com>
29408
29409         * libc/Makeconfig: Use elf in place of binfmt-subdir.
29410         Use dlfcn directly instead of a variable.
29411         (binfmt-subdir): Do not define.
29412         (dlfcn): Likewise.
29413
29414 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
29415
29416         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
29417         Remove all definitions.
29418         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
29419         <kernel-features.h>.
29420         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29421         (miss_F_GETOWN_EX): Remove all definitions.
29422         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
29423         macro definition.
29424         [!__ASSUME_FCNTL64]: Remove conditional code.
29425         [__ASSUME_FCNTL64]: Make code unconditional.
29426         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
29427         <kernel-features.h>.
29428         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29429         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
29430         (lockf64) [__NR_fcntl64]: Make code unconditional.
29431         (lockf64) [__ASSUME_FCNTL64]: Likewise.
29432
29433         * sysdeps/unix/sysv/linux/kernel-features.h
29434         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
29435         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
29436         Make code unconditional.
29437         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29438         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
29440         [__NR_vfork]: Make code unconditional.
29441         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29442         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
29444         [__NR_vfork]: Make code unconditional.
29445         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29446         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29447
29448 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29449
29450         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
29451         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
29452
29453         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29454         Define mkstemp64 as an alias.
29455         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29456         Define mkstemps64 as an alias.
29457         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29458         Define mkostemp64 as an alias.
29459         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29460         Define mkostemps64 as an alias.
29461         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
29462         Conditionalize body on this.
29463         * misc/mkostemp64.c: Likewise.
29464         * misc/mkostemps64.c: Likewise.
29465         * misc/mkstemps64.c: Likewise.
29466         * sysdeps/wordsize-64/mkstemp64.c: File removed.
29467         * sysdeps/wordsize-64/mkostemp64.c: File removed.
29468         * sysdeps/wordsize-64/mkostemp.c: File removed.
29469         * sysdeps/wordsize-64/mkstemp.c: File removed.
29470         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
29471         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
29472         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
29473         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
29474
29475         [BZ #14138]
29476         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
29477         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
29478         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
29479         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
29480
29481         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
29482         compat_symbol macros from <shlib-compat.h> rather than the underlying
29483         default_symbol_version and symbol_version macros, so that DEFAULT
29484         lines in shlib-versions are respected.
29485         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
29486
29487 2012-08-01  Florian Weimer  <fweimer@redhat.com>
29488
29489         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
29490         Declare with warn_unused_result.
29491         (setgid, setregid, setegid, setresgid): Likewise.
29492         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
29493         Likewise.
29494         * WUR-REPORT: Remove set*id functions.
29495
29496 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
29497
29498         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
29499
29500 2012-07-31  Roland McGrath  <roland@hack.frob.com>
29501
29502         [BZ #10191]
29503         * include/sys/socket.h (__libc_accept, __libc_accept4):
29504         Add attribute_hidden.
29505         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
29506
29507         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
29508         use of PTR_MANGLE.
29509         * inet/getnetgrent_r.c (setup): Likewise.
29510
29511         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
29512
29513 2012-07-31  David S. Miller  <davem@davemloft.net>
29514
29515         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29516
29517 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
29518
29519         [BZ #13629]
29520         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
29521         value between 1.0 and 2.0 and smaller part has absolute value less
29522         than 1.0.
29523         * math/s_clog10.c (__clog10): Likewise.
29524         * math/s_clog10f.c (__clog10f): Likewise.
29525         * math/s_clog10l.c (__clog10l): Likewise.
29526         * math/s_clogf.c (__clogf): Likewise.
29527         * math/s_clogl.c (__clogl): Likewise.
29528         * math/libm-test.inc (clog_test): Add more tests.
29529         (clog10_test): Likewise.
29530         * sysdeps/i386/fpu/libm-test-ulps: Update.
29531         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29532
29533 2012-07-31  Florian Weimer  <fweimer@redhat.com>
29534
29535         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
29536         Exit with zero in case no suitable GID is found, and write a
29537         message to standard error.
29538
29539 2012-07-30  Roland McGrath  <roland@hack.frob.com>
29540
29541         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
29542         rather than to 1.
29543         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
29544         (MAXPATHLEN): Removed.
29545         (NOGROUP, NODEV): New macros.
29546         (setbit, clrbit, isset, isclr): New macros.
29547         (howmany, roundup, powerof2): New macros.
29548         (DEV_BSIZE): New macro.
29549
29550         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
29551         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
29552
29553         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
29554         definition on [!__NO_LONG_DOUBLE_MATH].
29555
29556         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
29557         PTR_MANGLE and PTR_DEMANGLE.
29558
29559         * socket/accept4.c (accept4): Rename to __libc_accept4.
29560         Define accept4 as a weak alias.
29561
29562         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
29563         on [_DIRENT_HAVE_D_TYPE].
29564         * io/ftw.c (ftw_dir): Likewise.
29565
29566         * io/xmknod.c (__xmknod): Don't check PATH for being null.
29567
29568         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
29569
29570         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
29571         Use the BSD numbers rather than the arbitrary ones we had.
29572         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
29573         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
29574         (SIGXCPU, SIGXFSZ): New macros.
29575         (_NSIG): Now 32.
29576
29577         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
29578         initializer on [_LIBC_REENTRANT].
29579
29580         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
29581         definitions inside [_POSIX_MAPPED_FILES].
29582
29583         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
29584
29585         * dirent/opendir.c: Include <fcntl.h>.
29586
29587         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
29588         (__libc_getspecific): Likewise.
29589         (__libc_key_create): Likewise.
29590
29591         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
29592         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
29593         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
29594         (tmpfile64): Define as alias.
29595         * sysdeps/wordsize-64/tmpfile.c: File removed.
29596         * sysdeps/wordsize-64/tmpfile64.c: File removed.
29597         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
29598         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
29599
29600         * stdio-common/vfscanf.c: Include <stdbool.h>.
29601         * nss/makedb.c: Likewise.
29602         * stdio-common/_i18n_number.h: Likewise.
29603         * argp/argp-help.c: Likewise.
29604         * posix/wordexp.c: Likewise.
29605         * sysdeps/posix/spawni.c: Likewise.
29606         * nss/nss_files/files-initgroups.c: Likewise.
29607         * stdio-common/reg-modifier.c: Include <stdlib.h>.
29608         * nss/nss_files/files-initgroups.c: Likewise.
29609         * nss/nss_db/db-netgrp.c: Likewise.
29610         * nss/nss_db/db-initgroups.c: Likewise.
29611         * io/fchmodat.c: Include <sys/stat.h>.
29612
29613         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
29614         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
29615
29616         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
29617         [HAVE_MMAP].
29618
29619         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
29620         Add multiple inclusion protection.
29621
29622 2012-07-27  David S. Miller  <davem@davemloft.net>
29623
29624         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29625
29626 2012-07-27  Gary Benson  <gbenson@redhat.com>
29627
29628         [BZ #14298]
29629         * elf/rtld.c: Include <stap-probe.h>.
29630         (dl_main): Added static probes "init_start" and "init_complete".
29631         * elf/dl-load.c: Include <stap-probe.h>.
29632         (lose): Take new parameter "nsid".
29633         Added static probe "map_failed".
29634         (_dl_map_object_from_fd): Pass namespace id to lose.
29635         Added static probe "map_start".
29636         (open_verify): Pass namespace id to lose.
29637         * elf/dl-open.c: Include <stap-probe.h>.
29638         (dl_open_worker) Added static probes "map_complete", "reloc_start"
29639         and "reloc_complete".
29640         * elf/dl-close.c: Include <stap-probe.h>.
29641         (_dl_close_worker): Added static probes "unmap_start" and
29642         "unmap_complete".
29643         * elf/rtld-debugger-interface.txt: New file documenting the above.
29644
29645 2012-07-26  Roland McGrath  <roland@hack.frob.com>
29646
29647         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
29648         rather than a string variable.
29649         * sunrpc/rpc_main.c (h_output): Likewise.
29650         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
29651
29652 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
29653
29654         * inet/check_native.c: New file.
29655
29656 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
29657
29658         [BZ #13629]
29659         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
29660         if larger part has absolute value 1.0.
29661         * math/s_clog10.c (__clog10): Likewise.
29662         * math/s_clog10f.c (__clog10f): Likewise.
29663         * math/s_clog10l.c (__clog10l): Likewise.
29664         * math/s_clogf.c (__clogf): Likewise.
29665         * math/s_clogl.c (__clogl): Likewise.
29666         * math/libm-test.inc (clog_test): Add more tests.
29667         (clog10_test): Likewise.
29668         * sysdeps/i386/fpu/libm-test-ulps: Update.
29669         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29670
29671         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
29672         (pltexit): Likewise.
29673         (La_regs): Likewise.
29674         (La_retval): Likewise.
29675         (int_retval): Likewise.
29676         Update #error for removed macros to refer only to definitions in
29677         tst-audit.h.
29678         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
29679         macro.
29680         (pltexit): Likewise.
29681         (La_regs): Likewise.
29682         (La_retval): Likewise.
29683         (int_retval): Likewise.
29684         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
29685         macro.
29686         (pltexit): Likewise.
29687         (La_regs): Likewise.
29688         (La_retval): Likewise.
29689         (int_retval): Likewise.
29690         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
29691         macro.
29692         (pltexit): Likewise.
29693         (La_regs): Likewise.
29694         (La_retval): Likewise.
29695         (int_retval): Likewise.
29696         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
29697         macro.
29698         (pltexit): Likewise.
29699         (La_regs): Likewise.
29700         (La_retval): Likewise.
29701         (int_retval): Likewise.
29702         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
29703         macro.
29704         (pltexit): Likewise.
29705         (La_regs): Likewise.
29706         (La_retval): Likewise.
29707         (int_retval): Likewise.
29708         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
29709         macro.
29710         (pltexit): Likewise.
29711         (La_regs): Likewise.
29712         (La_retval): Likewise.
29713         (int_retval): Likewise.
29714         * sysdeps/generic/tst-audit.h: Update comment to refer only to
29715         macro definitions in tst-audit.h.
29716         * sysdeps/i386/tst-audit.h: New file.
29717         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
29718         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
29719         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
29720         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
29721         * sysdeps/sh/tst-audit.h: Likewise.
29722         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
29723         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
29724         * sysdeps/x86_64/tst-audit.h: Likewise.
29725
29726 2012-07-26  Andreas Jaeger  <aj@suse.de>
29727
29728         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
29729         ptrace.
29730
29731         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
29732         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
29733         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
29734         PTRACE_O_MASK.
29735         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
29736         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
29737         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
29738
29739         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
29740         value.
29741
29742         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
29743         _sigsys.
29744         (si_call_addr, si_syscall, si_arch): Define new macro.
29745         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
29746         _sigsys.
29747         (si_call_addr, si_syscall, si_arch): Define new marcro.
29748         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
29749         _sigsys.
29750         (si_call_addr, si_syscall, si_arch): Define new macro.
29751         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
29752         _sigsys.
29753         (si_call_addr, si_syscall, si_arch): Define new macro.
29754
29755 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29756
29757         [BZ #13717]
29758         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29759         Change to 2.4.21 where previously 2.4.1.
29760         * sysdeps/unix/sysv/linux/configure: Regenerated.
29761         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
29762         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
29763         Linux kernel version.
29764         (__ASSUME_STD_AUXV): Remove.
29765         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
29766         kernel version.
29767         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
29768         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
29769         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
29770         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
29771         (__ASSUME_NETLINK_SUPPORT): Likewise.
29772         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
29773         (__no_netlink_support): Remove conditional definition.
29774         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
29775         Remove.
29776         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29777         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
29778         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
29779         (if_nameindex_ioctl): Remove.
29780         (if_nameindex_netlink): Do not handle __no_netlink_support.
29781         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29782         code.
29783         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
29784         Remove conditional code.
29785         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29786         code.
29787         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
29788         unconditional.
29789         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29790         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
29791         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
29792         Remove.
29793         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
29794         [!__ASSUME_STD_AUXV]: Remove conditional code.
29795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
29796         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
29797         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
29798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
29799         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
29800         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29801         code.
29802         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
29804         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
29805         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29806         conditional code.
29807         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
29809         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29810         code.
29811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
29812         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29813         conditional code.
29814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
29815         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29816         code unconditional.
29817         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29818         conditional code.
29819         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29820         unconditional.
29821         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29822         conditional code.
29823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29824         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29825         unconditional.
29826         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29827         conditional code.
29828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
29829         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29830         code unconditional.
29831         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29832         conditional code.
29833         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29834         unconditional.
29835         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29836         conditional code.
29837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
29838         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29839         code unconditional.
29840         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29841         conditional code.
29842         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29843         unconditional.
29844         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29845         conditional code.
29846
29847 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
29848
29849         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
29850         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
29851         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
29852         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
29853         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
29854         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29855         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29856         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
29857         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
29858         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
29859         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
29860         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
29861         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
29862         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29863         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
29864         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
29865         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
29866         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
29867         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
29868         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
29869         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
29870         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
29871         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
29872
29873 2012-07-25  Florian Weimer  <fweimer@redhat.com>
29874
29875         * Versions.def: Add GLIBC_2.17.
29876         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
29877         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
29878         Introduce __libc_secure_getenv.
29879         * stdlib/Versions (2.17): Add secure_getenv
29880         (GLIBC_PRIVATE): Add __libc_secure_getenv.
29881         * stdlib/secure-getenv.c: Rename __secure_getenv to
29882         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
29883         symbol __secure_getenv for GLIBC_2.0.
29884         * stdlib/tst-secure-getenv.c: New.
29885         * stdlib/Makefile (tests): Add testcase.
29886         * manual/startup.texi (Environment Access): Document
29887         secure_getenv.
29888         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
29889         __libc_secure_getenv.
29890         * inet/ruserpass.c (ruserpass): Likewise.
29891         * malloc/mtrace.c (mtrace): Likewise.
29892         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
29893         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
29894         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
29895         * sysdeps/posix/tempname.c: Likewise.  Evaluate
29896         HAVE_SECURE_GETENV.
29897         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
29898         __secure_getenv to __libc_secure_getenv.
29899         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
29900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29901         Likewise.
29902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29903         Likewise.
29904         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
29905         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
29906         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
29907         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
29908         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
29909         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
29910         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
29911
29912 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29913
29914         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
29915         (struct La_i86_retval): Likewise.
29916         (struct La_x86_64_regs): Likewise.
29917         (struct La_x86_64_retval): Likewise.
29918         (struct La_x32_regs): Likewise.
29919         (struct La_x32_retval): Likewise.
29920         (struct La_ppc32_regs): Likewise.
29921         (struct La_ppc32_retval): Likewise.
29922         (struct La_ppc64_regs): Likewise.
29923         (struct La_ppc64_retval): Likewise.
29924         (struct La_sh_regs): Likewise.
29925         (struct La_sh_retval): Likewise.
29926         (struct La_s390_32_regs): Likewise.
29927         (struct La_s390_32_retval): Likewise.
29928         (struct La_s390_64_regs): Likewise.
29929         (struct La_s390_64_retval): Likewise.
29930         (struct La_sparc32_regs): Likewise.
29931         (struct La_sparc32_retval): Likewise.
29932         (struct La_sparc64_regs): Likewise.
29933         (struct La_sparc64_retval): Likewise.
29934         (struct audit_ifaces): Remove architecture-specific pltenter and
29935         pltexit members.
29936         * sysdeps/i386/ldsodefs.h: New file.
29937         * sysdeps/powerpc/ldsodefs.h: Likewise.
29938         * sysdeps/s390/ldsodefs.h: Likewise.
29939         * sysdeps/sh/ldsodefs.h: Likewise.
29940         * sysdeps/sparc/ldsodefs.h: Likewise.
29941         * sysdeps/x86_64/ldsodefs.h: Likewise.
29942
29943 2012-07-25  Marek Polacek  <polacek@redhat.com>
29944
29945         [BZ #6808]
29946         * math/libm-test.inc (yn_test): Add another test.
29947         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
29948         to ERANGE when the result is +-Inf.
29949         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
29950         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29951         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
29952         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
29953
29954 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
29955
29956         * conform/data/time.h-data (NULL): Use macro-constant.  Require
29957         equal to 0.
29958         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
29959         clock_t.
29960         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
29961
29962 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
29963
29964         * configure.in <sysdeps resolving>: Correct printing
29965         Implies_before.
29966         * configure: Regenerate.
29967
29968 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
29969
29970         * math/w_ilogb.c: Include <limits.h>.
29971         * math/w_ilogbl.c: Likewise.
29972
29973 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29974
29975         * manual/lang.texi (__va_copy): Document primarily as ISO C99
29976         va_copy.  Document allowing for unavailable va_copy only as
29977         pre-C99 compatibility.
29978         * manual/string.texi (Copying and Concatenation): Use va_copy
29979         instead of __va_copy in concat example.
29980
29981 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
29982
29983         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
29984         (__sendto): Use create_address_port.  Initialize APORT and deallocate
29985         it if not null.
29986
29987         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
29988         with O_NOLINK passed to __file_name_lookup.
29989
29990         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
29991         with O_NOLINK passed to __file_name_lookup.
29992
29993         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
29994         negative N or less than NGIDS.
29995
29996         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
29997         type to string_t.  Set ERANGE as errno and return it if NAME is not big
29998         enough.  Use memcpy instead of strncpy.
29999
30000 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30001
30002         * elf/Makefile (check-data): Remove.
30003         (localplt.data): New vpath directive.
30004         ($(objpfx)check-localplt.out): Use localplt.data from vpath
30005         instead of $(check-data).
30006         * scripts/data/localplt-generic.data: Move to ...
30007         * sysdeps/generic/localplt.data: ... here.
30008         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
30009         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
30010         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
30011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30012         ... here.
30013         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
30014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30015         ... here.
30016         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
30017         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
30018         ... here.
30019         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
30020         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
30021         ... here.
30022         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
30023         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
30024         ... here.
30025         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
30026         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
30027         ... here.
30028
30029 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30030
30031         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
30032         PPC32 and PPC64 files.
30033         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
30034         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
30035
30036 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30037
30038         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
30039         __makecontext_ret to ...
30040         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
30041         ... here and call exit if uc_link is NULL.  New file.
30042         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
30043         __makecontext_ret.S.
30044         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
30045         __makecontext_ret to ...
30046         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
30047         ... here and call exit if uc_link is NULL.  New file.
30048         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
30049         __makecontext_ret.S.
30050
30051 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30052
30053         * elf/elf.h (R_390_IRELATIVE): New definition.
30054         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
30055         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
30056         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
30057         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
30058         (elf_machine_lazy_rel): Likewise.
30059         * sysdeps/s390/dl-irel.h: New file.
30060         * sysdeps/s390/s390-64/memcpy.S: New asm code.
30061         * sysdeps/s390/s390-64/memset.S: New asm code.
30062         * sysdeps/s390/s390-64/memcmp.S: New asm code.
30063         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
30064         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
30065         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
30066         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
30067         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
30068         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
30069         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
30070         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
30071         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
30072         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
30073         * sysdeps/s390/s390-32/memcpy.S: New asm code.
30074         * sysdeps/s390/s390-32/memset.S: New asm code.
30075         * sysdeps/s390/s390-32/memcmp.S: New asm code.
30076
30077 2012-07-17  Marek Polacek  <polacek@redhat.com>
30078
30079         [BZ #14349]
30080         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
30081         * sysdeps/s390/s390-64/configure.in: Likewise.
30082         * sysdeps/sparc/configure.in: Likewise.
30083         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
30084         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
30085         * sysdeps/i386/configure.in: Likewise.
30086         * sysdeps/x86_64/configure.in: Likewise.
30087         * sysdeps/sh/configure.in: Likewise.
30088         * sysdeps/s390/s390-32/configure: Regenerated.
30089         * sysdeps/s390/s390-64/configure: Likewise.
30090         * sysdeps/x86_64/configure: Likewise.
30091         * sysdeps/sh/configure: Likewise.
30092         * sysdeps/powerpc/powerpc64/configure: Likewise.
30093         * sysdeps/powerpc/powerpc32/configure: Likewise.
30094         * sysdeps/sparc/configure: Likwise.
30095         * sysdeps/i386/configure: Likewise.
30096
30097         * elf/dl-open.c: Comment fixes.
30098
30099 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
30100
30101         * Makefile [CXX] (check-data): Remove.
30102         [CXX] (c++-types.data): New vpath directive.
30103         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
30104         vpath.  Do not allow for C++ type data being missing.
30105         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
30106         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
30107         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
30108         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
30109         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
30110         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
30111         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
30112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30113         ... here.
30114         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
30115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30116         ... here.
30117         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
30118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
30119         ... here.
30120         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
30121         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
30122         ... here.
30123         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
30124         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
30125         ... here.
30126         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
30127         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
30128         ... here.
30129         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
30130         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
30131         ... here.
30132         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
30133         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
30134
30135         * elf/tls-macros.h (TLS_LE): Move architecture-specific
30136         definitions to architecture-specific files.
30137         (TLS_IE): Likewise.
30138         (TLS_LD): Likewise.
30139         (TLS_GD): Likewise.
30140         * sysdeps/i386/tls-macros.h: New file.
30141         * sysdeps/powerpc/tls-macros.h: Likewise.
30142         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
30143         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
30144         * sysdeps/sh/tls-macros.h: Likewise.
30145         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
30146         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
30147         * sysdeps/x86_64/tls-macros.h: Likewise.
30148
30149 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30150
30151         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
30152         zero value for regular exit case.
30153
30154         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
30155         (__start_context): Preserve zero value for regular exit case.
30156
30157 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30158             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30159
30160         * manual/setjmp.texi (setcontext): Clarify normal process
30161         termination when uc_link is the null pointer.
30162         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
30163         exit call.
30164
30165 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
30166
30167         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
30168         preprocessor.  Test for each exception mask separately.
30169
30170 2012-07-16  Andreas Jaeger  <aj@suse.de>
30171
30172         * po/ru.po: Update from translation team.
30173
30174 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
30175
30176         * conform/data/string.h-data (NULL): Use macro-constant.  Require
30177         equal to 0.
30178         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
30179         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
30180         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
30181         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
30182         [ISO || ISO99 || ISO11] (*_t): Do not allow.
30183
30184 2012-07-13  Andreas Jaeger  <aj@suse.de>
30185
30186         * po/fr.po: Update from translation team.
30187
30188 2012-07-12  Marek Polacek  <polacek@redhat.com>
30189
30190         [BZ #14173]
30191         * math/libm-test.inc (yn_test): Add test for BZ #14173.
30192         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
30193         loop condition.
30194
30195 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
30196
30197         [BZ #13717]
30198         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30199         Change to 2.4.1 where previously 2.4.0.
30200         * sysdeps/unix/sysv/linux/configure: Regenerated.
30201         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
30202         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
30203         version.
30204         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
30205         (__ASSUME_AT_CLKTCK): Remove.
30206         (__ASSUME_AT_PAGESIZE): Likewise.
30207         (__ASSUME_AT_XID): Likewise.
30208         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
30209         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
30210         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
30211         unconditionally.
30212         (HAVE_AUX_PAGESIZE): Likewise.
30213         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
30214         [__ASSUME_AT_CLKTCK]: Make code unconditional.
30215         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
30216
30217 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
30218
30219         [BZ #14307]
30220         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
30221         the temporary buffer used to invoke __gethostbyname2_r,
30222         __gethostbyaddr_r and gethostbyname4_r to make room for struct
30223         host_data / struct gaih_addrtuple.
30224         * resolv/nss_dns/dns-host.c (global scope): Move definition of
30225         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
30226         header file nss/nsswitch.h.
30227         * nss/nsswitch.h (global scope): Add definition of implementation
30228         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
30229         resolv/nss_dns/dns-host.c).
30230
30231 2012-07-11  Andreas Jaeger  <aj@suse.de>
30232
30233         * po/fr.po: Update from translation team.
30234
30235         * po/sv.po: Update from translation team
30236         * po/fr.po: Another update from translation team.
30237
30238 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30239
30240         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
30241         for subnormals or multiply small sinh result by itself.
30242         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30243         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30244
30245 2012-07-11  David S. Miller  <davem@davemloft.net>
30246
30247         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30248
30249 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
30250
30251         [BZ #14347]
30252         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
30253         (INTERNAL_MARK): Shift it here.
30254
30255 2012-07-10  Marek Polacek  <polacek@redhat.com>
30256
30257         [BZ #14151]
30258         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
30259         libc_cv_asm_global_directive with .globl.
30260         * configure: Regenerated.
30261         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
30262         with .globl.
30263         * sysdeps/i386/configure: Regenerated.
30264         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
30265         with .globl.
30266         * sysdeps/x86_64/configure: Regenerated.
30267         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
30268         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
30269         * elf/tst-unique2mod2.c: Likewise.
30270         * elf/tst-unique2mod1.c: Likewise.
30271         * elf/tst-unique1mod2.c: Likewise.
30272         * elf/tst-unique1mod1.c: Likewise.
30273         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30274         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30275         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30276         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30277         * sysdeps/mach/sysdep.h: Likewise.
30278         * sysdeps/i386/sysdep.h: Likewise.
30279         * sysdeps/i386/i386-mcount.S: Likewise.
30280         * sysdeps/x86_64/_mcount.S: Likewise.
30281         * sysdeps/x86_64/sysdep.h: Likewise.
30282         * sysdeps/sh/_mcount.S: Likewise.
30283         * sysdeps/sh/sysdep.h: Likewise.
30284         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
30285         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
30286         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
30287         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30288         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
30289         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
30290         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
30291         * locale/localeinfo.h: Likewise.
30292         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
30293         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
30294
30295 2012-07-09  Roland McGrath  <roland@hack.frob.com>
30296
30297         [BZ #14336]
30298         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
30299         system".
30300         * manual/message.texi (The Uniforum approach): Likewise.
30301         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
30302         (glibc iconv Implementation): Likewise.
30303
30304 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
30305
30306         [BZ #14337]
30307         * math/s_clog.c (__clog): Avoid scaling a value down where that
30308         could result in underflow.
30309         * math/s_clog10.c (__clog10): Likewise.
30310         * math/s_clog10f.c (__clog10f): Likewise.
30311         * math/s_clog10l.c (__clog10l): Likewise.
30312         * math/s_clogf.c (__clogf): Likewise.
30313         * math/s_clogl.c (__clogl): Likewise.
30314         * math/libm-test.inc (clog_test): Add more tests.
30315         (clog10_test): Likewise.
30316         * sysdeps/i386/fpu/libm-test-ulps: Update.
30317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30318
30319 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
30320
30321         [BZ #14283]
30322         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
30323         by 7 not 8 to examine high bit of fractional part.
30324
30325         [BZ #14042]
30326         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
30327         for call to __mcount_internal.
30328         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
30329         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
30330         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
30331
30332 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
30333
30334         [BZ #14154]
30335         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
30336         approximation for values within 0x1p-13f of an odd multiple of
30337         pi/4.
30338         * math/libm-test.inc (tan_test): Do not allow spurious underflow
30339         exception.  Add more tests.
30340         * sysdeps/i386/fpu/libm-test-ulps: Update.
30341
30342         [BZ #6778]
30343         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
30344         inputs and return -1 for them.  Do not check for +Inf in case not
30345         reachable for +Inf.
30346         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
30347         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
30348         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30349         and return -1 for them.  Do not check for +Inf in case not
30350         reachable for +Inf.
30351         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
30352         define.
30353         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30354         and return -1 for them.  Do not check for +Inf in case not
30355         reachable for +Inf.
30356         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
30357         spurious underflow.
30358         * sysdeps/i386/fpu/libm-test-ulps: Update.
30359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30360
30361 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
30362
30363         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
30364
30365 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
30366
30367         [BZ #14157]
30368         [BZ #14331]
30369         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
30370         could result in spurious underflow.  Scale down values above
30371         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
30372         * math/s_csqrtf.c (__csqrtf): Likewise.
30373         * math/s_csqrtl.c (__csqrtl): Likewise.
30374         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
30375         spurious underflow.
30376         * sysdeps/i386/fpu/libm-test-ulps: Update.
30377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30378
30379 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
30380
30381         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
30382         xopen-msg.sed.
30383         * catgets/xopen-msg.awk: New file.
30384         * catgets/xopen-msg.sed: Removed.
30385
30386         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
30387         po2text.sed.
30388         * intl/po2test.awk: New file.
30389         * intl/po2test.sed: Removed.
30390
30391 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
30392
30393         [BZ #14328]
30394         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
30395         or multiply small sinh result by itself.
30396         * math/s_ctanf.c (__ctanf): Likewise.
30397         * math/s_ctanh.c (__ctanh): Likewise.
30398         * math/s_ctanhf.c (__ctanhf): Likewise.
30399         * math/s_ctanhl.c (__ctanhl): Likewise.
30400         * math/s_ctanl.c (__ctanl): Likewise.
30401         * math/libm-test.inc (ctan_test_tonearest): New function.
30402         (ctan_test_towardzero): Likewise.
30403         (ctan_test_downward): Likewise.
30404         (ctan_test_upward): Likewise.
30405         (ctanh_test_tonearest): Likewise.
30406         (ctanh_test_towardzero): Likewise.
30407         (ctanh_test_downward): Likewise.
30408         (ctanh_test_upward): Likewise.
30409         (main): Call these new functions.
30410         * sysdeps/i386/fpu/libm-test-ulps: Update.
30411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30412
30413 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
30414
30415         * .gitignore: Delete /ports entry.
30416
30417 2012-07-03  Andreas Jaeger  <aj@suse.de>
30418
30419         * po/bg.po: Update from translation team.
30420         * po/cs.po: Likewise.
30421         * po/de.po: Likewise.
30422         * po/hr.po: Likewise.
30423         * po/nl.pl: Likewise.
30424         * po/pl.po: Likewise.
30425         * po/vi.po: Likewise.
30426
30427 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
30428
30429         * Makeconfig [!+link] (+link-before-libc): New variable.
30430         [!+link] (+link-after-libc): Likewise.
30431         [!+link] (+link-tests): Likewise.
30432         [!+link] (+link): Define in terms of $(+link-before-libc) and
30433         $(+link-after-libc).
30434         [!+link-static] (+link-static-before-libc): New variable.
30435         [!+link-static] (+link-static-after-libc): Likewise.
30436         [!+link-static] (+link-static-tests): Likewise.
30437         [!+link-static] (+link-static): Define in terms of
30438         $(+link-static-before-libc) and $(+link-static-after-libc).
30439         [build-shared] (link-libc-before-gnulib): New variable.
30440         [build-shared] (link-libc-tests): Likewise.
30441         [build-shared] (link-libc): Define in terms of
30442         $(link-libc-before-gnulib).
30443         [!build-shared] (link-libc-tests): New variable.
30444         (link-libc-static-tests): New variable.
30445         [!gnulib] (gnulib-arch): New variable.
30446         [!gnulib] (gnulib-tests): Likewise.
30447         [!gnulib] (static-gnulib-arch): Likewise.
30448         [!gnulib] (static-gnulib-tests): Likewise.
30449         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
30450         Define with "=" instead of ":=".
30451         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
30452         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
30453         * Rules (binaries-all-notests): New variable.
30454         (binaries-all-tests): Likewise.
30455         (binaries-static-notests): Likewise.
30456         (binaries-static-tests): Likewise.
30457         (binaries-all): Define using $(binaries-all-notests) and
30458         $(binaries-all-tests).
30459         (binaries-static): Define using $(binaries-static-notests) and
30460         $(binaries-static-tests).
30461         (binaries-shared-tests): New variable.
30462         (binaries-shared-notests): Likewise.
30463         (binaries-shared): Remove variable.
30464         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
30465         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
30466         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
30467         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
30468         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
30469         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
30470         * elf/Makefile (sln-modules): New variable.
30471         (extra-objs): Add $(sln-modules:=.o).
30472         (ldconfig-modules): Add static-stubs.
30473         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
30474         * elf/static-stubs.c: New file.
30475
30476         [BZ #14283]
30477         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
30478         by 7 not 8 to examine high bit of fractional part.  Use volatile
30479         variables when splitting into final array of floats if
30480         __FLT_EVAL_METHOD__ != 0.
30481         * math/libm-test.inc (cos_test): Add another test.
30482         (sin_test): Likewise.
30483         * sysdeps/i386/fpu/libm-test-ulps: Update.
30484
30485         [BZ #14273]
30486         * math/libm-test.inc (cosh_test): Add more tests.
30487
30488         * version.h (RELEASE): Set to "development".
30489         (VERSION): Set to "2.16.90".
30490
30491 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
30492
30493         * NEWS: Update copyright. Remove last-updated date.
30494         Mention math library bug fixes and timezone data changes.
30495         * README: Mention GNU/Hurd, x32, and HPPA support status.
30496
30497 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
30498
30499         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
30500
30501 2012-06-27  Andreas Jaeger  <aj@suse.de>
30502
30503         * manual/contrib.texi (Contributors): Add Samuel Thibault.
30504
30505 2012-06-25  Andreas Jaeger  <aj@suse.de>
30506
30507         * sysdeps/s390/fpu/libm-test-ulps: Update.
30508
30509 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
30510             Thomas Schwinge  <thomas@codesourcery.com>
30511
30512         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
30513         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
30514         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
30515         fanotify_mark.
30516
30517 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
30518
30519         * sysdeps/mach/start.c: Remove file.
30520         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
30521         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
30522         * sysdeps/sh/init-first.c: Likewise.
30523
30524         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
30525         registers for frame unwinding purposes, add CFI directives.
30526         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30527         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
30528         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
30529         Likewise.
30530
30531         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
30532         __fortify_fail returning.
30533         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30534
30535         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
30536         sysdeps/sh/____longjmp_chk.S.
30537         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
30538         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
30539         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
30540         (gen-as-const-headers): Append sigaltstack-offsets.sym.
30541
30542         * sysdeps/sh/abort-instr.h: New file.
30543         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
30544         process in case exit returns.
30545
30546         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
30547         initialize the GOT register before use.
30548
30549         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
30550         calculation of ARGC > 4.
30551
30552         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
30553         meaningful names to some local labels.
30554
30555 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
30556             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30557
30558         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
30559         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
30560         (__arch_compare_and_exchange_val_16_acq): Likewise.
30561         (__arch_compare_and_exchange_val_32_acq): Likewise.
30562         (atomic_exchange_and_add): Fix gUSA sequence.
30563         (atomic_add): Likewise.
30564         (atomic_add_negative): Likewise.
30565         (atomic_add_zero): Likewise.
30566         (atomic_bit_test_set): Likewise.
30567
30568 2012-06-22  Andreas Schwab  <schwab@redhat.com>
30569
30570         [BZ #13579]
30571         * include/link.h (struct link_map): Add l_free_initfini.
30572         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
30573         l_initfini.
30574         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
30575         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
30576         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
30577         set.
30578
30579 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
30580
30581         * configure.in: Use AC_LANG_SOURCE.
30582         * configure: Regenerate.
30583
30584 2012-06-22  Roland McGrath  <roland@hack.frob.com>
30585
30586         * configure.in (libc_cv_localstatedir): New substituted variable.
30587         * configure: Regenerated.
30588         * config.make.in (localstatedir): New variable, substituted from
30589         libc_cv_localstatedir.
30590         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
30591         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
30592         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
30593         * sysdeps/gnu/configure: Regenerated.
30594
30595 2012-06-21  Jeff Law  <law@redhat.com>
30596
30597         [BZ #14277]
30598         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
30599         free.  Simplify list management for _LIBC case.
30600
30601 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
30602
30603         [BZ #14273]
30604         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
30605         Clear sign bit of 64-bit integer value before comparing against
30606         overflow value.
30607
30608         * sysdeps/mach/configure: Regenerated.
30609
30610 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
30611
30612         [BZ #14278]
30613         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
30614
30615 2012-06-21  Jeff Law  <law@redhat.com>
30616
30617         [BZ #13882]
30618         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
30619         uint16_t for elements in the "seen" array to avoid char overflows.
30620         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30621         * elf/dl-open.c (dl_open_worker): Likewise.
30622
30623 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
30624
30625         * scripts/list-sources.sh: Scan PORTS for translations.
30626         * po/libc.pot: Regenerated.
30627
30628 2012-06-21  Andreas Jaeger  <aj@suse.de>
30629
30630         [BZ #12194]
30631         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
30632         warning.
30633         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
30634         * bits/byteswap-16.h (__bswap_16): Likewise.
30635         * bits/byteswap.h (__bswap_constant_16): Likewise.
30636
30637 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
30638
30639         [BZ #14117]
30640         * sysdeps/i386/fpu_control.h: Removed.
30641         * sysdeps/x86_64/fpu_control.h: Moved to ...
30642         * sysdeps/x86/fpu_control.h: Here.
30643
30644         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
30645         (_FPU_SETCW): Likewise.
30646
30647 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
30648
30649         [BZ #14117]
30650         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
30651         * sysdeps/x86/fpu/bits/mathinline.h: This.
30652         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
30653
30654         [BZ #14050]
30655         [BZ #14117]
30656         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
30657         functions if __x86_64__ is defined.
30658
30659 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
30660
30661         * string/endian.h: Add !__ASSEMBLER__ condition for including
30662         conversion interfaces.
30663
30664 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
30665
30666         [BZ #14241]
30667         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
30668         of ABS(x) in calculating zero to negative powers other than odd
30669         integers.
30670         * math/libm-test.inc (pow_test): Add more tests.
30671
30672 2012-06-15  Andreas Jaeger  <aj@suse.de>
30673
30674         * manual/contrib.texi (Contributors): Update entry of Liubov
30675         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
30676         Machado Filho.
30677
30678 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
30679
30680         * string/string.h: Add __wur to GNU version of strerror_r.
30681
30682 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
30683
30684         [BZ #14229]
30685         * string/Makefile (tests): Add tst-strtok_r.
30686         * string/tst-strtok_r.c: New file.
30687         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
30688         RAX_LP/RDX_LP on SAVE_PTR.
30689
30690 2012-06-14  Roland McGrath  <roland@hack.frob.com>
30691
30692         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
30693
30694 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
30695
30696         * libm_test.inc (csqrt_test): Allow more spurious underflow
30697         exceptions.
30698         (j0_test): Likewise.
30699         (j1_test): Likewise.
30700         (y0_test): Likewise.
30701         (y1_test): Likewise.
30702
30703 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
30704
30705         * po/Makefile (libc.pot): Use UTF-8 charset.
30706
30707 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
30708
30709         [BZ #14210]
30710         Suppress sign-conversion warning from FD_SET.
30711         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
30712         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
30713         not unsigned long int.
30714         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
30715
30716 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
30717
30718         [BZ #14050]
30719         [BZ #14117]
30720         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
30721         __extern_always_inline instead of __extern_inline.
30722         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
30723         (__signbit): Likewise.
30724         (__signbitl): Support C++ namespace.
30725         (lrintf): New inline function.
30726         (lrint): Likewise.
30727         (llrintf): Likewise.
30728         (llrint): Likewise.
30729         (fmaxf): Likewise.
30730         (fmax): Likewise.
30731         (fminf): Likewise.
30732         (fmin): Likewise.
30733         (rint): Likewise.
30734         (rintf): Likewise.
30735         (ceil): Likewise.
30736         (ceilf): Likewise.
30737         (floor): Likewise.
30738         (floorf): Likewise.
30739         (nearbyint): Likewise.
30740         (nearbyintf): Likewise.
30741
30742 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
30743
30744         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
30745         non-default versions.
30746
30747 2012-06-11  Roland McGrath  <roland@hack.frob.com>
30748
30749         [BZ #14218]
30750         * manual/argp.texi (Argp): Reword argp_parse description slightly.
30751
30752 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
30753
30754         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
30755         (FE_UPWARD, FE_DOWNWARD): Don't define.
30756         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
30757         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30758
30759         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
30760         reading it.
30761         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30762         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30763
30764 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30765
30766         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
30767         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
30768         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
30769         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
30770
30771 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
30772
30773         [BZ #14117]
30774         * sysdeps/i386/fpu/bits/fenv.h: Removed.
30775         * sysdeps/i386/fpu/Implies: New file.
30776         * sysdeps/x86_64/fpu/Implies: Likewise.
30777         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
30778         * sysdeps/x86/fpu/bits/fenv.h: This.
30779
30780         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
30781         __SSE_MATH__.
30782
30783 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30784
30785         [BZ #14134]
30786         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
30787         character 0xffff that matches the last element of the
30788         conversion table.
30789
30790 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30791
30792         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
30793         fmodl commit.
30794
30795 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30796
30797         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
30798         values higher than 25.6283.
30799
30800 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30801
30802         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
30803         subnormal exponent extraction and add some __builtin_expect.
30804         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
30805         Fix for subnormal mantissa calculation.
30806
30807 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
30808
30809         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
30810         cpu2 is -1 and errno is not ENOSYS.
30811
30812 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
30813
30814         [BZ #14117]
30815         * sysdeps/i386/i486/bits/string.h: Renamed to ...
30816         * sysdeps/x86/bits/string.h: This.
30817         * sysdeps/x86_64/bits/string.h: Removed.
30818
30819         * sysdeps/i386/i486/bits/string.h: Define inline functions only
30820         if not compiling for x86-64, but compiling for >= i486.
30821
30822         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
30823         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
30824
30825         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
30826         New macro from Linux kernel 3.4.0.
30827         (FP_XSTATE_MAGIC2): Likewise.
30828         (FP_XSTATE_MAGIC2_SIZE): Likewise.
30829         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
30830         (struct _fpx_sw_bytes): New struct.
30831         (struct _xsave_hdr): Likewise.
30832         (struct _ymmh_state): Likewise.
30833         (struct _xstate): Likewise.
30834
30835         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
30836         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
30837         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
30838         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
30839         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
30840         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
30841
30842         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
30843         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
30844         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
30845         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
30846         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
30847         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
30848
30849 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30850
30851         [BZ #13743]
30852         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
30853         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
30854         (sysdep_headers): Include sys/platform/ppc.h.
30855         * sysdeps/powerpc/test-gettimebase.c: Test for
30856         __ppc_get_timebase() to catch future ISA opcode/insn changes.
30857         * manual/Makefile (appendices): Include platform.texi.
30858         * manual/contrib.texi (Contributors): Update @node pointers.
30859         * manual/maint.texi (Maintenance): Likewise.
30860         (Platform): New node.
30861         * manual/platform.texi: New file.  Document the new features.
30862
30863 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30864             Jakub Jelinek  <jakub@redhat.com>
30865
30866         [BZ #14188]
30867         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
30868         where __builtin_expect is unavailable.
30869
30870 2012-06-03  David S. Miller  <davem@davemloft.net>
30871
30872         * stdlib/longlong.h: Updated from GCC.
30873
30874 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
30875
30876         [BZ #14042]
30877         * sysdeps/powerpc/powerpc32/mcount.c: New file.
30878         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
30879         __mcount_internal.
30880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
30881         (GLIBC_2.16): Likewise.
30882
30883 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30884
30885         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
30886
30887 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30888
30889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
30890         (default-abi): New variable.
30891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
30892         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
30893         variable.
30894         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
30895         Likewise.
30896         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
30897         Likewise.
30898         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
30899         Likewise.
30900
30901         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
30902         definition.  Document in comment.
30903
30904 2012-06-01  David S. Miller  <davem@davemloft.net>
30905
30906         * stdlib/longlong.h: Updated from GCC.
30907
30908 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30909
30910         [BZ #14117]
30911         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
30912         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
30913         sys/debugreg.h sys/io.h here.
30914         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
30915         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
30916         sys/io.h.
30917         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
30918         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
30919         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
30920         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
30921         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
30922         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
30923
30924         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
30925         Define only if __x86_64__ is defined.
30926
30927 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30928
30929         [BZ #14048]
30930         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
30931         Use int64_t for variable i.
30932         * math/libm-test.inc (fmod_test): Add more tests.
30933
30934         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
30935         z computation is not scheduled after fetestexcept.
30936         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
30937         Use math_force_eval instead of asm to ensure calculation scheduled
30938         before exception test.
30939         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
30940         Ensure a1 + u.d computation is not scheduled after fetestexcept.
30941
30942 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
30943
30944         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
30945         computation is not scheduled after fetestexcept.
30946
30947 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30948
30949         [BZ #14117]
30950         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
30951         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
30952
30953 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30954
30955         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
30956         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
30957
30958 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30959
30960         [BZ #14117]
30961         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
30962         <bits/wordsize.h>.
30963         (__WCHAR_MIN): Support __WORDSIZE == 64.
30964         (__WCHAR_MAX): Likewise.
30965
30966         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
30967         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
30968
30969         [BZ #14183]
30970         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
30971         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
30972
30973         [BZ #14117]
30974         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
30975         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
30976
30977         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
30978         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
30979
30980         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
30981         Defined to 1 if __x86_64__ isn't defined.
30982         (_STAT_VER_LINUX_OLD): New.
30983         (st_atime): Remove duplicate.
30984         (st_mtime): Likewise.
30985         (st_ctime): Likewise.
30986
30987 2012-05-31  David S. Miller  <davem@davemloft.net>
30988
30989         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
30990         entries.
30991
30992 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
30993
30994         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
30995         gen-libm-test.pl.
30996
30997         [BZ #14132]
30998         * elf/dl-reloc.c: Include <_itoa.h>.
30999         (_dl_reloc_bad_type): Remove use of INTUSE.
31000         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
31001         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
31002         * stdio-common/psiginfo.c (psiginfo): Likewise.
31003         * stdio-common/psignal.c (psignal): Likewise.
31004         * string/strsignal.c (strsignal): Likewise.
31005         * include/signal.h (_sys_siglist): Declare hidden proto.
31006         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
31007         INTVARDEF with libc_hidden_data_def.
31008         * stdio-common/itoa-udigits.c: Likewise.
31009         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
31010         (_itoa_lower_digits_internal): Remove declaration.
31011         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
31012         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
31013         (_sys_sigabbrev_internal): Remove aliases.
31014         (_sys_siglist): Define hidden alias.
31015
31016 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
31017
31018         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
31019         bits/sysctl.h.
31020
31021 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31022
31023         [BZ #14117]
31024         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
31025         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
31026
31027         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
31028         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
31029         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
31030         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
31031         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
31032         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
31033
31034         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
31035         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
31036         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
31037
31038         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
31039         with __addr.
31040         (insw): Likewise.
31041         (insl): Likewise.
31042         (outsb): Likewise.
31043         (outsw): Likewise.
31044         (outsl): Likewise.
31045
31046         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
31047         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
31048         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
31049
31050         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
31051         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
31052         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
31053         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
31054         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
31055         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
31056
31057         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
31058         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
31059
31060         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
31061         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
31062
31063         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
31064         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
31065         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
31066
31067         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
31068         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
31069         to ...
31070         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
31071
31072         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
31073         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
31074         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
31075
31076         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
31077         for x86-64.
31078         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
31079
31080 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
31081
31082         * math/math.h (M_El): Use two more decimal places.
31083         (M_LOG2El): Likewise.
31084         (M_LOG10El): Likewise.
31085         (M_LN2l): Likewise.
31086         (M_LN10l): Likewise.
31087         (M_PIl): Likewise.
31088         (M_PI_2l): Likewise.
31089         (M_PI_4l): Likewise.
31090         (M_1_PIl): Likewise.
31091         (M_2_PIl): Likewise.
31092         (M_2_SQRTPIl): Likewise.
31093         (M_SQRT2l): Likewise.
31094         (M_SQRT1_2l): Likewise.
31095
31096 2012-05-31  David S. Miller  <davem@davemloft.net>
31097
31098         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
31099         values between float registers.
31100         * sysdeps/sparc/sparc64/memset.S: Likewise.
31101         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
31102
31103 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
31104
31105         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
31106         -D_FORTIFY_SOURCE=1.
31107         (CPPFLAGS-tst-longjmp_chk.c): Define.
31108         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
31109         (CPPFLAGS-tst-longjmp_chk2.c): Define.
31110         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
31111         CFLAGS-tst-wchar-h.c.
31112
31113 2012-05-31  Marek Polacek  <polacek@redhat.com>
31114
31115         [BZ #14132]
31116         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
31117         __endmntent_internal): Remove declaration.
31118         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
31119         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
31120         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
31121
31122 2012-05-30  David S. Miller  <davem@davemloft.net>
31123
31124         * sysdeps/sparc/sparc32/soft-fp/q_util.c
31125         (___Q_simulate_exceptions): Use real FP ops rather than writing
31126         into the %fsr.
31127         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
31128         Likewise.
31129
31130 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31131
31132         [BZ #14117]
31133         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
31134         * sysdeps/x86/bits/xtitypes.h: This.
31135
31136         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
31137         * sysdeps/x86/bits/wordsize.h: This.
31138
31139         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
31140         * sysdeps/x86/bits/huge_vall.h: This.
31141
31142         * sysdeps/i386/bits/select.h: Removed.
31143         * sysdeps/x86_64/bits/select.h: Renamed to ...
31144         * sysdeps/x86/bits/select.h: This.
31145
31146         * sysdeps/i386/bits/setjmp.h: Removed.
31147         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
31148         * sysdeps/x86/bits/setjmp.h: This.
31149
31150         * sysdeps/i386/bits/mathdef.h: Removed.
31151         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
31152         * sysdeps/x86/bits/mathdef.h: This.
31153
31154 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
31155
31156         [BZ #14132]
31157         * include/sys/socket.h (__connect_internal)
31158         (__libc_sa_len_internal): Remove declaration.
31159         (__connect, __libc_sa_len): Declare hidden_proto.
31160         (SA_LEN): Remove use of INTUSE.
31161         * socket/connect.c: Add libc_hidden_def.
31162         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
31163         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
31164         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
31165         alias.
31166         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
31167         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
31168         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
31169         of adding _internal alias.
31170
31171 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31172
31173         [BZ #14117]
31174         * sysdeps/i386/bits/link.h: Removed.
31175         * sysdeps/i386/bits/linkmap.h: Likewise.
31176         * sysdeps/x86_64/bits/link.h: Renamed to ...
31177         * sysdeps/x86/bits/link.h: This.
31178         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
31179         * sysdeps/x86/bits/linkmap.h: This.
31180
31181         * sysdeps/i386/bits/endian.h: Removed.
31182         * sysdeps/x86_64/bits/endian.h: Renamed to ...
31183         * sysdeps/x86/bits/endian.h: This.
31184
31185         * sysdeps/i386/bits/byteswap.h: Removed.
31186         * sysdeps/i386/bits/byteswap-16.h: Likewise.
31187         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
31188         * sysdeps/x86/bits/byteswap.h: This.
31189         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
31190         * sysdeps/x86/bits/byteswap-16.h: This.
31191         * sysdeps/i386/Implies: Add x86.
31192         * sysdeps/x86_64/Implies: Likewise.
31193
31194 2012-05-30  David S. Miller  <davem@davemloft.net>
31195
31196         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
31197         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
31198         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
31199         (FP_TRAPPING_EXCEPTIONS): Define.
31200         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
31201         (FP_TRAPPING_EXCEPTIONS): Define.
31202         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
31203         subnormals only when inexact has been signalled or underflow
31204         exceptions are enabled.
31205         (_FP_PACK_CANONICAL): Likewise.
31206
31207 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31208
31209         [BZ #14183]
31210         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
31211         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
31212
31213 2012-05-30  Richard Henderson  <rth@twiddle.net>
31214
31215         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
31216         with #ifndef NOT_IN_libc.
31217
31218         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
31219         marked to avoid plt entry.
31220
31221 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31222
31223         [BZ #14112]
31224         * Makeconfig (default-abi): New macro.
31225         (abi-includes): Likewise.
31226         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
31227         $(abi-$(default-abi)-lib-soname) for soname if defined.
31228         ($(common-objpfx)gnu/lib-names.stmp): Generate from
31229         abi-variants.
31230         * Makefile (installed-stubs): Likewise.
31231         * include/stubs-biarch.h: Removed.
31232         * scripts/lib-names.awk: Only handle one library at a time.
31233         * scripts/soversions.awk: Remove WORDSIZE support.
31234         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
31235         entries.
31236         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
31237         Removed.
31238         (syscall-list-default-condition): Likewise.
31239         (syscall-list-default-condition): Likewise.
31240         (syscall-list-includes): Likewise.
31241         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
31242         syscall-list-* with abi-*.  Handle undefined abi-variants.
31243         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
31244         * sysdeps/unix/sysv/linux/i386/Implies: New file.
31245         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
31246         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
31247         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
31248         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
31249         Removed.
31250         (syscall-list-32-options): Likewise.
31251         (syscall-list-32-condition): Likewise.
31252         (syscall-list-64-options): Likewise.
31253         (syscall-list-64-condition): Likewise.
31254         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
31255         macro.
31256         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
31257         Renamed to ...
31258         (abi-*): This.
31259         (abi-64-ld-soname): New macro.
31260         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
31261         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
31262         Renamed to ...
31263         (abi-*): This.
31264         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
31265         * sysdeps/x86_64/x32/shlib-versions: Likewise.
31266
31267 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
31268
31269         * sysdeps/unix/sysv/linux/kernel-features.h
31270         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
31271         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
31272         include <kernel-features.h>.
31273         [!__NR_ftruncate64]: Remove conditional code.
31274         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31275         [__NR_ftruncate64]: Make code unconditional.
31276         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31277         * sysdeps/unix/sysv/linux/truncate64.c: Do not
31278         include <kernel-features.h>.
31279         [!__NR_ftruncate64]: Remove conditional code.
31280         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31281         [__NR_ftruncate64]: Make code unconditional.
31282         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
31284         include <kernel-features.h>.
31285         [!__NR_ftruncate64]: Remove conditional code.
31286         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31287         [__NR_ftruncate64]: Make code unconditional.
31288         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
31290         include <kernel-features.h>.
31291         [!__NR_ftruncate64]: Remove conditional code.
31292         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31293         [__NR_ftruncate64]: Make code unconditional.
31294         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31295
31296         * configure.in (libc_cv_fpie): Weaken to a compile test using
31297         LIBC_TRY_CC_OPTION.
31298         * configure: Regenerated.
31299
31300 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31301
31302         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
31303         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
31304         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
31305         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
31306         Refreshed.
31307         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
31308         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
31309         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
31310         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
31311         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
31312         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
31313         Refreshed.
31314
31315 2012-05-27  David S. Miller  <davem@davemloft.net>
31316
31317         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
31318         (___Q_zero): New.
31319         (__Q_simulate_exceptions): Return void.  Change to simulate
31320         exceptions by writing into the %fsr.
31321         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
31322         (__Qp_handle_exceptions): Likewise.
31323         (numbers): Delete.
31324         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
31325         __Qp_handle_exceptions.
31326         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
31327         __Qp_handle_exceptions.
31328         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31329         as unused and give dummy FP_RND_NEAREST initializer.
31330         (FP_INHIBIT_RESULTS): Define.
31331         (___Q_simulate_exceptions): Update declaration.
31332         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
31333         formatting.
31334         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31335         as unused and give dummy FP_RND_NEAREST initializer.
31336         (__Qp_handle_exceptions): Update declaration.
31337         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
31338         formatting.
31339
31340 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
31341
31342         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
31343         the temporary FPU control word.
31344         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
31345         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
31346         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
31347         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
31348         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
31349         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
31350         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
31351         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
31352         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
31353         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
31354         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31355
31356 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31357
31358         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
31359         fields.
31360
31361 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
31362
31363         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
31364         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
31365         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
31366         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
31367         Likewise.
31368         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
31369         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
31370         Likewise.
31371
31372 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
31373
31374         * po/h.po: Update from translation team.
31375
31376 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
31377
31378         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
31379
31380         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
31381         handling of denormals.
31382         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
31383         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
31384         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31385         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31386         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31387         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
31388         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
31389         Likewise.
31390
31391 2012-05-26  Marek Polacek  <polacek@redhat.com>
31392
31393         [BZ #14152]
31394         * math/libm-test.inc (fma_test): Don't always expect underflow
31395         exception.
31396
31397 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31398
31399         [BZ #12416]
31400         * elf/tst-execstack.c: Include stackinfo.h.
31401         (do_test): Adjust test case to ensure that pthread_getattr_np
31402         behaviour remains the same after marking stack executable.
31403
31404 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31405
31406         * sysdeps/unix/sysv/linux/kernel-features.h
31407         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
31408         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
31409         kernel-features.h.
31410         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31411         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31412         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
31413         kernel-features.h.
31414         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31415         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31416
31417 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
31418
31419         * configure.in: Define the default includes to being none.
31420         * configure: Regenerated.
31421
31422 2012-05-25  Roland McGrath  <roland@hack.frob.com>
31423
31424         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
31425         * sysdeps/x86_64/setjmp.S: Likewise.
31426         * sysdeps/i386/bsd-setjmp.S: Likewise.
31427         * sysdeps/i386/bsd-_setjmp.S: Likewise.
31428         * sysdeps/i386/setjmp.S: Likewise.
31429         * sysdeps/i386/__longjmp.S: Likewise.
31430         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31431         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
31432
31433         * include/stap-probe.h: New file.
31434         * configure.in: Handle --enable-systemtap.
31435         * configure: Regenerated.
31436         * config.h.in (USE_STAP_PROBE): New #undef.
31437         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
31438         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
31439         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
31440
31441 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31442
31443         [BZ #13717]
31444         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
31445         to 2.4.0 where earlier.
31446         * sysdeps/unix/sysv/linux/configure: Regenerated.
31447         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
31448         <kernel-features.h>.
31449         [__ASSUME_32BITUIDS]: Make code unconditional.
31450         [!__ASSUME_32BITUIDS]: Remove conditional code.
31451         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
31452         <kernel-features.h>.
31453         [__ASSUME_32BITUIDS]: Make code unconditional.
31454         [!__ASSUME_32BITUIDS]: Remove conditional code.
31455         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
31456         [__ASSUME_32BITUIDS]: Make code unconditional.
31457         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
31458         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
31459         <kernel-features.h>.
31460         [__ASSUME_32BITUIDS]: Make code unconditional.
31461         [!__ASSUME_32BITUIDS]: Remove conditional code.
31462         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
31463         <kernel-features.h>.
31464         [__ASSUME_32BITUIDS]: Make code unconditional.
31465         [!__ASSUME_32BITUIDS]: Remove conditional code.
31466         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
31467         <kernel-features.h>.
31468         [__ASSUME_32BITUIDS]: Make code unconditional.
31469         [!__ASSUME_32BITUIDS]: Remove conditional code.
31470         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
31471         <kernel-features.h>.
31472         [__ASSUME_32BITUIDS]: Make code unconditional.
31473         [!__ASSUME_32BITUIDS]: Remove conditional code.
31474         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
31475         <kernel-features.h>.
31476         [__ASSUME_32BITUIDS]: Make code unconditional.
31477         [!__ASSUME_32BITUIDS]: Remove conditional code.
31478         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
31479         <kernel-features.h>.
31480         [__ASSUME_32BITUIDS]: Make code unconditional.
31481         [!__ASSUME_32BITUIDS]: Remove conditional code.
31482         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
31483         <kernel-features.h>.
31484         [__ASSUME_32BITUIDS]: Make code unconditional.
31485         [!__ASSUME_32BITUIDS]: Remove conditional code.
31486         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
31487         <kernel-features.h>.
31488         [__ASSUME_32BITUIDS]: Make code unconditional.
31489         [!__ASSUME_32BITUIDS]: Remove conditional code.
31490         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
31491         <kernel-features.h>.
31492         [__ASSUME_32BITUIDS]: Make code unconditional.
31493         [!__ASSUME_32BITUIDS]: Remove conditional code.
31494         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
31495         <kernel-features.h>.
31496         [__ASSUME_32BITUIDS]: Make code unconditional.
31497         [!__ASSUME_32BITUIDS]: Remove conditional code.
31498         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
31499         <kernel-features.h>.
31500         [__NR_setresgid] (__setresgid): Do not declare.
31501         [__ASSUME_32BITUIDS]: Make code unconditional.
31502         [!__ASSUME_32BITUIDS]: Remove conditional code.
31503         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
31504         <kernel-features.h>.
31505         [__NR_setresuid] (__setresuid): Do not declare.
31506         [__ASSUME_32BITUIDS]: Make code unconditional.
31507         [!__ASSUME_32BITUIDS]: Remove conditional code.
31508         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
31509         <kernel-features.h>.
31510         [__ASSUME_32BITUIDS]: Make code unconditional.
31511         [!__ASSUME_32BITUIDS]: Remove conditional code.
31512         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
31513         <kernel-features.h>.
31514         [__ASSUME_32BITUIDS]: Make code unconditional.
31515         [!__ASSUME_32BITUIDS]: Remove conditional code.
31516         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
31517         <kernel-features.h>.
31518         [__ASSUME_32BITUIDS]: Make code unconditional.
31519         [!__ASSUME_32BITUIDS]: Remove conditional code.
31520         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
31521         <kernel-features.h>.
31522         [__ASSUME_32BITUIDS]: Make code unconditional.
31523         [!__ASSUME_32BITUIDS]: Remove conditional code.
31524         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
31525         <kernel-features.h>.
31526         [__ASSUME_32BITUIDS]: Make code unconditional.
31527         [!__ASSUME_32BITUIDS]: Remove conditional code.
31528         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
31529         <kernel-features.h>.
31530         [__ASSUME_32BITUIDS]: Make code unconditional.
31531         [!__ASSUME_32BITUIDS]: Remove conditional code.
31532         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
31533         <kernel-features.h>.
31534         [__ASSUME_32BITUIDS]: Make code unconditional.
31535         [!__ASSUME_32BITUIDS]: Remove conditional code.
31536         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
31537         <kernel-features.h>.
31538         [__ASSUME_32BITUIDS]: Make code unconditional.
31539         [!__ASSUME_32BITUIDS]: Remove conditional code.
31540         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
31541         <kernel-features.h>.
31542         [__ASSUME_32BITUIDS]: Make code unconditional.
31543         [!__ASSUME_32BITUIDS]: Remove conditional code.
31544         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
31545         <kernel-features.h>.
31546         [__ASSUME_32BITUIDS]: Make code unconditional.
31547         [!__ASSUME_32BITUIDS]: Remove conditional code.
31548         * sysdeps/unix/sysv/linux/kernel-features.h
31549         (__ASSUME_SETRESUID_SYSCALL): Remove.
31550         (__ASSUME_SETRESGID_SYSCALL): Likewise.
31551         (__ASSUME_32BITUIDS): Likewise.
31552         (__ASSUME_LDT_WORKS): Likewise.
31553         (__ASSUME_O_DIRECTORY): Likewise.
31554         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
31555         architecture but not kernel version.
31556         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
31557         (__ASSUME_MMAP2_SYSCALL): Likewise.
31558         (__ASSUME_STAT64_SYSCALL): Likewise.
31559         (__ASSUME_IPC64): Likewise.
31560         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
31561         <kernel-features.h>.
31562         [__ASSUME_32BITUIDS]: Make code unconditional.
31563         [!__ASSUME_32BITUIDS]: Remove conditional code.
31564         * sysdeps/unix/sysv/linux/opendir.c: Do not include
31565         <kernel-features.h>.
31566         [__ASSUME_O_DIRECTORY]: Make code unconditional.
31567         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
31568         132096]: Remove conditional code.
31569         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
31570         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
31571         <kernel-features.h>.
31572         [__ASSUME_32BITUIDS]: Make code unconditional.
31573         [!__ASSUME_32BITUIDS]: Remove conditional code.
31574         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
31575         <kernel-features.h>.
31576         [__ASSUME_32BITUIDS]: Make code unconditional.
31577         [!__ASSUME_32BITUIDS]: Remove conditional code.
31578         * sysdeps/unix/sysv/linux/setegid.c: Do not include
31579         <kernel-features.h>.
31580         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
31581         unconditional.
31582         (__setresgid): Do not declare.
31583         [__ASSUME_32BITUIDS]: Make code unconditional.
31584         [!__ASSUME_32BITUIDS]: Remove conditional code.
31585         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
31586         <kernel-features.h>.
31587         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
31588         unconditional.
31589         (__setresuid): Do not declare.
31590         [__ASSUME_32BITUIDS]: Make code unconditional.
31591         [!__ASSUME_32BITUIDS]: Remove conditional code.
31592         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
31593         <kernel-features.h>.
31594         [__ASSUME_32BITUIDS]: Make code unconditional.
31595         [!__ASSUME_32BITUIDS]: Remove conditional code.
31596         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
31597         <kernel-features.h>.
31598         [__ASSUME_32BITUIDS]: Make code unconditional.
31599         [!__ASSUME_32BITUIDS]: Remove conditional code.
31600
31601 2012-05-25  Richard Henderson  <rth@twiddle.net>
31602
31603         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
31604         dl_hwcap to ifunc resolver.
31605         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
31606         elf_ifunc_invoke.
31607         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
31608         dl_hwcap to ifunc resolver.
31609         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
31610
31611 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31612
31613         [BZ #14153]
31614         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
31615         for |x| <= 2**-26, not 2**-57.
31616         * math/libm-test.inc (acos_test): Do not allow spurious underflow
31617         exception.
31618
31619 2012-05-24  Jeff Law  <law@redhat.com>
31620
31621         * stdio-common/Makefile (tests): Add bug25.
31622         * stdio-common/bug25.c: New test.
31623
31624 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31625
31626         [BZ #13576]
31627         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
31628         multiple of MALLOC_ALIGNMENT in size.
31629         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
31630
31631 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31632
31633         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
31634         Require >= 256.
31635         (FILENAME_MAX): Use macro-int-constant.
31636         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
31637         (_IOFBF): Use macro-int-constant.
31638         (_IOLBF): Likewise.
31639         (_IONBF): Likewise.
31640         (SEEK_CUR): Likewise.
31641         (SEEK_END): Likewise.
31642         (SEEK_SET): Likewise.
31643         (TMP_MAX): Likewise.
31644         (EOF): Use macro-int-constant.  Require < 0.
31645         (NULL): Use macro-constant.  Require == 0.
31646         (stdin): Require type to be FILE *.
31647         (stdout): Likewise.
31648         (stderr): Likewise.
31649         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
31650         macro-int-constant.
31651         (EXIT_SUCCESS): Likewise.
31652         (NULL): Use macro-constant.  Require == 0.
31653         (RAND_MAX): Use macro-int-constant.
31654         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
31655         [C99-based standards] (strtof): Require function.
31656         [C99-based standards] (strtold): Likewise.
31657         [C99-based standards] (strtoll): Likewise.
31658         [C99-based standards] (strtoull): Likewise.
31659         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
31660         [ISO || ISO99 || ISO11] (limits.h): Likewise.
31661         [ISO || ISO99 || ISO11] (math.h): Likewise.
31662         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
31663         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
31664         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31665
31666 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
31667
31668         [BZ #14132]
31669         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
31670         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
31671         * intl/dgettext.c (DCGETTEXT): Likewise.
31672         * intl/gettext.c (DCGETTEXT): Likewise.
31673         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
31674         * posix/regex_internal.h (gettext): Likewise.
31675         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
31676         Remove declaration.
31677         * include/argz.h (__argz_count_internal)
31678         (__argz_stringify_internal): Remove declaration.
31679         (__argz_count, __argz_stringify): Declare hidden proto.
31680         * intl/dcgettext.c: Remove use of INTDEF.
31681         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
31682         * string/argz-stringify.c: Likewise.
31683         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31684         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31685         Declare hidden proto.
31686         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31687         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31688         Declare hidden proto.
31689         * include/stdio.h (__asprintf_internal): Don't declare.
31690         (__asprintf): Don't define as macro.  Declare hidden proto.
31691         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
31692         (__fsetlocking): Declare hidden proto.
31693         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
31694         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
31695         hidden proto.
31696         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
31697         (_IO_setlinebuf): Remove use of INTUSE.
31698         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
31699         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
31700         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
31701         Remove declaration.
31702         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
31703         (_IO_do_flush): Remove use of INTUSE.
31704         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
31705         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
31706         (_IO_adjust_column, _IO_least_wmarker)
31707         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
31708         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
31709         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
31710         (_IO_default_doallocate, _IO_wdefault_doallocate)
31711         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
31712         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
31713         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
31714         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
31715         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
31716         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
31717         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
31718         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
31719         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
31720         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
31721         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
31722         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
31723         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
31724         proto.
31725         (_IO_flush_all_internal, _IO_adjust_column_internal)
31726         (_IO_default_uflow_internal, _IO_default_finish_internal)
31727         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
31728         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
31729         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
31730         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
31731         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
31732         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
31733         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
31734         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
31735         (_IO_file_close_internal, _IO_file_close_it_internal)
31736         (_IO_file_underflow_internal, _IO_file_overflow_internal)
31737         (_IO_file_init_internal, _IO_file_attach_internal)
31738         (_IO_file_fopen_internal, _IO_file_read_internal)
31739         (_IO_file_sync_internal, _IO_file_seek_internal)
31740         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
31741         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
31742         (_IO_str_underflow_internal, _IO_str_overflow_internal)
31743         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
31744         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
31745         (_IO_list_all_internal, _IO_link_in_internal)
31746         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
31747         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
31748         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
31749         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
31750         (_IO_do_write_internal, _IO_padn_internal)
31751         (_IO_getline_info_internal, _IO_getline_internal)
31752         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
31753         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
31754         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
31755         (_IO_vfscanf_internal, _IO_vfprintf_internal)
31756         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
31757         (_IO_init_internal, _IO_un_link_internal): Don't declare.
31758         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
31759         with libc_hidden_ver, remove use of INTUSE.
31760         * libio/genops.c: Likewise.
31761         * libio/freopen.c: Likewise.
31762         * libio/freopen64.c: Likewise.
31763         * libio/iofclose.c: Likewise.
31764         * libio/iofdopen.c: Likewise.
31765         * libio/iofflush.c: Likewise.
31766         * libio/iofflush_u.c: Likewise.
31767         * libio/iofgets.c: Likewise.
31768         * libio/iofgets_u.c: Likewise.
31769         * libio/iofopen.c: Likewise.
31770         * libio/iofopncook.c: Likewise.
31771         * libio/iofread.c: Likewise.
31772         * libio/iofread_u.c: Likewise.
31773         * libio/ioftell.c: Likewise.
31774         * libio/iofwrite.c: Likewise.
31775         * libio/iogetline.c: Likewise.
31776         * libio/iogets.c: Likewise.
31777         * libio/iogetwline.c: Likewise.
31778         * libio/iopadn.c: Likewise.
31779         * libio/iopopen.c: Likewise.
31780         * libio/ioseekoff.c: Likewise.
31781         * libio/ioseekpos.c: Likewise.
31782         * libio/iosetbuffer.c: Likewise.
31783         * libio/iosetvbuf.c: Likewise.
31784         * libio/ioungetc.c: Likewise.
31785         * libio/ioungetwc.c: Likewise.
31786         * libio/iovdprintf.c: Likewise.
31787         * libio/iovsprintf.c: Likewise.
31788         * libio/iovsscanf.c: Likewise.
31789         * libio/memstream.c: Likewise.
31790         * libio/obprintf.c: Likewise.
31791         * libio/oldfileops.c: Likewise.
31792         * libio/oldiofclose.c: Likewise.
31793         * libio/oldiofdopen.c: Likewise.
31794         * libio/oldiofopen.c: Likewise.
31795         * libio/oldiopopen.c: Likewise.
31796         * libio/oldstdfiles.c: Likewise.
31797         * libio/putc.c: Likewise.
31798         * libio/setbuf.c: Likewise.
31799         * libio/setlinebuf.c: Likewise.
31800         * libio/stdfiles.c: Likewise.
31801         * libio/strops.c: Likewise.
31802         * libio/vasprintf.c: Likewise.
31803         * libio/vscanf.c: Likewise.
31804         * libio/vsnprintf.c: Likewise.
31805         * libio/vswprintf.c: Likewise.
31806         * libio/wfiledoalloc.c: Likewise.
31807         * libio/wfileops.c: Likewise.
31808         * libio/wgenops.c: Likewise.
31809         * libio/wmemstream.c: Likewise.
31810         * libio/wstrops.c: Likewise.
31811         * libio/__fpurge.c: Likewise.
31812         * libio/__fsetlocking.c: Likewise.
31813         * assert/assert.c: Likewise.
31814         * debug/fgets_chk.c: Likewise.
31815         * debug/fgets_u_chk.c: Likewise.
31816         * debug/fread_chk.c: Likewise.
31817         * debug/fread_u_chk.c: Likewise.
31818         * debug/gets_chk.c: Likewise.
31819         * debug/obprintf_chk.c: Likewise.
31820         * debug/vasprintf_chk.c: Likewise.
31821         * debug/vdprintf_chk.c: Likewise.
31822         * debug/vsnprintf_chk.c: Likewise.
31823         * debug/vsprintf_chk.c: Likewise.
31824         * malloc/mtrace.c: Likewise.
31825         * misc/error.c: Likewise.
31826         * misc/syslog.c: Likewise.
31827         * stdio-common/asprintf.c: Likewise.
31828         * stdio-common/fxprintf.c: Likewise.
31829         * stdio-common/getw.c: Likewise.
31830         * stdio-common/isoc99_fscanf.c: Likewise.
31831         * stdio-common/isoc99_scanf.c: Likewise.
31832         * stdio-common/isoc99_vfscanf.c: Likewise.
31833         * stdio-common/isoc99_vscanf.c: Likewise.
31834         * stdio-common/isoc99_vsscanf.c: Likewise.
31835         * stdio-common/printf-prs.c: Likewise.
31836         * stdio-common/printf_fp.c: Likewise.
31837         * stdio-common/printf_fphex.c: Likewise.
31838         * stdio-common/printf_size.c: Likewise.
31839         * stdio-common/putw.c: Likewise.
31840         * stdio-common/scanf.c: Likewise.
31841         * stdio-common/sprintf.c: Likewise.
31842         * stdio-common/tmpfile.c: Likewise.
31843         * stdio-common/vfprintf.c: Likewise.
31844         * stdio-common/vfscanf.c: Likewise.
31845         * stdlib/strfmon_l.c: Likewise.
31846         * sunrpc/openchild.c: Likewise.
31847         * sunrpc/xdr_stdio.c: Likewise.
31848         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
31849         * sysdeps/mach/hurd/tmpfile.c: Likewise.
31850
31851 2012-05-24  Roland McGrath  <roland@hack.frob.com>
31852
31853         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31854
31855         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
31856         in the third column, to generate for the shared library an IFUNC
31857         that uses _dl_vdso_vsym.
31858         * Makerules (COMPILE.c, compile-stdin.c): New variables.
31859         * Makeconfig (object-suffixes-noshared): New variable.
31860
31861         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
31862         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
31863         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
31864         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
31865
31866         [BZ #14132]
31867         * include/sys/time.h (__gettimeofday): Remove macro.
31868         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
31869         * time/gettimeofday.c (__gettimeofday): Remove #undef.
31870         Remove INTDEF.
31871         (__gettimeofday): Add libc_hidden_def.
31872         (gettimeofday): Add libc_hidden_weak.
31873         * sysdeps/mach/gettimeofday.c: Likewise.
31874         * sysdeps/posix/gettimeofday.c: Likewise.
31875         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
31876         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31877         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
31878         (__gettimeofday_internal): Remove strong_alias.
31879         (__gettimeofday): Add libc_hidden_def.
31880         (gettimeofday): Add libc_hidden_weak.
31881         * sysdeps/unix/syscalls.list (gettimeofday):
31882         Remove __gettimeofday_internal alias.
31883
31884 2012-05-24  Daniel Jacobowitz  <drow@false.org>
31885             H.J. Lu  <hongjiu.lu@intel.com>
31886
31887         [BZ #12495]
31888         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
31889         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
31890         (largebin_index_32_big): New.
31891         (largebin_index): Use it for 16-byte alignment.
31892         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
31893         correction with front_misalign.
31894
31895 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31896
31897         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
31898         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
31899         Likewise.
31900         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
31901         Likewise.
31902         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
31903         Likewise.
31904         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
31905         Likewise.
31906         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
31907         Likewise.
31908         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
31909         Likewise.
31910         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
31911         Likewise.
31912         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
31913         Likewise.
31914         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
31915         Likewise.
31916         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
31917         Likewise.
31918         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
31919         Likewise.
31920         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
31921         Likewise.
31922
31923         * scripts/data/c++-types-x32-linux-gnu.data: New file.
31924         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
31925
31926 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31927
31928         [BZ #10846]
31929         [BZ #14036]
31930         * math/libm-test.inc (exp_test): Add test from bug 14036.
31931         (pow_test): Add test from bug 10846.
31932
31933         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
31934         and other flags.
31935         (special_function): Do not include flags in test name.
31936         (parse_args): Likewise.
31937         * sysdeps/i386/fpu/libm-test-ulps: Update.
31938         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31939         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31940         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31941         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31942
31943         * math/gen-libm-test.pl (%beautify): Add entries for underflow
31944         exceptions.
31945         * math/libm-test.inc ("Philosophy"): Update comment about
31946         exception testing.
31947         (UNDERFLOW_EXCEPTION): New macro.
31948         (UNDERFLOW_EXCEPTION_OK): Likewise.
31949         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
31950         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
31951         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
31952         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
31953         (INVALID_EXCEPTION_OK): Update value.
31954         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
31955         (OVERFLOW_EXCEPTION_OK): Likewise.
31956         (IGNORE_ZERO_INF_SIGN): Likewise.
31957         (test_exceptions): Handle underflow exceptions.
31958         (acos_test): Update for underflow exception expectations.
31959         (cexp_test): Likewise.
31960         (clog_test): Likewise.
31961         (clog10_test): Likewise.
31962         (csqrt_test): Likewise.
31963         (ctan_test): Likewise.
31964         (ctanh_test): Likewise.
31965         (exp_test): Likewise.
31966         (exp10_test): Likewise.
31967         (exp2_test): Likewise.
31968         (expm1_test): Likewise.
31969         (fma_test): Likewise.
31970         (j0_test): Likewise.
31971         (jn_test): Likewise.
31972         (nexttoward_test): Likewise.
31973         (pow_test): Likewise.
31974         (scalbn_test): Likewise.
31975         (scalbln_test): Likewise.
31976         (tan_test): Likewise.
31977         (y1_test): Likewise.
31978         * sysdeps/i386/fpu/libm-test-ulps: Update.
31979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31980
31981 2012-05-23  David S. Miller  <davem@davemloft.net>
31982
31983         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
31984         (__libc_sigaction): Remove unused local variables.
31985
31986 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31987
31988         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
31989
31990 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
31991
31992         mktime: avoid signed integer overflow
31993         * time/mktime.c (__mktime_internal): Do not mishandle the case
31994         where diff == INT_MIN.
31995
31996         mktime: simplify computation of average
31997         * time/mktime.c (ranged_convert): Use new time_t_avg function
31998         instead of rolling our own (probably-slower) code.
31999
32000         mktime: do not assume signed right shift propagates sign bit
32001         * time/mktime.c (isdst_differ): New static function.
32002         (__mktime_internal): No need to normalize tm_isdst now.
32003         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
32004         tm_isdst values.
32005
32006         mktime: merge another wrapv change from gnulib
32007         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
32008         from some compilers.
32009
32010         mktime: remove incorrect attempt at unusual arithmetics
32011         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
32012         The code didn't really work on such machines anyway.
32013         (TYPE_MINIMUM): Assume two's complement.
32014         (twos_complement_arithmetic): Verify that long_int and time_t
32015         are two's complement (or unsigned, in the latter case).
32016
32017         mktime: check signed shifts on long_int and time_t, too
32018         * time/mktime.c (SHR): Check that shifts work as desired
32019         on the types long_int and time_t too, as SHR is used on
32020         such types.
32021
32022         mktime: do not assume 'long' is wide enough
32023         * time/mktime.c (verify): Move decl up.
32024         (long_int): New type.
32025         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
32026         to remove assumption in the code that 'long' is wide enough to
32027         store year values.  This assumption is not true on x32 and on
32028         some non-glibc platforms.
32029
32030         mktime: merge wrapv change from gnulib
32031         * time/mktime.c (WRAPV): New macro.
32032         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
32033         (guess_time_tm, __mktime_internal): Do not assume that signed
32034         integer overflow wraps around; modern compilers generate code
32035         where this assumption is no longer valid.
32036
32037 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32038
32039         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32040         Replace "jmp L(pseudo_end)" with "ret".
32041         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
32042         Likewise.
32043
32044 2012-05-23  Andreas Jaeger  <aj@suse.de>
32045
32046         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
32047         * sysdeps/unix/sysv/linux/poll.c: Remove file.
32048
32049 2012-05-23  Andreas Jaeger  <aj@suse.de>
32050             Maximilian Attems  <max@stro.at>
32051
32052         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
32053         New macros.
32054
32055 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32056
32057         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
32058         code so that pseudo_end is just ret and the stack pointer is
32059         correct also for static library in error case.
32060
32061 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
32062
32063         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
32064         move to syscalls.list.
32065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
32066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32069
32070         * manual/install.texi (Running make install): Do not mention Linux
32071         kernel version for which pt_chown is not needed.
32072         (Linux): Do not mention problems with nscd with 2.0 kernels.
32073         * INSTALL: Regenerated.
32074
32075 2012-05-23  Andreas Jaeger  <aj@suse.de>
32076
32077         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
32078         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
32079         macro.
32080         * sysdeps/unix/sysv/linux/s390/bits/mman.h
32081         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32082         * sysdeps/unix/sysv/linux/sh/bits/mman.h
32083         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32084         * sysdeps/unix/sysv/linux/i386/bits/mman.h
32085         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32086         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
32087         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32088         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
32089         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32090         * sysdeps/unix/sysv/linux/bits/in.h
32091         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
32092
32093 2012-05-22  Roland McGrath  <roland@hack.frob.com>
32094
32095         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
32096         (PREPARE_VERSION): Just use assert instead, it will be elided
32097         under [NDEBUG] anyway.
32098
32099 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32100
32101         * sysdeps/unix/sysv/linux/Makefile: Include
32102         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
32103         (sysdep_routines): Remove sysctl.
32104         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
32105         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
32106         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
32107         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
32108         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
32109
32110 2012-05-22  Andreas Jaeger  <aj@suse.de>
32111
32112         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
32113         that pseudo_end is just ret and the stack pointer is correct also
32114         for static library in error case.
32115
32116 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
32117
32118         [BZ #14122]
32119         * nss/nsswitch.c (defconfig_entries): New variable.
32120         (__nss_database_lookup): Don't leak defconfig entries.
32121         (nss_parse_service_list): Don't leak on error paths.
32122         (free_database_entries): New function.
32123         (free_defconfig): New function.
32124         (free_mem): Move common code to free_database_entries.
32125
32126 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32127
32128         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
32129         Add arch_prctl.
32130         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
32131
32132         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32133         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
32134         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
32135         New macro.
32136         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
32137         (INTERNAL_SYSCALL_TYPES): Likewise.
32138         (LOAD_ARGS_TYPES_[1-6]): Likewise.
32139         (LOAD_REGS_TYPES_[1-6]): Likewise.
32140         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
32141         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
32142
32143 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32144
32145         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
32146         copysignl for GLIBC_2_0.
32147         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
32148         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
32149         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
32150         logbl for GLIBC_2_0.
32151         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
32152         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
32153
32154 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32155
32156         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
32157         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32158
32159         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32160         Use "neg %eax".
32161
32162         * time/mktime.c: Update copyright years.
32163
32164 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32165
32166         mktime: merge comment-quoting-style change from gnulib
32167         * time/mktime.c: Quote 'like this' in comments.
32168         The GNU coding standards suggest that we no longer quote `like this',
32169         as "`" and "'" are typically rendered asymmetrically nowadays.
32170         The typical gnulib style is to quote 'like this' when quoting
32171         code, and "like this" when quoting English.
32172
32173         * time/mktime.c (compile-command): Add "-I.".
32174
32175         mktime: merge mktime-internal.h change from gnulib
32176         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
32177
32178         mktime: merge time_r change from gnulib
32179         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
32180
32181         mktime: merge DEBUG change from gnulib
32182         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
32183         case system <time.h> has a #define.
32184
32185         mktime: merge <sys/types.h> change from gnulib
32186         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
32187         since <time.t> is now guaranteed to define time_t.
32188
32189         mktime: merge HAVE_CONFIG_H change from gnulib
32190         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
32191
32192 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32193
32194         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32195         Use "neg %eax".
32196
32197         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
32198         __rlim_t cast.
32199         (struct rusage): Use anonymous union to pad each field to
32200         __syscall_slong_t.
32201
32202 2012-05-21  David S. Miller  <davem@davemloft.net>
32203
32204         * Makefules (o-iterator): Remove .s cases.
32205         (compile-command.s): Delete.
32206         (COMPILE.s): Delete.
32207         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
32208
32209 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
32210
32211         * configure.in (libc_cv_predef_stack_protector): Only consider
32212         "foobar" and "__stack_chk_fail" lines in libc_undefs.
32213         * configure: Regenerated.
32214
32215 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32216
32217         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32218         New macro.  Use R*LP on int and pointer.
32219         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
32220         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
32221         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
32222         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
32223
32224         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
32225         [__WORDSIZE_TIME64_COMPAT32] instead of
32226         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
32227         (struct utmp): Likewise.
32228         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
32229         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
32230         Renamed to ...
32231         (__WORDSIZE_TIME64_COMPAT32): This.
32232         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
32233         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
32234         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
32235         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
32236         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
32237         (__WORDSIZE_TIME64_COMPAT32): New macro.
32238
32239 2012-05-21  Andreas Jaeger  <aj@suse.de>
32240
32241         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
32242         only if [SHARED]. Add prototype for __wcschr_ia32.
32243
32244 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32245
32246         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
32247         of %rbp unmolested in the jmp_buf while mangling the low bits.
32248         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
32249         unmolested high bits of %rbp while demangling the low bits.
32250         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32251
32252 2012-05-21  Andreas Jaeger  <aj@suse.de>
32253
32254         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
32255         * sunrpc/svc_simple.c: Use it for registerrpc.
32256         * sunrpc/xcrypt.c: Use it for passwd2des.
32257
32258         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
32259
32260 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32261
32262         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
32263         Don't define if [__SYSCALL_WORDSIZE != 32].
32264         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
32265         New macro.
32266
32267 2012-05-21  Bruno Haible  <bruno@clisp.org>
32268             Andreas Jaeger  <aj@suse.de>
32269
32270         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
32271         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
32272         inptr and inend for must_buffer_ch.
32273         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
32274         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
32275         * stdio-common/Makefile (tests): Remove bug15.
32276         (bug15-ENV): Remove macro.
32277         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
32278         anymore.
32279
32280 2012-05-19  Andreas Jaeger  <aj@suse.de>
32281             Roland McGrath  <roland@hack.frob.com>
32282
32283         * manual/contrib.texi: Completely rewritten. It contains now an
32284         alphabetical list of contributors and their contributions.
32285
32286 2012-05-21  Richard Henderson  <rth@twiddle.net>
32287
32288         * misc/getauxval.c (__getauxval): Use unsigned long int.
32289         * misc/sys/auxv.h: Include <sys/cdefs.h>.
32290         (getauxval): Use unsigned long int.
32291
32292 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32293
32294         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32295
32296 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32297
32298         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
32299         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
32300         __alignof__ (long double).
32301
32302 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32303
32304         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32305
32306 2012-05-20  Richard Henderson  <rth@twiddle.net>
32307
32308         * misc/getauxval.c: New file.
32309         * misc/sys/auxv.h: New file.
32310         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
32311         (routines): Add getauxval.
32312         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
32313         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
32314         * elf/dl-sysdep.c (_dl_auxv): Remove.
32315         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
32316         * elf/dl-support.c (_dl_auxv): New variable.
32317         (_dl_aux_init): Initialize it.
32318         * manual/startup.texi (Auxiliary Vector): New node.
32319         * sysdeps/generic/bits/hwcap.h: New file.
32320         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
32321         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
32322         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
32323         * sysdeps/sparc/sysdep.h: ... here.  Include it.
32324         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
32325         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
32326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32327         Update.
32328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
32329         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
32330         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
32331         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
32332         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32333         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32334         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
32335         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
32336
32337 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32338
32339         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32340
32341 2012-05-19  David S. Miller  <davem@davemloft.net>
32342
32343         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32344
32345 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32346
32347         [BZ #14123]
32348         * math/s_ccosh.c: Include <float.h>
32349         (__ccosh): Avoid internal overflow calculating sinh and cosh
32350         values before multiplying by sin and cos values.
32351         * math/s_ccoshf.c: Likewise.
32352         * math/s_ccoshl.c: Likewise.
32353         * math/s_csin.c: Likewise.
32354         * math/s_csinf.c: Likewise.
32355         * math/s_csinl.c: Likewise.
32356         * math/s_csinh.c: Likewise.
32357         * math/s_csinhf.c: Likewise.
32358         * math/s_csinhl.c: Likewise.
32359         * math/libm-test.inc (ccos_test): Add more tests.
32360         (ccosh_test): Likewise.
32361         (csin_test): Likewise.
32362         (csinh_test): Likewise.
32363         * sysdeps/i386/fpu/libm-test-ulps: Update.
32364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32365
32366 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
32367
32368         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
32369         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
32370
32371         * sysdeps/x86_64/x32/_itoa.h: Add comment.
32372
32373 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32374
32375         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
32376         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
32377         * sysdeps/powerpc/soft-fp/Versions: Likewise.
32378         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
32379         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
32380         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
32381         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
32382         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
32383         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
32384         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
32385         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
32386         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
32387         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
32388         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
32389         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
32390         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
32391         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
32392         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
32393         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
32394         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
32395         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
32396         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
32397         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
32398         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
32399         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
32400         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
32401         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
32402         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
32403         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
32404         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
32405         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
32406
32407 2012-05-18  Andreas Jaeger  <aj@suse.de>
32408
32409         * csu/.gitignore: Delete.
32410
32411 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32412
32413         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
32414         (timex): Use __syscall_slong_t.
32415
32416 2012-05-18  Andreas Jaeger  <aj@suse.de>
32417             Carlos O'Donell  <carlos_odonell@mentor.com>
32418
32419         * manual/install.texi (Configuring and compiling): Update
32420         description about files modified in the source directory.
32421         * INSTALL: Regenerated.
32422
32423 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32424
32425         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
32426         value.  Use "or" to set return value to -1.
32427         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
32428         negate return value.
32429
32430 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32431
32432         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
32433         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
32434         failure if the compiler has Graphite support disabled.
32435         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
32436         Likewise.
32437         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
32438         (CFLAGS-memmove.c): Likewise.
32439         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
32440         Likewise.
32441
32442 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32443
32444         * sysdeps/x86_64/x32/_itoa.h: New file.
32445
32446         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
32447         getdents system call only if kernel and user dirents have the
32448         same d_ino and d_off.
32449
32450         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
32451         LLONG_MAX != LONG_MAX.
32452         (_itoa_word): Use _ITOA_WORD_TYPE on value.
32453         (_fitoa_word): Likewise.
32454
32455         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
32456         years.
32457         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
32458         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
32459         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
32460
32461         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
32462         include <bits/wordsize.h>.  Check __x86_64__ instead of
32463         __WORDSIZE.
32464         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
32465         if __x86_64__ is defined.  Use anonymous union on fpstate.
32466
32467         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
32468         anonymous union.
32469
32470 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
32471
32472         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
32473         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
32474         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
32475         Refer to _rtld_local_ro instead of _rtld_global_ro.
32476         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
32477         Likewise.
32478         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
32479         Likewise.
32480         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
32481         Likewise.
32482         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
32483         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
32484         of _rtld_global, and rtld_progname instead of _dl_argv[0].
32485
32486         * sysdeps/powerpc/powerpc32/dl-machine.c
32487         (__elf_machine_runtime_setup) [PROF]: Don't reference
32488         _dl_prof_resolve.
32489
32490 2012-05-18  Andreas Jaeger  <aj@suse.de>
32491
32492         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
32493         function only available for GCCs before 3.4 since GCC 3.4
32494         introduced a builtin.
32495         (lrint): Likewise.
32496         (llrintf): Likewise.
32497         (llrint): Likewise.
32498         (fmaxf): Likewise.
32499         (fmax): Likewise.
32500         (fminf): Likewise.
32501         (fmin): Likewise.
32502         (rint): Likewise.
32503         (rintf): Likewise.
32504         (nearbyint): Likewise.
32505         (nearbyintf): Likewise.
32506         (ceil): Likewise.
32507         (ceilf): Likewise.
32508         (floor): Likewise.
32509         (floorf): Likewise.
32510
32511 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32512
32513         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
32514         on both fields and cast pointer to __syscall_ulong_t.
32515
32516         * bits/types.h (__fsword_t): New type.
32517         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
32518         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
32519         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32520         (__FSWORD_T_TYPE): Likewise.
32521         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32522         (__FSWORD_T_TYPE): Likewise.
32523         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32524         (__FSWORD_T_TYPE): Likewise.
32525         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
32526         (__FSWORD_T_TYPE): Likewise.
32527         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
32528         __SWORD_TYPE with __fsword_t.
32529         (statfs64): Likewise.
32530
32531 2012-05-17  David S. Miller  <davem@davemloft.net>
32532
32533         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
32534
32535 2012-05-17  Andreas Jaeger  <aj@suse.de>
32536
32537         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
32538         warning.
32539
32540 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32541
32542         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
32543
32544 2012-05-17  Andreas Jaeger  <aj@suse.de>
32545
32546         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
32547         when it is used.
32548
32549 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32550
32551         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
32552
32553 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32554
32555         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
32556         * sysdeps/x86_64/tst-mallocalign1.c: New file.
32557
32558 2012-05-17  Andreas Jaeger  <aj@suse.de>
32559             Carlos O'Donell  <carlos_odonell@mentor.com>
32560
32561         [BZ #14059]
32562         * sysdeps/x86_64/multiarch/init-arch.h
32563         (bit_YMM_Usable): Rename to...
32564         (bit_AVX_Usable): ... this.
32565         (bit_FMA4_Usable): New macro.
32566         (bit_XMM_state): New macro.
32567         (bit_YMM_state): New macro.
32568         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
32569         [__ASSEMBLER__] (index_AVX_Usable): ... this.
32570         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
32571         (CPUID_OSXSAVE): New macro.
32572         (CPUID_AVX): New macro.
32573         (CPUID_FMA4): New macro.
32574         (index_YMM_Usable): Rename to...
32575         (index_AVX_Usable): ... this.
32576         (HAS_AVX): Use HAS_ARCH_FEATURE.
32577         (HAS_FMA4): Likewise.
32578         (HAS_YMM_USABLE): Remove.
32579         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32580         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
32581         are present.
32582         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
32583         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
32584         * sysdeps/x86_64/multiarch/Makefile: Likewise.
32585         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
32586         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
32587
32588 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32589
32590         * math/libm-test.c: Support platforms without multiple rounding modes.
32591         * math/bug-nextafter.c: Support platforms without FP exceptions.
32592         * math/bug-nexttoward.c: Likewise.
32593         * math/test-fenv.c: Likewise.
32594         * math/test-misc.c: Likewise.
32595         * stdlib/bug-getcontext.c: Likewise.
32596
32597 2012-05-17  Andreas Jaeger  <aj@suse.de>
32598
32599         * manual/examples/search.c (critter_cmp): Change signature to
32600         avoid warnings.
32601         * manual/string.texi (Collation Functions): Likewise.
32602
32603 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32604
32605         * bits/types.h: Fold copyright years.
32606         * bits/typesizes.h: Likewise.
32607         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
32608         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
32609         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
32610         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
32611         * time/time.h: Likewise.
32612
32613 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
32614
32615         [BZ #208]
32616         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
32617         in instead of returning them.  Return void.
32618         (__libc_mallinfo): Accumulate over all arenas.
32619         (__malloc_stats): Adjust for change in int_mallinfo interface.
32620
32621 2012-05-16  Roland McGrath  <roland@hack.frob.com>
32622
32623         [BZ #10375]
32624         * configure.in (NM): Add AC_CHECK_TOOL for it.
32625         (libc_extra_cflags): New substituted variable.
32626         Check for -fstack-protector being used implicitly.
32627         * configure: Regenerated.
32628         * config.make.in (config-extra-cflags): New variable,
32629         gets @libc_extra_cflags@.
32630         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
32631
32632         [BZ #10375]
32633         * configure.in: Check for _FORTIFY_SOURCE being predefined.
32634         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
32635         * configure: Regenerated.
32636         * config.make.in (CPPUNDEFS): New substituted variable.
32637         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
32638         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
32639         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
32640
32641 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32642
32643         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
32644         (mq_attr): Use __syscall_slong_t.
32645
32646 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32647
32648         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
32649         Check __x86_64__ instead of __WORDSIZE.
32650         (_STAT_VER_LINUX): Likewise.
32651         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
32652         __syscall_ulong_t and __syscall_slong_t.
32653         (stat64): Likewise.
32654
32655 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32656
32657         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
32658
32659 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32660
32661         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
32662
32663 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32664
32665         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
32666         __syscall_ulong_t.
32667
32668         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
32669         include <bits/wordsize.h>.  Check __x86_64__ instead of
32670         __WORDSIZE.
32671         (greg_t): Use "__extension__ long long int" if __x86_64__ is
32672         defined.
32673         (mcontext_t): Replace "unsigned long" with "unsigned long long".
32674
32675         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
32676         include <bits/wordsize.h>.  Check __x86_64__ instead of
32677         __WORDSIZE.
32678         (user_regs_struct): Use "__extension__ unsigned long long"
32679         instead of "unsigned long" if __x86_64__ is defined.
32680         (user): Likewise.  Pad after pointer field if __ILP32__ is
32681         defined.
32682
32683 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
32684
32685         * configure.in (makeinfo): Require version 4.5 or later.  Allow
32686         versions 5 to 9.
32687         * configure: Regenerated.
32688         * manual/install.texi (texinfo): Increase version requirement to
32689         4.5 or later.
32690         * INSTALL: Regenerated.
32691
32692         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
32693
32694 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32695
32696         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
32697
32698         * sysdeps/x86_64/x32/ffs.c: New file.
32699
32700         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
32701         __syscall_ulong_t.
32702         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
32703         defined.  Use __syscall_ulong_t.
32704         (shminfo): Use __syscall_ulong_t.
32705         (shm_info): Likewise.
32706
32707         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
32708         __syscall_ulong_t.
32709
32710         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
32711         <bits/wordsize.h>.
32712         (msgqnum_t): Use __syscall_ulong_t.
32713         (msglen_t): Likewise.
32714         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
32715         __syscall_ulong_t.
32716
32717         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
32718         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32719
32720         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
32721
32722         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
32723         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
32724
32725         * sysvipc/sys/msg.h (msgbuf): Replace long int with
32726         __syscall_slong_t.
32727
32728         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
32729         include <bits/wordsize.h>.  Check __x86_64__ instead of
32730         __WORDSIZE.
32731
32732         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
32733         "unsigned long long int" if __x86_64__ is defined.
32734         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
32735
32736         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
32737         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32738         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
32739
32740         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
32741         <stdint.h>.
32742         (GET_PC): Cast to uintptr_t first.
32743         (GET_FRAME): Likewise.
32744         (GET_STACK): Likewise.
32745
32746         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
32747         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
32748         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
32749         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
32750         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
32751         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
32752         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
32753         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
32754         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
32755         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
32756         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
32757         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
32758         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
32759         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
32760         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
32761         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
32762         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
32763         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
32764         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
32765         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
32766         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
32767         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
32768         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
32769         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
32770         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
32771         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
32772         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
32773         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
32774         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
32775
32776 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
32777
32778         * Makerules (+depfiles): Also collect depfiles from .oS in
32779         $(extra-objs).
32780         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
32781         .oS, $(libnldbl-routines)).
32782
32783         * Makerules (native-compile-mkdep-flags): Define.
32784         * sunrpc/Makefile (extra-objs): Add $(addprefix
32785         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
32786         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
32787         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
32788         calling $(make-target-directory).
32789
32790 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32791
32792         * bits/types.h (__snseconds_t): Removed.
32793         * time/time.h (struct timespec): Replace __snseconds_t with
32794         __syscall_slong_t.
32795         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
32796         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
32797         Likewise.
32798         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32799         (__SNSECONDS_T_TYPE): Likewise.
32800         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32801         (__SNSECONDS_T_TYPE): Likewise.
32802         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32803         (__SNSECONDS_T_TYPE): Likewise.
32804
32805 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32806
32807         * sysdeps/mach/hurd/bits/typesizes.h
32808         (__SYSCALL_SLONG_TYPE): New macro.
32809         (__SYSCALL_ULONG_TYPE): Likewise.
32810
32811 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32812
32813         * bits/types.h (__syscall_slong_t): New type.
32814         (__syscall_ulong_t): Likewise.
32815
32816         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
32817         (__SYSCALL_ULONG_TYPE): Likewise.
32818         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32819         (__SYSCALL_SLONG_TYPE): Likewise.
32820         (__SYSCALL_ULONG_TYPE): Likewise.
32821         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32822         (__SYSCALL_SLONG_TYPE): Likewise.
32823         (__SYSCALL_ULONG_TYPE): Likewise.
32824         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32825         (__SYSCALL_SLONG_TYPE): Likewise.
32826         (__SYSCALL_ULONG_TYPE): Likewise.
32827
32828 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32829
32830         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
32831         Add sigaltstack-offsets.sym.
32832         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
32833         <sigaltstack-offsets.h>.
32834         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
32835         longjmp_msg pointer.
32836         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
32837         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
32838         signal stack.
32839         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
32840
32841 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32842
32843         * elf/stackguard-macros.h: Remove file.
32844         * sysdeps/generic/stackguard-macros.h: New file.
32845         * sysdeps/i386/stackguard-macros.h: Likewise.
32846         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
32847         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
32848         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
32849         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
32850         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
32851         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
32852         * sysdeps/x86_64/stackguard-macros.h: Likewise.
32853         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
32854         <elf/stackguard-macros.h>.
32855
32856         [BZ #14109]
32857         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
32858         __aligned__ in attribute.
32859         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
32860         (gregset_t): Likewise.
32861
32862 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32863
32864         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
32865         * sysdeps/x86_64/64/Implies-after: Here.  New file.
32866         * sysdeps/x86_64/x32/Implies-after: New file.
32867
32868 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32869
32870         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
32871         and access return value for _dl_profile_fixup.  Use R10_LP to
32872         load frame size.
32873
32874 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32875
32876         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
32877
32878 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32879
32880         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
32881         * sysdeps/x86_64/x32/sysdep.h: New file.
32882
32883 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32884
32885         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
32886         * sysdeps/x86_64/setjmp.S: Likewise.
32887
32888 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32889
32890         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
32891         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
32892         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
32893         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
32894         remove unused global constant.
32895
32896 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
32897
32898         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
32899         include of <not-cancel.h>.
32900
32901 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32902
32903         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
32904
32905 2012-05-15  Jeff Law  <law@redhat.com>
32906             Andreas Jaeger  <aj@suse.de>
32907
32908         [BZ #13594]
32909         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
32910         out from...
32911         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
32912         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
32913         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
32914         code changing __hst_map_handle.map.
32915
32916 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32917
32918         * configure.in (sysnames): Look for Implies-before and Implies-after
32919         files.
32920         * configure: Regenerated.
32921
32922 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32923
32924         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
32925         8-byte data alignment with LP_SIZE alignment.
32926
32927 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32928
32929         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
32930         into R10_LP.
32931
32932 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32933
32934         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
32935
32936 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32937
32938         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
32939         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
32940         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
32941         Likewise.
32942         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
32943
32944 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32945
32946         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
32947         (stackinfo_sub_sp): Likewise.
32948
32949 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32950
32951         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
32952         RAX_LP.
32953
32954 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32955
32956         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
32957         into R*_LP.
32958
32959 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32960
32961         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
32962         sizes into R*_LP.
32963
32964 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32965
32966         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
32967
32968 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32969
32970         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
32971         into R11_LP and load __x86_64_shared_cache_size_half into
32972         R8_LP.
32973
32974 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32975
32976         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
32977         R8_LP.
32978
32979 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32980
32981         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
32982         logb for POWER7.
32983         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
32984         logbf for POWER7.
32985         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
32986         logbl for POWER7.
32987         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
32988         powerpc32/power7/fpu/s_logb.c via #include.
32989         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
32990         powerpc32/power7/fpu/s_logbf.c via #include.
32991         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
32992         powerpc32/power7/fpu/s_logbl.c via #include.
32993
32994 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32995
32996         * README.libm: Remove file.
32997
32998 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32999
33000         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
33001         count for x32.  Use R*_LP and omit operand-size suffix.
33002
33003 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33004
33005         * shlib-versions: Move x86_64-.*-linux.* entries to ...
33006         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
33007         * sysdeps/x86_64/x32/shlib-versions: New file.
33008
33009 2012-05-14  Roland McGrath  <roland@hack.frob.com>
33010
33011         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
33012         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
33013         Use _dl_fatal_printf instead.
33014
33015 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33016
33017         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
33018         set if not set by the user.  Do not allow for being unset.
33019         * sysdeps/unix/sysv/linux/configure: Regenerated.
33020
33021 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33022
33023         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
33024         the `q' suffix from lea and replace .quad with ASM_ADDR.
33025
33026 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33027
33028         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
33029         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
33030         instead of $17.
33031         (PTR_DEMANGLE): Likewise.
33032
33033 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33034
33035         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
33036         (LP_OP): Likewise.
33037         (ASM_ADDR): Likewise.
33038         (RAX_LP): Likewise.
33039         (RBP_LP): Likewise.
33040         (RBX_LP): Likewise.
33041         (RCX_LP): Likewise.
33042         (RDI_LP): Likewise.
33043         (RSI_LP): Likewise.
33044         (RSP_LP): Likewise.
33045         (R8_LP): Likewise.
33046         (R9_LP): Likewise.
33047         (R10_LP): Likewise.
33048         (R10_LP): Likewise.
33049         (R11_LP): Likewise.
33050         (R12_LP): Likewise.
33051         (R13_LP): Likewise.
33052         (R14_LP): Likewise.
33053         (R15_LP): Likewise.
33054
33055 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33056
33057         * sysdeps/x86_64/x32/dl-machine.h: New file.
33058
33059 2012-05-14  Andreas Jaeger  <aj@suse.de>
33060
33061         * manual/Makefile (subdir): Remove export of subdir.
33062         (all): Remove target.
33063         (.PHONY): Remove all from list.
33064         (mkinstalldirs): Remove.
33065         (.PHONY): Remove installdirs from list.
33066         ($(inst_infodir)/libc.info): Use make-target-directory.
33067         (installdirs): Remove.
33068         (subdir_%): Remove.
33069         (glibc-targets): Remove.
33070         (lib): Remove.
33071         (stubs): Remove.
33072         ($(objpfx)stubs ../po/manual.pot): Remove.
33073         ($(objpfx)stamp%): Remove.
33074         (make-target-directory): Remove.
33075         (subdir_install): Remove.
33076         (routines): Remove.
33077         (aux): Remove.
33078         (sources): Remove.
33079         (objects): Remove.
33080         (headers): Remove.
33081
33082         [BZ #13750]
33083         * manual/.gitignore: Remove, it's not needed anymore.
33084         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
33085         all files in it.
33086         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
33087         directory.
33088         (texis): Renamed to $(objpfx)texis.
33089         (texis-path): New, contains path to generated files.
33090         (chapters.%): Use texis-path for complete path, add extra argument
33091         libc-texinfo.sh.
33092         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
33093         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
33094         (summary,texi, stamp-summary): Use complete path of
33095         files. Generate files in build dir.
33096         (dir-add.texi): Build in build dir.
33097         (libm-err.texi,stamp-libm-err): Likewise.
33098         (version.texi, stamp-version): Likewise.
33099         (.%c.texi): Likewise.
33100         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
33101         (mostlyclean): Remove target.
33102         (realclean): Remove target.
33103         (generated): Add new variable with contents from mostlyclean and
33104         realclean, remove entries duplicated in common-mostlyclean, add
33105         stamp-libm-err and stamp-version.
33106         (generated-dirs): Add libc directory.
33107         ($(inst_infodir)/libc.info): Install files from build dir.
33108
33109         * manual/install.texi (Configuring and compiling): Adjust since
33110         the info files are not part of the tar ball anymore.
33111
33112 2012-05-14  Andreas Jaeger  <aj@suse.de>
33113
33114         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
33115         variable.
33116
33117 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33118
33119         [BZ #13717]
33120         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
33121         to 2.2.0 where earlier.
33122         * sysdeps/unix/sysv/linux/configure: Regenerated.
33123         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
33124         Remove conditional code.
33125         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
33126         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
33127         Remove conditional code.
33128         [!__NR_lchown]: Likewise.
33129         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33130         [__NR_lchown]: Likewise.
33131         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
33132         comment referencing __ASSUME_LCHOWN_SYSCALL.
33133         * sysdeps/unix/sysv/linux/i386/sigaction.c
33134         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33135         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33136         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
33137         Remove conditional code.
33138         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
33139         (__protocol_available): Remove #if 0 code.
33140         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
33141         conditional code.
33142         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
33143         * sysdeps/unix/sysv/linux/kernel-features.h
33144         (__ASSUME_GETCWD_SYSCALL): Don't define.
33145         (__ASSUME_REALTIME_SIGNALS): Likewise.
33146         (__ASSUME_PREAD_SYSCALL): Likewise.
33147         (__ASSUME_PWRITE_SYSCALL): Likewise.
33148         (__ASSUME_POLL_SYSCALL): Likewise.
33149         (__ASSUME_LCHOWN_SYSCALL): Likewise.
33150         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
33151         non-SPARC.
33152         (__ASSUME_SIOCGIFNAME): Don't define.
33153         (__ASSUME_MSG_NOSIGNAL): Likewise.
33154         (__ASSUME_SENDFILE): Define unconditionally.
33155         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
33156         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
33157         conditional code.
33158         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
33159         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
33160         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33161         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33162         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
33163         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33164         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
33166         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33167         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
33169         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33170         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
33172         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33173         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
33175         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33176         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
33178         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33179         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
33181         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33182         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
33184         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33185         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
33187         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33188         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33189         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
33190         Remove conditional code.
33191         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33192         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33193         Remove conditional code.
33194         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33195         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
33196         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
33197         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33198         Remove conditional code.
33199         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33200         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
33201         Remove conditional code.
33202         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33203         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
33204         Remove conditional code.
33205         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33206         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33207         Remove conditional code.
33208         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33209         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33210         Remove conditional code.
33211         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33212         * sysdeps/unix/sysv/linux/sh/pwrite64.c
33213         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33214         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33215         * sysdeps/unix/sysv/linux/sigaction.c
33216         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33217         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33218         * sysdeps/unix/sysv/linux/sigpending.c
33219         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33220         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33221         * sysdeps/unix/sysv/linux/sigprocmask.c
33222         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33223         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33224         * sysdeps/unix/sysv/linux/sigsuspend.c
33225         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33226         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33227         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
33228         (__libc_missing_rt_sigs): Remove.
33229         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
33230         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
33231         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
33232         Remove conditional code.
33233         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
33234         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
33235         return 1.
33236         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
33237         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
33238         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
33239         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
33240
33241 2012-05-14  Andreas Jaeger  <aj@suse.de>
33242
33243         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
33244         it's not used in glibc.
33245         (__coshm1): Likewise.
33246         (__acosh1p): Likewise.
33247         (__sgn): Likewise.
33248
33249         * manual/string.texi (Copying and Concatenation): Add missing
33250         variable in concat example.
33251         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33252
33253 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33254
33255         [BZ #14103]
33256         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
33257         __builtin_clzl with __builtin_clzll.
33258
33259 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33260
33261         [BZ #14104]
33262         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
33263         libc_freeres_ptr.
33264
33265 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33266
33267         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
33268         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
33269         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
33270         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
33271
33272 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
33273
33274         * NEWS: Update ia64 info.
33275
33276 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
33277
33278         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
33279         used as bcopy.
33280
33281 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
33282
33283         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
33284         * sysdeps/unix/syscalls.list (dup3): Likewise.
33285         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
33286         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
33287
33288 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33289
33290         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
33291         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
33292
33293 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33294
33295         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
33296         thread pointer.
33297         (TLS_IE): Use mov/add instead of movq/addq to load thread
33298         pointer.
33299         (TLS_GD_PREFIX): New.
33300         (TLS_GD): Use it.
33301
33302 2012-05-11  David S. Miller  <davem@davemloft.net>
33303
33304         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
33305         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
33306         (_FPU_SETCW): Likewise.
33307
33308 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33309
33310         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
33311         is 32-byte aligned.
33312
33313 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
33314
33315         [BZ #11837]
33316         * iconvdata/gb18030.c: Update tables.
33317         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
33318         characters specially.
33319         (BODY for TO_LOOP): Add encoding of missing ranges.
33320
33321 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
33322
33323         [BZ #13673]
33324         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
33325         * sysdeps/mach/hurd/dup3.c: Likewise.
33326         * sysdeps/mach/hurd/readlinkat.c: Likewise.
33327         * sysdeps/powerpc/memmove.c:: Likewise.
33328
33329 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33330
33331         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
33332         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
33333
33334 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33335
33336         * elf/elf.h (R_X86_64_RELATIVE64): New.
33337         (R_X86_64_NUM): Updated.
33338         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
33339         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
33340         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
33341         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
33342         tst-quad1pie tst-quad2pie
33343         (modules-names): Add tst-quadmod1 tst-quadmod2.
33344         ($(objpfx)tst-quad1): New dependency.
33345         ($(objpfx)tst-quad2): Likewise.
33346         ($(objpfx)tst-quad1pie): Likewise.
33347         ($(objpfx)tst-quad2pie): Likewise.
33348         * sysdeps/x86_64/tst-quad1.c: New file.
33349         * sysdeps/x86_64/tst-quad1pie.c: New file.
33350         * sysdeps/x86_64/tst-quad2.c: Likewise.
33351         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
33352         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
33353         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
33354         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
33355         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
33356
33357 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33358
33359         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
33360         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
33361         * streams/stropts.h (t_scalar_t): Define type.
33362
33363         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
33364         (_PATH_PRESERVE): Set to "/var/lib".
33365         (_PATH_RWHODIR): Set to "/var/spool/rwho".
33366
33367         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
33368         instead of int.
33369
33370         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
33371         if __dir_mkfile succeeded.
33372
33373         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
33374         checking for _hurd_dtablesize.  Unlock it right after having
33375         finished _hurd_dtable allocation.
33376
33377 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33378
33379         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
33380         * sysdeps/mach/hurd/configure: Regenerated.
33381         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
33382         special-casing to...
33383         * sysdeps/gnu/configure.in: ... this new file.
33384         * sysdeps/unix/sysv/linux/configure: Regenerated.
33385         * sysdeps/gnu/configure: New generated file.
33386
33387         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
33388         for Linux: use nsec instead of usec, as well as:
33389         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
33390         members of type struct timespec.
33391         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
33392         New macros.
33393         (struct stat64): Likewise.
33394         (_STATBUF_ST_NSEC): New macro.
33395         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
33396
33397         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
33398         __strtoul_internal rather than strtoul.
33399
33400 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33401
33402         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
33403         and reject them.
33404
33405 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33406
33407         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
33408         which preserves existing values.
33409         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
33410
33411 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33412
33413         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
33414         TIMEOUT values.  Return EINVAL for NFDS values either negative or
33415         greater than FD_SETSIZE.
33416
33417 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33418
33419         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
33420         allocated, call __vm_protect to finish enabling the existing space, and
33421         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
33422         allocate the remainder.
33423
33424 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33425
33426         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
33427         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
33428
33429 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33430
33431         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
33432         sysdeps/mach/hurd/readlink.c.
33433
33434         * posix/tst-sysconf.c (posix_options): Only use
33435         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
33436         _POSIX_SYNCHRONIZED_IO when they are defined
33437         * sysdeps/mach/hurd/bits/posix_opt.h:
33438         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
33439         (_XOPEN_REALTIME): Undefine macro.
33440         (_XOPEN_REALTIME_THREADS): Undefine macro.
33441         (_XOPEN_SHM): Undefine macro.
33442         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
33443         macro to -1.
33444         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
33445         macro to -1.
33446         (_POSIX_ASYNC_IO): Undefine macro.
33447         (_POSIX_PRIORITIZED_IO): Undefine macro.
33448         (_POSIX_SPIN_LOCKS): Define macro to -1.
33449
33450         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
33451         SA_NODEFER, SA_RESETHAND.
33452         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
33453         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
33454         F_DUPFD_CLOEXEC.
33455
33456 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33457
33458         * elf/Makefile (pldd-modules): Define unconditionally.
33459
33460 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33461
33462         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
33463
33464 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33465
33466         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
33467         Return ENOENT when name is empty.
33468         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
33469
33470 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33471
33472         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
33473
33474         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
33475
33476 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33477
33478         Fix mlock in all cases except non-readable pages.
33479         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
33480         instead of VM_PROT_ALL as parameter to __vm_wire function.
33481
33482         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
33483         (__mkdir): When path is `/', just fail with EEXIST.
33484         * sysdeps/mach/hurd/mkdirat.c: Likewise.
33485
33486 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33487
33488         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
33489         <sys/uio.h> (for writev).
33490         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
33491         and <sys/param.h> (for MIN).
33492
33493 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33494
33495         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
33496         REQUESTED_TIME.  Properly set the remaining time and return EINTR
33497         if interrupted.
33498
33499 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33500
33501         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
33502         Depend on against $(link-rpcuserlibs).
33503
33504 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33505
33506         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
33507         (__libc_stack_end): Do not use attribute_relro.
33508         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
33509         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
33510         to libthread-provided value.
33511         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
33512         attribute_relro.
33513
33514 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33515
33516         [BZ #3748]
33517         * bits/libc-lock.h (__libc_once_get): New macro.
33518         * sysdeps/mach/bits/libc-lock.h: Likewise.
33519         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
33520         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
33521         instead of using implementation details.
33522
33523         * libio/fileops.c: Unconditionally include <kernel-features.h>.
33524         * libio/freopen.c: Likewise.
33525         * libio/freopen64.c: Likewise.
33526         * misc/syslog.c: Likewise.
33527         * nscd/connections.c: Likewise.
33528         * nscd/netgroupcache.c: Likewise.
33529         * sysdeps/posix/getcwd.c: Likewise.
33530
33531 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33532
33533         * math/w_ilogbf.c: Add #include <limits.h>.
33534
33535 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33536
33537         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
33538         path instead of returning without unlocking.
33539
33540         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
33541         immediate-write ioctls.
33542         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
33543
33544 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33545
33546         * sysdeps/mach/hurd/i386/init-first.c (init): Use
33547         __builtin_frame_address instead of making assumptions about the
33548         location of the return address relative to DATA.  Force early load of
33549         the return address.
33550         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
33551         __builtin_frame_address.
33552
33553         dup3 for GNU Hurd.
33554         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
33555         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
33556         implement dup3 and do some further code clean-ups.
33557         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
33558         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
33559
33560 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33561
33562         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
33563
33564         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
33565         HURD_CRITICAL_END around holding _hurd_dtable_lock.
33566         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
33567         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
33568         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
33569         d->port.lock.
33570
33571         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
33572         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
33573         when handler == SIG_ERR, not when handler != SIG_ERR.
33574
33575 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33576
33577         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
33578         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
33579         definitions.
33580
33581         accept4 for GNU Hurd.
33582         * include/sys/socket.h (__libc_accept4): New prototype.
33583         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
33584         to implement __libc_accept4.
33585         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
33586         __libc_accept4.
33587         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
33588
33589         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
33590         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
33591         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
33592         signal-defines.sym.
33593
33594 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33595
33596         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
33597
33598 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33599
33600         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
33601         assertion on O_CLOEXEC flag.
33602         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
33603         * hurd/intern-fd.c: Likewise.
33604         * hurd/port2fd.c: Likewise.
33605
33606 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33607
33608         [BZ #3906]
33609         * bits/in.h (IPV6_PKTINFO): Define new macro.
33610         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
33611
33612 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33613
33614         [BZ #13954]
33615         [BZ #13955]
33616         [BZ #13956]
33617         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
33618         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
33619         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
33620         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
33621         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
33622         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
33623         * math/libm-test.inc (logb_test) : Additional logb tests.
33624
33625 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
33626             Andreas Jaeger  <aj@suse.de>
33627
33628         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
33629         * configure: Regenerated.
33630         * config.h.in (LINK_OBSOLETE_RPC): New macro.
33631         * config.make.in (link-obsolete-rpc): New substituted variable.
33632         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
33633         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
33634         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33635         (shared-only-routines): Don't set it under [link-obsolete-rpc],
33636         so that libc.a contains the symbols.
33637         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33638         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
33639         * sunrpc/auth_none.c: Likewise.
33640         * sunrpc/auth_unix.c: Likewise.
33641         * sunrpc/authdes_prot.c: Likewise.
33642         * sunrpc/authuxprot.c: Likewise.
33643         * sunrpc/clnt_gen.c: Likewise.
33644         * sunrpc/clnt_perr.c: Likewise.
33645         * sunrpc/clnt_raw.c: Likewise.
33646         * sunrpc/clnt_simp.c: Likewise.
33647         * sunrpc/clnt_tcp.c: Likewise.
33648         * sunrpc/clnt_udp.c: Likewise.
33649         * sunrpc/clnt_unix.c: Likewise.
33650         * sunrpc/des_crypt.c: Likewise.
33651         * sunrpc/des_soft.c: Likewise.
33652         * sunrpc/get_myaddr.c: Likewise.
33653         * sunrpc/key_call.c: Likewise.
33654         * sunrpc/key_prot.c: Likewise.
33655         * sunrpc/netname.c: Likewise.
33656         * sunrpc/pm_getmaps.c: Likewise.
33657         * sunrpc/pm_getport.c: Likewise.
33658         * sunrpc/pmap_clnt.c: Likewise.
33659         * sunrpc/pmap_prot.c: Likewise.
33660         * sunrpc/pmap_prot2.c: Likewise.
33661         * sunrpc/pmap_rmt.c: Likewise.
33662         * sunrpc/publickey.c: Likewise.
33663         * sunrpc/rpc_cmsg.c: Likewise.
33664         * sunrpc/rpc_common.c: Likewise.
33665         * sunrpc/rpc_dtable.c: Likewise.
33666         * sunrpc/rpc_prot.c: Likewise.
33667         * sunrpc/rpc_thread.c: Likewise.
33668         * sunrpc/rtime.c: Likewise.
33669         * sunrpc/svc.c: Likewise.
33670         * sunrpc/svc_auth.c: Likewise.
33671         * sunrpc/svc_raw.c: Likewise.
33672         * sunrpc/svc_run.c: Likewise.
33673         * sunrpc/svc_tcp.c: Likewise.
33674         * sunrpc/svc_udp.c: Likewise.
33675         * sunrpc/svc_unix.c: Likewise.
33676         * sunrpc/svcauth_des.c: Likewise.
33677         * sunrpc/xcrypt.c: Likewise.
33678         * sunrpc/xdr.c: Likewise.
33679         * sunrpc/xdr_array.c: Likewise.
33680         * sunrpc/xdr_float.c: Likewise.
33681         * sunrpc/xdr_intXX_t.c: Likewise.
33682         * sunrpc/xdr_mem.c: Likewise.
33683         * sunrpc/xdr_rec.c: Likewise.
33684         * sunrpc/xdr_ref.c: Likewise.
33685         * sunrpc/xdr_sizeof.c: Likewise.
33686         * sunrpc/xdr_stdio.c: Likewise.
33687
33688 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33689
33690         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
33691         change.  Update copyright years.
33692
33693 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33694
33695         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
33696
33697 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
33698             Joseph Myers  <joseph@codesourcery.com>
33699             Paul Pluzhnikov  <ppluzhnikov@google.com>
33700
33701         [BZ #14012]
33702         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
33703         requiring rpcgen.
33704         [cross-compiling] (extra-libs): Likewise.
33705         [cross-compiling] (extra-libs-others): Likewise.
33706         [cross-compiling] (librpcsvc-routines): Likewise.
33707         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
33708         [cross-compiling] (omit-deps): Likewise.
33709         (sunrpc-CPPFLAGS): New variable.
33710         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
33711         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
33712         (cross-rpcgen-objs): New variable.
33713         (extra-objs): Append $(cross-rpcgen-objs).
33714         ($(cross-rpcgen-objs)): New rule.
33715         ($(objpfx)cross-rpcgen): Likewise.
33716         (rpcgen-cmd): Define to use $(built-program-file).  Expand
33717         comment.
33718         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
33719         ($(objpfx)x%.stmp): Likewise.
33720         * sunrpc/proto.h [IS_IN_build] (_): Define.
33721         [IS_IN_build] (_libc_intl_domainname): Likewise.
33722
33723 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33724
33725         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
33726         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
33727         and R_X86_64_TPOFF64.
33728
33729 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33730
33731         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
33732         sysdeps/unix/sysv/syscalls.list.
33733         (stime): Likewise.
33734         (utime): Likewise.
33735         * sysdeps/unix/sysv/syscalls.list: Remove file.
33736
33737 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33738
33739         [BZ #3440]
33740         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
33741         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
33742         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
33743         (__LC_IDENTIFICATION): Make these macros useful in #if
33744         expressions, as required by C99.
33745
33746 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
33747
33748         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
33749         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
33750         after this.
33751
33752 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
33753
33754         * stdlib/longlong.h: Updated from GCC.
33755
33756 2012-05-09  Andreas Jaeger  <aj@suse.de>
33757
33758         * nscd/nscd.c (run_modes): Make named enum, reorder so that
33759         default is first entry.
33760         (run_mode): Set type.
33761         (main): Remove informal message about syslog.
33762         (options): Fix typo.
33763
33764         [BZ #14053]
33765         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
33766         to asm.
33767         (lrint): Likewise.
33768         (llrintf): Likewise.
33769         (llrint): Likewise.
33770         (rint): Likewise.
33771         (rintf): Likewise.
33772         (nearbyint): Likewise.
33773         (nearbyintf): Likewise.
33774
33775 2012-05-09  Andreas Jaeger  <aj@suse.de>
33776             Pedro Alves  <palves@redhat.com>
33777
33778         * nscd/nscd.c (run_mode): Use enum.
33779         (main): Cleanup coding style issue.
33780
33781 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
33782             Andreas Jaeger  <aj@suse.de>
33783
33784         * nscd/nscd.c (go_background): Replaced with...
33785         (run_mode): ... this.
33786         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
33787         (options): Add -F --foreground.
33788         (main): Implement it.
33789         (parse_opt): Parse it.
33790
33791 2012-05-09  Andreas Jaeger  <aj@suse.de>
33792
33793         [BZ #14083]
33794         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
33795         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
33796         -Wconversion warning.
33797         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
33798         Likewise.
33799
33800 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
33801
33802         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
33803         == 0.
33804         (LC_ALL): Use macro-int-constant.
33805         (LC_COLLATE): Likewise.
33806         (LC_CTYPE): Likewise.
33807         (LC_MESSAGES): Likewise.
33808         (LC_MONETARY): Likewise.
33809         (LC_NUMERIC): Likewise.
33810         (LC_TIME): Likewise.
33811         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
33812         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33813         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33814         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
33815         Specify type.
33816         [C99-based standards] (float_t): Expect type.
33817         [C99-based standards] (double_t): Expect type.
33818         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
33819         type.
33820         [C99-based standards] (HUGE_VALL): Likewise.
33821         [C99-based standards] (INFINITY): Likewise.
33822         [C99-based standards] (NAN): Likewise.
33823         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
33824         [C99-based standards] (FP_NAN): Likewise.
33825         [C99-based standards] (FP_NORMAL): Likewise.
33826         [C99-based standards] (FP_SUBNORMAL): Likewise.
33827         [C99-based standards] (FP_ZERO): Likewise.
33828         [C99-based standards] (FP_FAST_FMA): Use
33829         optional-macro-int-constant.  Specify type.  Require == 1.
33830         [C99-based standards] (FP_FAST_FMAF): Likewise.
33831         [C99-based standards] (FP_FAST_FMAL): Likewise.
33832         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
33833         [C99-based standards] (FP_ILOGBNAN): Likewise.
33834         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
33835         Specify type.
33836         [C99-based standards] (MATH_ERREXCEPT): Likewise.
33837         [C99-based standards] (math_errhandling): Specify type.
33838         [ISO99 || ISO11] (signgam): Do not allow.
33839         [non-C99-based standards] (copysignf): Do not allow.
33840         [non-C99-based standards] (exp2f): Likewise.
33841         [non-C99-based standards] (log2f): Likewise.
33842         [non-C99-based standards] (modff): Allow.
33843         [non-C99-based standards] (erff): Do not allow.
33844         [non-C99-based standards] (erfcf): Likewise.
33845         [non-C99-based standards] (gammaf): Likewise.
33846         [non-C99-based standards] (hypotf): Likewise.
33847         [non-C99-based standards] (j0f): Likewise.
33848         [non-C99-based standards] (j1f): Likewise.
33849         [non-C99-based standards] (jnf): Likewise.
33850         [non-C99-based standards] (lgammaf): Likewise.
33851         [non-C99-based standards] (tgammaf): Likewise.
33852         [non-C99-based standards] (y0f): Likewise.
33853         [non-C99-based standards] (y1f): Likewise.
33854         [non-C99-based standards] (ynf): Likewise.
33855         [non-C99-based standards] (isnanf): Likewise.
33856         [non-C99-based standards] (acoshf): Likewise.
33857         [non-C99-based standards] (asinhf): Likewise.
33858         [non-C99-based standards] (atanhf): Likewise.
33859         [non-C99-based standards] (cbrtf): Likewise.
33860         [non-C99-based standards] (expm1f): Likewise.
33861         [non-C99-based standards] (ilogbf): Likewise.
33862         [non-C99-based standards] (log1pf): Likewise.
33863         [non-C99-based standards] (logbf): Likewise.
33864         [non-C99-based standards] (nextafterf): Likewise.
33865         [non-C99-based standards] (remainderf): Likewise.
33866         [non-C99-based standards] (rintf): Likewise.
33867         [non-C99-based standards] (scalbf): Likewise.
33868         [non-C99-based standards] (copysignl): Likewise.
33869         [non-C99-based standards] (exp2l): Likewise.
33870         [non-C99-based standards] (log2l): Likewise.
33871         [non-C99-based standards] (modfl): Allow.
33872         [non-C99-based standards] (erfl): Do not allow.
33873         [non-C99-based standards] (erfcl): Likewise.
33874         [non-C99-based standards] (gammal): Likewise.
33875         [non-C99-based standards] (hypotl): Likewise.
33876         [non-C99-based standards] (j0l): Likewise.
33877         [non-C99-based standards] (j1l): Likewise.
33878         [non-C99-based standards] (jnl): Likewise.
33879         [non-C99-based standards] (lgammal): Likewise.
33880         [non-C99-based standards] (tgammal): Likewise.
33881         [non-C99-based standards] (y0l): Likewise.
33882         [non-C99-based standards] (y1l): Likewise.
33883         [non-C99-based standards] (ynl): Likewise.
33884         [non-C99-based standards] (isnanl): Likewise.
33885         [non-C99-based standards] (acoshl): Likewise.
33886         [non-C99-based standards] (asinhl): Likewise.
33887         [non-C99-based standards] (atanhl): Likewise.
33888         [non-C99-based standards] (cbrtl): Likewise.
33889         [non-C99-based standards] (expm1l): Likewise.
33890         [non-C99-based standards] (ilogbl): Likewise.
33891         [non-C99-based standards] (log1pl): Likewise.
33892         [non-C99-based standards] (logbl): Likewise.
33893         [non-C99-based standards] (nextafterl): Likewise.
33894         [non-C99-based standards] (remainderl): Likewise.
33895         [non-C99-based standards] (rintl): Likewise.
33896         [non-C99-based standards] (scalbl): Likewise.
33897         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33898         [non-C99-based standards] (FP_*): Do not allow.
33899         [C99-based standards] (FP_*): Change to
33900         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33901         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33902         allow.
33903         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
33904         (SIG_ERR): Likewise.
33905         [X/Open-based standards] (SIG_HOLD): Likewise.
33906         (SIG_IGN): Likewise.
33907         (SIGABRT): Use macro-int-constant.  Specify type.  Require
33908         positive value.
33909         (SIGFPE): Likewise.
33910         (SIGILL): Likewise.
33911         (SIGINT): Likewise.
33912         (SIGSEGV): Likewise.
33913         (SIGTER): Likewise.
33914         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
33915         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
33916         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
33917         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
33918         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
33919         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
33920         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
33921         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
33922         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
33923         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
33924         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
33925         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
33926         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
33927         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
33928         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
33929         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
33930         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
33931         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
33932         [X/Open-based standards] (SIGTRAP): Likewise.
33933         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
33934         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
33935         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
33936         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
33937         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33938         allow.
33939
33940 2012-05-08  Ian Wienand  <ianw@vmware.com>
33941
33942         [BZ #14080]
33943         * time/tzset.c (__tzset_parse_tz): Update default rules for
33944         daylight time changes in the Energy Policy Act of 2005.
33945
33946 2012-05-09  Andreas Jaeger  <aj@suse.de>
33947
33948         [BZ #13983]
33949         * elf/ldconfig.c (parse_conf): Change string to make clear that
33950         ldconfig only issued a warning if ld.so.conf does not exist.
33951
33952 2012-05-08  David S. Miller  <davem@davemloft.net>
33953
33954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
33955         movxtod instead of popping the value on the stack.
33956
33957         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33958
33959 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
33960
33961         * config.h.in: Add HAVE_ARM_PCS_VFP.
33962
33963 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
33964
33965         [BZ #13979]
33966         * include/features.h: Warn if user requests __FORTIFY_SOURCE
33967         checking but the checks are disabled for any reason.
33968
33969 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
33970
33971         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
33972         and ELF64_R_TYPE with ELFW(R_TYPE).
33973
33974 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
33975
33976         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
33977         (ulimit): Likewise.
33978
33979         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
33980         (settimeofday): Likewise.
33981
33982 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
33983
33984         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
33985         a struct th_u2 inside the union, and move tu_block/tu_code into
33986         a new th_u3 union of tu_block/tu_code inside of that.  Move
33987         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
33988         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
33989         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
33990         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
33991         (th_stuff): Change to th_u1.tu_stuff.
33992         (th_data): Define.
33993         (th_msg): Change to th_u1.th_u2.tu_data.
33994
33995 2012-05-07  David S. Miller  <davem@davemloft.net>
33996
33997         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33998
33999         [BZ #14074]
34000         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
34001         (SETUP_PIC_REG): Use it.
34002         (SETUP_PIC_REG_LEAF): Use it.
34003
34004 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
34005
34006         [BZ #13885]
34007         [BZ #13923]
34008         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34009         USE_AS_EXPM1L.
34010         (EXPL_FINITE): Likewise.
34011         (FLDLOG): Likewise.
34012         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34013         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34014         e_expl.S.
34015         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34016         USE_AS_EXPM1L.
34017         (EXPL_FINITE): Likewise.
34018         (FLDLOG): Likewise.
34019         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34020         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34021         e_expl.S.
34022         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
34023         test of -max_value argument for long double.
34024         * sysdeps/i386/fpu/libm-test-ulps: Update.
34025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34026
34027 2012-05-06  David S. Miller  <davem@davemloft.net>
34028
34029         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
34030         quad soft-float symbols whose references which are compiler
34031         generated.
34032         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34033
34034 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
34035
34036         [BZ #13884]
34037         [BZ #13914]
34038         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34039         USE_AS_EXP10L.
34040         (EXPL_FINITE): Likewise.
34041         (FLDLOG): Likewise.
34042         (c0): Likewise.
34043         (c1): Likewise.
34044         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34045         Adjust comments for base varying.
34046         (__expl_finite): Change alias to EXPL_FINITE.
34047         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
34048         e_expl.S.
34049         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
34050         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
34051         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
34052         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
34053         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34054         USE_AS_EXP10L.
34055         (EXPL_FINITE): Likewise.
34056         (FLDLOG): Likewise.
34057         (c0): Likewise.
34058         (c1): Likewise.
34059         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34060         Adjust comments for base varying.
34061         (__expl_finite): Change alias to EXPL_FINITE.
34062         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
34063         tests for bugs.
34064         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34065
34066         [BZ #14064]
34067         * math/libm-test.inc (check_float_internal): Correct ulp
34068         calculation for subnormal expected results.
34069
34070 2012-05-06  Andreas Jaeger  <aj@suse.de>
34071
34072         * Makeconfig (+math-flags): New, set to -frounding-math.
34073         (+cflags): Add +math-flags so that all of glibc gets compiled with
34074         it.
34075
34076         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
34077
34078 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
34079
34080         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
34081         Disable one test.
34082
34083         [BZ #13787]
34084         [BZ #13922]
34085         [BZ #14036]
34086         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
34087         (__ieee754_expl): Allow for and saturate large arguments.
34088         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
34089         (u_threshold): Likewise.
34090         (__exp): Call __ieee754_exp before checking for overflow and
34091         underflow.
34092         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
34093         (u_threshold): Likewise.
34094         (__expf): Call __ieee754_expf before checking for overflow and
34095         underflow.
34096         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
34097         (u_threshold): Likewise.
34098         (__expl): Call __ieee754_expl before checking for overflow and
34099         underflow.
34100         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
34101         (__ieee754_expl): Allow for and saturate large arguments.
34102         * math/libm-test.inc (exp_test): Add another test.  Do not allow
34103         missing overflow exception on overflow.
34104         (expm1_test): Do not allow missing overflow exception on overflow.
34105
34106         * sysdeps/i386/fpu/e_expl.c: Move to ...
34107         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
34108         rather than using inline asm.
34109         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
34110         * sysdeps/x86_64/fpu/e_expl.S: Copy from
34111         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
34112
34113         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
34114         (nice): Likewise.
34115         (poll): Likewise.
34116         (signal): Likewise.
34117         (time): Likewise.
34118         (times): Likewise.
34119
34120 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34121
34122         * sysdeps/unix/syscalls.list (adjtime): Add entry from
34123         sysdeps/unix/common/syscalls.list.
34124         (fchmod): Likewise.
34125         (fchown): Likewise.
34126         (ftruncate): Likewise.
34127         (getrusage): Likewise.
34128         (gettimeofday): Likewise.
34129         (setpgid): Likewise.
34130         (setregid): Likewise.
34131         (setreuid): Likewise.
34132         (sigaction): Likewise.
34133         (truncate): Likewise.
34134         (vhangup): Likewise.
34135         * sysdeps/unix/common/syscalls.list: Remove file.
34136         * sysdeps/unix/bsd/Implies: Don't include unix/common.
34137         * sysdeps/unix/sysv/linux/Implies: Likewise.
34138
34139 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
34140
34141         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
34142         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
34143         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
34144         Moved to ...
34145         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
34146         Here.
34147         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
34148         to ...
34149         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
34150         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
34151         to ...
34152         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
34153         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
34154         to ...
34155         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
34156         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
34157         to ...
34158         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
34159         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
34160         to ...
34161         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
34162         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
34163         to ...
34164         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
34165         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
34166         to ...
34167         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
34168         Here.
34169         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
34170         to ...
34171         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
34172         Here.
34173         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
34174         to ...
34175         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
34176         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
34177         Moved to ...
34178         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
34179         Here.
34180         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
34181         to ...
34182         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
34183
34184 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34185
34186         * sysdeps/unix/common/bits/dirent.h: Remove file.
34187         * sysdeps/unix/common/bits/fcntl.h: Likewise.
34188
34189         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
34190         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
34191         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
34192         * sysdeps/unix/bsd/isatty.c: Likewise.
34193         * sysdeps/unix/bsd/tcdrain.c: Likewise.
34194         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
34195         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
34196
34197 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34198
34199         [BZ #13563]
34200         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
34201         long double comparison inaccuracies.
34202         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
34203         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34204
34205 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
34206
34207         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
34208         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
34209
34210 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34211
34212         [BZ #14049]
34213         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
34214         nonzero digits before rounding a hex value.
34215         * stdlib/tst-strtod.c (tests): Add another test.
34216
34217 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34218
34219         * sysdeps/s390/fpu/libm-test-ulps: Update.
34220
34221 2012-05-03  Andreas Jaeger  <aj@suse.de>
34222
34223         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
34224         does not get optimized out.
34225         (malloc_opt_barrier): New.
34226
34227 2012-05-03  Andreas Jaeger  <aj@suse.de>
34228             Roland McGrath  <roland@hack.frob.com>
34229
34230         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
34231         intermediate file deletion.
34232         (generated): Add .symlist files.
34233
34234 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
34235
34236         [BZ #13775]
34237         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
34238         Redirect under this condition.
34239         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34240         [__USE_GNU] (__dprintf_chk): Not under this condition.
34241         [__USE_GNU] (__vdprintf_chk): Likewise.
34242         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
34243         under this condition.
34244         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34245         [__USE_XOPEN2K8] (dprintf): Define under this condition.
34246         [__USE_XOPEN2K8] (vdprintf): Likewise.
34247         [__USE_GNU] (__dprintf_chk): Not under this condition.
34248         [__USE_GNU] (__vdprintf_chk): Likewise.
34249         [__USE_GNU] (dprintf): Likewise.
34250         [__USE_GNU] (vdprintf): Likewise.
34251
34252 2012-05-03  Roland McGrath  <roland@hack.frob.com>
34253
34254         * elf/Makefile (common-generated): Set this instead of generated for
34255         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
34256         $(all-built-dso)-derived lists.
34257
34258 2012-05-03  Andreas Jaeger  <aj@suse.de>
34259
34260         * sysdeps/i386/fpu/libm-test-ulps: Update.
34261
34262         * FAQ: Removed.
34263         * FAQ.in: Likewise.
34264         * scripts/gen-FAQ.pl: Likewise.
34265         * manual/install.texi (Installation): Point to online location of
34266         FAQ.
34267         * Makefile (files-for-dist): Remove FAQ.
34268         (FAQ): Remove.
34269
34270 2012-05-02  Allan McRae  <allan@archlinux.org>
34271
34272         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
34273         (LDFLAGS-reldepmod5.so): Likewise.
34274         (LDFLAGS-reldep6mod1.so): Likewise.
34275         (LDFLAGS-reldep6mod4.so): Likewise.
34276         (LDFLAGS-reldep8mod3.so): Likewise.
34277         (LDFLAGS-unload4mod1.so): Likewise.
34278         (LDFLAGS-unload4mod2.so): Likewise.
34279         (LDFLAGS-tst-initorder): Likewise.
34280         (LDFLAGS-tst-initordera2.so): Likewise.
34281         (LDFLAGS-tst-initordera3.so): Likewise.
34282         (LDFLAGS-tst-initordera4.so): Likewise.
34283         (LDFLAGS-tst-initorderb2.so): Likewise.
34284         (LDFLAGS-noload): Likewise.
34285         (LDFLAGS-next): Likewise.
34286         (LDFLAGS-order2mod1.so): Likewise.
34287         (LDFLAGS-order2mod2.so): Likewise.
34288         (LDFLAGS-tst-initorder2): Likewise.
34289         (LDFLAGS-tst-initorder2a.so): Likewise.
34290         (LDFLAGS-tst-initorder2b.so): Likewise.
34291         (LDFLAGS-tst-initorder2c.so): Likewise.
34292         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
34293
34294 2012-05-02  David S. Miller  <davem@davemloft.net>
34295
34296         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34297
34298 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
34299
34300         [BZ #14055]
34301         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
34302
34303 2012-05-02  Andreas Jaeger  <aj@suse.de>
34304
34305         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
34306         since we manipulate rounding mode.
34307         (CPPFLAGS-test-idouble.c): Likewise.
34308         (CPPFLAGS-test-ifloat.c): Likewise.
34309         (CFLAGS-test-ldouble.c): Likewise.
34310         (CFLAGS-test-double.c): Likewise.
34311         (CFLAGS-test-float.c): Likewise.
34312         (CFLAGS-test-misc.c): Likewise.
34313         (CFLAGS-test-test-fenv.c): Likewise.
34314
34315 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34316
34317         [BZ #2550]
34318         [BZ #2570]
34319         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
34320         comparisons to determine direction to adjust input.
34321
34322 2012-05-01  Roland McGrath  <roland@hack.frob.com>
34323
34324         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
34325         output to the target.
34326
34327         * scripts/localplt.awk: New file.
34328         * elf/Makefile ($(objpfx)check-localplt): Target removed.
34329         (check-localplt-CFLAGS): Variable removed.
34330         ($(all-built-dso:=.jmprel)): New static pattern rule.
34331         (generated): Add those targets.
34332         (localplt-built-dso): New variable.
34333         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
34334
34335         * elf/check-localplt.c: File removed.
34336
34337         * scripts/check-execstack.awk: New file.
34338         * elf/Makefile ($(objpfx)check-execstack): Target removed.
34339         (check-execstack-CFLAGS): Variable removed.
34340         ($(objpfx)check-execstack.h): Target removed.
34341         ($(objpfx)execstack-default): New target.
34342         (generated): Add that instead of check-execstack.h.
34343         ($(all-built-dso:=.phdr)): New static pattern rule.
34344         (generated): Add those targets.
34345         * elf/check-execstack.c: File removed.
34346
34347         * scripts/check-textrel.awk: New file.
34348         * elf/Makefile ($(objpfx)check-textrel): Target removed.
34349         (check-textrel-CFLAGS): Variable removed.
34350         (all-built-dso): Use := to define.o
34351         ($(all-built-dso:=.dyn)): New static pattern rule.
34352         (generated): Add those targets.
34353         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
34354         * config.make.in (READELF): New substituted variable.
34355         * elf/check-textrel.c: File removed.
34356
34357 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34358
34359         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34360         allow.
34361         * conform/data/ctype.h-data [C99-based standards] (isblank):
34362         Expect function.
34363         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
34364         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
34365         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34366         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
34367         Specify type.  Require positive value.
34368         (EILSEQ): Likewise.
34369         (ERANGE): Likewise.
34370         [ISO || POSIX] (EILSEQ): Do not expect.
34371         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
34372         Specify type.  Require positive value.
34373         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
34374         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
34375         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
34376         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
34377         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
34378         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
34379         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
34380         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
34381         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
34382         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
34383         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
34384         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
34385         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
34386         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
34387         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
34388         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
34389         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
34390         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
34391         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
34392         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
34393         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
34394         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
34395         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
34396         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
34397         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
34398         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
34399         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
34400         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
34401         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
34402         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
34403         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
34404         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
34405         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
34406         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
34407         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
34408         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
34409         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
34410         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
34411         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
34412         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
34413         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
34414         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
34415         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
34416         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
34417         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
34418         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
34419         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
34420         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
34421         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
34422         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
34423         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
34424         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
34425         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
34426         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
34427         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
34428         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
34429         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
34430         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
34431         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
34432         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
34433         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
34434         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
34435         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
34436         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
34437         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
34438         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
34439         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
34440         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
34441         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
34442         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
34443         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
34444         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
34445         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
34446         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
34447         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
34448         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
34449         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
34450         Require >= 2.
34451         (FLT_ROUNDS): Expect as macro, not constant.
34452         (FLT_MANT_DIG): Use macro-int-constant.
34453         (DBL_MANT_DIG): Likewise.
34454         (LDBL_MANT_DIG): Likewise.
34455         (FLT_DIG): Likewise.
34456         (DBL_DIG): Likewise.
34457         (LDBL_DIG): Likewise.
34458         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
34459         (DBL_MIN_EXP): Likewise.
34460         (LDBL_MIN_EXP): Likewise.
34461         (FLT_MAX_EXP): Use macro-int-constant.
34462         (DBL_MAX_EXP): Likewise.
34463         (LDBL_MAX_EXP): Likewise.
34464         (FLT_MAX_10_EXP): Likewise.
34465         (DBL_MAX_10_EXP): Likewise.
34466         (LDBL_MAX_10_EXP): Likewise.
34467         (FLT_MAX): Use macro-constant.
34468         (DBL_MAX): Likewise.
34469         (LDBL_MAX): Likewise.
34470         (FLT_EPSILON): Use macro-constant.  Give upper bound.
34471         (DBL_EPSILON): Likewise.
34472         (LDBL_EPSILON): Likewise.
34473         (FLT_MIN): Likewise.
34474         (DBL_MIN): Likewise.
34475         (LDBL_MIN): Likewise.
34476         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
34477         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
34478         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
34479         [ISO11] (FLT_HAS_SUBNORM): Likewise.
34480         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
34481         [ISO11] (DBL_DECIMAL_DIG): Likewise.
34482         [ISO11] (FLT_DECIMAL_DIG): Likewise.
34483         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
34484         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
34485         [ISO11] (FLT_TRUE_MIN): Likewise.
34486         [ISO11] (LDBL_TRUE_MIN): Likewise.
34487         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34488         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
34489         (SCHAR_MIN): Use macro-int-constant.  Specify type.
34490         (SCHAR_MAX): Likewise.
34491         (UCHAR_MAX): Likewise.
34492         (CHAR_MIN): Likewise.
34493         (CHAR_MAX): Likewise.
34494         (MB_LEN_MAX): Use macro-int-constant.
34495         (SHRT_MIN): Use macro-int-constant.  Specify type.
34496         (SHRT_MAX): Likewise.
34497         (USHRT_MAX): Likewise.
34498         (INT_MAX): Likewise.
34499         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
34500         bound negative.
34501         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34502         bound with "U".
34503         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34504         bound with "L".
34505         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
34506         bound negative.  Suffix upper bound with "L".
34507         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34508         bound with "UL".
34509         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
34510         Specify type.
34511         [C99-based standards] (LLONG_MAX): Likewise.
34512         [C99-based standards] (ULLONG_MAX): Likewise.
34513         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
34514         == 0.
34515         [ISO11] (max_align_t): Require type.
34516         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34517
34518         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
34519         from $CFLAGS, without defining away __attribute__ calls.
34520         (checknamespace): Use $CFLAGS_namespace.
34521
34522         * conform/conformtest.pl (@keywords): Only include C99 keywords
34523         for standards based on C99 or C11.
34524
34525         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
34526         Disable tests.
34527         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
34528         UNIX98]: Likewise.
34529
34530         * conform/conformtest.pl: Handle "macro-int-constant" and test for
34531         usability of symbols in #if.
34532
34533         * conform/conformtest.pl: If macro or constant types start
34534         "promoted:", expect the symbol to be of the following type
34535         promoted by the integer promotions.
34536
34537         * conform/conformtest.pl: Parse all "constant" and "macro" lines
34538         in one place.  Also handle "macro-constant".
34539
34540         * conform/conformtest.pl: Only accept expected macro values with
34541         "==".  Parse all "macro" lines in one place.
34542         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
34543
34544         * conform/conformtest.pl: Handle braced types on "constant" lines
34545         instead of handling "typed-constant".
34546         * conform/data/signal.h-data: Use "constant" instead of
34547         "typed-constant".
34548
34549         * conform/conformtest.pl: Handle "optional-" at start of lines in
34550         one place rather than duplicating several cases.  Handle each
34551         format of "macro" line with initial "optional-".
34552
34553         * conform/conformtest.pl: Only accept expected constant or
34554         optional-constant values with "==".  Parse all "constant" lines in
34555         one place.  Parse all "optional-constant" lines in one place.
34556         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
34557         * conform/data/fmtmsg.h-data: Likewise.
34558         * conform/data/netinet/in.h-data: Likewise.
34559         * conform/data/tar.h-data: Likewise.
34560         * conform/data/limits.h-data: Use "==" form on "constant" and
34561         "optional-constant" lines.
34562
34563         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
34564         Use -std=c99 for XOPEN2K.
34565         (@knownproblems): Remove.
34566         (newtoken): Don't check %isknown.
34567
34568         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
34569         Do not expect macro.
34570         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
34571         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
34572         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
34573         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
34574         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
34575         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
34576         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
34577         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
34578         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
34579         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
34580         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
34581         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
34582         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
34583         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
34584         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
34585         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
34586         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
34587         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
34588         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
34589         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
34590         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
34591         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
34592         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
34593         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
34594         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
34595         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
34596         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
34597         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
34598         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
34599         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
34600         [XPG3] (acosh): Likewise.
34601         [XPG3] (asinh): Likewise.
34602         [XPG3] (atanh): Likewise.
34603         [XPG3] (cbrt): Likewise.
34604         [XPG3] (expm1): Likewise.
34605         [XPG3] (ilogb): Likewise.
34606         [XPG3] (log1p): Likewise.
34607         [XPG3] (logb): Likewise.
34608         [XPG3] (nextafter): Likewise.
34609         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
34610         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
34611         [XPG3] (remainder): Likewise.
34612         [XPG3] (rint): Likewise.
34613         [XPG3 || XPG4 || UNIX98] (round): Likewise.
34614         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
34615         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
34616         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
34617         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
34618         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
34619         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
34620         [UNIX98 || XOPEN2K] (scalb): Expect.
34621         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
34622         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
34623         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
34624         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
34625         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
34626         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
34627         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
34628         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
34629         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
34630         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
34631         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
34632         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
34633         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
34634         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
34635         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
34636         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
34637         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
34638         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
34639         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
34640         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
34641         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
34642         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
34643         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
34644         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
34645         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
34646         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
34647         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
34648         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
34649         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
34650         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
34651         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
34652         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
34653         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
34654         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
34655         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
34656         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
34657         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
34658         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
34659         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
34660         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
34661         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
34662         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
34663         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
34664         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
34665         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
34666         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
34667         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
34668         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
34669         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
34670         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
34671         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
34672         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
34673         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
34674         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
34675         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
34676         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
34677         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
34678         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
34679         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
34680         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
34681         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
34682         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
34683         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
34684         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
34685         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
34686         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
34687         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
34688         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
34689         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
34690         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
34691         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
34692         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
34693         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
34694         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
34695         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
34696         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
34697         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
34698         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
34699         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
34700         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
34701         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
34702         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
34703         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
34704         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
34705         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
34706         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
34707         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
34708         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
34709         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
34710         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
34711         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
34712         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
34713         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
34714         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
34715         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
34716         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
34717         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
34718         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
34719         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
34720         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
34721         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
34722         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
34723         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
34724         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
34725         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
34726         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
34727         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
34728         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
34729         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
34730         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
34731         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
34732         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
34733         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
34734         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
34735         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
34736         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
34737         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
34738         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
34739         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
34740         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
34741         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
34742         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
34743         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
34744         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
34745         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
34746         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
34747         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
34748         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
34749         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
34750         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
34751         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
34752         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
34753         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
34754         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
34755         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
34756         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
34757         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
34758
34759         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
34760         _XOPEN_SOURCE_EXTENDED for XPG4.
34761
34762         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
34763
34764         * Makeconfig (localtime): Remove variable.
34765         (inst_localtime-file): Likewise.
34766
34767 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34768
34769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
34770         Update.
34771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
34772         Update.
34773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
34774         Update.
34775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
34776         Update.
34777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
34778         Update.
34779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
34780         Update.
34781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
34782         Update.
34783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
34784         Update.
34785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34786         Update.
34787
34788 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34789
34790         [BZ #2550]
34791         [BZ #2570]
34792         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
34793         comparisons to determine direction to adjust input.
34794         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34795         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
34796         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34797         Likewise.
34798         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34799         Likewise.
34800         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34801         Likewise.
34802         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34803         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34804         Likewise.
34805         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34806         Likewise.
34807         * math/libm-test.inc (nexttoward_test): Add more tests.
34808
34809 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34810
34811         [BZ #14040]
34812         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
34813         in version GLIBC_2.1, not GLIBC_2.0.
34814         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
34815         Likewise.
34816
34817 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
34818
34819         [BZ #13942]
34820         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
34821         (1 - x) * (1 + x).
34822         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34823         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
34824         * math/libm-test.inc (acos_test): Add more tests.
34825         (asin_test): Likewise.
34826         * sysdeps/i386/fpu/libm-test-ulps: Update.
34827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34828
34829         [BZ #14034]
34830         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
34831         of square root.
34832         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
34833         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34834         * math/libm-test.inc (acos_test_tonearest): New function.
34835         (acos_test_towardzero): Likewise.
34836         (acos_test_downward): Likewise.
34837         (acos_test_upward): Likewise.
34838         (asin_test_tonearest): Likewise.
34839         (asin_test_towardzero): Likewise.
34840         (asin_test_downward): Likewise.
34841         (asin_test_upward): Likewise.
34842         (main): Call the new functions.
34843         * sysdeps/i386/fpu/libm-test-ulps: Update.
34844         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34845
34846         [BZ #13884]
34847         [BZ #13924]
34848         * math/e_exp10.c: Include <float.h>.
34849         (__ieee754_exp10): Handle underflow here rather than multiplying
34850         large negative argument by M_LN10.
34851         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
34852         of __ieee754_expf.
34853         * math/e_exp10l.c: Include <float.h>.
34854         (__ieee754_exp10l): Handle underflow here rather than multiplying
34855         large negative argument by M_LN10l.
34856         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
34857         spurious overflow exception on underflow.
34858
34859 2012-04-29  Marek Polacek  <polacek@redhat.com>
34860
34861         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
34862         (__fortify_function): New macro.
34863         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
34864         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
34865         __extern_always_inline.
34866         * libio/bits/stdio2.h: Likewise.
34867         * libio/bits/stdio.h: Likewise.
34868         * string/string.h: Likewise.
34869         * string/bits/string3.h: Likewise.
34870         * include/stdio.h: Likewise.
34871         * stdlib/bits/stdlib.h: Likewise.
34872         * stdlib/stdlib.h: Likewise.
34873         * rt/bits/mqueue2.h: Likewise.
34874         * rt/mqueue.h: Likewise.
34875         * posix/bits/unistd.h: Likewise.
34876         * posix/unistd.h: Likewise.
34877         * io/bits/poll2.h: Likewise.
34878         * io/bits/fcntl2.h: Likewise.
34879         * io/fcntl.h: Likewise.
34880         * io/sys/poll.h: Likewise.
34881         * misc/bits/syslog.h: Likewise.
34882         * misc/bits/syslog-ldbl.h: Likewise.
34883         * misc/sys/syslog.h: Likewise.
34884         * socket/bits/socket2.h: Likewise.
34885         * socket/sys/socket.h: Likewise.
34886         * debug/tst-chk1.c: Likewise.
34887         * wcsmbs/bits/wchar2.h: Likewise.
34888         * wcsmbs/bits/wchar-ldbl.h: Likewise.
34889         * wcsmbs/wchar.h: Likewise.
34890
34891 2012-04-29  Andreas Jaeger  <aj@suse.de>
34892
34893         * Makerules (tests): Remove enable-check-abi protection.
34894         (check-abi-warn): Remove.
34895         (check-abi-%): Remove check-abi-warn usage.
34896
34897         * configure.in: Remove check-abi configure option.
34898         * configure: Regenerated.
34899         * config.make.in (enable-check-abi): Remove.
34900
34901 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
34902
34903         [BZ #14033]
34904         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
34905         double functions to double *_finite functions.
34906
34907         [BZ #13941]
34908         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
34909         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
34910         LDBL_MIN_EXP.
34911         * stdio-common/Makefile (tests): Add tst-sprintf3.
34912         * stdio-common/tst-sprintf3.c: New file.
34913
34914         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
34915         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
34916
34917 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34918
34919         * conform/conformtest.pl: Remove duplicate typed-constant
34920         handling.
34921
34922 2012-04-28  David S. Miller  <davem@davemloft.net>
34923
34924         * Makerules (%.abilist): Add vpath on sysdep_dirs.
34925         (check-abi-%): Remove AWK script prerequisite and explicit
34926         abilist directory.
34927         (check-abi): Rewrite to just diff the symlist with the abilist.
34928         (config-tls, config-abi-config): Delete, no longer used.
34929         (update-abi-%): Remove AWK script and explicit abilist directory.
34930         (update-abi): Rewrite to simply compare and conditionally copy the
34931         symlist and the sysdep abilist file.  Remove update-abi-config
34932         checks.
34933         * abilist/ld.abilist: Remove.
34934         * abilist/libBrokenLocale.abilist: Remove.
34935         * abilist/libanl.abilist: Remove.
34936         * abilist/libcrypt.abilist: Remove.
34937         * abilist/libdl.abilist: Remove.
34938         * abilist/librt.abilist: Remove.
34939         * abilist/libthread_db.abilist: Remove.
34940         * abilist/libutil.abilist: Remove.
34941         * scripts/extract-abilist.awk: Remove.
34942         * scripts/merge-abilist.awk: Remove.
34943         * sysdeps/generic/libcidn.abilist: New file.
34944         * sysdeps/generic/libnss_compat.abilist: New file.
34945         * sysdeps/generic/libnss_db.abilist: New file.
34946         * sysdeps/generic/libnss_dns.abilist: New file.
34947         * sysdeps/generic/libnss_files.abilist: New file.
34948         * sysdeps/generic/libnss_hesiod.abilist: New file.
34949         * sysdeps/generic/libnss_nis.abilist: New file.
34950         * sysdeps/generic/libnss_nisplus.abilist: New file.
34951         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
34952         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
34953         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
34954         file.
34955         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
34956         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
34957         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
34958         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
34959         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
34960         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
34961         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
34962         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
34963         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
34964         file.
34965         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
34966         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
34967         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
34968         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
34969         file.
34970         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
34971         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
34972         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
34973         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
34974         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
34975         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
34976         file.
34977         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
34978         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
34979         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
34980         file.
34981         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
34982         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
34983         New file.
34984         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
34985         New file.
34986         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
34987         New file.
34988         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
34989         New file.
34990         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
34991         New file.
34992         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
34993         New file.
34994         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
34995         New file.
34996         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
34997         New file.
34998         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
34999         New file.
35000         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
35001         New file.
35002         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
35003         New file.
35004         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
35005         New file.
35006         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
35007         New file.
35008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
35009         file.
35010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
35011         New file.
35012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
35013         New file.
35014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
35015         file.
35016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
35017         New file.
35018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
35019         New file.
35020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
35021         file.
35022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
35023         New file.
35024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
35025         New file.
35026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
35027         New file.
35028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
35029         New file.
35030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
35031         New file.
35032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
35033         New file.
35034         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
35035         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
35036         file.
35037         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35038         New file.
35039         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
35040         file.
35041         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
35042         file.
35043         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
35044         file.
35045         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
35046         file.
35047         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
35048         file.
35049         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35050         New file.
35051         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
35052         file.
35053         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
35054         file.
35055         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35056         New file.
35057         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
35058         file.
35059         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
35060         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
35061         file.
35062         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35063         New file.
35064         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
35065         file.
35066         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
35067         file.
35068         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
35069         file.
35070         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
35071         file.
35072         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
35073         file.
35074         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35075         New file.
35076         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
35077         file.
35078         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
35079         file.
35080         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35081         New file.
35082         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
35083         file.
35084         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
35085         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
35086         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
35087         file.
35088         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
35089         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
35090         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
35091         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
35092         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
35093         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
35094         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
35095         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
35096         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
35097         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
35098         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
35099         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
35100         file.
35101         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35102         New file.
35103         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
35104         file.
35105         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
35106         file.
35107         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
35108         file.
35109         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
35110         file.
35111         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
35112         file.
35113         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35114         New file.
35115         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35116         New file.
35117         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
35118         file.
35119         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35120         New file.
35121         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
35122         file.
35123         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
35124         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
35125         file.
35126         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35127         New file.
35128         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
35129         file.
35130         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
35131         file.
35132         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
35133         file.
35134         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
35135         file.
35136         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
35137         file.
35138         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35139         New file.
35140         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35141         New file.
35142         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
35143         file.
35144         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35145         New file.
35146         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
35147         file.
35148
35149 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35150
35151         * conform/conformtest.pl: Fix typo in handling typed-constant from
35152         allow-header.
35153
35154 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35155
35156         * README: Cut down references to pre-2.6 Linux kernels and
35157         Linuxthreads.  Update lists of configurations in libc and ports
35158         and sort alphabetically.  Say "or newer" with Linux kernel version
35159         requirements.
35160
35161         * config.h.in [IS_IN_build]: Allow compiling without optimization.
35162
35163 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
35164
35165         [BZ #887]
35166         * math/libm-test.inc (logb_test_downward): New test to expose
35167         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
35168         rounding mode.
35169
35170 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35171
35172         [BZ #14027]
35173         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
35174         to be done.
35175         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
35176         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
35177
35178 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
35179
35180         * sysdeps/unix/i386/brk.S: Remove file.
35181         * sysdeps/unix/i386/dl-brk.S: Likewise.
35182         * sysdeps/unix/i386/pipe.S: Likewise.
35183         * sysdeps/unix/i386/sigreturn.S: Likewise.
35184         * sysdeps/unix/i386/syscall.S: Likewise.
35185         * sysdeps/unix/i386/vfork.S: Likewise.
35186         * sysdeps/unix/i386/wait.S: Likewise.
35187
35188         * sysdeps/unix/common/tcsendbrk.c: Move to ...
35189         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
35190
35191         * configure.in (arm*-none*): Do not allow without
35192         --enable-hacker-mode.
35193         (netbsd*): Remove case setting base_os.
35194         (386bsd*): Likewise.
35195         (freebsd*): Likewise.
35196         (bsdi*): Likewise.
35197         (osf*): Likewise.
35198         (sunos*): Likewise.
35199         (ultrix*): Likewise.
35200         (newsos*): Likewise.
35201         (dynix*): Likewise.
35202         (*bsd*): Likewise.
35203         (sysv*): Likewise.
35204         (isc*): Likewise.
35205         (esix*): Likewise.
35206         (sco*): Likewise.
35207         (minix*): Likewise.
35208         (irix4*): Likewise.
35209         (irix6*): Likewise.
35210         (solaris[2-9]*): Likewise.
35211         (none): Likewise.
35212         * configure: Regenerated.
35213
35214 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35215
35216         [BZ #11521]
35217         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
35218         overflow or cancellation in calculating denominator.
35219         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
35220         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
35221         down expression to avoid unexpected rounding in newer GCCs.
35222         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
35223
35224 2012-04-26  David S. Miller  <davem@davemloft.net>
35225
35226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
35227         long-double compat symbols.
35228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
35229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
35230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
35231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
35232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
35233         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
35234         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
35235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
35236         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
35237         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
35238         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
35239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
35240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
35241
35242 2012-04-25  David S. Miller  <davem@davemloft.net>
35243
35244         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
35245         HWCAP_* values only after the memory barriers have been defined.
35246         (atomic_full_barrier): Define.
35247         (atomic_read_barrier): Define.
35248         (atomic_write_barrier): Define.
35249
35250 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35251
35252         * shlib-versions: Add libgcc_s version information.
35253         * sysdeps/generic/libgcc_s.h: Remove.
35254         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
35255         libgcc_s.h.
35256         * sysdeps/gnu/unwind-resume.c: Likewise.
35257         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
35258
35259 2012-04-25  David S. Miller  <davem@davemloft.net>
35260
35261         * sysdeps/unix/sparc/brk.S: Delete.
35262         * sysdeps/unix/sparc/dl-brk.S: Delete.
35263         * sysdeps/unix/sparc/pipe.S: Delete.
35264         * sysdeps/unix/sparc/sysdep.S: Delete.
35265         * sysdeps/unix/sparc/sysdep.h: Delete.
35266         * sysdeps/unix/sparc/vfork.S: Delete.
35267         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
35268         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
35269         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
35270         (ret_ERRVAL, r0, r1, MOVE): Define.
35271         (JUMPTARGET): Remove.
35272         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
35273         sysdeps/unix/sparc/sysdep.h
35274         (ENTRY, END): Remove.
35275         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
35276
35277 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
35278
35279         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
35280         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
35281         -DIS_IN_build.
35282
35283         * timezone/README: Update upstream location and email address for
35284         tzcode and tzdata.
35285         * timezone/zdump.c: Update from tzcode 2012b.
35286         * timezone/zic.c: Likewise.
35287
35288         * configure.in (libc_cv_as_needed): Remove test.
35289         * configure: Regenerated.
35290         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
35291         conditional definition.
35292         [$(have-as-needed) != yes] (no-as-needed): Likewise.
35293         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
35294         * config.make.in (have-as-needed): Remove variable.
35295
35296 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
35297             Paul Pluzhnikov  <ppluzhnikov@google.com>
35298
35299         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
35300         strings correctly.
35301
35302 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
35303
35304         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
35305         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
35306         * sysdeps/sh/strlen.S: Likewise.
35307
35308 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35309
35310         * sysdeps/unix/fork.S: Remove file.
35311         * sysdeps/unix/i386/fork.S: Likewise.
35312         * sysdeps/unix/sparc/fork.S: Likewise.
35313
35314         * sysdeps/unix/system.c: Remove file.
35315         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
35316
35317         * sysdeps/unix/getegid.S: Remove file.
35318         * sysdeps/unix/geteuid.S: Likewise.
35319
35320 2012-04-24  Roland McGrath  <roland@hack.frob.com>
35321
35322         * scripts/check-localplt.awk: New file.
35323         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
35324         of diff.
35325         * scripts/data/localplt-generic.data: Add a comment.
35326
35327         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
35328         NODE when __dir_mkfile failed.
35329         * sysdeps/mach/hurd/symlinkat.c: Likewise.
35330         Reported by Ludovic Courtès <ludo@gnu.org>.
35331
35332 2012-04-24  Andreas Jaeger  <aj@suse.de>
35333
35334         * Makerules (common-clean): Also remove gen-as-const-headers
35335         files.
35336
35337 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35338
35339         * Makerules (native-compile): Do not change working directory for
35340         build.  Use $(OUTPUT_OPTION) in command.
35341         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
35342
35343 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35344
35345         [BZ #13886]
35346         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
35347         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
35348         * math/libm-test.inc (floor_test): Add more tests.
35349         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
35350
35351 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35352
35353         * sysdeps/unix/getdents.c: Remove file.
35354         * sysdeps/unix/sysv/getdents.c: Likewise.
35355         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
35356
35357         * sysdeps/unix/syscalls.list (madvise): Add syscall from
35358         sysdeps/unix/mman/syscalls.list.
35359         (mmap): Likewise.
35360         (mprotect): Likewise.
35361         (msync): Likewise.
35362         (munmap): Likewise.
35363         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
35364         * sysdeps/unix/mman/syscalls.list: Remove.
35365         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
35366
35367         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
35368         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
35369         * configure: Regenerated.
35370         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
35371         $(libgcc_s_suffix).
35372         * config.make.in (libgcc_s_suffix): Remove variable.
35373
35374 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
35375
35376         * sysdeps/unix/sysv/gethostname.c: Move to ...
35377         * sysdeps/posix/gethostname.c: ... here.
35378
35379         * sysdeps/unix/execve.S: Remove file.
35380
35381         * sysdeps/unix/_exit.S: Remove file.
35382
35383 2012-04-23  Andreas Jaeger  <aj@suse.de>
35384
35385         [BZ #13739]
35386         * manual/Makefile: Remove make dist support, there's no
35387         need for a stand-alone documentation tar ball.
35388         (TEXI2DVI): Define always, it's not in Makeconfig.
35389         (dist): Removed.
35390         (tar-it): Removed.
35391         (edition): Removed.
35392         (glibc-doc-$(edition).tar): Removed
35393         (%.Z): Removed.
35394         (%.gz): Removed.
35395         (%.uu): Removed.
35396         (ETAGS): Remove, it's in Makeconfig.
35397         (move-if-change): Remove, it's in Makeconfig.
35398
35399 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
35400
35401         [BZ #13970]
35402         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
35403         (strtod, strtof, strtold, strtol, strtoul, strtoq)
35404         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
35405         (strtod_l, strtof_l, strtold_l): Remove __wur.
35406         It is not necessarily an error to ignore strtol's return value.
35407         One can reliably look at the stored endptr to decide whether
35408         the number had valid syntax.
35409
35410 2012-04-21  Andreas Jaeger  <aj@suse.de>
35411
35412         [BZ #13739]
35413         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
35414
35415 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
35416
35417         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
35418         * sysdeps/unix/sysv/Versions: Remove file.
35419
35420 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
35421
35422         [BZ #13927]
35423         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35424
35425 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
35426
35427         [BZ #7064]
35428         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
35429         version from __vm86.
35430
35431 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
35432
35433         * sysdeps/unix/common/lxstat.c: Remove file.
35434         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
35435
35436         * sysdeps/unix/sysv/Makefile: Remove file.
35437
35438         * sysdeps/unix/sysv/direct.h: Remove file.
35439
35440         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
35441         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
35442         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
35443         * sysdeps/unix/sysv/bits/signum.h: Likewise.
35444         * sysdeps/unix/sysv/bits/stat.h: Likewise.
35445         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
35446         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
35447
35448         * sysdeps/unix/sysv/setrlimit.c: Remove file.
35449
35450         * sysdeps/unix/xmknod.c: Remove file.
35451         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
35452
35453         * sysdeps/unix/sysv/settimeofday.c: Remove file.
35454
35455         * sysdeps/unix/sysv/i386/time.S: Remove file.
35456
35457         * sysdeps/unix/fxstat.c: Remove file.
35458         * sysdeps/unix/xstat.c: Likewise.
35459         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
35460
35461         * sysdeps/unix/sysv/sigaction.c: Remove file.
35462
35463         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
35464         (sysdep_headers): Remove variable.
35465         [termio.h not in sysdep_headers] (generated): Likewise.
35466         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
35467         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
35468         * sysdeps/unix/sysv/tcdrain.c: Likewise.
35469         * sysdeps/unix/sysv/tcflow.c: Likewise.
35470         * sysdeps/unix/sysv/tcflush.c: Likewise.
35471         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
35472         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
35473         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
35474         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
35475         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
35476
35477         * sysdeps/unix/siglist.c: Remove file.
35478
35479         * sysdeps/unix/getppid.S: Remove file.
35480
35481         * sysdeps/unix/mkdir.c: Remove file.
35482         * sysdeps/unix/rmdir.c: Likewise.
35483
35484 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
35485
35486         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
35487         ERR_MAX value.
35488         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
35489         errlist-compat value.
35490
35491 2012-04-18  David S. Miller  <davem@davemloft.net>
35492
35493         * sysdeps/generic/memcopy.h (reg_char): Delete.
35494         * debug/strcat_chk.c: Use char, not reg_char.
35495         * debug/strcpy_chk.c: Likewise.
35496         * debug/strncat_chk.c: Likewise.
35497         * debug/strncpy_chk.c: Likewise.
35498         * string/memchr.c: Likewise.
35499         * string/memrchr.c: Likewise.
35500         * string/rawmemchr.c: Likewise.
35501         * string/strcat.c: Likewise.
35502         * string/strchr.c: Likewise.
35503         * string/strchrnul.c: Likewise.
35504         * string/strcmp.c: Likewise.
35505         * string/strcpy.c: Likewise.
35506         * string/strncat.c: Likewise.
35507         * string/strncmp.c: Likewise.
35508         * string/strncpy.c: Likewise.
35509
35510 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35511
35512         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
35513         __builtin_memcopy is called when src and dest ranges are known to not
35514         overlap.
35515
35516 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35517
35518         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
35519         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
35520         fwd_align_merge macro call.
35521         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
35522         bwd_align_merge macro call.
35523         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35524
35525 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35526
35527         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
35528         bwd_align_merge macros.
35529         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
35530         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
35531         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35532
35533 2012-04-18  David S. Miller  <davem@davemloft.net>
35534
35535         * sysdeps/sparc/sparc64/memcopy.h: Delete.
35536
35537 2012-04-18  Andreas Jaeger  <aj@suse.de>
35538
35539         [BZ# 6794]
35540         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
35541         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
35542         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35543
35544         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
35545         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
35546         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35547
35548         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
35549         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
35550         Adjust for changed ldbl-128 files.
35551
35552         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
35553         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
35554         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35555
35556 2012-04-17  David S. Miller  <davem@davemloft.net>
35557
35558         * sysdeps/sparc/sparc32/memcopy.h: Delete.
35559
35560 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
35561
35562         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
35563         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
35564         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
35565         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
35566         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
35567         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
35568
35569 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35570
35571         [BZ #6794]
35572         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
35573         * math/libm-test.inc: Add ilogb errno and exception tests.
35574         * math/w_ilogb.c: New file: ilogb wrapper.
35575         * math/w_ilogbf.c: New file: ilogbf wrapper.
35576         * math/w_ilogbl.c: New file: ilogbl wrapper.
35577         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
35578         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
35579         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
35580         exception being thrown with 0.0 as argument.
35581         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
35582         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
35583         exception being thrown with 0.0 as argument.
35584         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
35585         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35586         exception being thrown with 0.0 as argument.
35587         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
35588         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35589         exception being thrown with 0.0 as argument.
35590         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
35591         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
35592         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
35593         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
35594         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
35595         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
35596         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
35597         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
35598         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
35599
35600 2012-04-17  Petr Baudis  <pasky@ucw.cz>
35601
35602         * include/sys/uio.h: Change __vector to __iovec to avoid clash
35603         with altivec.
35604
35605 2012-04-16  Marek Polacek  <polacek@redhat.com>
35606
35607         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
35608
35609 2012-04-16  Marek Polacek  <polacek@redhat.com>
35610
35611         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
35612         operands of fdivp instruction.
35613
35614 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35615
35616         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
35617         * elf/tst-auditmod3b.c: Likewise.
35618         * elf/tst-auditmod4b.c: Likewise.
35619         * elf/tst-auditmod5b.c: Likewise.
35620         * elf/tst-auditmod6b.c: Likewise.
35621         * elf/tst-auditmod6c.c: Likewise.
35622         * elf/tst-auditmod7b.c: Likewise.
35623         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
35624         * sysdeps/x86_64/preconfigure.in: Likewise.
35625         * sysdeps/x86_64/preconfigure: Regenerated.
35626
35627 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35628
35629         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
35630         __ILP32__.
35631
35632 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
35633
35634         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35635         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
35636
35637 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
35638
35639         [BZ #13973]
35640         * locale/iso-639.def: Fix gl language name. Spotted by
35641         Yaron Shahrabani.
35642
35643 2012-04-12  Roland McGrath  <roland@hack.frob.com>
35644
35645         [BZ #2074]
35646         * libio/libio.h (__io_write_fn): Update comment.
35647
35648 2012-04-12  Petr Baudis  <pasky@ucw.cz>
35649
35650         [BZ #2074]
35651         * stdio.texi (Hook Functions): The user provided writer function
35652         is not allowed to return -1.
35653
35654 2012-04-11  David S. Miller  <davem@davemloft.net>
35655
35656         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35657
35658 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
35659
35660         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
35661         Add a leading slash to rtkaio.
35662
35663 2012-04-11  Jim Meyering  <meyering@redhat.com>
35664
35665         [BZ #11959]
35666         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
35667         It is not necessarily an error to ignore fwrite's return
35668         value.  One can reliably use ferror to test for errors after
35669         the fact.
35670
35671 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35672
35673         * bits/types.h (__snseconds_t): New type.
35674         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
35675
35676         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
35677         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
35678         (__SNSECONDS_T_TYPE): Likewise.
35679         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
35680         (__SNSECONDS_T_TYPE): Likewise.
35681         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
35682         (__SNSECONDS_T_TYPE): Likewise.
35683
35684 2012-04-10  Andreas Jaeger  <aj@suse.de>
35685
35686         [BZ #2636]
35687         * manual/time.texi (Processor Time): Return type of times is
35688         elapsed real time since an arbitrary point in the past.
35689         (CPU Time): Move CLK_TCK from here...
35690         (Processor Time): ...to here.  Correct description.
35691         * manual/conf.texi (Constants for Sysconf): Correct description of
35692         _SC_CLK_TCK.
35693
35694 2012-04-10  David S. Miller  <davem@davemloft.net>
35695
35696         [BZ #13967]
35697         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
35698         where the is a gap between DT_REL(A) and DT_JMPREL.
35699
35700 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35701
35702         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
35703         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35704         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35705
35706 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35707
35708         * elf/dl-support.c (_dl_inhibit_cache): New variable.
35709         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
35710         (dl_main): Handle --inhibit-cache.
35711         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
35712         _dl_inhibit_cache.
35713         * elf/dl-load.c (_dl_map_object): Use it.
35714         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
35715
35716 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35717
35718         [BZ #13872]
35719         * sysdeps/i386/fpu/e_powl.S (p78): New object.
35720         (__ieee754_powl): Saturate large exponents rather than testing for
35721         overflow of y*log2(x).
35722         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
35723         * math/libm-test.inc (pow_test): Do not permit spurious overflow
35724         exceptions.
35725
35726         [BZ #11521]
35727         * math/s_ctan.c: Include <float.h>.
35728         (__ctan): Avoid internal overflow or cancellation in calculating
35729         denominator.
35730         * math/s_ctanf.c: Likewise.
35731         * math/s_ctanl.c: Likewise.
35732         * math/s_ctanh.c: Likewise.
35733         * math/s_ctanhf.c: Likewise.
35734         * math/s_ctanhl.c: Likewise.
35735         * math/libm-test.inc (ctan_test): Add more tests.
35736         (ctanh_test): Likewise.
35737         * sysdeps/i386/fpu/libm-test-ulps: Update.
35738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35739
35740 2012-04-09  Andreas Jaeger  <aj@suse.de>
35741
35742         [BZ #6894]
35743         * manual/filesys.texi (Directory Entries): Mention that d_namlen
35744         is an optional BSD extension.
35745
35746         [BZ #10254]
35747         * manual/stdio.texi (Opening Streams): Document additional fopen
35748         parameters.
35749
35750 2012-04-09  Roland McGrath  <roland@hack.frob.com>
35751
35752         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
35753         %eax without telling the compiler.
35754
35755 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
35756
35757         [BZ # 13963]
35758         * manual/install.texi: Use sourceware.org.
35759
35760 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35761
35762         [BZ #13873]
35763         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
35764         (__ieee754_pow): Generate overflow and underflow using huge*huge
35765         and tiny*tiny rather than just returning constant infinity or zero
35766         for large exponents.
35767         * math/libm-test.inc (pow_test): Require overflow exceptions for
35768         applicable cases of large exponents.
35769
35770         [BZ #706]
35771         * sysdeps/i386/fpu/e_pow.S (p10): New object.
35772         (__ieee754_pow): Use iterative multiplication algorithm only for
35773         integer exponents with absolute value below 1024.  Check for odd
35774         integer exponents when using algorithm for real exponents.
35775         * math/libm-test.inc (pow_test): Add more tests.
35776         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35777
35778 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
35779
35780         [BZ #13705]
35781         * math/libm-test.inc (exp_test): Do not allow overflow exception
35782         on underflow test.
35783
35784 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
35785
35786         [BZ #13705]
35787         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
35788         instead of __kernel_standard_f.
35789
35790 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
35791
35792         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
35793         * sysdeps/x86_64/memset_chk.S: Likewise.
35794
35795 2012-04-08  Andreas Jaeger  <aj@suse.de>
35796
35797         [BZ #10153]
35798         * manual/startup.texi (Environment Access): Describe return value
35799         for putenv and setenv.
35800
35801         [BZ #6895]
35802         * manual/filesys.texi (Directory Entries): Add description for
35803         DT_LNK.
35804
35805         [BZ #6890]
35806         * manual/filesys.texi (Directory Entries): Clarify that it's file
35807         system not operating system in the description of DT_UNKNOWN.
35808
35809         [BZ #6578]
35810         * manual/syslog.texi (closelog): Fix reference, it's openlog.
35811
35812 2012-04-08  Stephen Compall  <s11@member.fsf.org>
35813
35814         [BZ #6649]
35815         * manual/llio.texi (Opening and Closing Files): Add cross
35816         reference to explain mode argument.
35817
35818 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
35819
35820         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
35821         * sysdeps/x86_64/memset_chk.S: Likewise.
35822
35823 2012-04-07  David S. Miller  <davem@davemloft.net>
35824
35825         * elf/elf.h (R_SPARC_WDISP10): Define.
35826         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
35827         R_SPARC_SIZE32.
35828         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
35829         R_SPARC_SIZE64 and R_SPARC_H34.
35830
35831 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
35832
35833         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
35834         conditions and remove no longer applicable assertion.
35835
35836 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35837
35838         * bits/byteswap.h: Include <features.h>.
35839         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35840         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35841
35842 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35843
35844         * bits/byteswap.h (__bswap_16): Removed.
35845         Include <bits/byteswap-16.h> to get __bswap_16.
35846         * sysdeps/i386/bits/byteswap.h: Likewise.
35847         * sysdeps/s390/bits/byteswap.h: Likewise.
35848         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35849         * bits/byteswap-16.h: New file.
35850         * sysdeps/i386/bits/byteswap-16.h: Likewise.
35851         * sysdeps/s390/bits/byteswap-16.h: Likewise.
35852         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
35853         * string/Makefile (headers): Add bits/byteswap-16.h.
35854
35855 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35856
35857         [BZ #13895]
35858         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
35859         extra indirection.
35860         * nss/Makefile (tests-static, tests): Add tst-nss-static.
35861         * nss/tst-nss-static.c: New.
35862
35863 2012-04-06  Robert Millan  <rmh@gnu.org>
35864
35865         [BZ #6486]
35866         * manual/llio.texi (File Position Primitive): lseek
35867         refers to WHENCE when it really means OFFSET.
35868
35869 2012-04-06  Andreas Jaeger  <aj@suse.de>
35870
35871         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
35872         strncmp declarations.
35873
35874         * abilist/libc.abilist: Add __poll and __ppoll.
35875
35876 2012-04-05  David S. Miller  <davem@davemloft.net>
35877
35878         * scripts/check-local-headers.sh: Accept a host triplet in the
35879         path matched by the exclude regexp.
35880
35881         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
35882         definition.
35883         * sysdeps/powerpc/powerpc32/dl-machine.h
35884         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
35885         * sysdeps/s390/s390-32/dl-machine.h
35886         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35887         * sysdeps/sparc/sparc32/dl-machine.h
35888         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35889         * sysdeps/sparc/sparc64/dl-machine.h
35890         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35891
35892         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
35893         lazy binding.
35894         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
35895         undefined symbol errors.
35896
35897         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
35898         DT_NEEDED entries.
35899
35900 2012-04-05  Michael Matz  <matz@suse.de>
35901
35902         [BZ #13592]
35903         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
35904
35905 2012-04-05  Andreas Jaeger  <aj@suse.de>
35906
35907         [BZ #13908]
35908         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
35909         comment.
35910
35911 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35912
35913         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
35914         which ROUND is no valid rounding mode.
35915
35916 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35917
35918         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
35919         read again.
35920         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
35921
35922 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35923
35924         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
35925         an exception using FPU order intentionally.
35926
35927 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35928
35929         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
35930         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
35931         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
35932         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
35933
35934 2012-04-05  Simon Josefsson  <simon@josefsson.org>
35935
35936         [BZ #12340]
35937         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
35938         EINVAL when BUFLEN is too smal.
35939
35940 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
35941
35942         [BZ #13553]
35943         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
35944         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
35945
35946 2012-04-03  Andreas Jaeger  <aj@suse.de>
35947
35948         [BZ #13938]
35949         * manual/setjmp.texi (System V contexts): Fix sentence.
35950
35951         [BZ #13926]
35952         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
35953         New macro for this case.
35954         [!__GNUC__] (__bswap_64): New inline function for this case.
35955         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35956         * bits/byteswap.h: Likewise.
35957         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
35958         ull, guard with __GLIBC_HAVE_LONG_LONG.
35959
35960         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
35961         __GLIBC_HAVE_LONG_LONG.
35962
35963         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
35964         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
35965
35966 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
35967
35968         [BZ #13691]
35969         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
35970         inptr and inend, rather than using last_ch.
35971
35972 2012-04-02  David S. Miller  <davem@davemloft.net>
35973
35974         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
35975         * stdio-common/printf-parse.h (read_int): Change return type to
35976         'int', return -1 on INT_MAX overflow.
35977         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
35978         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
35979         overflows INT_MAX.  Check for overflow of in-format-string precision
35980         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
35981         SIZE_MAX not INT_MAX for integer overflow test.
35982         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
35983         skip the construct in the format string but do not record anything.
35984         * stdio-common/bug22.c: Adjust to test both width/prevision
35985         INT_MAX overflow as well as total length INT_MAX overflow.  Check
35986         explicitly for proper errno values.
35987
35988 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
35989
35990         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
35991         CHAR_MAX.
35992         * string/test-strcmp.c [! WIDE]: Likewise.
35993         * time/tst-mktime2.c: Likewise for INT_MAX.
35994         * string/test-string.h: #include <sys/param.h> for MIN.
35995
35996         * csu/init-first.c (__libc_init_first): Call __ctype_init.
35997         * sysdeps/i386/init-first.c (init): Likewise.
35998         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
35999         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
36000         * sysdeps/sh/init-first.c (init): Likewise.
36001
36002 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
36003
36004         * po/ru.po: Update from translation team.
36005         * po/vi.po: Likewise.
36006
36007 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36008
36009         * resolv/nss_dns/dns-host.c: Merge copyright years.
36010
36011 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
36012
36013         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
36014         Optimize memcpy with prefetch if
36015         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
36016         src, dst pointers have unequal 16 byte alignments.
36017
36018 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
36019
36020         [BZ #13928]
36021         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
36022         from a CNAME entry and return the minimum ttl for the query.
36023         (gaih_getanswer_slice): Likewise.
36024
36025 2012-03-30  Jeff Law  <law@redhat.com>
36026
36027         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
36028         due to long keys.
36029         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
36030         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
36031
36032         * resolv/nss_dns/dns-host.c: Update copyright year.
36033
36034 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
36035
36036         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
36037         requests to save a system call.  Fix check that all bytes are sent.
36038
36039         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
36040         comments for sendmmsg.
36041
36042 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
36043
36044         [BZ #13691]
36045         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
36046         with only 1 character between 0x0041 and 0x01b0.
36047         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
36048         * wcsmbs/tst-mbsnrtowcs.c: New file.
36049
36050 2012-03-29  David S. Miller  <davem@davemloft.net>
36051
36052         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
36053         small copies by hand.
36054
36055 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
36056
36057         [BZ #13761]
36058         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
36059         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
36060         group memberships.
36061
36062 2012-03-28  David S. Miller  <davem@davemloft.net>
36063
36064         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
36065         that branches into memcpy.
36066         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
36067         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
36068         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
36069         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
36070         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
36071         bits.
36072         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
36073         implementation too.
36074         * sysdeps/sparc/mempcpy.S: New file.
36075
36076         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
36077         the IFUNC routine in the libc case.
36078         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36079
36080         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
36081         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
36082         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
36083         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
36084         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
36085         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
36086         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
36087         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
36088
36089         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
36090         loop to 256 bytes instead of 64 bytes and fix test signedness.
36091
36092         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
36093         * sysdeps/sparc/sparc32/Makefile: rather than here...
36094         * sysdeps/sparc/sparc64/Makefile: and here.
36095
36096 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
36097
36098         * malloc/mallocbug.c: Avoid warnings about unused variables.
36099
36100 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
36101
36102         [BZ #13760]
36103         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
36104         in the right place. Discard and retry query if response is
36105         larger than input buffer size.
36106
36107 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
36108
36109         [BZ #369]
36110         [BZ #2678]
36111         [BZ #3866]
36112         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
36113         x for large integer exponent.
36114         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36115         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
36116         sign of result as needed afterwards.
36117         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
36118         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
36119         result for underflowing pow the same as for overflow.
36120         (__kernel_standard_l): Handle powl overflow and underflow here
36121         rather than calling __kernel_standard.
36122         * math/libm-test.inc (pow_test): Add more tests.
36123
36124         [BZ #3868]
36125         [BZ #13879]
36126         [BZ #13910]
36127         [BZ #13911]
36128         [BZ #13912]
36129         [BZ #13913]
36130         [BZ #13915]
36131         [BZ #13916]
36132         [BZ #13917]
36133         [BZ #13918]
36134         [BZ #13919]
36135         [BZ #13920]
36136         [BZ #13921]
36137         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
36138         * sysdeps/ieee754/k_standard.c: Include <float.h>.
36139         (__kernel_standard_l): New function.
36140         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
36141         __kernel_standard.
36142         * math/w_acosl.c (__acosl): Likewise.
36143         * math/w_asinl.c (__asinl): Likewise.
36144         * math/w_atan2l.c (__atan2l): Likewise.
36145         * math/w_atanhl.c (__atanhl): Likewise.
36146         * math/w_coshl.c (__coshl): Likewise.
36147         * math/w_exp10l.c (__exp10l): Likewise.
36148         * math/w_exp2l.c (__exp2l): Likewise.
36149         * math/w_fmodl.c (__fmodl): Likewise.
36150         * math/w_hypotl.c (__hypotl): Likewise.
36151         * math/w_j0l.c (__j0l, __y0l): Likewise.
36152         * math/w_j1l.c (__j1l, __y1l): Likewise.
36153         * math/w_jnl.c (__jnl, __ynl): Likewise.
36154         * math/w_lgammal.c (__lgammal): Likewise.
36155         * math/w_log10l.c (__log10l): Likewise.
36156         * math/w_log2l.c (__log2l): Likewise.
36157         * math/w_logl.c (__logl): Likewise.
36158         * math/w_powl.c (__powl): Likewise.
36159         * math/w_remainderl.c (__remainderl): Likewise.
36160         * math/w_scalbl.c (sysv_scalbl): Likewise.
36161         * math/w_sinhl.c (__sinhl): Likewise.
36162         * math/w_sqrtl.c (__sqrtl): Likewise.
36163         * math/w_tgammal.c (__tgammal): Likewise.
36164         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
36165         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
36166         * math/libm-test.inc (acos_test): Add more tests.
36167         (acosh_test): Likewise.
36168         (asin_test): Likewise.
36169         (atanh_test): Likewise.
36170         (exp_test): Likewise.
36171         (exp10_test): Likewise.
36172         (exp2_test): Likewise.
36173         (expm1_test): Likewise.
36174         (lgamma_test): Likewise.
36175         (log_test): Likewise.
36176         (log10_test): Likewise.
36177         (log1p_test): Likewise.
36178         (log2_test): Likewise.
36179         (pow_test): Do not allow some spurious overflow exceptions.
36180         (sqrt_test): Add more tests.
36181         (tgamma_test): Likewise.
36182         (y0_test): Likewise.
36183         (y1_test): Likewise.
36184         (yn_test): Likewise.
36185
36186 2012-03-27  Anton Blanchard  <anton@samba.org>
36187
36188         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
36189         MAP_HUGETLB.
36190         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36191         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36192         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36193
36194 2012-03-27  David S. Miller  <davem@davemloft.net>
36195
36196         * conform/Makefile: Run run-conformtest.sh using $(BASH).
36197
36198         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
36199         have-as-vis3 check.
36200
36201 2012-03-27  Andreas Jaeger  <aj@suse.de>
36202
36203         * sysdeps/x86_64/elf/configure.in: Moved to ...
36204         * sysdeps/x86_64/configure.in: ... here.
36205         * sysdeps/x86_64/elf/start.S: Moved to ...
36206         * sysdeps/x86_64/start.S: ... here.
36207         * sysdeps/x86_64/elf/configure: Delete.
36208
36209         * sysdeps/x86_64/configure.in: Merge contents from
36210         sysdeps/i386/configure.in (without i686 check).
36211
36212         * sysdeps/i386/elf/Versions: Merge into ...
36213         * sysdeps/i386/Versions: ... this.
36214         * sysdeps/i386/elf/Versions: Delete file.
36215         * sysdeps/i386/elf/start.S: Moved to ...
36216         * sysdeps/i386/start.S: ...here.
36217         * sysdeps/i386/elf/configure.in: Merge into...
36218         * sysdeps/i386/configure.in: ...here.
36219         * sysdeps/i386/elf/configure.in: Delete file.
36220         * sysdeps/i386/elf/configure: Delete file.
36221
36222         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
36223         * debug/backtracesyms.c: ... here.
36224         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
36225         * debug/backtracesymsfd.c: ... here.
36226         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
36227         * sysdeps/generic/ifunc-sel.h: ... here.
36228
36229         * sysdeps/unix/i386/start.c: Delete file.
36230         * sysdeps/unix/sparc/start.c: Delete file.
36231         * sysdeps/unix/start.c: Delete file.
36232
36233         * sysdeps/sh/elf/configure.in: Moved to ...
36234         * sysdeps/sh/configure.in: ... here.
36235         * sysdeps/sh/elf/start.S: Moved to ...
36236         * sysdeps/sh/start.S: ... here.
36237         * sysdeps/sh/elf/configure: Delete file.
36238
36239         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
36240         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
36241         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
36242         * sysdeps/powerpc/powerpc64/entry.h: ... here.
36243         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
36244         * sysdeps/powerpc/powerpc64/start.S: here.
36245         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
36246         * sysdeps/powerpc/powerpc64/Makefile: ... this.
36247         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
36248         * sysdeps/powerpc/powerpc64/configure.in: ... this.
36249         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
36250
36251         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
36252         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
36253         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
36254         * sysdeps/powerpc/powerpc32/start.S: ... here.
36255         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
36256         * sysdeps/powerpc/powerpc32/configure.in: ... this.
36257         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
36258
36259         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
36260         * sysdeps/powerpc/ifunc-sel.h: ... here.
36261         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
36262         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
36263
36264         * sysdeps/sparc/elf/configure.in: Moved to ...
36265         * sysdeps/sparc/configure.in: ... here.
36266         * sysdeps/sparc/elf/configure: Delete file.
36267         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
36268         * sysdeps/sparc/sparc32/start.S: ... here.
36269         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
36270         * sysdeps/sparc/sparc64/start.S: ... here.
36271         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
36272         * sysdeps/sparc/sparc32/Makefile: ... this.
36273         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
36274         * sysdeps/sparc/sparc64/Makefile: ... this.
36275
36276         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
36277         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
36278         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
36279         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
36280         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
36281         * sysdeps/s390/s390-32/setjmp.S: ... here.
36282         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
36283         * sysdeps/s390/s390-32/configure.in: ... here.
36284         * sysdeps/s390/s390-32/elf/configure: Delete file.
36285         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
36286         * sysdeps/s390/s390-32/start.S: ... here.
36287
36288         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
36289         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
36290         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
36291         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
36292         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
36293         * sysdeps/s390/s390-64/setjmp.S: ... here.
36294         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
36295         * sysdeps/s390/s390-64/configure.in: ... here
36296         * sysdeps/s390/s390-64/elf/configure: Delete file.
36297         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
36298         * sysdeps/s390/s390-64/start.S: ... here.
36299         * sysdeps/s390/s390-64/elf/configure: Delete.
36300
36301         * configure.in: Remove support for elf directories in sysdeps.
36302
36303         * configure: Regenerated.
36304         * sysdeps/i386/configure: Regenerated.
36305         * sysdeps/powerpc/powerpc32/configure: Regenerated.
36306         * sysdeps/powerpc/powerpc64/configure: Regenerated.
36307         * sysdeps/s390/s390-32/configure: Regenerated.
36308         * sysdeps/s390/s390-64/configure: Regenerated.
36309         * sysdeps/sh/configure: Regenerated.
36310         * sysdeps/sparc/configure: Regenerated.
36311         * sysdeps/x86_64/configure: Regenerated.
36312
36313 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
36314
36315         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36316
36317         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
36318         denormal result into account.
36319
36320 2012-03-25  Roland McGrath  <roland@hack.frob.com>
36321
36322         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
36323         Reported by Allan McRae <allan@archlinux.org>.
36324
36325 2012-03-23  Jeff Law  <law@redhat.com>
36326
36327         * nss/getnssent.c (__nss_getent): Fix typo.
36328
36329 2012-03-23  David S. Miller  <davem@davemloft.net>
36330
36331         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36332
36333 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
36334
36335         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
36336         to pad to uint64_t for each field.
36337         (dl_tls_index): Replace unsigned long with uint64_t.
36338
36339 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
36340         Paul Pluzhnikov  <ppluzhnikov@google.com>
36341
36342         [BZ #6528]
36343         * grp/Makefile (otherlibs): Don't set it.
36344         * inet/Makefile (otherlibs): Likewise.
36345         * login/Makefile (otherlibs): Likewise.
36346         * nscd/Makefile (otherlibs): Likewise.
36347         * posix/Makefile (otherlibs): Likewise.
36348         * pwd/Makefile (otherlibs): Likewise.
36349         * rt/Makefile (otherlibs): Likewise.
36350         * sunrpc/Makefile (otherlibs): Likewise.
36351         * nss/Makefile (otherlibs): Likewise.
36352         Add libnss_files to routines and static-only-routines.
36353         ($(objpfx)getent): Remove rule.
36354         * resolv/Makefile: Add libnss_dns and libresolv to routines and
36355         static-only-routines.
36356
36357 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36358
36359         [BZ #13892]
36360         * math/s_cexp.c: Include <float.h>.
36361         (__cexp): Handle exp result overflowing not necessarily
36362         overflowing both real and imaginary parts of result.
36363         * math/s_cexpf.c: Likewise.
36364         * math/s_cexpl.c: Likewise.
36365         * math/libm-test.inc (cexp_test): Add more tests.
36366         * sysdeps/i386/fpu/libm-test-ulps: Update.
36367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36368
36369 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36370
36371         * include/link.h (ELFW): New macro.
36372         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
36373         Replace ELF64_R_TYPE with ELFW(R_TYPE).
36374
36375 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36376
36377         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
36378         with uint64_t.
36379
36380 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36381
36382         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
36383         declaration.
36384         (struct La_x32_retval): Likewise.
36385
36386 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36387
36388         * sysdeps/x86_64/preconfigure.in: New file.
36389         * sysdeps/x86_64/preconfigure: New generated file.
36390
36391 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36392
36393         [BZ #13824]
36394         * math/e_exp2l.c: Include <float.h>.
36395         (__ieee754_exp2l): Handle overflow and underflow cases
36396         separately.  Only pass fractional part of argument to
36397         __ieee754_expl.
36398         * math/libm-test.inc (exp2_test): Add more tests.
36399
36400         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
36401         negating x to take absolute value.
36402         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
36403         Likewise.
36404         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
36405         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
36406         Likewise.
36407         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
36408         computing low part if x was negated.
36409         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
36410
36411 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36412
36413         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
36414         la_x32_gnu_pltexit.
36415         (pltexit): Cast int_retval to ptrdiff_t.
36416         * elf/tst-auditmod3b.c: Likewise.
36417         * elf/tst-auditmod4b.c: Likewise.
36418         * elf/tst-auditmod5b.c: Likewise.
36419         * elf/tst-auditmod6b.c: Likewise.
36420         * elf/tst-auditmod6c.c: Likewise.
36421         * elf/tst-auditmod7b.c: Likewise.
36422
36423         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
36424         and x32_gnu_pltexit.
36425
36426         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
36427         __ELF_NATIVE_CLASS.
36428         (La_x32_regs): New macro.
36429         (La_x32_retval): Likewise.
36430         (la_x32_gnu_pltenter): New function prototype.
36431         (la_x32_gnu_pltexit): Likewise.
36432
36433 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
36434
36435         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
36436         exponent.
36437
36438         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36439
36440         * configure.in (libc_cv_cc_nofma): Check for option to disable
36441         generation of FMA instructions.
36442         * configure: Regenerate.
36443         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
36444         * sysdeps/ieee754/dbl-64/Makefile: New file.
36445         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36446         Remove brandred-fma4.
36447         (CFLAGS-brandred-fma4.c): Remove.
36448         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
36449         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
36450         define.
36451         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
36452         define.
36453
36454 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36455
36456         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
36457         LLONG_MAX != LONG_MAX.
36458         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36459         (_fitoa_word): Likewise.
36460         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
36461         LLONG_MAX != LONG_MAX.
36462         * stdio-common/_itowa.h: Include <_itoa.h>.
36463         (_itowa_word): Use _ITOA_WORD_TYPE on value.
36464         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
36465         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
36466         only if not defined.
36467         (_ITOA_WORD_TYPE): Likewise.
36468         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36469         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
36470
36471 2012-03-21  David S. Miller  <davem@davemloft.net>
36472
36473         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36474
36475 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36476
36477         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
36478         of x86_64 when setting libc_cv_slibdir, libdir and
36479         libc_cv_localedir.
36480         * sysdeps/unix/sysv/linux/configure: Regenerated.
36481
36482 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36483
36484         * manual/lang.texi (Old Varargs): Remove section.
36485         (How Variadic): Update menu.
36486         (va_start): Do not mention varargs.h.
36487
36488 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36489             Joseph Myers  <joseph@codesourcery.com>
36490
36491         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
36492         link test.
36493         * configure: Regenerated.
36494
36495 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36496
36497         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
36498         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
36499         conformtest.pl
36500
36501 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36502
36503         * NOTES: Remove.
36504         * Makefile (files-for-dist): Remove NOTES.
36505         (NOTES): Remove rule.
36506         * README: Don't refer to NOTES.
36507         * manual/creature.texi: Don't include macros.texi.
36508         * manual/intro.texi (creature.texi): Remove comment referring to
36509         NOTES.
36510
36511         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
36512         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
36513         * configure: Regenerated.
36514         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
36515         LIBC_TRY_CC_OPTION.
36516         (libc_cv_as_i686): Likewise.
36517         (libc_cv_cc_avx): Likewise.
36518         (libc_cv_cc_sse2avx): Likewise.
36519         (libc_cv_cc_fma4): Likewise.
36520         (libc_cv_cc_novzeroupper): Likewise.
36521         * sysdeps/i386/configure: Regenerated.
36522
36523         [BZ #13883]
36524         * sysdeps/i386/fpu/s_cexp.S: Remove.
36525         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
36526         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
36527         * math/libm-test.inc (cexp_test): Add more tests.
36528         * sysdeps/i386/fpu/libm-test-ulps: Update.
36529         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36530
36531 2012-03-21  Allan McRae  <allan@archlinux.org>
36532
36533         * timezone/Makefile: Do not install iso3166.tab and zone.tab
36534
36535 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36536
36537         [BZ #13871]
36538         * math/w_exp2.c: Do not include <float.h>.
36539         (o_threshold, u_threshold): Remove.
36540         (__exp2): Calculate result before checking finiteness and calling
36541         __kernel_standard.
36542         * math/w_exp2f.c: Likewise.
36543         * math/w_exp2l.c: Likewise.
36544         * math/libm-test.inc (exp2_test): Require overflow exception for
36545         1e6 input.
36546
36547         [BZ #3866]
36548         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
36549         range of signed 64-bit integers before using fistpll.  Remove
36550         checks for whether integers fit in mantissa bits.
36551         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
36552         the range of signed 32-bit integers before using fistpl.  Remove
36553         checks for whether integers fit in mantissa bits.
36554         * sysdeps/i386/fpu/e_powl.S (p64): New object.
36555         (__ieee754_powl): Test for y outside the range of signed 64-bit
36556         integers before using fistpll.  Reduce 64-bit values to 63-bit
36557         ones as needed.
36558         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
36559         divide-by-zero is raised for zero to large negative powers.
36560         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
36561         (__ieee754_powl): Test for y outside the range of signed 64-bit
36562         integers before using fistpll.  Reduce 64-bit values to 63-bit
36563         ones as needed.
36564         * math/libm-test.inc (pow_test): Add more tests.
36565
36566 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36567
36568         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
36569         <stdio-common/_itoa.h>.
36570         * debug/segfault.c: Likewise.
36571         * elf/dl-cache.c: Likewise.
36572         * elf/dl-minimal.c: Likewise.
36573         * elf/dl-misc.c: Likewise.
36574         * elf/dl-sysdep.c: Likewise.
36575         * elf/dl-version.c: Likewise.
36576         * elf/rtld.c: Likewise.
36577         * hurd/hurdsock.c: Likewise.
36578         * hurd/lookup-retry.c: Likewise.
36579         * malloc/malloc.c: Likewise.
36580         * malloc/mtrace.c: Likewise.
36581         * nscd/nscd_getgr_r.c: Likewise.
36582         * nscd/nscd_getpw_r.c: Likewise.
36583         * nscd/nscd_getserv_r.c: Likewise.
36584         * posix/getopt_init.c: Likewise.
36585         * posix/wordexp.c: Likewise.
36586         * stdio-common/_itoa.c: Likewise.
36587         * stdio-common/printf_fphex.c: Likewise.
36588         * stdio-common/vfprintf.c: Likewise.
36589         * string/_strerror.c: Likewise.
36590         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
36591         * sysdeps/i386/i686/hp-timing.h: Likewise.
36592         * sysdeps/mach/_strerror.c: Likewise.
36593         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
36594         * sysdeps/mach/hurd/sethostid.c: Likewise.
36595         * sysdeps/mach/hurd/xmknodat.c: Likewise.
36596         * sysdeps/mach/xpg-strerror.c: Likewise.
36597         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
36598         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
36599         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
36600         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
36601         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
36602         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
36603         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
36604         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
36605         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
36606         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
36607         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
36608         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
36609         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
36610         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
36611         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
36612         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
36613         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
36614         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
36615         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
36616         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
36617         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
36618
36619         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
36620
36621         * stdio-common/_itoa.h: Moved to ...
36622         * sysdeps/generic/_itoa.h: Here.
36623
36624         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
36625
36626         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
36627         instead of "_itoa.h" and "_itowa.h".
36628         * stdio-common/vfprintf.: Likewise.
36629
36630 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36631
36632         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
36633         <bits/wordsize.h>.
36634         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
36635         (__signbit): Likwise.
36636         (llrintf): Likwise.
36637         (llrint): Likwise.
36638
36639 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36640
36641         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
36642         __WORDSIZE != 64.
36643
36644 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
36645
36646         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
36647         OVERFLOW_EXCEPTION_OK.
36648         * math/libm-test.inc ("Philosophy"): Update comment about
36649         exception testing.
36650         (OVERFLOW_EXCEPTION): Define.
36651         (OVERFLOW_EXCEPTION_OK): Likewise.
36652         (INVALID_EXCEPTION_OK): Renumber.
36653         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
36654         (IGNORE_ZERO_INF_SIGN): Likewise.
36655         (test_exceptions): Handle FE_OVERFLOW.
36656         (exp10_test): Expect overflow exceptions.
36657         (exp2_test): Likewise.
36658         (expm1_test): Likewise.
36659         (nextafter_test): Likewise.
36660         (pow_test): Likewise.
36661         (scalbn_test): Likewise.
36662         (scalbln_test): Likewise.
36663
36664 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36665
36666         * sysdeps/x86_64/bits/atomic.h
36667         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
36668         64bit integer.
36669         (atomic_exchange_acq): Likewise.
36670         (__arch_exchange_and_add_body): Likewise.
36671         (__arch_add_body): Likewise.
36672         (atomic_add_negative): Likewise.
36673         (atomic_add_zero): Likewise.
36674
36675 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36676
36677         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
36678         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
36679
36680 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36681
36682         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
36683         Check __x86_64__ instead of __WORDSIZE.
36684
36685 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36686
36687         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
36688
36689 2012-03-19  David S. Miller  <davem@davemloft.net>
36690
36691         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36692
36693         * sysdeps/sparc/fpu/fenv_private.h: New file.
36694         * sysdeps/sparc/fpu/math_private.h: Use it.
36695         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
36696         Remove.
36697         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
36698         (libc_feholdexcept_setroundl): Remove.
36699         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
36700         Remove.
36701         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
36702         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
36703
36704 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36705
36706         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
36707         int64_t instead of long int.
36708         (INSERT_WORDS64): Likwise.
36709
36710 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36711
36712         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
36713         _Unwind_GetCFA return to _Unwind_Ptr first.
36714
36715 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
36716
36717         [BZ #13629]
36718         * math/s_clog.c: Include <float.h>.
36719         (__clog): Scale large or subnormal inputs.
36720         * math/s_clogf.c: Likewise.
36721         * math/s_clogl.c: Likewise.
36722         * math/s_clog10.c: Include <float.h>.
36723         (M_LOG10_2): Define.
36724         (__clog10): Scale large or subnormal inputs.
36725         * math/s_clog10f.c: Likewise.
36726         * math/s_clog10l.c: Likewise.
36727         * math/libm-test.inc (clog_test): Add more tests.
36728         (clog10_test): Likewise.
36729         * sysdeps/i386/fpu/libm-test-ulps: Update.
36730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36731
36732         [BZ #11451]
36733         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
36734         x and y.
36735         * math/libm-test.inc (atan2_test): Add another test.
36736
36737         * Makerules (common-objdir-compile): Remove.
36738         * sysdeps/unix/Makefile (config-generated): Do not add
36739         $(unix-generated) to variable.
36740         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
36741         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
36742         Remove rule.
36743         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
36744         Likewise.
36745         [generic bits/local_lim.h] (before-compile): Do not append to
36746         variable.
36747         [generic bits/local_lim.h] (common-generated): Likewise.
36748         [generic sys/param.h] (before-compile): Do not append to variable.
36749         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
36750         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
36751         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
36752         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
36753         include.
36754         [generic sys/param.h] (sys/param.h-includes): Remove variable.
36755         [generic sys/param.h] (sys/param.h-includes): Remove rule.
36756         [generic sys/param.h] ($(addprefix
36757         $(common-objpfx),$(sys/param.h-includes))): Likewise.
36758         [generic sys/param.h] (common-generated): Do not append to
36759         variable.
36760         [generic sys/param.h] (sysdep_headers): Likewise.
36761         [generic bits/errno.h] (before-compile): Do not append to
36762         variable.
36763         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
36764         rule.
36765         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
36766         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
36767         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
36768         [generic bits/errno.h] (common-generated): Do not append to
36769         variable.
36770         [generic bits/ioctls.h] (before-compile): Do not append to
36771         variable.
36772         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
36773         rule.
36774         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
36775         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
36776         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
36777         rule.
36778         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
36779         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
36780         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
36781         [generic bits/ioctls.h] (common-generated): Do not append to
36782         variable.
36783         [generic sys/syscall.h] (syscall.h): Remove variable.
36784         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
36785         rule.
36786         [generic sys/syscall.h] (before-compile): Do not append to
36787         variable.
36788         [generic sys/syscall.h] (common-generated): Likewise.
36789         * sysdeps/unix/errnos-tmpl.c: Remove file.
36790         * sysdeps/unix/errnos.awk: Likewise.
36791         * sysdeps/unix/ioctls-tmpl.c: Likewise.
36792         * sysdeps/unix/ioctls.awk: Likewise.
36793         * sysdeps/unix/mk-local_lim.c: Likewise.
36794         * sysdeps/unix/snarf-ioctls: Likewise.
36795
36796 2012-03-19  Richard Henderson  <rth@twiddle.net>
36797
36798         * sysdeps/i386/fpu/fenv_private.h: New file.
36799         * sysdeps/i386/fpu/math_private.h: Use it.
36800         (math_opt_barrier, math_force_eval): Remove.
36801         (libc_feholdexcept_setround_53bit): Remove.
36802         (libc_feupdateenv_53bit): Remove.
36803         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36804         (math_opt_barrier, math_force_eval): Remove.
36805         (libc_feholdexcept): Remove.
36806         (libc_feholdexcept_setround): Remove.
36807         (libc_fetestexcept, libc_fesetenv): Remove.
36808         (libc_feupdateenv_test): Remove.
36809         (libc_feupdateenv, libc_feholdsetround): Remove.
36810         (libc_feresetround): Remove.
36811
36812         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
36813         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36814
36815         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
36816         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
36817         (libc_feupdateenv_testl): New.
36818         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
36819         (libc_feupdateenv_testf): New.
36820         (libc_feupdateenv): Use libc_feupdateenv_test.
36821         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
36822         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
36823
36824         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
36825         (libc_feholdsetroundf, libc_feholdsetroundl): New.
36826         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
36827         (libc_feresetround_noex): New.
36828         (libc_feresetround_noexf): New.
36829         (libc_feresetround_noexl): New.
36830         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
36831         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
36832         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
36833         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
36834         SET_RESTORE_ROUND.
36835         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
36836         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
36837         (__cos): Likewise.
36838         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
36839         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
36840         SET_RESTORE_ROUND_NOEX.
36841         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
36842         SET_RESTORE_ROUND_NOEXF.
36843         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
36844         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
36845         (libc_feholdsetroundf): New.
36846         (libc_feresetround, libc_feresetroundf): New.
36847
36848         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
36849         (libc_feholdexcept_setround_53bit): Convert from macro to function.
36850         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
36851
36852         * sysdeps/generic/math_private.h: Include <fenv.h>.
36853         (default_libc_feholdexcept): New.
36854         (default_libc_feholdexcept_setround): New.
36855         (default_libc_fesetenv, default_libc_feupdateenv): New.
36856         (libc_feholdexcept): Only define if undefined.
36857         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
36858         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
36859         (libc_feholdexcept_setroundl): Likewise.
36860         (libc_feholdexcept_setround_53bit): Likewise.
36861         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
36862         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
36863         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
36864         (libc_feupdateenv_53bit): Likewise.
36865         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
36866         (libc_feholdexcept): Convert from macro to inline function.
36867         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
36868         (libc_fesetenv, libc_feupdateenv): Likewise.
36869
36870         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
36871         not previously defined.
36872         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
36873         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
36874         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
36875         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
36876         * sysdeps/ieee754/flt-32/math_private.h: New file.
36877         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
36878         math_private.h below SET_FLOAT_WORD.
36879         (__isnan, __isinf_ns, __finite): Remove.
36880         (__isnanf, __isinf_nsf, __finitef): Remove.
36881
36882 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
36883
36884         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36885
36886 2012-03-17  David S. Miller  <davem@davemloft.net>
36887
36888         [BZ #6471]
36889         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
36890         for 2.16.
36891
36892 2012-03-16  David S. Miller  <davem@davemloft.net>
36893
36894         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
36895         warnings.
36896
36897         [BZ #6471]
36898         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
36899         properly.
36900         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
36901         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
36902         sysdep_routines when subdir is sysvipc.
36903         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
36904         __getshmlba helper.
36905
36906         * sysdeps/sparc/fpu/libm-test/ulps: Update.
36907
36908 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36909
36910         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
36911         [__LP64__].
36912
36913 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36914
36915         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
36916         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
36917         (__lround): Renamed to ...
36918         (__llround): This.  Replace long int with long long int.
36919         Define lround functions as aliases of llround functions.
36920         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
36921
36922 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36923
36924         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
36925         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
36926         adresses to uintptr_t.  Replace "long int" and "unsigned long
36927         int" with "greg_t" on va_arg.
36928
36929 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36930
36931         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
36932         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
36933
36934         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
36935         Move e_machine check before EI_CLASS check.  Handle x32
36936         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
36937         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
36938         SKIP_EM_IA_64 and include
36939         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
36940
36941         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
36942         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
36943         (add_system_dir): New macro.
36944
36945         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
36946         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
36947
36948 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36949
36950         [BZ #2551]
36951         [BZ #2552]
36952         [BZ #2553]
36953         [BZ #2554]
36954         [BZ #2562]
36955         [BZ #2563]
36956         [BZ #2565]
36957         [BZ #2566]
36958         [BZ #2576]
36959         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
36960         (y0): Likewise.
36961         * math/w_j0f.c (j0f): Likewise.
36962         (y0f): Likewise.
36963         * math/w_j0l.c (__j0l): Likewise.
36964         (__y0l): Likewise.
36965         * math/w_j1.c (j1): Likewise.
36966         (y1): Likewise.
36967         * math/w_j1f.c (j1f): Likewise.
36968         (y1f): Likewise.
36969         * math/w_j1l.c (__j1l): Likewise.
36970         (__y1l): Likewise.
36971         * math/w_jn.c (jn): Likewise.
36972         (yn): Likewise.
36973         * math/w_jnf.c (jnf): Likewise.
36974         (ynf): Likewise.
36975         * math/w_jnl.c (__jnl): Likewise.
36976         (__ynl): Likewise.
36977         * math/libm-test.inc (j0_test): Add more tests.
36978         (j1_test): Likewise.
36979         (jn_test): Likewise.  Add trailing semicolon to existing test.
36980         (y0_test): Likewise.
36981         (y1_test): Likewise.
36982         * sysdeps/i386/fpu/libm-test-ulps: Update.
36983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36984
36985         [BZ #13851]
36986         [BZ #13854]
36987         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
36988         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
36989         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
36990         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
36991         (__tanl): Set errno for infinite argument.
36992         * sysdeps/i386/fpu/mptan.c: Remove.
36993         * sysdeps/i386/fpu/s_tan.S: Likewise.
36994         * sysdeps/i386/fpu/s_tanl.S: Likewise.
36995         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
36996         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
36997         * math/libm-test.inc (tan_test): Add more tests and enable more
36998         tests for double and long double.
36999         * sysdeps/i386/fpu/libm-test-ulps: Update.
37000         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37001
37002 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
37003
37004         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
37005         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
37006
37007 2012-03-16  Roland McGrath  <roland@hack.frob.com>
37008
37009         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
37010         * configure.in: Use it for both main tree and add-ons.
37011         * configure: Regenerated.
37012
37013 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37014
37015         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
37016
37017 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37018
37019         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
37020         in comment.
37021
37022         [BZ #13851]
37023         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
37024         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
37025         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
37026         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
37027         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
37028         infinite argument.
37029         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
37030         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
37031         != 0 for prec == 2.
37032         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
37033         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
37034         * sysdeps/i386/fpu/s_cosl.S: Likewise.
37035         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
37036         * sysdeps/i386/fpu/s_sinl.S: Likewise.
37037         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
37038         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
37039         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
37040         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
37041         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
37042         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
37043         * math/libm-test.inc (cos_test): Add more tests and enable more
37044         tests for long double.
37045         (sin_test): Likewise.
37046         (sincos_test): Likewise.
37047         * sysdeps/i386/fpu/libm-test-ulps: Update.
37048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37049
37050 2012-03-16  David S. Miller  <davem@davemloft.net>
37051
37052         * sysdeps/sparc/fpu/math_private.h: New file.
37053
37054 2012-03-15  David S. Miller  <davem@davemloft.net>
37055
37056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
37057         file.
37058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
37059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
37060         file.
37061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
37062         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
37063         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
37064         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
37065         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
37066         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
37067         sysdep routines.
37068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37069
37070         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
37071         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
37072
37073         * sysdeps/sparc/sparc-ifunc.h: New file.
37074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
37075         sparc-ifunc.h
37076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
37077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
37078         Likewise.
37079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
37080         Likewise.
37081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
37082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
37083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
37084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
37085         Likewise.
37086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
37087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
37088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
37089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
37090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
37091         Likewise.
37092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
37093         Likewise.
37094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
37095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
37096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
37097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
37098         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
37099         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
37100         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
37101         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
37102         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
37103         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
37104         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
37105         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
37106         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
37107         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
37108         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
37109         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
37110         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
37111         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
37112         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
37113         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
37114         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
37115         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
37116         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
37117         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
37118
37119 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37120
37121         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
37122         scaling.
37123         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37124
37125 2012-03-15  Andreas Jaeger  <aj@suse.de>
37126
37127         [BZ #13852]
37128         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
37129         ieee754/flt-32 implementation for sin, cos and sincos.
37130         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
37131         * sysdeps/i386/fpu/s_cosf.S: Likewise.
37132         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
37133         * sysdeps/i386/fpu/s_sinf.S: Likewise.
37134         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
37135         ieee754/flt-32 implementation for tan.
37136
37137         * math/libm-test.inc (cos_test): Enable some large input tests for
37138         float as well
37139         (sin_test): Likewise.
37140         (sincos_test): Likewise.
37141         (tan_test): Add tests for large input.
37142
37143         * sysdeps/i386/fpu/libm-test-ulps: Update.
37144
37145 2012-03-15  Andreas Jaeger  <aj@suse.de>
37146
37147         [BZ #13658]
37148         * math/libm-test.inc (cos_test): Add more test cases.
37149         (sin_test): Likewise.
37150         (sincos_test): Likewise.
37151
37152 2012-03-15  Andreas Jaeger  <aj@suse.de>
37153
37154         [BZ #13837]
37155         * math/libm-test.inc (cos_test): Add a test case for large input
37156         value.
37157         (sin_test): Likewise.
37158         (sincos_test): Likewise.
37159
37160 2012-03-15  Andreas Jaeger  <aj@suse.de>
37161             Joseph Myers  <joseph@codesourcery.com>
37162
37163         [BZ #13658]
37164         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
37165         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
37166         * sysdeps/i386/fpu/branred.c: Likewise.
37167         * sysdeps/i386/fpu/dosincos.c: Likewise.
37168         * sysdeps/i386/fpu/mpa.c: Likewise.
37169         * sysdeps/i386/fpu/s_cos.S: Likewise.
37170         * sysdeps/i386/fpu/s_sin.S: Likewise.
37171         * sysdeps/i386/fpu/s_sincos.S: Likewise.
37172         * sysdeps/i386/fpu/sincos32.c: Likewise.
37173
37174         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
37175         Define.
37176         (libc_feupdateenv_53bit): Define.
37177         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
37178         Define.
37179         (libc_feupdateenv_53bit): Define.
37180
37181         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
37182         53 bit (without extend i386 double precision).
37183
37184         * math/libm-test.inc (sincos_test): Add tests for large input.
37185         (sin): Likewise.
37186         (cos): Likewise.
37187
37188         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
37189
37190 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37191
37192         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37193
37194 2012-03-15  David S. Miller  <davem@davemloft.net>
37195
37196         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
37197         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
37198         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
37199         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
37200         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
37201         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
37202         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
37203         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
37204         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
37205         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
37206         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
37207         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
37208         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
37209         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
37210         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
37211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
37212         file.
37213         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
37214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
37215         file.
37216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
37217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
37218         file.
37219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
37220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
37221         file.
37222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
37223         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
37224         fmin/fmax sysdep routines.
37225         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37226
37227 2012-03-14  David S. Miller  <davem@davemloft.net>
37228
37229         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
37230         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
37231         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
37232         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
37233         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
37234         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
37235         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
37236         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
37237         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
37238         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
37239         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
37240         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
37241         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
37242         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
37243         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
37244         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
37245         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
37246         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
37247         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
37248         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
37249         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
37250         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
37251         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
37252         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
37253         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
37254         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
37255         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
37256         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
37257         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
37258         routines.
37259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
37260         file.
37261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
37262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
37263         file.
37264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
37265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
37266         file.
37267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
37268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
37269         file.
37270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
37271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
37272         file.
37273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
37274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
37275         file.
37276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
37277         file.
37278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
37279         file.
37280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
37281         file.
37282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
37283         New file.
37284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
37285         file.
37286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
37287         file.
37288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
37289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
37290         file.
37291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
37292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
37293         file.
37294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
37295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
37296         file.
37297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
37298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
37299         VIS3 routines.
37300
37301         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
37302         New file.
37303
37304         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37305
37306         * sysdeps/sparc/configure.in: New file.
37307         * sysdeps/sparc/configure: Generate.
37308         * configure.in (libc_cv_sparc_as_vis3): Substitute.
37309         * configure: Regenerate.
37310         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
37311         * config.make.in (have-as-vis3): New.
37312         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
37313         available use -Av9d instead of -Av9a.
37314         * sysdeps/sparc/sparc64/Makefile: Likewise.
37315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
37316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
37317         New file.
37318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
37319         file.
37320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
37321         New file.
37322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
37323         file.
37324         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
37325         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
37326         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
37327         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
37328         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
37329
37330         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
37331         fzeros/fnegs to load 0x80000000 into a float register instead of
37332         using the stack.
37333         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
37334
37335 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37336
37337         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37338         bits/syscall.h.
37339         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
37340         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
37341         ($(inst_includedir)/bits/syscall.h): Remove rule.
37342         ($(objpfx)bits/syscall.d): Include instead of
37343         $(objpfx)syscall-list.d.
37344         (generated): Change syscall-list.h and syscall-list.d to
37345         bits/syscall.h and bits/syscall.d.
37346
37347 2012-03-14  Roland McGrath  <roland@hack.frob.com>
37348
37349         [BZ #13846]
37350         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
37351
37352 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37353
37354         [BZ #13841]
37355         * math/s_csqrt.c: Include <float.h>.
37356         (__csqrt): Scale large or subnormal inputs.
37357         * math/s_csqrtf.c: Likewise.
37358         * math/s_csqrtl.c: Likewise.
37359         * math/libm-test.inc (csqrt_test): Add more tests.
37360         * sysdeps/i386/fpu/libm-test-ulps: Update.
37361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37362
37363         [BZ #13840]
37364         * math/libm-test.inc (hypot_test): Add more tests.
37365
37366 2012-03-13  David S. Miller  <davem@davemloft.net>
37367
37368         [BZ #13840]
37369         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
37370         double-precision for the calculation instead of scaling.
37371
37372 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
37373
37374         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
37375         manipulate bits before adding and subtracting TWO52[sx].
37376         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
37377         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
37378         Likewise.
37379         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
37380
37381 2012-03-13  David S. Miller  <davem@davemloft.net>
37382
37383         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
37384         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
37385         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
37386         rtld-global-offsets.h
37387         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37388
37389         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
37390         large parameters.
37391
37392         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
37393
37394         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
37395         'err' in the ifdef scope in which it is actually used.
37396
37397         * nss/nss_db/db-init.c: Include string.h
37398
37399 2012-03-12  David S. Miller  <davem@davemloft.net>
37400
37401         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
37402         masking out of the most significant byte of random value used.
37403         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37404         Fix coding style in previous change.
37405
37406         * sysdeps/unix/sysv/linux/kernel-features.h
37407         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
37408         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
37409         expression.
37410         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
37411         later.
37412
37413 2012-03-11  David S. Miller  <davem@davemloft.net>
37414
37415         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
37416         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
37417         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
37418         for 'resultvar' otherwise things get truncated on 64-bit.
37419
37420         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37421         Fix masking out of the most significant byte of random value used.
37422
37423         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37424
37425 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
37426
37427         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37428
37429 2012-03-09  David S. Miller  <davem@davemloft.net>
37430
37431         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
37432         variables with appropriate CPP guards.
37433         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
37434         from the frame pointer, not the stack pointer.  Correct layout
37435         comments.  Fix test on resulting framesize and the management of
37436         the outregs buffer for pltexit.  Preserve floating point return
37437         values across _dl_call_pltexit call.
37438         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
37439         framesize and the management of the outregs buffer for pltexit.
37440         Preserve floating point return values across _dl_call_pltexit
37441         call.
37442         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
37443         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
37444         (la_sparc64_gnu_pltexit): New functions.
37445         (print_exit): Fix format string for return register value.
37446
37447 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
37448
37449         * sunrpc/Makefile (others): Add rpcgen.
37450         ($(objpfx)rpcgen): Remove special build rule and dependency on
37451         libc.
37452         * sunrpc/rpcgen.c: New file.
37453
37454 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
37455
37456         [BZ #13673]
37457         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
37458         * stdio-common/bug-vfprintf-nargs.c: Likewise.
37459         * sysdeps/i386/crti.S: Likewise.
37460         * sysdeps/i386/crtn.S: Likewise.
37461         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
37462         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
37463         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
37464         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
37465         * sysdeps/sh/crti.S: Likewise.
37466         * sysdeps/sh/crtn.S: Likewise.
37467         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
37468
37469         [BZ #13673]
37470         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
37471         with URL.
37472         * locale/programs/locfile-kw.gperf: Likewise.
37473         * locale/programs/charmap-kw.h: Regenerated.
37474         * locale/programs/locfile-kw.h: Likewise.
37475
37476         [BZ #13673]
37477         * intl/plural.y: Replace FSF snail mail address with URL.
37478         * intl/plural.c: Regenerated.
37479
37480 2012-03-09  Richard Henderson  <rth@twiddle.net>
37481
37482         * include/math_private.h: Remove file.
37483         * math/math_private.h: Move file ...
37484         * sysdeps/generic/math_private.h: ... here.
37485
37486         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
37487         * sysdeps/powerpc/fpu/math_private.h: Likewise.
37488         * sysdeps/x86_64/fpu/math_private.h: Likewise.
37489
37490         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
37491         and <math_private.h>.
37492         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37493         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37494         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37495         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37496         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37497         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
37498         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
37499         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
37500         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
37501         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
37502         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
37503         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
37504         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
37505         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
37506         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
37507         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
37508         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
37509         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
37510         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
37511         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
37512         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
37513         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
37514         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
37515         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
37516         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
37517         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
37518         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
37519         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
37520         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
37521         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37522         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
37523         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
37524         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
37525         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
37526         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37527         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37528         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
37529         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37530         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37531         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37532         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
37533         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37534         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37535         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
37536         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
37537         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37538         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
37539         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
37540         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
37541         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37542         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
37543         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
37544         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
37545         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37546         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
37547         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
37548         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
37549         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37550         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
37551         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
37552         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
37553         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
37554         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
37555         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37556         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
37557         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
37558         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
37559         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
37560         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
37561         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
37562         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
37563         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
37564         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
37565         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
37566         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
37567         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
37568         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
37569         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37570         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
37571         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
37572         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
37573         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
37574         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
37575         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
37576         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
37577         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37578         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
37579         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
37580         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
37581         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37582         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37583         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
37584         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
37585         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
37586         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
37587         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
37588         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
37589         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
37590         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
37591         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
37592         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
37593         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
37594         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
37595         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
37596         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37597         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
37598         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
37599         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
37600         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37601         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37602         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37603         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37604         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
37605         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37606         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
37607         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
37608         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37609         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37610         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37611         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
37612         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37613         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37614         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
37615         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
37616         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37617         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37618         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
37619         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
37620         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37621         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
37622         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
37623         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
37624         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37625         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
37626         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
37627         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
37628         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
37629         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37630         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
37631         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
37632         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
37633         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37634         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37635         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
37636         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
37637         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37638         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37639         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37640         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
37641         * sysdeps/ieee754/k_standard.c: Likewise.
37642         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
37643         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
37644         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37645         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
37646         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
37647         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
37648         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
37649         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
37650         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
37651         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
37652         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
37653         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
37654         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
37655         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
37656         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
37657         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
37658         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
37659         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
37660         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
37661         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
37662         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
37663         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
37664         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37665         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37666         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
37667         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
37668         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37669         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37670         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37671         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37672         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
37673         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37674         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37675         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37676         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
37677         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37678         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37679         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
37680         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
37681         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37682         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
37683         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
37684         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
37685         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37686         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
37687         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
37688         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37689         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37690         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37691         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37692         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37693         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
37694         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37695         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
37696         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37697         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37698         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
37699         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
37700         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37701         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37702         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37703         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
37704         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37705         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
37706         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37707         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37708         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
37709         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
37710         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
37711         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
37712         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
37713         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37714         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
37715         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
37716         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
37717         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
37718         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
37719         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
37720         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37721         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
37722         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
37723         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
37724         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37725         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37726         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
37727         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37728         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37729         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
37730         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
37731         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37732         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
37733         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37734         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37735         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
37736         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37737         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37738         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
37739         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37740         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37741         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
37742         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37743         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37744         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37745         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37746         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
37747         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37748         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37749         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37750         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
37751         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37752         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37753         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37754         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
37755         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37756         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
37757         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
37758         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
37759         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37760         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
37761         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
37762         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
37763         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
37764         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
37765         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
37766         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37767         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
37768         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37769         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37770         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37771         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37772         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37773         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37774         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37775         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
37776         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37777         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37778         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
37779         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
37780         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37781         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
37782         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
37783         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37784         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
37785         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
37786         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37787         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37788         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37789         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37790         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37791         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
37792         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37793         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
37794         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37795         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37796         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
37797         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
37798         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37799         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37800         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37801         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
37802         * sysdeps/ieee754/s_lib_version.c: Likewise.
37803         * sysdeps/ieee754/s_matherr.c: Likewise.
37804         * sysdeps/ieee754/s_signgam.c: Likewise.
37805         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
37806         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
37807         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
37808         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
37809         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
37810         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
37811         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
37812         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
37813         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
37814         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
37815         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
37816         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
37817         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37818         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37819         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
37820         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
37821         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
37822         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
37823         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
37824         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37825         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37826
37827 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37828
37829         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
37830         * sunrpc/rpc_main.c: Likewise.
37831         * sunrpc/rpc_svcout.c: Likewise.
37832
37833 2012-03-09  David S. Miller  <davem@davemloft.net>
37834
37835         * include/math_private.h: New file.
37836
37837 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37838
37839         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
37840         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
37841         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
37842         from <bits/socket_type.h>.
37843         (enum __socket_type): Don't define here.
37844         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
37845         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37846         bits/socket_type.h.
37847
37848         [BZ #13566]
37849         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
37850         checking __USE_GNU.
37851
37852         * Makerules ($(inst_includedir)/%.h): New rule.
37853         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
37854         (install-others): Remove variable setting.
37855         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
37856
37857 2012-03-08  Richard Henderson  <rth@twiddle.net>
37858
37859         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
37860         from macro to inline function; merge with the
37861         !__LIBC_INTERNAL_MATH_INLINES version.
37862         (__ieee754_sqrtf): Likewise.
37863
37864         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
37865         to inline function.
37866         (__rintf, __floor, __floorf): Likewise.
37867
37868         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
37869         macro to inline function.
37870         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
37871
37872         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
37873         not <math/math_private.h>.
37874
37875 2012-03-08  David S. Miller  <davem@davemloft.net>
37876
37877         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
37878         copyright year.
37879         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
37880
37881 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
37882
37883         * resolv/gai_misc.c (handle_requests): Fix struct timespec
37884         normalization.
37885         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
37886         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37887
37888 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
37889
37890         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
37891         be defined individually, they must be defined as a block.  Define
37892         S for printing a string instead of hidint the different by using a
37893         macro for adding the 'l'.
37894         * stdio-common/tst-fphex-wide.c: Adjust.
37895
37896 2012-03-07  Marek Polacek  <polacek@redhat.com>
37897
37898         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
37899
37900 2012-03-08  Marek Polacek  <polacek@redhat.com>
37901
37902         [BZ #13806]
37903         * stdio-common/Makefile (tests): Add tst-fphex-wide.
37904         * stdio-common/tst-fphex.c: Define a few macros to make the
37905         test reusable.  Use them.
37906         * stdio-common/tst-fphex-wide.c: New file.
37907
37908 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
37909
37910         [BZ #6911]
37911         * manual/macros.texi (gnusystems): New macro.
37912         (nongnusystems): Likewise.
37913         (gnulinuxhurdsystems): Likewise.
37914         (gnuhurdsystems): Likewise..
37915         (gnulinuxsystems): Likewise.
37916         * manual/charset.texi: Use new macros or @theglibc{} to refer to
37917         variants of the GNU system, not "GNU system".
37918         * manual/conf.texi: Likewise.
37919         * manual/errno.texi: Likewise.  Update example of errno macro
37920         expansion.
37921         * manual/filesys.texi: Likewise.
37922         (getumask): Document as specific to GNU/Hurd.
37923         * manual/install.texi: Likewise.  Reword some references to
37924         GNU/Linux.
37925         * manual/intro.texi: Likewise.
37926         * manual/io.texi: Likewise.
37927         (File Name Portability): Detail which constraints are inapplicable
37928         to all GNU systems and which are only inapplicable to GNU/Hurd.
37929         * manual/job.texi: Likewise.
37930         * manual/llio.texi: Likewise.
37931         (O_NOCTTY): Document as present on GNU/Linux.
37932         * manual/maint.texi: Likewise.
37933         * manual/memory.texi: Likewise.
37934         * manual/pattern.texi: Likewise.
37935         * manual/pipe.texi: Likewise.
37936         * manual/process.texi: Likewise.
37937         * manual/resource.texi: Likewise.
37938         (RUSAGE_CHILDREN): Remove statement about specifying a particular
37939         child on GNU/Hurd.
37940         * manual/setjmp.texi: Likewise.
37941         * manual/signal.texi: Likewise.
37942         * manual/startup.texi: Likewise.
37943         * manual/stdio.texi: Likewise.
37944         * manual/terminal.texi: Likewise.
37945         (ONLCR): Document as POSIX.
37946         (OXTABS): Document availability on GNU/Linux as XTABS.
37947         (ONOEOT): Document availability separately from other bits.
37948         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
37949         * manual/time.texi: Likewise.
37950         * manual/users.texi: Likewise.
37951         * INSTALL: Regenerated.
37952         * sysdeps/gnu/errlist.c: Regenerated.
37953
37954         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
37955         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
37956         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
37957         puts.
37958         * configure: Regenerated.
37959
37960 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
37961
37962         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
37963         default includes instead of AC_HEADER_CHECK.
37964         * sysdeps/i386/configure: Regenerated.
37965
37966         [BZ #10716]
37967         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
37968         * math/s_cacoshf.c (__cacoshf): Likewise.
37969         * math/s_cacoshl.c (__cacoshl): Likewise.
37970         * math/s_casinh.c (__casinh): Set signs of result from argument.
37971         * math/s_casinhf.c (__casinhf): Likewise.
37972         * math/s_casinhl.c (__casinhl): Likewise.
37973         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
37974         (casinh_test): Add more tests.
37975         * sysdeps/i386/fpu/libm-test-ulps: Update.
37976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37977
37978 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
37979
37980         * po/zh_TW.po: Update from translation team.
37981
37982         * login/Makefile (distribute): Remove variable.
37983         * catgets/Makefile: Likewise.
37984         * mach/Makefile: Likewise.
37985         * malloc/Makefile: Likewise.
37986         * misc/Makefile: Likewise.
37987         * iconv/Makefile: Likewise.
37988         * nscd/Makefile: Likewise.
37989         * hurd/Makefile: Likewise.
37990         * manual/Makefile: Likewise.
37991         * locale/Makefile: Likewise.
37992         * intl/Makefile: Likewise.
37993         * conform/Makefile: Likewise.
37994         * nss/Makefile: Likewise.
37995         * time/Makefile: Likewise.
37996         * soft-fp/Makefile: Likewise.
37997         * dirent/Makefile: Likewise.
37998         * gmon/Makefile: Likewise.
37999         * po/Makefile: Likewise.
38000         * rt/Makefile: Likewise.
38001         * socket/Makefile: Likewise.
38002         * math/Makefile: Likewise.
38003         * signal/Makefile: Likewise.
38004         * debug/Makefile: Likewise.
38005         * elf/Makefile: Likewise.
38006         * timezone/Makefile: Likewise.
38007         * stdlib/Makefile: Likewise.
38008         * iconvdata/Makefile: Likewise.
38009         * sunrpc/Makefile: Likewise.
38010         * io/Makefile: Likewise.
38011         * argp/Makefile: Likewise.
38012         * inet/Makefile: Likewise.
38013         * hesiod/Makefile: Likewise.
38014         * grp/Makefile: Likewise.
38015         * csu/Makefile: Likewise.
38016         * wctype/Makefile: Likewise.
38017         * crypt/Makefile: Likewise.
38018         * libio/Makefile: Likewise.
38019         * string/Makefile: Likewise.
38020         * nis/Makefile: Likewise.
38021         * resolv/Makefile: Likewise.
38022         * stdio-common/Makefile: Likewise.
38023         * wcsmbs/Makefile: Likewise.
38024         * dlfcn/Makefile: Likewise.
38025         * posix/Makefile: Likewise.
38026
38027         [BZ #6959]
38028         * timezone/Makefile: Don't install timezone files, just the programs
38029         and scripts.
38030
38031 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
38032
38033         * nss/databases.def: Add missing gshadow entry.
38034
38035         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
38036
38037 2012-03-06  Marek Polacek  <polacek@redhat.com>
38038
38039         [BZ #13726]
38040         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
38041         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
38042         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
38043         * stdio-common/tst-long-dbl-fphex.c: New file.
38044
38045 2012-03-06  David S. Miller  <davem@davemloft.net>
38046
38047         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
38048         (set_obp_int): New function.
38049         (get_obp_int): New function.
38050         (__get_clockfreq_via_dev_openprom): Likewise.
38051         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
38052         Avoid unused variable warnings on 'val' and use builtin_expect.
38053         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
38054         __builtin_expect.
38055         (INLINE_CLONE_SYSCALL): Likewise.
38056
38057 2012-03-05  David S. Miller  <davem@davemloft.net>
38058
38059         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38060
38061 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
38062
38063         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38064
38065         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
38066         only for |x| >= 40.
38067         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
38068
38069 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
38070
38071         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
38072         Replace gettimeofday with __vdso_gettimeofday.
38073
38074         * sysdeps/unix/sysv/linux/x86_64/init-first.c
38075         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
38076         __vdso_clock_gettime and __vdso_getcpu.
38077
38078         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
38079         time with __vdso_time.
38080
38081 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38082
38083         * manual/lang.texi (size_t): Note types to which size_t may be
38084         equivalent with the GNU C Library, but do not describe when
38085         differences between them are significant.
38086
38087 2012-03-05  Andreas Jaeger  <aj@suse.de>
38088
38089         * sysdeps/i386/fpu/libm-test-ulps: Update.
38090
38091 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38092
38093         [BZ #3976]
38094         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
38095         (__ieee754_pow): Save and restore rounding mode and use
38096         round-to-nearest for main computations.
38097         * math/libm-test.inc (pow_test_tonearest): New function.
38098         (pow_test_towardzero): Likewise.
38099         (pow_test_downward): Likewise.
38100         (pow_test_upward): Likewise.
38101         (main): Call the new functions.
38102         * sysdeps/i386/fpu/libm-test-ulps: Update.
38103         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38104
38105         [BZ #3976]
38106         * math/libm-test.inc (cosh_test_tonearest): New function.
38107         (cosh_test_towardzero): Likewise.
38108         (cosh_test_downward): Likewise.
38109         (cosh_test_upward): Likewise.
38110         (sinh_test_tonearest): Likewise.
38111         (sinh_test_towardzero): Likewise.
38112         (sinh_test_downward): Likewise.
38113         (sinh_test_upward): Likewise.
38114         (main): Call the new functions.
38115         * sysdeps/i386/fpu/libm-test-ulps: Update.
38116         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38117
38118 2012-03-05  Tom de Vries  <tom@codesourcery.com>
38119
38120         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
38121         default stack guard is set in last bytes.
38122         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
38123
38124 2012-03-05  Kees Cook  <keescook@chromium.org>
38125
38126         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
38127
38128         [BZ #13656]
38129         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
38130         possibly allocate from heap instead of stack.
38131         * stdio-common/bug-vfprintf-nargs.c: New file.
38132         * stdio-common/Makefile (tests): Add nargs overflow test.
38133
38134 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
38135
38136         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38137
38138 2012-03-03  Marek Polacek  <polacek@redhat.com>
38139
38140         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
38141         * math/math_private.h: Likewise.
38142         * stdlib/tst-strtod.c: Likewise.
38143         * sysdeps/i386/i486/bits/atomic.h: Likewise.
38144         * sysdeps/x86_64/bits/atomic.h: Likewise.
38145
38146 2012-03-02  David S. Miller  <davem@davemloft.net>
38147
38148         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
38149         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
38150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
38151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
38152         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
38153         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
38154         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
38155         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
38156
38157 2012-03-02  Roland McGrath  <roland@hack.frob.com>
38158
38159         [BZ #13792]
38160         * manual/examples/README: New file, says the example source files
38161         can be used under GPL>=2.
38162         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
38163         line containing just "*/".
38164         * manual/examples/add.c: Add copyright header (GPL>=2).
38165         * manual/examples/argp-ex1.c: Likewise.
38166         * manual/examples/argp-ex2.c: Likewise.
38167         * manual/examples/argp-ex3.c: Likewise.
38168         * manual/examples/argp-ex4.c: Likewise.
38169         * manual/examples/atexit.c: Likewise.
38170         * manual/examples/db.c: Likewise.
38171         * manual/examples/dir.c: Likewise.
38172         * manual/examples/dir2.c: Likewise.
38173         * manual/examples/execinfo.c: Likewise.
38174         * manual/examples/filecli.c: Likewise.
38175         * manual/examples/filesrv.c: Likewise.
38176         * manual/examples/fmtmsgexpl.c: Likewise.
38177         * manual/examples/genpass.c: Likewise.
38178         * manual/examples/inetcli.c: Likewise.
38179         * manual/examples/inetsrv.c: Likewise.
38180         * manual/examples/isockad.c: Likewise.
38181         * manual/examples/longopt.c: Likewise.
38182         * manual/examples/memopen.c: Likewise.
38183         * manual/examples/memstrm.c: Likewise.
38184         * manual/examples/mkfsock.c: Likewise.
38185         * manual/examples/mkisock.c: Likewise.
38186         * manual/examples/mygetpass.c: Likewise.
38187         * manual/examples/pipe.c: Likewise.
38188         * manual/examples/popen.c: Likewise.
38189         * manual/examples/rprintf.c: Likewise.
38190         * manual/examples/search.c: Likewise.
38191         * manual/examples/select.c: Likewise.
38192         * manual/examples/setjmp.c: Likewise.
38193         * manual/examples/sigh1.c: Likewise.
38194         * manual/examples/sigusr.c: Likewise.
38195         * manual/examples/stpcpy.c: Likewise.
38196         * manual/examples/strdupa.c: Likewise.
38197         * manual/examples/strftim.c: Likewise.
38198         * manual/examples/strncat.c: Likewise.
38199         * manual/examples/subopt.c: Likewise.
38200         * manual/examples/swapcontext.c: Likewise.
38201         * manual/examples/termios.c: Likewise.
38202         * manual/examples/testopt.c: Likewise.
38203         * manual/examples/testpass.c: Likewise.
38204         * manual/examples/timeval_subtract.c: Likewise.
38205
38206         [BZ #13792]
38207         * manual/time.texi (Elapsed Time): Move timeval_subtract example
38208         function to ...
38209         * manual/timeval_subtract.c.texi: ... here, new file.
38210
38211 2012-03-02  David S. Miller  <davem@davemloft.net>
38212
38213         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
38214
38215 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
38216
38217         [BZ #3976]
38218         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
38219         (__sin): Save and restore rounding mode and use round-to-nearest
38220         for all computations.
38221         (__cos): Save and restore rounding mode and use round-to-nearest
38222         for all computations.
38223         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
38224         <fenv.h>.
38225         (tan): Save and restore rounding mode and use round-to-nearest for
38226         all computations.
38227         * math/libm-test.inc (cos_test_tonearest): New function.
38228         (cos_test_towardzero): Likewise.
38229         (cos_test_downward): Likewise.
38230         (cos_test_upward): Likewise.
38231         (sin_test_tonearest): Likewise.
38232         (sin_test_towardzero): Likewise.
38233         (sin_test_downward): Likewise.
38234         (sin_test_upward): Likewise.
38235         (tan_test_tonearest): Likewise.
38236         (tan_test_towardzero): Likewise.
38237         (tan_test_downward): Likewise.
38238         (tan_test_upward): Likewise.
38239         (main): Call the new functions.
38240         * sysdeps/i386/fpu/libm-test-ulps: Update.
38241         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38242
38243         [BZ #10135]
38244         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
38245         small n, then large n, before computing and testing k+n.
38246         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38247         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
38248         Likewise.
38249         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
38250         Likewise.
38251         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
38252         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
38253         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
38254         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
38255         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
38256         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
38257         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
38258         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
38259         * math/libm-test.inc (scalbn_test): Add more tests.
38260         (scalbln_test): Likewise.
38261
38262         * manual/filesys.texi (mode_t): Describe constraints on size and
38263         signedness, not exact equivalence to a particular type.
38264         (ino_t): Likewise.
38265         (ino64_t): Likewise.
38266         (dev_t): Likewise.
38267         (nlink_t): Likewise.
38268         (blkcnt_t): Likewise.
38269         (blkcnt64_t): Likewise.
38270         * manual/llio.texi (off_t): Likewise.
38271
38272         [BZ #3976]
38273         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
38274         (__ieee754_exp): Save and restore rounding mode and use
38275         round-to-nearest for all computations.
38276         * math/libm-test.inc (exp_test_tonearest): New function.
38277         (exp_test_towardzero): Likewise.
38278         (exp_test_downward): Likewise.
38279         (exp_test_upward): Likewise.
38280         (main): Call the new functions.
38281         * sysdeps/i386/fpu/libm-test-ulps: Update.
38282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38283
38284 2012-03-01  Chris Demetriou  <cgd@google.com>
38285
38286         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
38287         have predictable order.
38288
38289 2012-03-01  David S. Miller  <davem@davemloft.net>
38290
38291         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
38292
38293         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
38294         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
38295         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
38296         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
38297
38298         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
38299         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
38300         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
38301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
38302         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
38303         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
38304         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
38305         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
38306         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
38307
38308         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38309
38310         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
38311         * sysdeps/sparc/fpu/libm-test-ulps: to here.
38312         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
38313
38314         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
38315         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
38316         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38317         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
38318         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
38319         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
38320         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
38321         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
38322         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38323         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
38324         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
38325         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38326         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38327         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38328         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38329         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38330         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
38331         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
38332         * sysdeps/sparc/elf/configure: Regenerated.
38333
38334 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
38335
38336         * configure.in (AS, LD): Require binutils 2.20 or later.
38337         * configure: Regenerated.
38338         * manual/install.texi (Tools for Compilation): Give binutils 2.20
38339         as required minimum version.
38340         * INSTALL: Regenerated.
38341
38342         [BZ #2541]
38343         [BZ #4108]
38344         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
38345         before squaring exponent.
38346         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
38347         bottom long double and 27 bits of top long double before squaring
38348         exponent.
38349         * math/libm-test.inc (erfc_test): Add more tests.
38350         * sysdeps/i386/fpu/libm-test-ulps: Update.
38351         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38353
38354 2012-03-01  Kai Tietz  <ktietz@redhat.com>
38355
38356         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
38357         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
38358         containing bit-fields.
38359         * soft-fp/extended.h (_FP_UNION_E): Likewise.
38360         * soft-fp/single.h (_FP_UNION_S): Likewise.
38361         * soft-fp/double.h (_FP_UNION_D): Likewise.
38362
38363 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38364
38365         [BZ #13786]
38366         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
38367         not include ../strcmp.S.
38368         [USE_AS_STRNCASECMP_L]: Likewise.
38369         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
38370         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
38371         * sysdeps/i386/i686/multiarch/strncase_l-c.c
38372         (__strncasecmp_l_ia32): Define as alias to
38373         __strncasecmp_l_nonascii.
38374
38375         [BZ #5794]
38376         * math/libm-test.inc (expm1_test): Add test for bug 5794.
38377         * sysdeps/i386/fpu/libm-test-ulps: Update.
38378         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38379
38380         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
38381         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38382
38383 2012-02-29  Jeff Law  <law@redhat.com>
38384
38385         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
38386         out of bounds read.
38387
38388 2012-02-29  Marek Polacek  <polacek@redhat.com>
38389
38390         [BZ #13706]
38391         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
38392         * elf/Makefile: Add rules to run tst-unused-dep.out.
38393
38394 2012-02-28  David S. Miller  <davem@davemloft.net>
38395
38396         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
38397         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
38398         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
38399         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
38400         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
38401         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
38402
38403 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38404
38405         * math/libm-test.inc (llround_test): Move one test from
38406         lround_test.  Use TEST_f_L in moved test.
38407         (lround_test): Move misplaced test to llround_test.  Add testcase
38408         from bug 2561.
38409
38410 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
38411
38412         * sysdeps/x86_64/fpu/e_expf.S: New file.
38413         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
38414
38415 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
38416
38417         [BZ #13637]
38418         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
38419         of remain_len that may cause incomplete multi-byte character and
38420         false match.
38421         * posix/bug-regex33.c: New file.
38422         * posix/Makefile (tests): Add bug-regex33.
38423
38424 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
38425
38426         * manual/macros.texi: New file.
38427         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
38428         * manual/libc.texinfo: Include macros.texi.
38429         * manual/creatute.texi: Likewise.
38430         * manual/install.texi: Likewise.
38431         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
38432         @glibcadj{} in references to the GNU C Library.
38433         * manual/charset.texi: Likewise.
38434         * manual/conf.texi: Likewise.
38435         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
38436         when not using those macros.
38437         * manual/creature.texi: Likewise.
38438         * manual/crypt.texi: Likewise.
38439         * manual/errno.texi: Likewise.
38440         * manual/filesys.texi: Likewise.
38441         * manual/header.texi: Likewise.
38442         * manual/install.texi: Likewise.
38443         * manual/intro.texi: Likewise.
38444         * manual/io.texi: Likewise.
38445         * manual/job.texi: Likewise.
38446         * manual/lang.texi: Likewise.
38447         * manual/libc.texiinfo: Likewise.
38448         * manual/llio.texi: Likewise.
38449         * manual/locale.texi: Likewise.
38450         * manual/maint.texi: Likewise.
38451         * manual/math.texi: Likewise.
38452         * manual/memory.texi: Likewise.
38453         * manual/message.texi: Likewise.
38454         * manual/nss.texi: Likewise.
38455         * manual/pattern.texi: Likewise.
38456         * manual/process.texi: Likewise.
38457         * manual/resource.texi: Likewise.
38458         * manual/search.texi: Likewise.
38459         * manual/setjmp.texi: Likewise.
38460         * manual/signal.texi: Likewise.
38461         * manual/socket.texi: Likewise.
38462         * manual/startup.texi: Likewise.
38463         * manual/stdio.texi: Likewise.
38464         * manual/string.texi: Likewise.
38465         * manual/sysinfo.texi: Likewise.
38466         * manual/syslog.texi: Likewise.
38467         * manual/terminal.texi: Likewise.
38468         * manual/time.texi: Likewise.
38469         * manual/users.texi: Likewise.
38470         * INSTALL: Regenerated.
38471         * NOTES: Regenerated.
38472         * sysdeps/gnu/errlist.c: Regenerated.
38473
38474 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
38475
38476         * include/dirent.h: Include <dirstream.h> before
38477         <dirent/dirent.h>.
38478
38479 2012-02-28  David S. Miller  <davem@davemloft.net>
38480
38481         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
38482         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
38483         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
38484         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
38485
38486 2012-02-27  David S. Miller  <davem@davemloft.net>
38487
38488         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
38489         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
38490         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
38491         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
38492
38493         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
38494         frame pointer instead of stack pointer relative arg slot.
38495         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38496         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38497         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38498
38499 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
38500
38501         [BZ #3992]
38502         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
38503
38504 2012-02-27  David S. Miller  <davem@davemloft.net>
38505
38506         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
38507         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38508         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
38509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
38510         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38511         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38512         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
38513         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
38514
38515 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38516
38517         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
38518         later.  Allow versions 5-9.
38519         * configure: Regenerated.
38520         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
38521         required minimum version and 4.6 as recommended version.  Do not
38522         mention bugs in GCC 2.7 and 2.8.
38523         * INSTALL: Regenerated.
38524
38525 2012-02-27  David S. Miller  <davem@davemloft.net>
38526
38527         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
38528         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
38529         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
38530         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
38531         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
38532         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
38533         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
38534         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
38535
38536         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
38537         manipulate bits before adding and subtracting TWO112[sx].
38538         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38539
38540 2012-02-27  Roland McGrath  <roland@hack.frob.com>
38541
38542         [BZ #13775]
38543         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
38544         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
38545         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
38546         being in POSIX, because they are in 1003.1-2008.
38547
38548         * rt/tst-aio.c: Include <fcntl.h>.
38549         * rt/tst-aio7.c: Likewise.
38550         * rt/tst-aio64.c: Likewise.
38551
38552         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
38553
38554 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38555
38556         * manual/install.texi (--with-headers): Describe headers as
38557         interface headers, not private headers.
38558         (Specific advice for GNU/Linux systems): Describe use of headers
38559         from "make headers_install", not private headers from older
38560         kernels.
38561         * INSTALL: Regenerated.
38562         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
38563         Change to 2.6.19.
38564         * sysdeps/unix/sysv/linux/configure: Regenerated.
38565
38566         * manual/llio.texi (fclean): Remove documentation.
38567
38568         * manual/Makefile (libc-texi-generated): New variable.  Include
38569         version.texi.
38570         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
38571         $(libc-texi-generated), not duplicated list of files.
38572         (version.texi, stamp-version): New rules.
38573         (realclean): Remove $(libc-texi-generated), not individual files
38574         from that list.  Do not remove dir-add.texinfo.
38575         * manual/libc.texinfo: Comment out uses of edition numbers and
38576         references to printed manual.  Remove last-updated dates.
38577         (EDITION): Comment out.
38578         (ISBN): Likewise.
38579         (VERSION, UPDATED): Remove.
38580         (version.texi): Include.
38581
38582 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
38583
38584         * sysdeps/posix/spawni.c: Include <signal.h>.
38585         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
38586         * sysdeps/pthread/aio_fsync.c: Likewise.
38587
38588 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
38589
38590         * conform/Makefile (tests): Run only when not cross-compiling and
38591         when fast-check is not defined.
38592
38593         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
38594         * conform/data/limits.h-data: Fixes for POSIX2008.
38595         * conform/run-conformtest.sh: Run all tests.
38596         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
38597         headers.
38598         * include/bits/dlfcn.h: Likewise.
38599         * include/langinfo.h: Likewise.
38600         * include/monetary.h: Likewise.
38601         * include/sys/poll.h: Likewise.
38602
38603         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
38604         for __USE_GNU.
38605         * posix/spawn.h: Define __need_sigset_t.
38606         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
38607         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
38608         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
38609         to get sigevent_t only.
38610         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
38611         only for __USE_GNU.
38612         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
38613         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
38614         process_vm_writev only for __USE_GNU.
38615         * termios/termios.h: Declare tcgetsid also for POSIX2008.
38616
38617         * conform/Makefile: For now ignore errors from run-conformtest.
38618         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
38619         POSIX to avoid namespace pollution.  Don't prepend headers.
38620         * conform/data/aio.h-data: Fixes for POSIX testing.
38621         * conform/data/fcntl.h-data: Likewise.
38622         * conform/data/glob.h-data: Likewise.
38623         * conform/data/grp.h-data: Likewise.
38624         * conform/data/pthread.h-data: Likewise.
38625         * conform/data/pwd.h-data: Likewise.
38626         * conform/data/signal.h-data: Likewise.
38627         * conform/data/spawn.h-data: Likewise.
38628         * conform/data/stdio.h-data: Likewise.
38629         * conform/data/stdlib.h-data: Likewise.
38630         * conform/data/stropts.h-data: Likewise.
38631         * conform/data/sys/mman.h-data: Likewise.
38632         * conform/data/sys/stat.h-data: Likewise.
38633         * conform/data/sys/types.h-data: Likewise.
38634         * conform/data/sys/wait.h-data: Likewise.
38635         * conform/data/time.h-data: Likewise.
38636         * conform/data/unistd.h-data: Likewise.
38637         * conform/data/utime.h-data: Likewise.
38638
38639         * io/sys/stat.h: fchmod was always in POSIX.
38640         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
38641         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
38642         * rt/aio.h: Define __need_timespec before including <time.h>.
38643         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
38644         struct.  Add forward declaration of pthread_attr_t and use it in
38645         sigevent.
38646         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
38647         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
38648         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
38649         always remove CLK_TCK definition.
38650
38651 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
38652
38653         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
38654
38655 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
38656
38657         * conform/run-conformtest.sh: New file.
38658         * conform/Makefile: Run run-conformtest for tests.
38659         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
38660         support.
38661
38662         * conform/data/uchar.h-data: New file.
38663         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
38664         * conform/data/arpa/inet.h-data: Likewise.
38665         * conform/data/assert.h-data: Likewise.
38666         * conform/data/complex.h-data: Likewise.
38667         * conform/data/cpio.h-data: Likewise.
38668         * conform/data/ctype.h-data: Likewise.
38669         * conform/data/dirent.h-data: Likewise.
38670         * conform/data/dlfcn.h-data: Likewise.
38671         * conform/data/errno.h-data: Likewise.
38672         * conform/data/fcntl.h-data: Likewise.
38673         * conform/data/float.h-data: Likewise.
38674         * conform/data/fmtmsg.h-data: Likewise.
38675         * conform/data/fnmatch.h-data: Likewise.
38676         * conform/data/ftw.h-data: Likewise.
38677         * conform/data/glob.h-data: Likewise.
38678         * conform/data/grp.h-data: Likewise.
38679         * conform/data/iconv.h-data: Likewise.
38680         * conform/data/inttypes.h-data: Likewise.
38681         * conform/data/langinfo.h-data: Likewise.
38682         * conform/data/libgen.h-data: Likewise.
38683         * conform/data/limits.h-data: Likewise.
38684         * conform/data/locale.h-data: Likewise.
38685         * conform/data/math.h-data: Likewise.
38686         * conform/data/monetary.h-data: Likewise.
38687         * conform/data/mqueue.h-data: Likewise.
38688         * conform/data/ndbm.h-data: Likewise.
38689         * conform/data/net/if.h-data: Likewise.
38690         * conform/data/netdb.h-data: Likewise.
38691         * conform/data/netinet/in.h-data: Likewise.
38692         * conform/data/nl_types.h-data: Likewise.
38693         * conform/data/poll.h-data: Likewise.
38694         * conform/data/pthread.h-data: Likewise.
38695         * conform/data/pwd.h-data: Likewise.
38696         * conform/data/regex.h-data: Likewise.
38697         * conform/data/sched.h-data: Likewise.
38698         * conform/data/search.h-data: Likewise.
38699         * conform/data/semaphore.h-data: Likewise.
38700         * conform/data/setjmp.h-data: Likewise.
38701         * conform/data/signal.h-data: Likewise.
38702         * conform/data/spawn.h-data: Likewise.
38703         * conform/data/stdarg.h-data: Likewise.
38704         * conform/data/stdio.h-data: Likewise.
38705         * conform/data/stdlib.h-data: Likewise.
38706         * conform/data/string.h-data: Likewise.
38707         * conform/data/strings.h-data: Likewise.
38708         * conform/data/stropts.h-data: Likewise.
38709         * conform/data/sys/ipc.h-data: Likewise.
38710         * conform/data/sys/mman.h-data: Likewise.
38711         * conform/data/sys/msg.h-data: Likewise.
38712         * conform/data/sys/resource.h-data: Likewise.
38713         * conform/data/sys/select.h-data: Likewise.
38714         * conform/data/sys/sem.h-data: Likewise.
38715         * conform/data/sys/shm.h-data: Likewise.
38716         * conform/data/sys/socket.h-data: Likewise.
38717         * conform/data/sys/stat.h-data: Likewise.
38718         * conform/data/sys/statvfs.h-data: Likewise.
38719         * conform/data/sys/time.h-data: Likewise.
38720         * conform/data/sys/timeb.h-data: Likewise.
38721         * conform/data/sys/times.h-data: Likewise.
38722         * conform/data/sys/types.h-data: Likewise.
38723         * conform/data/sys/uio.h-data: Likewise.
38724         * conform/data/sys/un.h-data: Likewise.
38725         * conform/data/sys/utsname.h-data: Likewise.
38726         * conform/data/sys/wait.h-data: Likewise.
38727         * conform/data/syslog.h-data: Likewise.
38728         * conform/data/tar.h-data: Likewise.
38729         * conform/data/termios.h-data: Likewise.
38730         * conform/data/utime.h-data: Likewise.
38731         * conform/data/utmpx.h-data: Likewise.
38732         * conform/data/varargs.h-data: Likewise.
38733         * conform/data/wchar.h-data: Likewise.
38734         * conform/data/wctype.h-data: Likewise.
38735         * conform/data/wordexp.h-data: Likewise.
38736
38737         * include/stropts.h: New file.
38738         * include/uchar.h: New file.
38739         * include/aio.h: Changes to allow conformtest.pl to use the headers.
38740         * include/assert.h: Likewise.
38741         * include/ctype.h: Likewise.
38742         * include/dirent.h: Likewise.
38743         * include/dlfcn.h: Likewise.
38744         * include/fcntl.h: Likewise.
38745         * include/fnmatch.h: Likewise.
38746         * include/glob.h: Likewise.
38747         * include/grp.h: Likewise.
38748         * include/libio.h: Likewise.
38749         * include/locale.h: Likewise.
38750         * include/math.h: Likewise.
38751         * include/net/if.h: Likewise.
38752         * include/netdb.h: Likewise.
38753         * include/netinet/in.h: Likewise.
38754         * include/pthread.h: Likewise.
38755         * include/pwd.h: Likewise.
38756         * include/regex.h: Likewise.
38757         * include/sched.h: Likewise.
38758         * include/search.h: Likewise.
38759         * include/setjmp.h: Likewise.
38760         * include/signal.h: Likewise.
38761         * include/stdio.h: Likewise.
38762         * include/stdlib.h: Likewise.
38763         * include/string.h: Likewise.
38764         * include/sys/cdefs.h: Likewise.
38765         * include/sys/mman.h: Likewise.
38766         * include/sys/msg.h: Likewise.
38767         * include/sys/resource.h: Likewise.
38768         * include/sys/select.h: Likewise.
38769         * include/sys/socket.h: Likewise.
38770         * include/sys/stat.h: Likewise.
38771         * include/sys/statvfs.h: Likewise.
38772         * include/sys/time.h: Likewise.
38773         * include/sys/times.h: Likewise.
38774         * include/sys/uio.h: Likewise.
38775         * include/sys/utsname.h: Likewise.
38776         * include/sys/wait.h: Likewise.
38777         * include/termios.h: Likewise.
38778         * include/time.h: Likewise.
38779         * include/ulimit.h: Likewise.
38780         * include/unistd.h: Likewise.
38781         * include/utime.h: Likewise.
38782         * include/wchar.h: Likewise.
38783         * include/wctype.h: Likewise.
38784         * include/wordexp.h: Likewise.
38785
38786         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
38787
38788         * time/time.h: TIME_UTC must be a macro.
38789         Make timespec_get available for ISO C11 only as well.
38790
38791 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
38792
38793         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
38794         Reported by Peng Haitao <penght@cn.fujitsu.com>.
38795
38796 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38797
38798         * configure.in: Use -o not -a in test for unsupported multi-arch.
38799
38800 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38801
38802         * manual/texinfo.tex: Update to version 2012-01-19.16.
38803
38804 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38805
38806         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
38807
38808 2012-02-24  Roland McGrath  <roland@hack.frob.com>
38809
38810         [BZ #13738]
38811         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
38812         * manual/fdl-1.3.texi: New file.
38813         * manual/fdl-1.1.texi: File removed.
38814
38815         [BZ #13738]
38816         * manual/libc.texinfo (FDL_VERSION): New @set.
38817         Use it for mention of FDL in cover text.
38818         (Documentation License): Use it in @include file name.
38819
38820 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38821             Roland McGrath  <roland@hack.frob.com>
38822
38823         [BZ #5461]
38824         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
38825         (not LONG_LONG_MAX and LONG_LONG_MIN.
38826         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
38827         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
38828         name.
38829         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
38830
38831 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38832
38833         [BZ #2547]
38834         [BZ #11365]
38835         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
38836         manipulate bits before adding and subtracting TWO23[sx].
38837         * math/libm-test.inc (nearbyint_test): Add more tests.
38838
38839 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38840
38841         [BZ #2548]
38842         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
38843         bits before adding and subtracting TWO23[sx].
38844         * math/libm-test.inc (rint_test): Add more tests.
38845         (rint_test_tonearest): Likewise.
38846         (rint_test_towardzero): Likewise.
38847         (rint_test_downward): Likewise.
38848         (rint_test_upward: Likewise.
38849
38850 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38851
38852         [BZ #10110]
38853         * include/stdc-predef.h: New file.  Extracted from features.h.
38854         * include/features.h: Include stdc-predef.h.
38855         * Makefile (headers): Add stdc-predef.h.
38856         * CONFORMANCE (Compiler limitations): Update.
38857
38858 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38859
38860         * manual/libc.texinfo (VERSION, UPDATED): Revert.
38861
38862 2012-02-21  David S. Miller  <davem@davemloft.net>
38863
38864         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
38865         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38866
38867 2012-02-20  David S. Miller  <davem@davemloft.net>
38868
38869         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
38870         using a normal save/restore sequence, rather than allocating a
38871         dummy stack frame just to store a frame pointer and restore.
38872         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38873
38874 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38875
38876         * manual/install.texi: Fix stray word in line-wrapped comment.
38877
38878 2012-02-20  David S. Miller  <davem@davemloft.net>
38879
38880         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
38881         both binutils and gcc support GOTDATA.
38882
38883         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
38884         "rd %pc" in the PIC register setup sequences.
38885
38886         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
38887         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38888         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38889         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38890         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38891         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38892         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38893         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38894         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
38895         (SYSCALL_ERROR_HANDLER): Likewise.
38896         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38897         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38898         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
38899         (SYSCALL_ERROR_HANDLER): Likewise.
38900
38901         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
38902         (HAVE_GCC_GOTDATA): New.
38903         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
38904         relocation support in both binutils and gcc.
38905         * sysdeps/sparc/elf/configure: Regenerate.
38906
38907         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
38908         * sysdeps/sparc/sparc32/elf/configure: Delete.
38909         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
38910         * sysdeps/sparc/sparc64/elf/configure: Delete.
38911         * sysdeps/sparc/elf/configure.in: New file.
38912         * sysdeps/sparc/elf/configure: Generate.
38913
38914         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
38915         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
38916         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
38917         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
38918         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
38919
38920 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38921
38922         * manual/install.texi: Do not mention specific glibc version
38923         numbers.
38924         * manual/libc.texinfo (VERSION, UPDATED): Update.
38925         (@copying): Use @copyright{} and range of years.
38926
38927 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38928
38929         [BZ #13695]
38930         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
38931         [crti.S not in sysdirs] (generated): Do not append.
38932         [crti.S not in sysdirs] (omit-deps): Likewise.
38933         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
38934         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
38935         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
38936         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
38937         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
38938         Likewise.
38939         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
38940         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
38941         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
38942         * csu/defs.awk: Remove file.
38943         * sysdeps/generic/initfini.c: Likewise.
38944         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
38945         variable.
38946         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
38947         Likewise.
38948
38949 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38950
38951         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
38952         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
38953         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
38954         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
38955         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38956         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
38957         <bits/epoll.h>.
38958         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
38959         (__EPOLL_PACKED): Define to empty if not defined by
38960         <bits/epoll.h>.
38961         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
38962         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38963         bits/epoll.h.
38964
38965 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38966
38967         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
38968         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
38969         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
38970         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
38971         <bits/timerfd.h>.
38972         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
38973         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38974         bits/timerfd.h.
38975
38976 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38977
38978         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
38979         in C locale.
38980         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38981         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
38982         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
38983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38984
38985 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
38986
38987         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38988         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38989
38990 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
38991
38992         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
38993         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
38994         defined.
38995         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
38996         Likewise.
38997         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
38998         entry for 2.16.
38999
39000 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
39001
39002         * math/w_acos.c: Use non-signaling floating-point comparisons.
39003         * math/w_acosf.c: Likewise.
39004         * math/w_acosh.c: Likewise.
39005         * math/w_acoshf.c: Likewise.
39006         * math/w_acoshl.c: Likewise.
39007         * math/w_acosl.c: Likewise.
39008         * math/w_asin.c: Likewise.
39009         * math/w_asinf.c: Likewise.
39010         * math/w_asinl.c: Likewise.
39011         * math/w_atanh.c: Likewise.
39012         * math/w_atanhf.c: Likewise.
39013         * math/w_atanhl.c: Likewise.
39014         * math/w_exp2.c: Likewise.
39015         * math/w_exp2f.c: Likewise.
39016         * math/w_exp2l.c: Likewise.
39017         * math/w_j0.c: Likewise.
39018         * math/w_j0f.c: Likewise.
39019         * math/w_j0l.c: Likewise.
39020         * math/w_j1.c: Likewise.
39021         * math/w_j1f.c: Likewise.
39022         * math/w_j1l.c: Likewise.
39023         * math/w_jn.c: Likewise.
39024         * math/w_jnf.c: Likewise.
39025         * math/w_log.c: Likewise.
39026         * math/w_log10.c: Likewise.
39027         * math/w_log10f.c: Likewise.
39028         * math/w_log10l.c: Likewise.
39029         * math/w_log2.c: Likewise.
39030         * math/w_log2f.c: Likewise.
39031         * math/w_log2l.c: Likewise.
39032         * math/w_logf.c: Likewise.
39033         * math/w_logl.c: Likewise.
39034         * math/w_sqrt.c: Likewise.
39035         * math/w_sqrtf.c: Likewise.
39036         * math/w_sqrtl.c: Likewise.
39037         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39038         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
39039         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39040         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39041         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39042
39043 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39044
39045         [BZ #9739]
39046         * manual/string.texi (strnlen): Use correct parameter name in
39047         equivalent expression.
39048
39049 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39050
39051         [BZ #11174]
39052         * manual/users.texi (seteuid): Consistently use neweuid for
39053         argument name.
39054
39055 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39056
39057         [BZ #13704]
39058         * manual/nss.texi (Services in the NSS configuration): Correct
39059         list of services in example configuration file.
39060
39061 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
39062
39063         [BZ #11322]
39064         * manual/arith.texi: Remove statements about negative zero
39065         behaving identically to zero.
39066
39067 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39068
39069         [BZ #5993]
39070         * manual/install.texi: Do not document upgrading from libc5.
39071
39072 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39073
39074         [BZ #4596]
39075         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
39076
39077 2012-02-18  David S. Miller  <davem@davemloft.net>
39078
39079         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
39080         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
39081         %o7 across the call.
39082         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
39083         instead.
39084         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
39085         SETUP_PIC_REG_LEAF.
39086         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
39087         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
39088         * sysdeps/sparc/crtn.S: Likewise.
39089
39090 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
39091
39092         * aout/Makefile: Remove.
39093
39094 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
39095
39096         [BZ #13058]
39097         * manual/examples/argp-ex1.c (main): Format definition in GNU
39098         style.
39099         * manual/examples/argp-ex2.c (main): Likewise.
39100         * manual/examples/argp-ex3.c (main): Likewise.
39101         * manual/examples/argp-ex4.c (main): Likewise.
39102         * manual/examples/longopt.c (main): Use new-style prototype
39103         definition.
39104         * manual/examples/strncat.c (main): Specify return type and use
39105         (void) for arguments.
39106         * manual/examples/subopt.c (main): Use char **argv argument.
39107
39108 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39109
39110         [BZ #5077]
39111         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
39112         rounding modes.
39113
39114 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
39115
39116         [BZ #6907]
39117         * manual/string.texi (strchr): Change when strchrnul is
39118         recommended.
39119
39120 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
39121
39122         [BZ #174]
39123         * manual/locale.texi (setlocale): Document LOCPATH.
39124
39125 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39126
39127         [BZ #10210]
39128         * manual/process.texi (execle): Move @dots{} before last argument.
39129
39130 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
39131
39132         [BZ #12047]
39133         * manual/charset.texi (Generic Charset Conversion): Fix typo
39134         (LC_TYPE -> LC_CTYPE).
39135
39136 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
39137
39138         [BZ #5805]
39139         * manual/arith.texi (scalbn): Use @var{} on parameter names.
39140         (scalbnf): Likewise.
39141         (scalbnl): Likewise.
39142         (scalbln): Likewise.
39143         (scalblnf): Likewise.
39144         (scalblnl): Likewise.
39145         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
39146         (vwarnx): Likewise.
39147         (verr): Likewise.
39148         (verrx): Likewise.
39149         * manual/filesys.texi (telldir): Use braces around return type.
39150         * manual/llio.texi (mmap): Add space after comma.
39151         (mmap64): Likewise.
39152         * manual/math.texi (jn): Use @var{} on parameter names.
39153         (jnf): Likewise.
39154         (jnl): Likewise.
39155         (yn): Likewise.
39156         (ynf): Likewise.
39157         (ynl): Likewise.
39158         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
39159         line.
39160         * manual/resource.texi (ulimit): Use @dots{} instead of literal
39161         "...".
39162         (sched_get_priority_min): Remove semicolon on @deftypefun line.
39163         (sched_get_priority_max): Likewise.
39164         * manual/signal.texi (sigvec): Add space after comma.
39165         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
39166         names.
39167         (if_indextoname): Likewise.
39168         (if_freenameindex): Likewise.
39169         (sendto): Use ',' instead of '.' in prototype.
39170         * manual/startup.texi (syscall): Use @dots{} instead of literal
39171         "...".
39172         * manual/stdio.texi (__fpending): Separate initial words of
39173         paragraph from @deftypefun line.
39174         * manual/syslog.texi (syslog): Use @dots{} instead of literal
39175         "...".
39176         (vsyslog): Use @var{} on parameter names.
39177         * manual/terminal.texi (stty): Use @var{} on parameter names.
39178         * manual/users.texi (getutmp): Use @var{} on parameter names.
39179         (getutmpx): Likewise.
39180
39181 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39182
39183         [BZ #6884]
39184         * manual/stdio.texi (fopen): Fix typos in description of
39185         ",ccs=STRING".
39186
39187 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
39188
39189         [BZ #4026]
39190         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
39191         get clock_id definition.
39192
39193 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
39194
39195         [BZ #4822]
39196         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
39197         (madvise): Cast every argument to void on its own.
39198
39199 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39200
39201         [BZ #9902]
39202         * manual/startup.texi (Exit Status): Fix typo.
39203
39204 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39205
39206         [BZ #10140]
39207         * manual/examples/argp-ex1.c: Include <stdlib.h>.
39208         * manual/examples/argp-ex2.c: Likewise.
39209         * manual/examples/argp-ex3.c: Likewise.
39210
39211 2012-02-16  Richard Henderson  <rth@redhat.com>
39212
39213         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
39214         * sysdeps/s390/s390-32/initfini.c: Remove.
39215         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
39216         * sysdeps/s390/s390-64/initfini.c: Remove.
39217
39218 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39219
39220         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
39221         compiler output for sysdeps/generic/initfini.c.
39222         * sysdeps/sh/elf/initfini.c: Remove file.
39223
39224 2012-02-16  David S. Miller  <davem@davemloft.net>
39225
39226         [BZ #11494]
39227         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
39228
39229         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
39230         * sysdeps/sparc/crti.S: New file.
39231         * sysdeps/sparc/crtn.S: New file.
39232         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
39233         * sysdeps/sparc/sparc64/Makefile: Likewise.
39234
39235 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
39236
39237         [BZ #3335]
39238         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
39239
39240 2012-02-15  Roland McGrath  <roland@hack.frob.com>
39241
39242         [BZ #4822]
39243         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
39244
39245         * mach/devstream.c (cookie_io_functions_t): Macro removed.
39246         (write, read, close): Likewise.
39247         Patch by Aurelien Jarno <aurelien@aurel32.net>.
39248
39249 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
39250
39251         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
39252         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
39253         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
39254         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
39255         <bits/signalfd.h>.
39256         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
39257         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39258         bits/signalfd.h.
39259
39260 2012-02-14  Marek Polacek  <polacek@redhat.com>
39261
39262         * sysdeps/x86_64/crti.S: New file.
39263         * sysdeps/x86_64/crtn.S: New file.
39264         * sysdeps/x86_64/elf/initfini.c: Remove file.
39265
39266 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39267
39268         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
39269         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
39270         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
39271         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
39272         <bits/inotify.h>.
39273         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
39274         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39275         bits/inotify.h.
39276
39277 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39278
39279         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
39280         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
39281         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
39282         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
39283         <bits/eventfd.h>.
39284         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
39285         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39286         bits/eventfd.h.
39287
39288 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
39289
39290         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
39291         __feraiseexcept instead of feraiseexcept.
39292
39293         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
39294         nanosleep invocations.
39295         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
39296         strings, and add error checking for a nanosleep invocations.
39297
39298 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39299
39300         Replace FSF snail mail address with URLs, as per GNU coding standards.
39301         Most of the snail mail addresses were wrong anyway, and omitting
39302         them makes the source code easier to maintain.  Almost all of the
39303         changes are to license notices and to locale LC_IDENTIFICATION
39304         addresses, except for this one:
39305         * manual/libc.texinfo: In "Published by", give the FSF's URL,
39306         not its snail mail address.
39307
39308 2012-02-09  Richard Henderson  <rth@twiddle.net>
39309
39310         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
39311         of kernel-features.h.
39312
39313         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
39314
39315 2012-02-08  Marek Polacek  <polacek@redhat.com>
39316
39317         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
39318         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
39319         * sysdeps/gnu/_G_config.h: Likewise.
39320         * sysdeps/generic/_G_config.h: Likewise.
39321
39322 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
39323
39324         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
39325         tests.
39326         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39327
39328         * sysdeps/powerpc/powerpc32/crti.S: New file.
39329         * sysdeps/powerpc/powerpc32/crtn.S: New file.
39330         * sysdeps/powerpc/powerpc64/crti.S: New file.
39331         * sysdeps/powerpc/powerpc64/crtn.S: New file.
39332
39333         * Makeconfig (have-initfini): Don't set.
39334         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
39335         * configure.in (nopic_initfini): Don't substitute.
39336         * config.h.in (HAVE_INITFINI): Don't #undef.
39337         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
39338         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
39339
39340 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
39341
39342         Support crti.S and crtn.S provided directly by architectures.
39343         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
39344         [crti.S in sysdirs] (omit-deps): Likewise.
39345         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
39346         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
39347         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
39348         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
39349         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
39350         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
39351         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
39352         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
39353         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
39354         compiler output for sysdeps/generic/initfini.c.
39355         * sysdeps/i386/elf/Makefile: Remove file.
39356         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
39357
39358 2012-02-07  Marek Polacek  <polacek@redhat.com>
39359
39360         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
39361         * sysdeps/gnu/_G_config.h: Likewise.
39362         * sysdeps/mach/hurd/_G_config.h: Likewise.
39363
39364 2012-02-07  Marek Polacek  <polacek@redhat.com>
39365
39366         * math/Makefile (tests): Add tst-CMPLX2.
39367         * math/tst-CMPLX2.c: New file.
39368
39369 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
39370
39371         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39372
39373         * math/libm-test.inc (jn_test): Add missing L suffix.
39374
39375 2012-02-06  Marek Polacek  <polacek@redhat.com>
39376
39377         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
39378         * sysdeps/i386/fpu/e_powf.S: Likewise.
39379         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
39380         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
39381         * sysdeps/i386/fpu/e_acosh.S: Likewise.
39382         * sysdeps/i386/fpu/e_pow.S: Likewise.
39383         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
39384         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
39385         * sysdeps/i386/fpu/s_expm1.S: Likewise.
39386         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
39387         * sysdeps/i386/fpu/e_log2.S: Likewise.
39388         * sysdeps/i386/fpu/e_log2l.S: Likewise.
39389         * sysdeps/i386/fpu/e_scalb.S: Likewise.
39390         * sysdeps/i386/fpu/e_powl.S: Likewise.
39391         * sysdeps/i386/fpu/s_log1p.S: Likewise.
39392         * sysdeps/i386/fpu/e_log10f.S: Likewise.
39393         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
39394         * sysdeps/i386/fpu/e_logl.S: Likewise.
39395         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
39396         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
39397         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
39398         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
39399         * sysdeps/i386/fpu/e_log2f.S: Likewise.
39400         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
39401         * sysdeps/i386/fpu/e_log.S: Likewise.
39402         * sysdeps/i386/fpu/s_cexp.S: Likewise.
39403         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
39404         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
39405         * sysdeps/i386/fpu/e_logf.S: Likewise.
39406         * sysdeps/i386/fpu/e_log10l.S: Likewise.
39407         * sysdeps/i386/fpu/e_atanh.S: Likewise.
39408         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
39409         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
39410         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
39411         * sysdeps/i386/fpu/e_log10.S: Likewise.
39412         * sysdeps/i386/fpu/s_frexp.S: Likewise.
39413         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
39414         * sysdeps/i386/fpu/s_asinh.S: Likewise.
39415         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
39416         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
39417         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
39418         * sysdeps/i386/asm-syntax.h: Likewise.
39419         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
39420         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
39421         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
39422         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
39423         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
39424         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
39425         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
39426         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
39427         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
39428         * sysdeps/powerpc/sysdep.h: Likewise.
39429         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
39430         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
39431
39432 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39433
39434         [BZ #411]
39435         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
39436
39437 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39438
39439         * sysdeps/i386/sysdep.h: Include <features.h>.
39440         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
39441         version.
39442
39443 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
39444
39445         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
39446         Define.
39447         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
39448         LOAD_PIC_REG_STR.
39449
39450 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39451
39452         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
39453         (SETUP_PIC_REG): Use GET_PC_THUNK.
39454         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
39455         macro.
39456
39457 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39458
39459         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
39460         for non-PIC compilation.
39461         (SETUP_PIC_REG): Add .p2align directive.
39462         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
39463         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
39464         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
39465         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
39466         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
39467         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
39468         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39469         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39470         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
39471         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
39472         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
39473         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
39474         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
39475         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
39476         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
39477         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39478         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39479         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
39480         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
39481         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
39482         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
39483         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39484         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
39485         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
39486         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
39487         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
39488         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
39489         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39490         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
39491         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
39492         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
39493         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
39494         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
39495         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
39496         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
39497         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
39498         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
39499         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
39500         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
39501         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
39502         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
39503
39504 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39505
39506         * math/tst-CMPLX.c: Include <stdio.h>.
39507
39508 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
39509
39510         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
39511         float.
39512         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39513         * sysdeps/sparc/bits/mathdef.h: Likewise.
39514
39515 2012-01-31  Marek Polacek  <polacek@redhat.com>
39516
39517         * libio/libio.h: Don't define _PARAMS.
39518         * locale/programs/config.h: Don't define PARAMS.
39519         * stdlib/strtol_l.c: Likewise.
39520         (__strtol_l): Remove PARAMS from the prototype.
39521
39522 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
39523
39524         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
39525         names.  Just use the correct names.  Remove unnecessary wrapper
39526         functions.
39527         * malloc/arena.c: Likewise.
39528         * malloc/hooks.c: Likewise.
39529
39530         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
39531         ARENA_TEST says not to.  Simplify test for creation of a new arena.
39532         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
39533
39534 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
39535
39536         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
39537         into tail calls.
39538         (update_get_addr): New function.
39539         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
39540         GET_ADDR_MODULE parameter.
39541
39542 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39543
39544         * crypt/cert.c: Remove __STDC__ conditionals.
39545         * crypt/crypt-entry.c: Likewise.
39546         * crypt/crypt_util.c: Likewise.
39547         * libio/filedoalloc.c: Likewise.
39548         * libio/fileops.c: Likewise.
39549         * libio/genops.c: Likewise.
39550         * libio/iofclose.c: Likewise.
39551         * libio/iofdopen.c: Likewise.
39552         * libio/iofopen.c: Likewise.
39553         * libio/iofopen64.c: Likewise.
39554         * libio/iogetdelim.c: Likewise.
39555         * libio/iopopen.c: Likewise.
39556         * libio/obprintf.c: Likewise.
39557         * libio/oldfileops.c: Likewise.
39558         * libio/oldiofclose.c: Likewise.
39559         * libio/oldiofdopen.c: Likewise.
39560         * libio/oldiofopen.c: Likewise.
39561         * libio/oldiopopen.c: Likewise.
39562         * libio/wfiledoalloc.c: Likewise.
39563         * libio/wgenops.c: Likewise.
39564         * locale/programs/xmalloc.c: Likewise.
39565         * misc/syslog.c: Likewise.
39566         * stdio-common/xbug.c: Likewise.
39567         * string/memchr.c: Likewise.
39568         * string/memcmp.c: Likewise.
39569         * string/memrchr.c: Likewise.
39570         * string/rawmemchr.c: Likewise.
39571         * sysdeps/posix/getcwd.c: Likewise.
39572         * time/strftime_l.c: Likewise.
39573
39574 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39575
39576         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
39577         * config.make.in (config-cflags-sse2avx): Define.
39578         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
39579         Fix typo.
39580
39581 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
39582
39583         * scripts/config.guess: Update from upstream config git repository.
39584         * scripts/config.sub: Likewise.
39585
39586 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
39587
39588         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
39589         (EM_NUM): Update.
39590         (R_TILEPRO_*, R_TILEGX_*): New macros.
39591
39592         * scripts/firstversions.awk: Fix bug in version range handling.
39593
39594         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
39595
39596         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
39597
39598         * include/sys/epoll.h: New file.
39599         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
39600         libc_hidden_def.
39601
39602 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
39603
39604         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
39605         Avoid unnecessary __WORDSIZE == 64 test.
39606         (fmaxf): Use VEX format if possible.
39607         (fmax): Likewise.
39608         (fminf): Likewise.
39609         (fmin): Likewise.
39610
39611         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
39612         * math/math_private.h: Remove libc_fegetround* and
39613         libc_fesetround*.
39614         * sysdeps/i386/configure.in: Check for -msse2avx.
39615         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
39616         also if SSE2AVX is defined.
39617         Remove libc_fegetround* and libc_fesetround*.
39618         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
39619         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
39620         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
39621         of HAS_YMM_USABLE.
39622         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39623         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39624         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39625         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39626         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39627
39628         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
39629
39630 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39631
39632         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
39633         size is not set.
39634         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
39635
39636 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
39637
39638         [BZ #13618]
39639         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
39640         relocation.
39641         * Makeconfig (libm): Define.
39642         * elf/Makefile: Add rules to build and run tst-relsort1.
39643         * elf/tst-relsort1.c: New file.
39644         * elf/tst-relsort1mod1.c: New file.
39645         * elf/tst-relsort1mod2.c: New file.
39646
39647 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
39648
39649         * math/s_ldexp.c: Remove __STDC__ conditionals.
39650         * math/s_ldexpf.c: Likewise.
39651         * math/s_ldexpl.c: Likewise.
39652         * math/s_nextafter.c: Likewise.
39653         * math/s_nexttowardf.c: Likewise.
39654         * math/s_significand.c: Likewise.
39655         * math/s_significandf.c: Likewise.
39656         * math/s_significandl.c: Likewise.
39657         * math/w_jnl.c: Likewise.
39658         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
39659         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
39660         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
39661         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
39662         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
39663         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
39664         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
39665         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
39666         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
39667         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
39668         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
39669         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39670         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
39671         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
39672         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
39673         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
39674         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
39675         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
39676         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
39677         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39678         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39679         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
39680         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
39681         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
39682         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
39683         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
39684         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
39685         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
39686         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
39687         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
39688         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
39689         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
39690         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
39691         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
39692         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
39693         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
39694         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
39695         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
39696         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
39697         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
39698         * sysdeps/ieee754/k_standard.c: Likewise.
39699         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39700         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
39701         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
39702         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
39703         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
39704         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
39705         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
39706         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
39707         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
39708         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
39709         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
39710         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
39711         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
39712         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
39713         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
39714         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
39715         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
39716         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
39717         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
39718         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
39719         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
39720         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
39721         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
39722         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
39723         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
39724         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
39725         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39726         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39727         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
39728         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
39729         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
39730         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
39731         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
39732         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39733         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
39734         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
39735         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
39736         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
39737         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
39738         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
39739         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
39740         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
39741         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
39742         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
39743         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
39744         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
39745         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
39746         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
39747         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
39748         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
39749         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
39750         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
39751         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
39752         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
39753         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
39754         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
39755         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
39756         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39757         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39758         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39759         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
39760         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
39761         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
39762         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39763         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
39764         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
39765         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39766         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39767         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39768         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39769         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39770         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39771         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39772         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39773         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39774         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39775         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39776         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39777         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39778         * sysdeps/ieee754/s_matherr.c: Likewise.
39779         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39780         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39781         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39782         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39783
39784 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39785
39786         * crypt/md5.h: Remove __STDC__ conditionals.
39787         * libio/libioP.h: Likewise.
39788         * locale/programs/config.h: Likewise.
39789         * sysdeps/generic/sysdep.h: Likewise.
39790         * sysdeps/i386/asm-syntax.h: Likewise.
39791         * sysdeps/s390/asm-syntax.h: Likewise.
39792         * sysdeps/unix/sysdep.h: Likewise.
39793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
39794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
39795
39796 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39797
39798         * libio/libio.h: Remove __STDC__ conditionals.
39799         * malloc/obstack.h: Likewise.
39800         * math/complex.h: Likewise.
39801         * math/math.h: Likewise.
39802         * sysdeps/generic/_G_config.h: Likewise.
39803         * sysdeps/gnu/_G_config.h: Likewise.
39804         * sysdeps/mach/hurd/_G_config.h: Likewise.
39805         * sysdeps/powerpc/bits/mathdef.h: Likewise.
39806         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39807         * sysdeps/sparc/bits/mathdef.h: Likewise.
39808
39809 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
39810
39811         [BZ #13583]
39812         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
39813         Clean up HAS_* macros.
39814         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
39815         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
39816         possible.
39817         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
39818         HAS_AVX.
39819         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39820         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39821         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39822         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39823         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39824
39825 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
39826
39827         * elf/tst-unique3.cc (gets): Remove declaration.
39828         * elf/tst-unique3lib.cc (gets): Likewise.
39829         * elf/tst-unique3lib2.cc (gets): Likewise.
39830         * elf/tst-unique4.cc (gets): Likewise.
39831
39832 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
39833
39834         * include/stdio.h: Add C++ protection.  Add gets declarations and
39835         definitions.
39836         * debug/tst-chk1.c: Don't declare gets here.
39837         * stdio-common/tst-gets.c: Likewise.
39838
39839 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39840
39841         * posix/glob: Remove directory.
39842
39843 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39844
39845         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
39846
39847 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
39848
39849         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
39850         of the non-standard EPFNOSUPPORT.
39851
39852 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39853
39854         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
39855         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
39856         ANYWHERE set to 1 only on KERN_NO_SPACE error.
39857
39858 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
39859
39860         * wcsmbs/uchar.h: Test __STDC_VERSION__.
39861
39862 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
39863
39864         * nscd/aicache.c (addhstaiX): Do not cache negative results of
39865         transient errors.
39866         * nscd/grpcache.c (cache_addgr): Likewise.
39867         * nscd/hstcache.c (cache_addhst): Likewise.
39868         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39869         * nscd/pwdcache.c (cache_addpw): Likewise.
39870         * nscd/servicescache.c (cache_addserv): Likewise.
39871
39872 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
39873
39874         * malloc/malloc.c: Various cleanups.
39875         * malloc/hooks.c: Likewise.
39876
39877         * stdlib/Makefile (tests): Add bug-fmtmsg1.
39878         * stdlib/bug-fmtmsg1.c: New file.
39879
39880         * stdlib/fmtmsg.c (init): Add missing unlock.
39881         Patch by Peng Haitao <penght@cn.fujitsu.com>.
39882
39883 2012-01-12  Marek Polacek  <polacek@redhat.com>
39884
39885         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
39886         and _GNU_SOURCE.
39887
39888 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
39889
39890         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
39891         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
39892         macro to ensure uniqueness of label name.
39893         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39894         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39895
39896 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
39897
39898         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
39899
39900         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
39901         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
39902         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
39903         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
39904
39905 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
39906
39907         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
39908
39909         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
39910         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
39911         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
39912
39913         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
39914
39915         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
39916         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
39917         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
39918         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
39919
39920         * math/bits/math-finite.h: Add ldexp support.
39921
39922 2012-01-10  Marek Polacek  <polacek@redhat.com>
39923
39924         * locale/programs/localedef.h (show_archive_content): Add noreturn
39925         attribute.
39926
39927 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
39928
39929         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
39930
39931 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39932
39933         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
39934
39935         * io/Makefile (headers): Add bits/poll2.h.
39936
39937 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
39938
39939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
39940         typo #include statement.
39941
39942 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39943
39944         * include/sys/cdefs.h: Define __attribute_alloc_size.
39945         * catgets/gencat.c: Add alloc_size attribute and apply consistently
39946         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
39947         * elf/pldd.c: Likewise.
39948         * iconv/iconv_charmap.c: Likewise.
39949         * iconv/iconvconfig.c: Likewise.
39950         * iconv/strtab.c: Likewise.
39951         * locale/programs/locale.c: Likewise.
39952         * locale/programs/localedef.h: Likewise.
39953         * locale/programs/simple-hash.c: Likewise.
39954         * nscd/nscd.h: Likewise.
39955         * nss/makedb.c: Likewise.
39956         * sysdeps/generic/ldconfig.h: Likewise.
39957         * locale/programs/localedef.c: Remove xmalloc prototype.
39958         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
39959
39960 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
39961
39962         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
39963         appropriate.
39964
39965 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39966
39967         * math/Makefile (tests): Add tst-CMPLX.
39968         * math/tst-CMPLX.c: New file.
39969
39970         * math/complex.h (CMPLXL): Fix typo.
39971
39972         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
39973         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
39974         GLIBC_2.16.
39975         * debug/tst-chk1.c: Add poll and ppoll tests.
39976         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
39977         * include/sys/poll.h: Add hidden proto for ppoll.
39978         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
39979         * sysdeps/mach/hurd/ppoll.c: Likewise.
39980         * io/ppoll.c: Likewise.
39981         * debug/poll_chk.c: New file.
39982         * debug/ppoll_chk.c: New file.
39983         * include/bits/poll2.h: New file.
39984         * io/bits/poll2.h: New file.
39985
39986         [BZ #1350]
39987         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
39988
39989         * configure.in: static is always set to yes.  Remove.
39990         * config.make.in: Don't set build-static.
39991         * Makeconfig: Remove use of build-static.
39992         * dlfcn/Makefile: Likewise.
39993         * elf/Makefile: Likewise.
39994         * math/Makefile: Likewise.
39995         * misc/Makefile: Likewise.
39996         * nptl/Makefile: Likewise.
39997         * sysdeps/mach/hurd/Makefile: Likewise.
39998
39999         * configure.in: PWD_P is not used anymore.
40000         * config.make.in: Remove PWD_P entry.
40001
40002         * configure.in: Remove last remnants of RANLIB.
40003         No need to check for signed size_t anymore.
40004         Don't set libc_commonpagesize and libc_relro_required here for Alpha
40005         and IA-64.
40006         Remove __builtin_expect test because we require at least gcc 3.4.
40007         * aclocal.m4: Likewise.
40008
40009         * wcsmbs/mbrtoc16.c: Implement using towc function.
40010         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
40011         * wcsmbs/wcsmbsload.c: Likewise.
40012         * iconv/gconv_simple.c: Likewise.
40013         * iconv/gconv_int.h: Likewise.
40014         * iconv/gconv_builtin.h: Likewise.
40015         * iconv/iconv_prog.c: Remove CHAR16 handling.
40016
40017         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
40018
40019         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
40020
40021         * configure.in: Remove --with-elf and --enable-bounded options.
40022         Dont set base_machine for ia64.  More non-ELF conditions removed.
40023         Remove testing and setting of leading underscore information.
40024         * config.make.in (build-bounded): Set to no.
40025         * config.h.in: Remove NO_UNDERSCORES entry.
40026         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
40027         them.
40028         * csu/start.c: Remove !NO_UNDERSCORE code.
40029         * locale/localeinfo.h: Likewise.
40030         * sysdeps/generic/machine-gmon.h: Likewise.
40031         * sysdeps/generic/sysdep.h: Likewise.
40032         * sysdeps/i386/sysdep.h: Likewise.
40033         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40034         * sysdeps/mach/sysdep.h: Likewise.
40035         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40036         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40037         * sysdeps/sh/sysdep.h: Likewise.
40038         * sysdeps/sparc/sparc32/alloca.S: Likewise.
40039         * sysdeps/unix/i386/sysdep.S: Likewise.
40040         * sysdeps/unix/sparc/start.c: Likewise.
40041         * sysdeps/unix/sparc/sysdep.S: Likewise.
40042         * sysdeps/unix/sparc/sysdep.h: Likewise.
40043         * sysdeps/unix/start.c: Likewise.
40044         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40045         * sysdeps/x86_64/sysdep.h: Likewise.
40046
40047 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
40048
40049         [BZ #13553]
40050         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
40051         for non-gcc.
40052         * argp/argp-fmtstream.h: Use const instead __const.
40053         * argp/argp.h: Likewise.
40054         * assert/assert.h: Likewise.
40055         * bits/fenv.h: Likewise.
40056         * bits/sched.h: Likewise.
40057         * bits/sigset.h: Likewise.
40058         * bits/sigthread.h: Likewise.
40059         * catgets/nl_types.h: Likewise.
40060         * conform/data/pthread.h-data: Likewise.
40061         * crypt/crypt-private.h: Likewise.
40062         * crypt/crypt.h: Likewise.
40063         * crypt/crypt_util.c: Likewise.
40064         * ctype/ctype.h: Likewise.
40065         * debug/execinfo.h: Likewise.
40066         * debug/mbsnrtowcs_chk.c: Likewise.
40067         * debug/mbsrtowcs_chk.c: Likewise.
40068         * debug/wcsnrtombs_chk.c: Likewise.
40069         * debug/wcsrtombs_chk.c: Likewise.
40070         * debug/wcstombs_chk.c: Likewise.
40071         * dirent/dirent.h: Likewise.
40072         * dlfcn/dlfcn.h: Likewise.
40073         * elf/neededtest4.c: Likewise.
40074         * grp/grp.h: Likewise.
40075         * gshadow/gshadow.h: Likewise.
40076         * iconv/gconv.h: Likewise.
40077         * iconv/gconv_int.h: Likewise.
40078         * iconv/gconv_simple.c: Likewise.
40079         * iconv/iconv.h: Likewise.
40080         * iconv/loop.c: Likewise.
40081         * iconv/skeleton.c: Likewise.
40082         * include/aio.h: Likewise.
40083         * include/aliases.h: Likewise.
40084         * include/argz.h: Likewise.
40085         * include/arpa/inet.h: Likewise.
40086         * include/assert.h: Likewise.
40087         * include/dirent.h: Likewise.
40088         * include/dlfcn.h: Likewise.
40089         * include/execinfo.h: Likewise.
40090         * include/fcntl.h: Likewise.
40091         * include/fenv.h: Likewise.
40092         * include/glob.h: Likewise.
40093         * include/grp.h: Likewise.
40094         * include/libintl.h: Likewise.
40095         * include/mntent.h: Likewise.
40096         * include/netdb.h: Likewise.
40097         * include/pwd.h: Likewise.
40098         * include/rpc/netdb.h: Likewise.
40099         * include/sched.h: Likewise.
40100         * include/search.h: Likewise.
40101         * include/shadow.h: Likewise.
40102         * include/signal.h: Likewise.
40103         * include/stdio.h: Likewise.
40104         * include/stdlib.h: Likewise.
40105         * include/string.h: Likewise.
40106         * include/sys/socket.h: Likewise.
40107         * include/sys/stat.h: Likewise.
40108         * include/sys/statfs.h: Likewise.
40109         * include/sys/statvfs.h: Likewise.
40110         * include/sys/syslog.h: Likewise.
40111         * include/sys/time.h: Likewise.
40112         * include/sys/uio.h: Likewise.
40113         * include/time.h: Likewise.
40114         * include/unistd.h: Likewise.
40115         * include/utmp.h: Likewise.
40116         * include/wchar.h: Likewise.
40117         * include/wctype.h: Likewise.
40118         * inet/aliases.h: Likewise.
40119         * inet/arpa/inet.h: Likewise.
40120         * inet/netinet/ether.h: Likewise.
40121         * inet/netinet/in.h: Likewise.
40122         * intl/libintl.h: Likewise.
40123         * io/bits/fcntl2.h: Likewise.
40124         * io/fcntl.h: Likewise.
40125         * io/ftw.h: Likewise.
40126         * io/sys/poll.h: Likewise.
40127         * io/sys/stat.h: Likewise.
40128         * io/sys/statfs.h: Likewise.
40129         * io/sys/statvfs.h: Likewise.
40130         * io/utime.h: Likewise.
40131         * libio/bits/stdio.h: Likewise.
40132         * libio/bits/stdio2.h: Likewise.
40133         * libio/libio.h: Likewise.
40134         * libio/libioP.h: Likewise.
40135         * libio/stdio.h: Likewise.
40136         * locale/lc-ctype.c: Likewise.
40137         * locale/locale.h: Likewise.
40138         * login/utmp.h: Likewise.
40139         * malloc/arena.c: Likewise.
40140         * malloc/malloc.c: Likewise.
40141         * malloc/malloc.h: Likewise.
40142         * malloc/mcheck.c: Likewise.
40143         * malloc/mtrace.c: Likewise.
40144         * math/bits/mathcalls.h: Likewise.
40145         * math/fenv.h: Likewise.
40146         * math/math_private.h: Likewise.
40147         * misc/bits/error.h: Likewise.
40148         * misc/bits/syslog.h: Likewise.
40149         * misc/err.h: Likewise.
40150         * misc/error.h: Likewise.
40151         * misc/fstab.h: Likewise.
40152         * misc/mntent.h: Likewise.
40153         * misc/regexp.h: Likewise.
40154         * misc/search.h: Likewise.
40155         * misc/sgtty.h: Likewise.
40156         * misc/sys/mman.h: Likewise.
40157         * misc/sys/syslog.h: Likewise.
40158         * misc/sys/uio.h: Likewise.
40159         * misc/sys/xattr.h: Likewise.
40160         * misc/ttyent.h: Likewise.
40161         * nis/rpcsvc/ypclnt.h: Likewise.
40162         * nss/nss.h: Likewise.
40163         * posix/bits/unistd.h: Likewise.
40164         * posix/fnmatch.h: Likewise.
40165         * posix/glob.h: Likewise.
40166         * posix/sched.h: Likewise.
40167         * posix/spawn.h: Likewise.
40168         * posix/sys/wait.h: Likewise.
40169         * posix/unistd.h: Likewise.
40170         * posix/wordexp.h: Likewise.
40171         * pwd/pwd.h: Likewise.
40172         * resolv/netdb.h: Likewise.
40173         * resource/sys/resource.h: Likewise.
40174         * rt/aio.h: Likewise.
40175         * rt/bits/mqueue2.h: Likewise.
40176         * rt/mqueue.h: Likewise.
40177         * shadow/shadow.h: Likewise.
40178         * signal/signal.h: Likewise.
40179         * socket/send.c: Likewise.
40180         * socket/sendto.c: Likewise.
40181         * socket/sys/socket.h: Likewise.
40182         * stdio-common/printf.h: Likewise.
40183         * stdlib/bits/stdlib.h: Likewise.
40184         * stdlib/fmtmsg.h: Likewise.
40185         * stdlib/monetary.h: Likewise.
40186         * stdlib/stdlib.h: Likewise.
40187         * stdlib/ucontext.h: Likewise.
40188         * streams/stropts.h: Likewise.
40189         * string/argz.h: Likewise.
40190         * string/bits/string2.h: Likewise.
40191         * string/string.h: Likewise.
40192         * string/strings.h: Likewise.
40193         * sunrpc/rpc/auth.h: Likewise.
40194         * sunrpc/rpc/auth_des.h: Likewise.
40195         * sunrpc/rpc/clnt.h: Likewise.
40196         * sunrpc/rpc/netdb.h: Likewise.
40197         * sunrpc/rpc/pmap_clnt.h: Likewise.
40198         * sunrpc/rpc/xdr.h: Likewise.
40199         * sysdeps/generic/inttypes.h: Likewise.
40200         * sysdeps/generic/net/if.h: Likewise.
40201         * sysdeps/generic/sys/swap.h: Likewise.
40202         * sysdeps/gnu/net/if.h: Likewise.
40203         * sysdeps/gnu/utmpx.h: Likewise.
40204         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
40205         * sysdeps/i386/i486/bits/string.h: Likewise.
40206         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
40207         * sysdeps/s390/bits/string.h: Likewise.
40208         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
40209         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
40210         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
40211         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
40212         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
40213         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
40214         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
40215         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
40216         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
40217         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
40218         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
40219         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
40220         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
40221         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
40222         * sysdeps/unix/sysv/linux/readv.c: Likewise.
40223         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
40224         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
40225         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40226         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
40227         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
40228         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40229         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
40230         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
40231         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
40232         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
40233         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
40234         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
40235         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40236         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
40237         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
40238         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
40239         * sysvipc/sys/ipc.h: Likewise.
40240         * sysvipc/sys/msg.h: Likewise.
40241         * sysvipc/sys/sem.h: Likewise.
40242         * sysvipc/sys/shm.h: Likewise.
40243         * termios/termios.h: Likewise.
40244         * time/sys/time.h: Likewise.
40245         * time/time.h: Likewise.
40246         * wcsmbs/bits/wchar2.h: Likewise.
40247         * wcsmbs/uchar.h: Likewise.
40248         * wcsmbs/wchar.h: Likewise.
40249         * wctype/wctype.h: Likewise.
40250
40251         [BZ #13551]
40252         * Makeconfig: Remove all but ELF support including AIX support.
40253         * Makerules: Likewise.
40254         * config.h.in: Likewise.
40255         * config.make.in: Likewise.
40256         * configure: Likewise.
40257         * configure.in: Likewise.
40258         * csu/Makefile: Likewise.
40259         * csu/version.c: Likewise.
40260         * debug/Makefile: Likewise.
40261         * dlfcn/Makefile: Likewise.
40262         * elf/Makefile: Likewise.
40263         * extra-lib.mk: Likewise.
40264         * iconv/Makefile: Likewise.
40265         * include/libc-symbols.h: Likewise.
40266         * include/shlib-compat.h: Likewise.
40267         * resolv/Makefile: Likewise.
40268         * resolv/res_libc.c: Likewise.
40269         * rt/Makefile: Likewise.
40270         * sysdeps/i386/asm-syntax.h: Likewise.
40271         * sysdeps/i386/sysdep.h: Likewise.
40272         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40273         * sysdeps/mach/sysdep.h: Likewise.
40274         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
40275         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
40276         * sysdeps/s390/asm-syntax.h: Likewise.
40277         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40278         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40279         * sysdeps/sh/sysdep.h: Likewise.
40280         * sysdeps/unix/sparc/sysdep.h: Likewise.
40281         * sysdeps/wordsize-32/divdi3.c: Likewise.
40282         * sysdeps/x86_64/sysdep.h: Likewise.
40283
40284         * argp/Versions: Remove _argp_unlock_xxx.
40285
40286         [BZ #13559]
40287         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
40288         * abilist/libBrokenLocale.abilist: Likewise.
40289         * abilist/libanl.abilist: Likewise.
40290         * abilist/libc.abilist: Likewise.
40291         * abilist/libcrypt.abilist: Likewise.
40292         * abilist/libdl.abilist: Likewise.
40293         * abilist/libm.abilist: Likewise.
40294         * abilist/libnsl.abilist: Likewise.
40295         * abilist/libpthread.abilist: Likewise.
40296         * abilist/libresolv.abilist: Likewise.
40297         * abilist/librt.abilist: Likewise.
40298         * abilist/libthread_db.abilist: Likewise.
40299         * abilist/libutil.abilist: Likewise.
40300         * abilist/libnss_db.abilist: New file.
40301
40302         * scripts/abilist.awk: Add support for indirect functions.
40303
40304         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
40305
40306         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
40307
40308         * shlib-versions: Remove entries for ports architectures.
40309
40310         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
40311         files in ports.
40312         * elf/stackguard-macros.h: Remove support for IA-64.
40313         * elf/tst-auditmod1.c: Likewise.
40314         * sysdeps/generic/ldsodefs.h: Likewise.
40315
40316         * sysdeps/unix/sysv/linux/configure.in: Ports should define
40317         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
40318         configure files.
40319
40320         [BZ #13552]
40321         * configure.in: Remove --enable-omitfp support.
40322         * FAQ.in: Adjust.
40323         * config.make.in: Likewise.
40324         * Makeconfig: Likewise.
40325         * manual/install.texi: Likewise.
40326
40327         In case anyone cares, the IA-64 architecture could move to ports.
40328         * sysdeps/ia64/*: Removed.
40329         * sysdeps/unix/sysv/linux/ia64/*: Removed.
40330         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
40331
40332         [BZ #13555]
40333         * configure.in: Remove entries for unsupported architectures.
40334
40335         [BZ #13533]
40336         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
40337         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
40338         routines.
40339         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
40340         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
40341         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
40342         fall back to using wcrtomb.
40343         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
40344         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
40345         renaming.
40346         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
40347         * wcsmbs/tst-c16c32-1.c: New file.
40348
40349         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
40350         local variable.
40351
40352         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
40353
40354         * elf/tst-unique3.cc: Add explicit declaration of gets.
40355         * elf/tst-unique3lib.cc: Likewise.
40356         * elf/tst-unique3lib2.cc: Likewise.
40357         * elf/tst-unique4.cc: Likewise.
40358
40359         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
40360
40361 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
40362
40363         [BZ #13566]
40364         * assert/assert.h (static_assert): Don't define for C++.
40365         * libio/stdio.h (gets): Do declare for C++ <= C++11.
40366         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
40367
40368 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
40369
40370         * iconv/loop.c (single loop): Fix assertion in storing of
40371         remaining bytes.
40372
40373         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
40374
40375 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
40376
40377         * posix/getconf.c: Update copyright year.
40378         * nss/getent.c: Likewise.
40379         * nss/makedb.c: Likewise.
40380         * iconv/iconvconfig.c: Likewise.
40381         * iconv/iconv_prog.c: Likewise.
40382         * elf/ldconfig.c: Likewise.
40383         * elf/pldd.c: Likewise.
40384         * elf/sotruss.ksh: Likewise.
40385         * catgets/gencat.c: Likewise.
40386         * csu/version.c: Likewise.
40387         * elf/ldd.bash.in: Likewise.
40388         * elf/sprof.c (print_version): Likewise.
40389         * locale/programs/locale.c: Likewise.
40390         * locale/programs/localedef.c: Likewise.
40391         * login/programs/pt_chown.c: Likewise.
40392         * nscd/nscd.c (print_version): Likewise.
40393         * debug/xtrace.sh: Likewise.
40394         * malloc/memusage.sh: Likewise.
40395         * malloc/mtrace.pl: Likewise.
40396         * debug/catchsegv.sh: Likewise.
40397
40398 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
40399
40400         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
40401         pure attribute.
40402
40403 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
40404
40405         [BZ #13533]
40406         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
40407         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
40408         transformations.
40409         * iconv/gconv_int.h: Likewise.
40410         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
40411         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
40412         from libc for GLIBC_2.16.
40413         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
40414         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
40415         * wcsmbs/uchar.h: Really define mbstate_t.
40416         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
40417         * wcsmbs/c16rtomb.c: New file.
40418         * wcsmbs/mbrtoc16.c: New file.
40419         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
40420         for C/POSIX locale.
40421         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
40422         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
40423
40424         * wcsmbs/wchar.h: Add missing __restrict.
40425
40426 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40427
40428         [BZ #13532]
40429         * time/Makefile (routines): Add timespec_get.
40430         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
40431         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
40432         timespec for ISO C11.
40433         * time/timespec_get.c: New file.
40434         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
40435         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
40436
40437         [BZ #13531]
40438         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
40439         * stdlib/stdlib.h: Declare aligned_alloc.
40440         * Versions.def: Add GLIBC_2.16 for libc.
40441         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
40442
40443         [BZ 13527]
40444         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
40445         ISO C11.
40446
40447         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
40448         code.
40449
40450         [BZ #13528]
40451         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
40452
40453         [BZ #13529]
40454         * assert/assert.h (static_assert): Define.
40455
40456         * version.h: Update for 2.16 development version.
40457
40458         [BZ #13526]
40459         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
40460         _ISOC11_SOURCE.
40461
40462         * version.h (RELEASE): Bump for 2.15 release.
40463         * include/features.h (__GLIBC_MINOR__): Bump to 15.
40464
40465         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
40466         Patch by Marek Polacek <mpolacek@redhat.com>.
40467
40468         * bits/byteswap.h: Protect long long constants with __extension__.
40469         * sysdeps/i386/bits/byteswap.h: Likewise.
40470         * sysdeps/ia64/bits/byteswap.h: Likewise.
40471         * sysdeps/s390/bits/byteswap.h: Likewise.
40472         * sysdeps/x86_64/bits/byteswap.h: Likewise.
40473
40474 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40475
40476         [BZ #13540]
40477         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
40478         destination buffer.
40479         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
40480
40481 2011-12-23  Marek Polacek  <polacek@redhat.com>
40482
40483         * elf/dl-addr.c (determine_info): Add inline keyword.
40484         * elf/tst-auditmod4b.c (check_avx): Likewise.
40485         * elf/tst-auditmod6b.c (check_avx): Likewise.
40486         * elf/tst-auditmod6c.c (check_avx): Likewise.
40487         * elf/tst-auditmod7b.c (check_avx): Likewise.
40488
40489 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40490
40491         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
40492         !__SSE_MATH__.
40493
40494 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40495
40496         [BZ #13540]
40497         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
40498         processing for last bytes.
40499
40500 2011-08-06  Bruno Haible  <bruno@clisp.org>
40501
40502         [BZ #13061]
40503         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
40504         U+0385, not to U+1FEE.
40505
40506         [BZ #13062]
40507         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
40508         entry for U+00A5 U+0301.
40509
40510 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40511
40512         [BZ #13166]
40513         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
40514         buffer for the output is too small.
40515
40516         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
40517         optimization.
40518
40519         [BZ #13185]
40520         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
40521         SSE flags if possible.
40522
40523 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40524
40525         [BZ #13540]
40526         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
40527         processing for last bytes.
40528
40529 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
40530
40531         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
40532         (syscall-list-default-options, syscall-list-default-condition)
40533         (syscall-list-includes): Define.
40534         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
40535         list of ABIs and options and #if conditions for each ABI.  Do not
40536         handle common syscalls between ABIs specially.
40537         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
40538         Remove.
40539         (syscall-list-variants, syscall-list-32bit-options)
40540         (syscall-list-32bit-condition, syscall-list-64bit-options)
40541         (syscall-list-64bit-condition): Define.
40542         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
40543         (syscall-list-variants, syscall-list-32bit-options)
40544         (syscall-list-32bit-condition, syscall-list-64bit-options)
40545         (syscall-list-64bit-condition): Define.
40546         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
40547         Remove.
40548         (syscall-list-variants, syscall-list-32bit-options)
40549         (syscall-list-32bit-condition, syscall-list-64bit-options)
40550         (syscall-list-64bit-condition): Define.
40551         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
40552         Remove.
40553         (syscall-list-variants, syscall-list-32bit-options)
40554         (syscall-list-32bit-condition, syscall-list-64bit-options)
40555         (syscall-list-64bit-condition): Define.
40556
40557 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40558
40559         * locale/iso-639.def: Add brx entry.
40560
40561         [BZ #13328]
40562         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
40563         Proposed by Mariusz_Cukr <marcukr@op.pl>.
40564
40565         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
40566         __feraiseexcept_renamed.
40567
40568 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40569
40570         [BZ #13538]
40571         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
40572         EPOLLET with unsigned values.
40573         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40574         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40575
40576         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
40577         to large cancellation.
40578         * math/s_cacoshf.c: Likewise.
40579         * math/s_cacoshl.c: Likewise.
40580
40581 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
40582
40583         [BZ #13305]
40584         [BZ #12786]
40585         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
40586         * math/s_cacoshf.c: Likewise.
40587         * math/s_cacoshl.c: Likewise.
40588
40589 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40590
40591         [BZ #13439]
40592         * iconv/gconv.h: Define __GCONV_SWAP.
40593         * iconvdata/unicode.c: The swap bit must be stored in __flags.
40594         * iconvdata/utf-16.c: Likewise.
40595         * iconvdata/utf-32.c: Likewise.
40596
40597 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
40598
40599         [BZ #13524]
40600         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
40601         numerator after shifting it by one limb.
40602
40603 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
40604
40605         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
40606         under [__USE_EXTERN_INLINES].
40607
40608 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40609
40610         [BZ #13446]
40611         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
40612
40613 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40614
40615         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
40616         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
40617         optimized code.
40618         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
40619         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
40620         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
40621         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
40622         for strncasecmp/strncasecmp_l compilation.
40623         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
40624         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
40625
40626 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
40627
40628         [BZ #13484]
40629         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
40630         of __asm__.
40631
40632 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40633
40634         [BZ #13506]
40635         * time/tzfile.c (__tzfile_read): Check values from file header.
40636
40637 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
40638
40639         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
40640         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
40641         * powerpc/powerpc32/dl-start.S: Likewise.
40642         * powerpc/powerpc32/elf/start.S: Likewise.
40643         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40644         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
40645         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
40646         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
40647         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
40648         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
40649         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
40650         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
40651         * powerpc/powerpc32/fpu/s_round.S: Likewise.
40652         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
40653         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
40654         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
40655         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
40656         * powerpc/powerpc32/memset.S: Likewise.
40657         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
40658         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
40659         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
40660         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
40661         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
40662         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
40663         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
40664         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
40665         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
40666         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
40667         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
40668         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40669         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40670
40671 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40672
40673         * math/libm-test.inc: Added more nearbyint tests.
40674         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
40675         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
40676         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
40677         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
40678
40679 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
40680
40681         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
40682         FD_CLOEXEC.
40683
40684 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40685
40686         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
40687         Add wcscpy-ssse3 wcscpy-c.
40688         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
40689         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
40690         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
40691         * sysdeps/x86_64/wcschr.S: New file.
40692         * sysdeps/x86_64/wcsrchr.S: New file.
40693         * string/test-strcmp.c: Remove checking of wcscmp function for
40694         wrong alignments.
40695         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
40696         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
40697         wcsrchr-sse2 wcsrchr-c.
40698         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
40699         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
40700         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
40701         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
40702         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
40703         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
40704         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
40705         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
40706         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
40707         * wcsmbc/wcschr.c (WCSCHR): New macro.
40708
40709 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40710
40711         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
40712         * wcsmbs/test-wcsrchr.c: New file.
40713         * string/test-strrchr.c: Add wcsrchr support.
40714         (WIDE): New macro.
40715         * wcsmbs/test-wcscpy.c: New file.
40716         * string/test-strcpy.c: Add wcscpy support.
40717         (WIDE): New macro.
40718
40719 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
40720
40721         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
40722         the inner loop.
40723
40724 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
40725
40726         [BZ #13472]
40727         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
40728
40729 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
40730
40731         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
40732         Minor optimizations.
40733
40734         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
40735         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
40736         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
40737
40738 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
40739
40740         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
40741         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
40742         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
40743         for gcc to avoid warnings.
40744         * inet/Makefile (tests): Add tst-checks.
40745         * inet/tst-checks.c: New file.
40746
40747         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
40748         warning.
40749
40750         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
40751         __wmemcmp_sse2.
40752
40753         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
40754         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
40755
40756         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
40757
40758 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
40759
40760         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
40761         problem.
40762
40763         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
40764
40765 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
40766
40767         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
40768         conditional on GCC version.
40769         (__arch_compare_and_exchange_val_8_acq)
40770         (__arch_compare_and_exchange_val_16_acq)
40771         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
40772         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
40773         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
40774
40775 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
40776
40777         * sysdeps/sh/backtrace.c: New file.
40778
40779 2011-12-02  Andreas Schwab  <schwab@redhat.com>
40780
40781         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
40782         parenthesis.
40783
40784 2011-12-01  Andreas Schwab  <schwab@redhat.com>
40785
40786         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
40787         falling back to utime.
40788
40789 2011-11-30  Andreas Schwab  <schwab@redhat.com>
40790
40791         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
40792         expectations for float.
40793
40794 2011-11-29  Andreas Schwab  <schwab@redhat.com>
40795
40796         * locale/weight.h (findidx): Add parameter len.
40797         * locale/weightwc.h (findidx): Likewise.
40798         * posix/fnmatch_loop.c (FCT): Adjust caller.
40799         * posix/regcomp.c (build_equiv_class): Likewise.
40800         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
40801         * posix/regexec.c (check_node_accept_bytes): Likewise.
40802         * string/strcoll_l.c (STRCOLL): Likewise.
40803         * string/strxfrm_l.c (STRXFRM): Likewise.
40804
40805 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
40806
40807         * Makefile.in: Remove CVSOPT handling.
40808         * configure.in: Remove use of AC_REVISION.
40809         * iconvdata/Makefile (distribute): No need to filter out CVS.
40810         * scripts/list-sources.sh: Remove CVS, subversion and monotone
40811         handling.
40812
40813 2011-11-16  Andreas Schwab  <schwab@redhat.com>
40814
40815         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
40816         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
40817         [USE_AS_STRNCASECMP_L]: Likewise.
40818         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
40819         NO_TLS_DIRECT_SEG_REFS.
40820         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
40821         Fix argument offsets for non-PIC.
40822         [USE_AS_STRNCASECMP_L]: Likewise.
40823         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
40824         NO_TLS_DIRECT_SEG_REFS.
40825
40826 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40827
40828         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
40829         O_CLOEXEC.
40830         * locale/loadlocale.c (_nl_load_locale): Likewise.
40831
40832 2011-11-15  Andreas Schwab  <schwab@redhat.com>
40833
40834         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
40835         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
40836         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
40837         (SYSCALL_GETTIME): Set errno on error.
40838
40839         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
40840         count references to noai6ai_cached.
40841
40842 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40843
40844         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
40845
40846         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
40847         FD_CLOEXEC for /proc/self/maps.
40848
40849         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
40850         FD_CLOEXEC for /proc/meminfo.
40851
40852         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
40853         gai.conf.
40854
40855         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
40856         FD_CLOEXEC for given file.
40857
40858         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
40859
40860         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
40861         FD_CLOEXEC for /etc/hosts.
40862         (_gethtent): Likewise.
40863
40864         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
40865
40866         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
40867         cancellation and set FD_CLOEXEC for /etc/netgroup.
40868
40869         * nss/nss_files/files-key.c (search): Don't allow cancellation when
40870         reading /etc/publickey.
40871
40872         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
40873         allow cancellation when reading /etc/group.
40874
40875         * nss/nss_files/files-alias.c (internal_setent): Don't allow
40876         cancellation.
40877         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
40878
40879         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
40880         when using data file.
40881
40882         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
40883
40884         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
40885         (write_nis_obj): Use "c" and "e" in fopen.
40886
40887         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
40888
40889         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
40890
40891         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
40892
40893         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
40894
40895         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
40896         locale.alias.
40897
40898         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
40899
40900         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
40901
40902         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
40903
40904         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
40905         file parsing and set FD_CLOEXEC.
40906
40907 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40908
40909         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
40910
40911 2011-11-14  Andreas Schwab  <schwab@redhat.com>
40912
40913         * malloc/arena.c (arena_get2): Don't call reused_arena when
40914         _int_new_arena failed.
40915
40916 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40917
40918         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
40919         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
40920         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
40921         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40922         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40923         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
40924         to compile strcasecmp and strncasecmp.
40925         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
40926         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
40927
40928         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
40929
40930 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
40931
40932         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
40933         locale-defines.sym to gen-as-const-headers.
40934         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
40935         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
40936         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
40937         to compile strcasecmp and strncasecmp.
40938         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
40939         strcasecmp_l and strncasecmp_l.
40940         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
40941         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
40942         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
40943         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
40944         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
40945         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
40946         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
40947         * sysdeps/i386/i686/multiarch/strncase.S: New file.
40948         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
40949         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
40950         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
40951
40952 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
40953
40954         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
40955         result of SYSDEP_GETTIME_CPU to retval.
40956         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
40957         parameter list to macro.  Remove trailing semicolon.  Adjust users.
40958
40959         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
40960         variable.
40961
40962         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
40963         mantissa words.
40964         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
40965
40966         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
40967         from unused variable.
40968
40969         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
40970         DWARF definitions.
40971         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
40972         for assembling.
40973
40974         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
40975         over namespaces.
40976
40977         * sunrpc/rpc_prot.c (rejected): Fix case value.
40978
40979         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
40980         unsigned long long int to avoid warnings in shift.
40981
40982         * posix/regex_internal.c (re_string_reconstruct): Actually use result
40983         of use of trans.
40984         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
40985         variable tmp.
40986
40987         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
40988         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
40989         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
40990
40991         * nis/nis_table.c (nis_list): Use variable of correct type for
40992         result of __follow_path call.
40993
40994 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40995
40996         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
40997         of math functions ceil, trunc, floor, round, and sqrt, when
40998         avaliable on the platform.
40999         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
41000         name clash.
41001         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41002         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41003         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41004
41005 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
41006
41007         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
41008         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
41009
41010 2011-11-11  Roland McGrath  <roland@hack.frob.com>
41011
41012         * include/unistd.h: Fix __readlink return type.
41013         Reported by Chris Metcalf <cmetcalf@tilera.com>.
41014
41015 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
41016
41017         * stdlib/ucontext.h: Undo last change for makecontext.
41018
41019 2011-11-11  Andreas Schwab  <schwab@redhat.com>
41020
41021         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
41022
41023         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
41024         * setjmp/setjmp.h: Mark functions as non-leaf.
41025         * setjmp/bits/setjmp2.h: Likewise.
41026         * stdlib/ucontext.h: Likewise.
41027
41028 2011-11-10  Andreas Schwab  <schwab@redhat.com>
41029
41030         * malloc/arena.c (_int_new_arena): Don't increment narenas.
41031         (reused_arena): Don't check arena limit.
41032         (arena_get2): Atomically check arena limit.
41033
41034 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
41035
41036         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
41037         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
41038
41039         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
41040         instructions.
41041
41042 2011-11-07  Andreas Schwab  <schwab@redhat.com>
41043
41044         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
41045         handler when locking.
41046
41047         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41048         Fix size of allocated buffer.
41049
41050 2011-11-04  Andreas Schwab  <schwab@redhat.com>
41051
41052         [BZ #10103]
41053         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
41054         declarations for long double functions.
41055         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
41056
41057         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
41058
41059 2011-11-03  Andreas Schwab  <schwab@redhat.com>
41060
41061         * nscd/nscd.c (main): Don't start AVC thread until credentials are
41062         installed.
41063
41064         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
41065         is disabled.
41066
41067 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41068
41069         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
41070
41071 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
41072
41073         * include/alloca.h (stackinfo_alloca_round): Define.
41074         (extend_alloca): Use it.
41075         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
41076         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
41077         here.
41078
41079         * scripts/check-local-headers.sh: Ignore libaudit.h.
41080
41081         * nscd/Makefile (extra-objs): Make recursively expanded.
41082
41083 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
41084
41085         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
41086         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
41087
41088         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
41089         * posix/tst-rfc3484-2.c: Likewise.
41090         * posix/tst-rfc3484-3.c: Likewise.
41091
41092         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
41093         process_vm_writev.
41094         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
41095         process_vm_writev.
41096         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
41097         process_vm_writev from libc using GLIBC_2.15 version.
41098
41099         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
41100
41101 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
41102
41103         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
41104         stack usage.
41105
41106 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
41107
41108         [BZ #13367]
41109         * nss/getent.c (initgroups_keys): Show error message in case no group
41110         names are given.
41111
41112         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
41113         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
41114         __bump_nl_timestamp.
41115         * nscd/connections (nscd_init): When host database is served open
41116         netlink socket and request notification about configuration changes.
41117         (main_loop_poll): Track netlink file descriptor and bump timestamp
41118         in case data becomes available.
41119         (main_loop_epoll): Likewise.
41120         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
41121         (database_pers_head): Add extra_data fileds.
41122         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
41123         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
41124         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
41125         Adjust caller.
41126         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
41127         in6ai data, call __free_in6ai.
41128         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
41129         Add -DHAVE_NETLINK.
41130         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
41131         interface information.  Reuse previous data if netlink timestamp
41132         is not changed.
41133         (__bump_nl_timestamp): New function.
41134         (__free_in6ai): New function.
41135
41136 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
41137
41138         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
41139         close_not_cancel_no_status here.
41140         (__check_pf): Reorganize code a bit to not call close twice if OOM.
41141
41142 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41143
41144         [BZ #13276]
41145         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
41146         return value.
41147
41148         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
41149         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
41150         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
41151
41152 2011-07-03  Andreas Jaeger  <aj@suse.de>
41153
41154         [BZ #10709]
41155         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
41156         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
41157         * math/libm-test.inc (sin_test): Add test case.
41158
41159 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41160
41161         [BZ #13337]
41162         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
41163         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41164
41165         * elf/chroot_canon.c (chroot_canon): Cleanups.
41166
41167         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
41168
41169         [BZ #13335]
41170         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
41171         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41172
41173         * string/test-strchr.c: Make usable for strchrnul testing.
41174         * string/test-strchrnul.c: New file.
41175         * string/Makefile (strop-tests): Add strchrnul.
41176
41177         * po/it.po: Update from translation team.
41178         * po/es.po: Likewise.
41179
41180 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
41181
41182         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
41183         the three constants needed as parameters.  Drop the others.
41184         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
41185         __m128i_strloadu_tolower.
41186         Create and initialize variable zero and use it in all the places
41187         where _mm_setzero_si128 was used.
41188
41189         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
41190         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
41191         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
41192         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
41193         anymore.
41194         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
41195         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
41196         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
41197         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
41198         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
41199         __mpranred, __mptan.
41200         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
41201         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
41202         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
41203         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
41204         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
41205         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
41206         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
41207         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
41208         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
41209
41210 2011-10-28  Andreas Schwab  <schwab@redhat.com>
41211
41212         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
41213         redefine if SHARED.
41214         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
41215
41216         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
41217         wide char related routines to wcsmbs subdir.
41218
41219 2011-10-27  Andreas Schwab  <schwab@redhat.com>
41220
41221         [BZ #13344]
41222         * misc/sys/cdefs.h (__THROWNL): Define.
41223         * posix/unistd.h: Use __THREADNL instead of __THREAD
41224         for memory synchronization functions.
41225
41226 2011-10-26  Roland McGrath  <roland@hack.frob.com>
41227
41228         [BZ #13349]
41229         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
41230         doesn't exist.
41231         * manual/stdio.texi (Obstack Streams): Node removed.
41232
41233 2011-10-26  Andreas Schwab  <schwab@redhat.com>
41234
41235         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
41236         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41237         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41238
41239         * math/math_private.h (math_force_eval): Allow non-addressable
41240         arguments.
41241         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
41242
41243 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41244
41245         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
41246         file is not needed.
41247
41248         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
41249         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
41250         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
41251         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41252         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41253         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41254         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41255         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
41256         Add AVX variants.
41257         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
41258         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
41259         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
41260         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
41261         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
41262         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
41263         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
41264         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
41265         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
41266         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
41267         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
41268         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
41269         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
41270         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
41271         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
41272         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
41273         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
41274         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
41275         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
41276
41277         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
41278         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
41279
41280         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
41281         place.  Use VEX encoding when compiling for AVX.
41282
41283 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41284
41285         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
41286         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
41287
41288         * string/test-strchr.c (do_test): Don't generate NUL bytes.
41289
41290 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41291
41292         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
41293         useless if() expression.
41294         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41295         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
41296         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
41297         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41298         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
41299         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41300         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41301         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41302         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
41303         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41304         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41305         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41306         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
41307         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41308         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
41309         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41310         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41311         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41312         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
41313
41314         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
41315
41316 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41317
41318         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
41319         condition.
41320         * elf/dl-fini.c (_dl_sort_fini): Likewise.
41321
41322 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41323
41324         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
41325         .text section.  Avoid duplicate constants.
41326         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
41327         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41328         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41329         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41330         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41331         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41332         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41333         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41334         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
41335         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
41336         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
41337         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
41338         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
41339         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
41340         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
41341         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
41342         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
41343         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
41344         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
41345         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41346         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
41347         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
41348         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
41349         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
41350         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
41351         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
41352         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
41353         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
41354         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
41355         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
41356         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
41357         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
41358         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
41359         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
41360         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
41361         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
41362         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
41363         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
41364         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
41365         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
41366         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
41367         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
41368         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
41369         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
41370         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
41371
41372 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
41373
41374         * sysdeps/x86_64/dla.h: Move to ...
41375         * sysdeps/x86_64/fpu/dla.h: ...here.
41376         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
41377         situations.  Use __builtin_fma only for gcc 4.6 and up.
41378
41379         * config.make.in: Add have-mfma4 entry.
41380         * configure.in: Substitute libc_cv_cc_fma4.
41381         * math/Makefile (dbl-only-routines): Add sincostab.
41382         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
41383         Use __sincostab not sincos.
41384         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
41385         name is a macro.
41386         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41387         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41388         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41389         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
41390         using __copysign.
41391         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
41392         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
41393         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
41394         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
41395         and __inv.
41396         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
41397         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
41398         __copysign.
41399         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
41400         define aliases when function name is a macro.
41401         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
41402         sysdeps/ieee754/dbl-64/sincos.tbl.
41403         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
41404         fma4-enabled routines.
41405         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
41406         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
41407         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
41408         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
41409         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
41410         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
41411         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
41412         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
41413         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
41414         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
41415         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
41416         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
41417         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
41418         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
41419         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
41420         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
41421         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
41422         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
41423         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
41424         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
41425         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
41426         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
41427         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
41428         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
41429         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
41430         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
41431         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
41432         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
41433         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
41434         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
41435
41436         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
41437         rename.
41438         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41439         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41440         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41441         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41442         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41443         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41444         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41445         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41446
41447 2011-10-24  Andreas Schwab  <schwab@redhat.com>
41448
41449         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
41450
41451 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41452
41453         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
41454
41455         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
41456         prediction.
41457         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
41458
41459         * string/strnlen.c: Don't define STRNLEN, reverse logic.
41460         Remove unused variable magic_bits.
41461         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
41462
41463         * string/strnlen.c: Define and use STRNLEN macro.
41464         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
41465         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
41466         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
41467         * wcsmbs/wcslen.c: Define and use WCSLEN.
41468         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
41469         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
41470         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
41471         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
41472         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
41473         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
41474         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41475
41476 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41477
41478         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41479         strnlen-sse2-no-bsf.
41480         Rename strlen-no-bsf to strlen-sse2-no-bsf.
41481         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
41482         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
41483         Add strnlen support.
41484         (USE_AS_STRNLEN): New macro.
41485         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
41486         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
41487         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
41488         * sysdeps/x86_64/wcslen.S: New file.
41489
41490 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
41491
41492         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
41493         XMM-moves are used for copying on small sizes.
41494
41495 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41496
41497         * wcsmbs/Makefile (strop-tests): Add wcschr.
41498         * wcsmbs/test-wcschr.c: New file.
41499         * string/test-strchr.c: Update.
41500         Add wcschr support.
41501         (WIDE): New macro.
41502
41503 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41504
41505         * wcsmbs/Makefile (strop-tests): Add wcslen.
41506         * wcsmbs/test-wcslen.c: New file.
41507         * string/test-strlen.c: Update.
41508         Add wcslen support.
41509         (WIDE): New macro.
41510
41511 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41512
41513         * po/it.po: Update from translation team.
41514
41515 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41516
41517         * sysdeps/x86_64/wcscmp.S: Update.
41518         Fix wrong comparison semantics.
41519         wcscmp shall use signed comparison not unsigned.
41520         Don't use substraction to avoid overflow bug.
41521         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
41522         * wcsmbc/wcscmp.c: Likewise.
41523         * string/test-strcmp.c: Likewise.
41524         Add new tests to check cases with negative values.
41525
41526 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41527
41528         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
41529         * sysdeps/x86_64/dla.h: ...here.  New file.
41530         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
41531         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41532         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41533         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41534         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41535         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41536         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41537         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41538         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41539
41540 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
41541
41542         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
41543         __ynl_finite aliases.
41544
41545 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41546
41547         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41548
41549         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
41550         define DLA_FMA.
41551         [DLA_FMA] (EMULV): Use DLA_FMA.
41552         [DLA_FMA] (MUL12): Use EMULV.
41553         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
41554         that are not needed.
41555         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41556         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41557         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41558         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41559         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41560         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41561         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41562
41563 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
41564
41565         * math/s_nan.c: Undef __nan.
41566         * math/s_nanf.c: Undef __nanf.
41567         * math/s_nanl.c: Undef __nanl.
41568         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
41569         "math_private.h".
41570
41571 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41572
41573         * math/s_catan.c: Add branch predictions.
41574         * math/s_catanf.c: Likewise.
41575         * math/s_catanh.c: Likewise.
41576         * math/s_catanhf.c: Likewise.
41577         * math/s_catanhl.c: Likewise.
41578         * math/s_catanl.c: Likewise.
41579         * math/s_cexp.c: Likewise.
41580         * math/s_cexpf.c: Likewise.
41581         * math/s_cexpl.c: Likewise.
41582         * math/s_clog.c: Likewise.
41583         * math/s_clog10.c: Likewise.
41584         * math/s_clog10f.c: Likewise.
41585         * math/s_clog10l.c: Likewise.
41586         * math/s_clogf.c: Likewise.
41587         * math/s_clogl.c: Likewise.
41588         * math/s_csqrt.c: Likewise.
41589         * math/s_csqrtf.c: Likewise.
41590         * math/s_csqrtl.c: Likewise.
41591         * math/s_ctanf.c: Likewise.
41592         * math/s_ctanh.c: Likewise.
41593         * math/s_ctanhf.c: Likewise.
41594         * math/s_ctanhl.c: Likewise.
41595         * math/s_ctanl.c: Likewise.
41596
41597         * math/math_private.h: Define __nan, __nanf, __nanl.
41598         * math/s_cacosh.c: Include <math_private.h>.
41599         * math/s_cacoshl.c: Likewise.
41600         * math/s_casinh.c: Likewise.
41601         * math/s_casinhf.c: Likewise.
41602         * math/s_casinhl.c: Likewise.
41603         * math/s_ccos.c: Rely entire on ccosh.
41604         * math/s_ccosf.c: Rely entire on ccoshf.
41605         * math/s_ccosl.c: Rely entirely on ccoshl.
41606         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
41607         Remove tests for FE_INVALID.
41608         * math/s_ccoshf.c: Likewise.
41609         * math/s_ccoshl.c: Likewise.
41610         * math/s_csin.c: Likewise.
41611         * math/s_csinf.c: Likewise.
41612         * math/s_csinh.c Likewise.
41613         * math/s_csinhf.c: Likewise.
41614         * math/s_csinhl.c: Likewise.
41615         * math/s_csinl.c: Likewise.
41616         * math/s_ctan.c: Likewise.
41617         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
41618         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
41619         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
41620
41621 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
41622
41623         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
41624         compilation problems.
41625
41626         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
41627         __builtin_expect.
41628
41629 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
41630
41631         * sysdeps/i386/configure.in: Test for -mfma4 option.
41632         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
41633         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
41634         COMMON_CPUID_INDEX_80000001.
41635         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
41636         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
41637         use it if FMA3 is not supported.
41638         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
41639
41640         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
41641         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
41642
41643 2011-10-20  Andreas Schwab  <schwab@redhat.com>
41644
41645         [BZ #12892]
41646         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
41647         it would create a cycle with a link time dependency.
41648
41649 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
41650
41651         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
41652         instruction.
41653         * string/Makefile (strop-tests): Add rawmemchr.
41654         * string/test-rawmemchr.c: New file.
41655
41656         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
41657         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
41658         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
41659         when compiling str{,n}casecmp and when AVX is available.  Hook up
41660         new optimized code in initializers.
41661
41662 2011-10-19  Andreas Schwab  <schwab@redhat.com>
41663
41664         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
41665         __feraiseexcept instead of feraiseexcept.
41666
41667 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
41668
41669         * math/math_private.h: Define defaults for libc_fetestexcept and
41670         libc_feupdateenv.
41671         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
41672         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
41673         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41674         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41675         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
41676         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41677         libc_fetestexcept and libc_feupdateenv.
41678
41679         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
41680         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
41681         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
41682         * sysdeps/x86_64/fpu/math_private.h: Define special version of
41683         libc_feholdexcept_setround.
41684
41685         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
41686         Add s_nearbyint-c and s_nearbyintf-c.
41687         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
41688         nearbyintf inlines.
41689         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
41690         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
41691         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
41692         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
41693
41694         * math/math_private.h: Define defaults for libc_fegetround,
41695         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
41696         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
41697         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
41698         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
41699         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
41700         standard functions.
41701         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41702         Remove comments and hacks for old compiler versions.
41703         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41704         libc_fegetround, libc_fesetround, libc_feholdexcept, and
41705         libc_feholdexceptl.
41706
41707 2011-10-18  Andreas Schwab  <schwab@redhat.com>
41708
41709         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
41710         (__feraiseexcept_renamed): Add __NTH.
41711         (feraiseexcept): Add __NTH.  Rename local variables to fix
41712         namespace violations.
41713
41714 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
41715
41716         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
41717
41718         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
41719
41720         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
41721         recently added interfaces.
41722         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
41723
41724         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
41725         about macro parameter expansion.
41726
41727         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
41728         __NO_MATH_INLINES is defined.  Cleanups.
41729
41730         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
41731         and __floorf is target has SSE4.1.
41732         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
41733         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
41734         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
41735         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
41736
41737         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
41738         name.
41739         (floorf): Likewise.
41740
41741         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
41742
41743 2011-10-17  Andreas Schwab  <schwab@redhat.com>
41744
41745         * misc/sys/cdefs.h: Fix last change.
41746
41747         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
41748         database lookup.
41749
41750 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
41751
41752         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
41753
41754         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
41755         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41756         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
41757         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41758         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41759         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
41760         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41761         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41762         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
41763         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
41764         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
41765         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
41766         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
41767         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
41768         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
41769         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
41770         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
41771         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
41772         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
41773         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
41774         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
41775         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
41776
41777         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
41778         ceil, ceilf, floor, floorf.
41779
41780         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
41781         Perform IRELATIVE relocations last.
41782
41783         * elf/do-rel.h: Add another parameter nrelative, replacing the
41784         local variable with the same name.  Change name of the function
41785         to end in Rel or Rela (uppercase).
41786         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
41787         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
41788         elf_dynamic_do_##reloc function.
41789
41790 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41791
41792         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
41793         is sufficient, at least on modern CPUs.
41794
41795         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
41796
41797         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
41798         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
41799
41800         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
41801         __expl_finite.
41802         * math/bits/math-finite.h: Add entries for exp.
41803         * math/e_expl.c: Add __*_finite alias.
41804         * sysdeps/i386/fpu/e_exp.S: Likewise.
41805         * sysdeps/i386/fpu/e_expf.S: Likewise.
41806         * sysdeps/i386/fpu/e_expl.c: Likewise.
41807         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41808         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41809         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
41810         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
41811         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
41812         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
41813         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
41814
41815         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
41816         is sufficient, at least on modern CPUs.
41817
41818         * ctype/ctype-info.c (__ctype_init): Define.
41819         * include/ctype.h (__ctype_init): Declare.
41820         (__ctype_b_loc): The variable is always initialized.
41821         (__ctype_toupper_loc): Likewise.
41822         (__ctype_tolower_loc): Likewise.
41823         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
41824         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
41825
41826 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
41827
41828         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
41829
41830         * configure.in: Also look in $cxxmachine/include for C++ system
41831         headers.
41832
41833 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41834
41835         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
41836         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
41837         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
41838         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
41839         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
41840         (USE_AS_WMEMCMP): New macro.
41841         Fixing indents.
41842         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
41843         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
41844         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
41845         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
41846         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41847         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
41848         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
41849         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
41850         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
41851         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
41852         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
41853         (USE_AS_WMEMCMP): New macro.
41854         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
41855         * sysdeps/string/test-memcmp.c: Update.
41856         Fix simple_wmemcmp.
41857         Add new tests.
41858         * wcsmbs/wmemcmp.c: Update.
41859         (WMEMCMP): New macro.
41860         Fix overflow bug.
41861
41862 2011-10-12  Andreas Jaeger  <aj@suse.de>
41863
41864         [BZ #13268]
41865         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
41866
41867 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41868
41869         * libio/iofwide.c (do_length): Avoid warning.
41870
41871         * ctype/ctype.h (__isctype_f): Add missing __THROW.
41872
41873 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
41874
41875         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
41876
41877         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
41878         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
41879         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
41880         * sysdeps/i386/i686/fpu/e_log.S: New file.
41881         * sysdeps/i386/i686/fpu/e_logf.S: New file.
41882         * sysdeps/i386/i686/fpu/e_logl.S: New file.
41883
41884         * ctype/ctype.h: Add support for inlined isXXX functions when
41885         compiling C++ code.
41886
41887 2011-10-14  Andreas Schwab  <schwab@redhat.com>
41888
41889         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41890
41891         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
41892
41893 2011-10-13  Roland McGrath  <roland@hack.frob.com>
41894
41895         [BZ #13291]
41896         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
41897
41898 2011-10-13  Andreas Schwab  <schwab@redhat.com>
41899
41900         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
41901         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
41902         feraiseexcept.
41903
41904         * sysdeps/x86_64/memrchr.S: Check for zero size.
41905
41906         * string/stratcliff.c: Add memrchr tests.
41907
41908 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41909
41910         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41911         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
41912         rawmemchr-sse2 rawmemchr-sse2-bsf.
41913         * sysdeps/i386/i686/multiarch/memchr.S: New file.
41914         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
41915         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
41916         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
41917         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
41918         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
41919         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
41920         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
41921         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
41922         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
41923         * string/memrchr.c (MEMRCHR): New macro.
41924
41925 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
41926
41927         Add integration with gcc's -ffinite-math-only and optimize wrapper
41928         functions in libm.
41929         * Versions.def: Define GLIBC_2.15 version for libm.
41930         * math/Makefile (headers): Add bits/math-finite.h.
41931         * math/bits/math-finite.h: New file.
41932         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
41933         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
41934         * math/e_acoshl.c: Add __*_finite alias.
41935         * math/e_acosl.c: Likewise.
41936         * math/e_asinl.c: Likewise.
41937         * math/e_atan2l.c: Likewise.
41938         * math/e_atanhl.c: Likewise.
41939         * math/e_coshl.c: Likewise.
41940         * math/e_exp10.c: Likewise.
41941         * math/e_exp10f.c: Likewise.
41942         * math/e_exp10l.c: Likewise.
41943         * math/e_exp2l.c: Likewise.
41944         * math/e_fmodl.c: Likewise.
41945         * math/e_gammal_r.c: Likewise.
41946         * math/e_hypotl.c: Likewise.
41947         * math/e_j0l.c: Likewise.
41948         * math/e_j1l.c: Likewise.
41949         * math/e_jnl.c: Likewise.
41950         * math/e_lgammal_r.c: Likewise.
41951         * math/e_log10l.c: Likewise.
41952         * math/e_log2l.c: Likewise.
41953         * math/e_logl.c: Likewise.
41954         * math/e_powl.c: Likewise.
41955         * math/e_sinhl.c: Likewise.
41956         * math/e_sqrtl.c: Likewise.
41957         * math/e_scalb.c: Completely rewritten and optimized.
41958         * math/e_scalbf.c: Likewise.
41959         * math/e_scalbl.c: Likewise.
41960         * math/w_acos.c: Likewise.
41961         * math/w_acosf.c: Likewise.
41962         * math/w_acosl.c: Likewise.
41963         * math/w_acosh.c: Likewise.
41964         * math/w_acoshf.c: Likewise.
41965         * math/w_acoshl.c: Likewise.
41966         * math/w_asin.c: Likewise.
41967         * math/w_asinf.c: Likewise.
41968         * math/w_asinl.c: Likewise.
41969         * math/w_atan2.c: Likewise.
41970         * math/w_atan2f.c: Likewise.
41971         * math/w_atan2l.c: Likewise.
41972         * math/w_atanh.c: Likewise.
41973         * math/w_atanhf.c: Likewise.
41974         * math/w_atanhl.c: Likewise.
41975         * math/w_exp10.c: Likewise.
41976         * math/w_exp10f.c: Likewise.
41977         * math/w_exp10l.c: Likewise.
41978         * math/w_fmod.c: Likewise.
41979         * math/w_fmodf.c: Likewise.
41980         * math/w_fmodl.c: Likewise.
41981         * math/w_j0.c: Likewise.
41982         * math/w_j0f.c: Likewise.
41983         * math/w_j0l.c: Likewise.
41984         * math/w_j1.c: Likewise.
41985         * math/w_j1f.c: Likewise.
41986         * math/w_j1l.c: Likewise.
41987         * math/w_jn.c: Likewise.
41988         * math/w_jnf.c: Likewise.
41989         * math/w_log.c: Likewise.
41990         * math/w_logf.c: Likewise.
41991         * math/w_logl.c: Likewise.
41992         * math/w_log10.c: Likewise.
41993         * math/w_log10f.c: Likewise.
41994         * math/w_log10l.c: Likewise.
41995         * math/w_log2.c: Likewise.
41996         * math/w_log2f.c: Likewise.
41997         * math/w_log2l.c: Likewise.
41998         * math/w_pow.c: Likewise.
41999         * math/w_powf.c: Likewise.
42000         * math/w_powl.c: Likewise.
42001         * math/w_remainder.c: Likewise.
42002         * math/w_remainderf.c: Likewise.
42003         * math/w_remainderl.c: Likewise.
42004         * math/w_scalb.c: Likewise.
42005         * math/w_scalbf.c: Likewise.
42006         * math/w_scalbl.c: Likewise.
42007         * math/w_sqrt.c: Likewise.
42008         * math/w_sqrtf.c: Likewise.
42009         * math/w_sqrtl.c: Likewise.
42010         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
42011         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
42012         used.
42013         * math/math_private.h: Declare __kernel_standard_f.
42014         * math/w_cosh.c: Remove cruft and optimize a bit.
42015         * math/w_coshf.c: Likewise.
42016         * math/w_coshl.c: Likewise.
42017         * math/w_exp2.c: Likewise.
42018         * math/w_exp2f.c: Likewise.
42019         * math/w_exp2l.c: Likewise.
42020         * math/w_hypot.c: Likewise.
42021         * math/w_hypotf.c: Likewise.
42022         * math/w_hypotl.c: Likewise.
42023         * math/w_lgamma.c: Likewise.
42024         * math/w_lgamma_r.c: Likewise.
42025         * math/w_lgammaf.c: Likewise.
42026         * math/w_lgammaf_r.c: Likewise.
42027         * math/w_lgammal.c: Likewise.
42028         * math/w_lgammal_r.c: Likewise.
42029         * math/w_sinh.c: Likewise.
42030         * math/w_sinhf.c: Likewise.
42031         * math/w_sinhl.c: Likewise.
42032         * math/w_tgamma.c: Likewise.
42033         * math/w_tgammaf.c: Likewise.
42034         * math/w_tgammal.c: Likewise.
42035         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
42036         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
42037         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
42038         Minor optimizations.  Pretty printing.  Remove cruft.
42039         * sysdeps/i386/fpu/e_acosf.S: Likewise.
42040         * sysdeps/i386/fpu/e_acosh.S: Likewise.
42041         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
42042         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
42043         * sysdeps/i386/fpu/e_acosl.c: Likewise.
42044         * sysdeps/i386/fpu/e_asin.S: Likewise.
42045         * sysdeps/i386/fpu/e_asinf.S: Likewise.
42046         * sysdeps/i386/fpu/e_atan2.S: Likewise.
42047         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
42048         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
42049         * sysdeps/i386/fpu/e_atanh.S: Likewise.
42050         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
42051         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
42052         * sysdeps/i386/fpu/e_exp10.S: Likewise.
42053         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
42054         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
42055         * sysdeps/i386/fpu/e_exp2.S: Likewise.
42056         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
42057         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
42058         * sysdeps/i386/fpu/e_fmod.S: Likewise.
42059         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
42060         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
42061         * sysdeps/i386/fpu/e_hypot.S: Likewise.
42062         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
42063         * sysdeps/i386/fpu/e_log.S: Likewise.
42064         * sysdeps/i386/fpu/e_log10.S: Likewise.
42065         * sysdeps/i386/fpu/e_log10f.S: Likewise.
42066         * sysdeps/i386/fpu/e_log10l.S: Likewise.
42067         * sysdeps/i386/fpu/e_log2.S: Likewise.
42068         * sysdeps/i386/fpu/e_log2f.S: Likewise.
42069         * sysdeps/i386/fpu/e_log2l.S: Likewise.
42070         * sysdeps/i386/fpu/e_logf.S: Likewise.
42071         * sysdeps/i386/fpu/e_logl.S: Likewise.
42072         * sysdeps/i386/fpu/e_pow.S: Likewise.
42073         * sysdeps/i386/fpu/e_powf.S: Likewise.
42074         * sysdeps/i386/fpu/e_powl.S: Likewise.
42075         * sysdeps/i386/fpu/e_remainder.S: Likewise.
42076         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
42077         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
42078         * sysdeps/i386/fpu/e_scalb.S: Likewise.
42079         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
42080         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
42081         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
42082         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
42083         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
42084         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42085         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
42086         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42087         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42088         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42089         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42090         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42091         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42092         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42093         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42094         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42095         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
42096         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42097         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42098         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42099         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42100         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42101         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42102         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42103         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42104         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42105         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
42106         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
42107         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
42108         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
42109         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
42110         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
42111         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
42112         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
42113         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
42114         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
42115         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
42116         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42117         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
42118         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
42119         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
42120         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
42121         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
42122         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
42123         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
42124         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
42125         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
42126         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
42127         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
42128         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
42129         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
42130         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
42131         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
42132         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
42133         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
42134         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
42135         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
42136         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
42137         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42138         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
42139         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
42140         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
42141         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
42142         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
42143         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
42144         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
42145         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
42146         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
42147         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
42148         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
42149         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
42150         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
42151         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
42152         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
42153         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
42154         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
42155         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
42156         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
42157         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
42158         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
42159         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
42160         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
42161         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
42162         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
42163         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
42164         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
42165         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
42166         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
42167         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
42168         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
42169         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
42170         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42171         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
42172         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
42173         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
42174         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
42175         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
42176         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
42177         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
42178         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
42179         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
42180         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
42181         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
42182         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
42183         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
42184         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
42185         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
42186         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
42187         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
42188         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
42189         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
42190         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
42191         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
42192         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
42193         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
42194         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
42195         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
42196         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
42197         (__isnanf): Likewise.
42198         (__isinf_ns): Likewise.
42199         (__isinf_nsf): Likewise.
42200         (__finite): Likewise.
42201         (__finitef): Likewise.
42202         (__ieee754_sqrt): Define as macro.
42203         (__ieee754_sqrtf): Define as macro.
42204         (__ieee754_sqrtl): Define as macro.
42205         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
42206         inlined copy.
42207         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
42208         __FINITE_MATH_ONLY__ consistent.
42209         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
42210
42211 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
42212
42213         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
42214         of rawmemchr.
42215
42216         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
42217
42218 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
42219
42220         * po/ja.po: Update from translation team.
42221
42222 2011-10-08  Roland McGrath  <roland@hack.frob.com>
42223
42224         * locale/programs/locarchive.c (prepare_address_space): New function.
42225         (create_archive, enlarge_archive, open_archive): Use it.
42226
42227         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
42228         inside [SHARED], where it is used.
42229
42230         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
42231
42232         * nss/getent.c (netgroup_keys): Remove unused variable.
42233         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
42234
42235 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
42236
42237         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
42238         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
42239         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
42240         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
42241         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
42242         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
42243         * math/Makefile (libm-calls): Add s_isinf_ns.
42244         * math/divtc3.c: Use __isinf_nsl instead of isinf.
42245         * math/multc3.c: Likewise.
42246         * math/s_casin.c: Likewise.
42247         * math/s_casinf.c: Likewise.
42248         * math/s_casinl.c: Likewise.
42249         * math/s_ccos.c: Likewise.
42250         * math/s_ccosf.c: Likewise.
42251         * math/s_ccosl.c: Likewise.
42252         * math/s_ctan.c: Likewise.
42253         * math/s_ctanf.c: Likewise.
42254         * math/s_ctanh.c: Likewise.
42255         * math/s_ctanhf.c: Likewise.
42256         * math/s_ctanhl.c: Likewise.
42257         * math/s_ctanl.c: Likewise.
42258         * math/w_fmod.c: Likewise.
42259         * math/w_fmodf.c: Likewise.
42260         * math/w_fmodl.c: Likewise.
42261         * math/w_remainder.c: Likewise.
42262         * math/w_remainderf.c: Likewise.
42263         * math/w_remainderl.c: Likewise.
42264         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
42265         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
42266         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
42267         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
42268         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
42269         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
42270         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
42271         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
42272
42273         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
42274         of the number.
42275         * stdio-common/printf_fphex.c: Likewise.
42276         * stdio-common/printf_size.c: Likewise.
42277
42278         * math/e_exp10.c: Include math_private.h using <...> not "...".
42279         * math/e_exp10f.c: Likewise.
42280         * math/e_exp10l.c: Likewise.
42281         * math/e_exp2l.c: Likewise.
42282         * math/e_j0l.c: Likewise.
42283         * math/e_j1l.c: Likewise.
42284         * math/e_jnl.c: Likewise.
42285         * math/e_lgammal_r.c: Likewise.
42286         * math/e_rem_pio2l.c: Likewise.
42287         * math/e_scalb.c: Likewise.
42288         * math/e_scalbf.c: Likewise.
42289         * math/e_scalbl.c: Likewise.
42290         * math/k_cosl.c: Likewise.
42291         * math/k_sinl.c: Likewise.
42292         * math/k_tanl.c: Likewise.
42293         * math/s_cacoshf.c: Likewise.
42294         * math/s_catan.c: Likewise.
42295         * math/s_catanf.c: Likewise.
42296         * math/s_catanh.c: Likewise.
42297         * math/s_catanhf.c: Likewise.
42298         * math/s_catanhl.c: Likewise.
42299         * math/s_catanl.c: Likewise.
42300         * math/s_ccosh.c: Likewise.
42301         * math/s_ccoshf.c: Likewise.
42302         * math/s_ccoshl.c: Likewise.
42303         * math/s_cexp.c: Likewise.
42304         * math/s_cexpf.c: Likewise.
42305         * math/s_cexpl.c: Likewise.
42306         * math/s_clog.c: Likewise.
42307         * math/s_clog10.c: Likewise.
42308         * math/s_clog10f.c: Likewise.
42309         * math/s_clog10l.c: Likewise.
42310         * math/s_clogf.c: Likewise.
42311         * math/s_clogl.c: Likewise.
42312         * math/s_csin.c: Likewise.
42313         * math/s_csinf.c: Likewise.
42314         * math/s_csinh.c: Likewise.
42315         * math/s_csinhf.c: Likewise.
42316         * math/s_csinhl.c: Likewise.
42317         * math/s_csinl.c: Likewise.
42318         * math/s_csqrt.c: Likewise.
42319         * math/s_csqrtf.c: Likewise.
42320         * math/s_csqrtl.c: Likewise.
42321         * math/s_ctan.c: Likewise.
42322         * math/s_ctanf.c: Likewise.
42323         * math/s_ctanh.c: Likewise.
42324         * math/s_ctanhf.c: Likewise.
42325         * math/s_ctanhl.c: Likewise.
42326         * math/s_ctanl.c: Likewise.
42327         * math/s_ldexp.c: Likewise.
42328         * math/s_ldexpf.c: Likewise.
42329         * math/s_ldexpl.c: Likewise.
42330         * math/s_significand.c: Likewise.
42331         * math/s_significandf.c: Likewise.
42332         * math/s_significandl.c: Likewise.
42333         * math/w_acos.c: Likewise.
42334         * math/w_acosf.c: Likewise.
42335         * math/w_acosh.c: Likewise.
42336         * math/w_acoshf.c: Likewise.
42337         * math/w_acoshl.c: Likewise.
42338         * math/w_acosl.c: Likewise.
42339         * math/w_asin.c: Likewise.
42340         * math/w_asinf.c: Likewise.
42341         * math/w_asinl.c: Likewise.
42342         * math/w_atan2.c: Likewise.
42343         * math/w_atan2f.c: Likewise.
42344         * math/w_atan2l.c: Likewise.
42345         * math/w_atanh.c: Likewise.
42346         * math/w_atanhf.c: Likewise.
42347         * math/w_atanhl.c: Likewise.
42348         * math/w_cosh.c: Likewise.
42349         * math/w_coshf.c: Likewise.
42350         * math/w_coshl.c: Likewise.
42351         * math/w_dremf.c: Likewise.
42352         * math/w_exp10.c: Likewise.
42353         * math/w_exp10f.c: Likewise.
42354         * math/w_exp10l.c: Likewise.
42355         * math/w_exp2.c: Likewise.
42356         * math/w_exp2f.c: Likewise.
42357         * math/w_fmod.c: Likewise.
42358         * math/w_fmodf.c: Likewise.
42359         * math/w_fmodl.c: Likewise.
42360         * math/w_hypot.c: Likewise.
42361         * math/w_hypotf.c: Likewise.
42362         * math/w_hypotl.c: Likewise.
42363         * math/w_j0.c: Likewise.
42364         * math/w_j0f.c: Likewise.
42365         * math/w_j0l.c: Likewise.
42366         * math/w_j1.c: Likewise.
42367         * math/w_j1f.c: Likewise.
42368         * math/w_j1l.c: Likewise.
42369         * math/w_jn.c: Likewise.
42370         * math/w_jnf.c: Likewise.
42371         * math/w_jnl.c: Likewise.
42372         * math/w_lgamma.c: Likewise.
42373         * math/w_lgamma_r.c: Likewise.
42374         * math/w_lgammaf.c: Likewise.
42375         * math/w_lgammaf_r.c: Likewise.
42376         * math/w_lgammal.c: Likewise.
42377         * math/w_lgammal_r.c: Likewise.
42378         * math/w_log.c: Likewise.
42379         * math/w_log10.c: Likewise.
42380         * math/w_log10f.c: Likewise.
42381         * math/w_log10l.c: Likewise.
42382         * math/w_log2.c: Likewise.
42383         * math/w_log2f.c: Likewise.
42384         * math/w_log2l.c: Likewise.
42385         * math/w_logf.c: Likewise.
42386         * math/w_logl.c: Likewise.
42387         * math/w_pow.c: Likewise.
42388         * math/w_powf.c: Likewise.
42389         * math/w_powl.c: Likewise.
42390         * math/w_remainder.c: Likewise.
42391         * math/w_remainderf.c: Likewise.
42392         * math/w_remainderl.c: Likewise.
42393         * math/w_scalb.c: Likewise.
42394         * math/w_scalbf.c: Likewise.
42395         * math/w_scalbl.c: Likewise.
42396         * math/w_sinh.c: Likewise.
42397         * math/w_sinhf.c: Likewise.
42398         * math/w_sinhl.c: Likewise.
42399         * math/w_sqrt.c: Likewise.
42400         * math/w_sqrtf.c: Likewise.
42401         * math/w_sqrtl.c: Likewise.
42402         * math/w_tgamma.c: Likewise.
42403         * math/w_tgammaf.c: Likewise.
42404         * math/w_tgammal.c: Likewise.
42405
42406         * po/ja.po: Update from translation team.
42407
42408 2011-09-29  Andreas Jaeger  <aj@suse.de>
42409
42410         [BZ #13179]
42411         * sunrpc/netname.c (netname2host): Fix logic.
42412
42413         [BZ #6779]
42414         [BZ #6783]
42415         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
42416         correctly.
42417         * math/w_remainder.c (__remainder): Likewise.
42418         * math/w_remainderf.c (__remainderf): Likewise.
42419         * math/libm-test.inc (remainder_test): Add test cases.
42420
42421 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42422
42423         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
42424         sdiv_qrnnd.
42425
42426 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42427
42428         * string/test-memcmp.c: Avoid unncessary #defines.
42429         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42430
42431 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42432
42433         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
42434         Use new sse2 version for core i3 - i7 as it's faster
42435         than sse42 version.
42436         (bit_Prefer_PMINUB_for_stringop): New.
42437         * sysdeps/x86_64/rawmemchr.S: Update.
42438         Replace with faster SSE2 version.
42439         * sysdeps/x86_64/memrchr.S: New file.
42440         * sysdeps/x86_64/memchr.S: Update.
42441         Replace with faster SSE2 version.
42442
42443 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
42444
42445         * elf/dl-load.c (lose): Add cast to avoid warning.
42446
42447 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42448
42449         * po/ca.po: Update from translation team.
42450
42451         * inet/getnetgrent_r.c: Hook up nscd.
42452         * nscd/Makefile (routines): Add nscd_netgroup.
42453         (nscd-modules): Add netgroupcache.
42454         (CFLAGS-netgroupcache.c): Define.
42455         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
42456         (cache_search): Add const to second parameter.
42457         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
42458         INNETGR.
42459         (dbs): Add netgrdb entry.
42460         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
42461         (verify_persistent_db): Handle netgrdb.
42462         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
42463         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
42464         GETFDNETGR.
42465         (netgroup_response_header): Define.
42466         (innetgroup_response_header): Define.
42467         (datahead): Add netgroup_response_header and innetgroup_response_header
42468         elements.
42469         * nscd/nscd.conf: Add entries for netgroup cache.
42470         * nscd/nscd.h (dbtype): Add netgrdb.
42471         (_PATH_NSCD_NETGROUP_DB): Define.
42472         (netgroup_iov_disabled): Declare.
42473         (xmalloc, xcalloc, xrealloc): Move declarations here.
42474         (cache_search): Adjust prototype.
42475         Add netgroup-related prototypes.
42476         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
42477         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
42478         (__nscd_innetgr): Declare.
42479         * nscd/selinux.c (perms): Use access_vector_t as element type and
42480         add netgroup-related initializers.
42481         * nscd/netgroupcache.c: New file.
42482         * nscd/nscd_netgroup.c: New file.
42483         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
42484         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
42485         For four parameters use innetgr.
42486         * nss/nss_files/files-init.c: Add definition and callback for netgr.
42487         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
42488         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
42489         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
42490
42491         * nscd/connections.c (register_traced_file): Don't register file
42492         for disabled databases.
42493
42494 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
42495
42496         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
42497
42498         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
42499         from tree and freeing node.
42500
42501 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
42502
42503         * nss/nsswitch.c (__nss_database_lookup): Handle
42504         nss_parse_service_list out of memory case.
42505
42506 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
42507
42508         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
42509         out of memory case.
42510
42511 2011-10-04  Andreas Schwab  <schwab@redhat.com>
42512
42513         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
42514         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
42515         pass it down.
42516         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
42517         elf_machine_rela, elf_machine_lazy_rel.
42518         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
42519         (ELF_DYNAMIC_DO_REL): Likewise.
42520         (ELF_DYNAMIC_DO_RELA): Likewise.
42521         (ELF_DYNAMIC_RELOCATE): Likewise.
42522         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
42523         to ELF_DYNAMIC_DO_REL.
42524         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
42525         (dl_main): In trace mode always set __RTLD_NOIFUNC.
42526         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
42527         elf_machine_rela.
42528         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
42529         skip_ifunc, don't call ifunc function if non-zero.
42530         (elf_machine_rela): Likewise.
42531         (elf_machine_lazy_rel): Likewise.
42532         (elf_machine_lazy_rela): Likewise.
42533         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
42534         (elf_machine_lazy_rel): Likewise.
42535         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
42536         Likewise.
42537         (elf_machine_lazy_rel): Likewise.
42538         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42539         Likewise.
42540         (elf_machine_lazy_rel): Likewise.
42541         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
42542         (elf_machine_lazy_rel): Likewise.
42543         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
42544         (elf_machine_lazy_rel): Likewise.
42545         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
42546         (elf_machine_lazy_rel): Likewise.
42547         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
42548         (elf_machine_lazy_rel): Likewise.
42549         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
42550         (elf_machine_lazy_rel): Likewise.
42551         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
42552         (elf_machine_lazy_rel): Likewise.
42553
42554 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
42555
42556         * nss/nss_files/files-init.c (_nss_files_init): Use static
42557         initialization for all the *_traced_file variables.
42558
42559 2011-09-28  Andreas Schwab  <schwab@redhat.com>
42560
42561         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42562
42563 2011-09-27  Roland McGrath  <roland@hack.frob.com>
42564
42565         [BZ #13226]
42566         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
42567
42568 2011-09-27  Andreas Schwab  <schwab@redhat.com>
42569
42570         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
42571         Reread the line before reparsing it.
42572
42573 2011-09-26  Andreas Schwab  <schwab@redhat.com>
42574
42575         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
42576
42577 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
42578             Maxim Kuvyrkov  <maxim@codesourcery.com>
42579             Joseph Myers  <joseph@codesourcery.com>
42580
42581         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
42582         if needed for __stack_chk_guard.
42583
42584 2011-09-19  Roland McGrath  <roland@hack.frob.com>
42585
42586         * sysdeps/posix/spawni.c (script_execute): Always define it.
42587         It will be optimized away if unused.
42588         (maybe_script_execute): New function.
42589         (__spawni): Call it.
42590
42591         * Makerules: Don't include tls.make.
42592         (config-tls): Always set to thread.
42593         * tls.make.c: File removed.
42594
42595 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
42596
42597         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
42598         * config.make.in (CPPFLAGS-config): New substituted variable.
42599
42600 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42601
42602         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
42603
42604         [BZ #13192]
42605         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
42606         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
42607
42608 2011-09-15  Roland McGrath  <roland@hack.frob.com>
42609
42610         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
42611         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
42612         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
42613         (CALL_FAIL): Likewise.
42614         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
42615         (CALL_FAIL): Macro removed.
42616         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
42617
42618 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42619
42620         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
42621         for __FINITE_MATH_ONLY__ == 1.
42622
42623 2011-09-15  Andreas Schwab  <schwab@redhat.com>
42624
42625         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
42626         __ieee754_sqrt instead of sqrt.
42627         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
42628         __ieee754_sqrtf instead of sqrtf.
42629         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
42630         __floorf instead of floorf.
42631         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
42632         __floorf, __truncf instead of floorf, truncf.
42633
42634 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
42635
42636         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
42637
42638         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
42639         __extern_always_inline.
42640         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
42641         32-bit.
42642
42643 2011-09-14  Andreas Schwab  <schwab@redhat.com>
42644
42645         * elf/rtld.c (dl_main): Also relocate in dependency order when
42646         doing symbol dependency testing.
42647
42648 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
42649
42650         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42651         Always define `refsym'.
42652
42653 2011-09-13  Andreas Schwab  <schwab@redhat.com>
42654
42655         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
42656         (__FD_ELT): Renamed from __FDELT.
42657         * misc/bits/select2.h (__FD_ELT): Likewise.
42658         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
42659         __FD_MASK instead of __FDELT, __FDMASK.
42660         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42661         Likewise.
42662         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42663         Likewise.
42664
42665         * elf/Makefile (gen-ldd): Fix pattern.
42666
42667         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
42668         (init_tls): Likewise.
42669
42670 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
42671
42672         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
42673
42674 2011-09-12  Andreas Schwab  <schwab@redhat.com>
42675
42676         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
42677         `struct cmsghdr *' instead of `void *'.
42678         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
42679         Likewise.
42680
42681 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
42682
42683         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
42684         if non-absolute.
42685         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
42686         ldd_rewrite_script.
42687
42688 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
42689
42690         * configure.in: Remove --with-tls option.
42691         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
42692         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
42693         out in case it is missing.
42694         * sysdeps/ia64/elf/configure.in: Likewise.
42695         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
42696         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
42697         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
42698         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
42699         * sysdeps/sh/elf/configure.in: Likewise.
42700         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
42701         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
42702         * sysdeps/x86_64/elf/configure.in: Likewise.
42703         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
42704         * sysdeps/mach/hurd/tls.h: Likewise.
42705
42706         [BZ #13067]
42707         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
42708
42709         [BZ #13090]
42710         * configure.in: Fix use of AC_INIT.
42711
42712         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
42713
42714 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
42715
42716         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
42717         __set_errno.
42718         * malloc/hooks.c: Likewise.
42719
42720         [BZ #11929]
42721         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
42722         variables statically.
42723         (narenas): Initialize.
42724         (list_lock): Initialize.
42725         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
42726         initializtion of main_arena and list_lock.  Small cleanups.
42727         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
42728         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
42729         Add initializers to main_arena and mp_.
42730         (malloc_state): Remove pagesize member.  Change all users to use
42731         GLRO(dl_pagesize).
42732
42733         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
42734         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
42735         is always initialized.
42736
42737         * malloc/malloc.c: Removed unused configurations and dead code.
42738         * malloc/arena.c: Likewise.
42739         * malloc/hooks.c: Likewise.
42740         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
42741
42742         * include/tls.h: Removed.  USE___THREAD must always be defined.
42743         * bits/libc-tsd.h: Don't handle !USE___THREAD.
42744         * elf/dl-libc.c: Likewise.
42745         * elf/dl-tsd.c: Likewise.
42746         * include/errno.h: Likewise.
42747         * include/netdb.h: Likewise.
42748         * include/resolv.h: Likewise.
42749         * inet/herrno-loc.c: Likewise.
42750         * inet/herrno.c: Likewise.
42751         * malloc/arena.c: Likewise.
42752         * malloc/hooks.c: Likewise.
42753         * malloc/malloc.c: Likewise.
42754         * resolv/res-state.c: Likewise.
42755         * resolv/res_libc.c: Likewise.
42756         * sysdeps/i386/dl-machine.h: Likewise.
42757         * sysdeps/ia64/dl-machine.h: Likewise.
42758         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42759         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42760         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42761         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42762         * sysdeps/sh/dl-machine.h: Likewise.
42763         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42764         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42765         * sysdeps/unix/i386/sysdep.S: Likewise.
42766         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
42767         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
42768         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
42769         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
42770         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
42771         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
42772         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
42773         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
42774         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42775         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
42776         * sysdeps/unix/x86_64/sysdep.S: Likewise.
42777         * sysdeps/x86_64/dl-machine.h: Likewise.
42778         * tls.make.c: Likewise.
42779
42780         * configure.in: Remove --with-__thread option.  Make tests for
42781         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
42782         tls_model attribute fail if no support is available.  Remove
42783         USE_IN_LIBIO.
42784         * Makeconfig: Adjust for dropped configure option.  All features are
42785         now mandatory.
42786         * Makerules: Likewise.
42787         * Versions.def: Likewise.
42788         * argp/argp-fmtstream.c: Likewise.
42789         * argp/argp-fmtstream.h: Likewise.
42790         * argp/argp-help.c: Likewise.
42791         * assert/assert.c: Likewise.
42792         * config.h.in: Likewise.
42793         * config.make.in: Likewise.
42794         * configure: Likewise.
42795         * configure.in: Likewise.
42796         * csu/Versions: Likewise.
42797         * csu/init.c: Likewise.
42798         * elf/tst-audit2.c: Likewise.
42799         * elf/tst-tls10.c: Likewise.
42800         * elf/tst-tls10.h: Likewise.
42801         * elf/tst-tls11.c: Likewise.
42802         * elf/tst-tls12.c: Likewise.
42803         * elf/tst-tls14.c: Likewise.
42804         * elf/tst-tlsmod11.c: Likewise.
42805         * elf/tst-tlsmod12.c: Likewise.
42806         * elf/tst-tlsmod13.c: Likewise.
42807         * elf/tst-tlsmod13a.c: Likewise.
42808         * elf/tst-tlsmod14a.c: Likewise.
42809         * elf/tst-tlsmod15b.c: Likewise.
42810         * elf/tst-tlsmod16a.c: Likewise.
42811         * elf/tst-tlsmod16b.c: Likewise.
42812         * elf/tst-tlsmod7.c: Likewise.
42813         * elf/tst-tlsmod8.c: Likewise.
42814         * elf/tst-tlsmod9.c: Likewise.
42815         * gmon/gmon.c: Likewise.
42816         * grp/fgetgrent_r.c: Likewise.
42817         * grp/putgrent.c: Likewise.
42818         * hurd/fopenport.c: Likewise.
42819         * include/libc-symbols.h: Likewise.
42820         * include/tls.h: Likewise.
42821         * intl/gettextP.h: Likewise.
42822         * intl/loadinfo.h: Likewise.
42823         * locale/global-locale.c: Likewise.
42824         * locale/localeinfo.h: Likewise.
42825         * mach/devstream.c: Likewise.
42826         * malloc/arena.c: Likewise.
42827         * malloc/set-freeres.c: Likewise.
42828         * misc/err.c: Likewise.
42829         * misc/getttyent.c: Likewise.
42830         * misc/mntent_r.c: Likewise.
42831         * posix/getopt.c: Likewise.
42832         * posix/wordexp.c: Likewise.
42833         * pwd/fgetpwent_r.c: Likewise.
42834         * resolv/Versions: Likewise.
42835         * resolv/res_hconf.c: Likewise.
42836         * shadow/fgetspent_r.c: Likewise.
42837         * shadow/putspent.c: Likewise.
42838         * stdio-common/printf_fphex.c: Likewise.
42839         * stdio-common/tmpfile.c: Likewise.
42840         * stdlib/abort.c: Likewise.
42841         * stdlib/fmtmsg.c: Likewise.
42842         * sunrpc/auth_unix.c: Likewise.
42843         * sunrpc/clnt_perr.c: Likewise.
42844         * sunrpc/clnt_tcp.c: Likewise.
42845         * sunrpc/clnt_udp.c: Likewise.
42846         * sunrpc/clnt_unix.c: Likewise.
42847         * sunrpc/openchild.c: Likewise.
42848         * sunrpc/svc_simple.c: Likewise.
42849         * sunrpc/svc_tcp.c: Likewise.
42850         * sunrpc/svc_udp.c: Likewise.
42851         * sunrpc/svc_unix.c: Likewise.
42852         * sunrpc/xdr.c: Likewise.
42853         * sunrpc/xdr_array.c: Likewise.
42854         * sunrpc/xdr_rec.c: Likewise.
42855         * sunrpc/xdr_ref.c: Likewise.
42856         * sunrpc/xdr_stdio.c: Likewise.
42857
42858 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42859
42860         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42861
42862 2011-07-03  Andreas Jaeger  <aj@suse.de>
42863
42864         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
42865         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
42866         regenerate with gen-libm-tests.pl.
42867
42868 2010-05-12  Petr Baudis  <pasky@suse.cz>
42869
42870         [BZ #11589]
42871         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
42872         around j0() zero points by switching to j1().
42873         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42874         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42875         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
42876         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42877
42878 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42879
42880         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
42881         instead of 0.
42882         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
42883         instead of 0.
42884         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
42885         Patch in part by Pavel Roskin <proski@gnu.org>.
42886
42887         [BZ #13138]
42888         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
42889         realloc.
42890         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
42891         Free memory block if necessary.
42892
42893         [BZ #12847]
42894         * libio/genops.c (INTDEF): For string streams the _lock pointer can
42895         be NULL.  Don't lock in this case.
42896
42897 2011-09-09  Roland McGrath  <roland@hack.frob.com>
42898
42899         * elf/elf.h (ELFOSABI_GNU): New macro.
42900         (ELFOSABI_LINUX): Define to that.
42901
42902 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
42903
42904         * string/strncat.c (strncat): Undef the symbol in case it has been
42905         defined in bits/string.h.
42906
42907 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42908
42909         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
42910
42911         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
42912         link map.
42913
42914 2011-08-17  Andreas Jaeger  <aj@suse.de>
42915
42916         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
42917
42918 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42919             Ian Lance Taylor  <iant@google.com>
42920
42921         * math/libm-test.inc (lround_test): New testcase.
42922         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
42923
42924 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
42925
42926         * Makefile: Remove support for automatic cvs check-ins.
42927         * Makerules: Likewise.
42928         * config.make.in: Likewise.
42929         * configure.in: Likewise.
42930         * intl/Makefile: Likewise.
42931         * locale/Makefile: Likewise.
42932         * po/Makefile: Likewise.
42933         * posix/Makefile: Likewise.
42934         * sysdeps/gnu/Makefile: Likewise.
42935         * sysdeps/mach/hurd/Makefile: Likewise.
42936         * sysdeps/sparc/sparc32/Makefile: Likewise.
42937
42938         [BZ #13118]
42939         * posix/Makefile (bug-regex32-ENV): Define.
42940         Patch by John Stanley <jpsinthemix@verizon.net>.
42941
42942         * misc/Makefile (headers): Add bits/select2.h.
42943         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
42944         * misc/bits/select2.h: New file.
42945         * include/bits/select2.h: New file.
42946         * debug/Makefile (routines): Add fdelt_chk.
42947         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
42948         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
42949         FD_ISSET.
42950         * debug/fdelt_chk.c: New file.
42951
42952         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
42953         * wcsmbs/test-wmemcmp.c: Likewise.
42954         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
42955         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
42956
42957 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42958
42959         * string/Makefile (strop-tests): Add memcmp.
42960         * string/test-wmemcmp.c: New file.
42961         * string/test-memcmp.c: Add wmemcmp support.
42962
42963 2011-09-08  Roland McGrath  <roland@hack.frob.com>
42964
42965         [BZ #13153]
42966         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
42967         2011-07-19 change.
42968
42969         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
42970         garbage value in a __mach_port_mod_refs call in the cases of the
42971         task-self and thread-self ports.
42972
42973 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42974
42975         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
42976
42977 2011-09-08  Andreas Schwab  <schwab@redhat.com>
42978
42979         * elf/dl-load.c (lose): Check for non-null L.
42980
42981 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42982
42983         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
42984
42985         * elf/dl-libc.c (dlerror_run): Pass back error code from
42986         dl_catch_error.
42987
42988         [BZ #13123]
42989         * elf/dl-load.c (lose): Free l_origin if it is valid.
42990
42991         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
42992         names.
42993         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
42994         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42995         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
42996         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42997         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
42998         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
42999
43000 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43001
43002         * sysdeps/powerpc/fpu/e_hypot.c: New file.
43003         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
43004         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
43005         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
43006         * sysdeps/powerpc/fpu/k_cosf.c: New file.
43007         * sysdeps/powerpc/fpu/k_sinf.c: New file.
43008         * sysdeps/powerpc/fpu/s_cosf.c: New file.
43009         * sysdeps/powerpc/fpu/s_sinf.c: New file.
43010         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
43011         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
43012
43013 2011-08-15  Alan Modra  <amodra@gmail.com>
43014
43015         [BZ #13092]
43016         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
43017         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
43018         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
43019         ppc_mcount to static-only-routines.
43020         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
43021         __mcount_internal.
43022         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
43023         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
43024
43025 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
43026
43027         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
43028         for finite and infinity parameters.
43029
43030 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
43031
43032         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
43033         and add nop instructions for throughput optimization.
43034         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43035
43036 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
43037
43038         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
43039         aligned copy for power7 with vector-scalar instructions.
43040         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43041
43042 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
43043
43044         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
43045         AVX check.
43046
43047 2011-09-07  Andreas Schwab  <schwab@redhat.com>
43048
43049         [BZ #13144]
43050         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
43051         last change.
43052
43053 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43054
43055         * sysdeps/unix/sysv/linux/x86_64/init-first.c
43056         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
43057         syscall wrapper around clock_gettime in __vdso_clock_gettime.
43058         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
43059         clock_gettime.
43060
43061 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43062
43063         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
43064         Forgot to demangle the pointer.
43065
43066         * sysdeps/i386/sysdep.h: Define atom_text_section.
43067         * sysdeps/x86_64/sysdep.h: Likewise.
43068         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
43069         section with atom_text_section.
43070         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43071         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43072         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
43073         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43074         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
43075
43076         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
43077         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
43078         already be defined.  Change to take two parameters and don't assign
43079         result to variable.  Adjust all users.
43080         Define INTERNAL_GETTIME if not already defined.
43081         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
43082         call.
43083         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
43084         HAVE_CLOCK_GETTIME_VSYSCALL.
43085         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
43086
43087         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
43088         gettimeofday vsyscall, just use time.
43089
43090 2011-09-06  Andreas Schwab  <schwab@redhat.com>
43091
43092         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
43093         <errno.h>.
43094
43095 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43096
43097         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
43098         syscall on x86-64.
43099         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
43100         syscall.
43101         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
43102         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
43103         syscall if possible.
43104
43105 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43106
43107         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
43108         e_ident.  Don't pass to find_mapsXX.
43109         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
43110
43111 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43112
43113         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43114         strchr-sse2-no-bsf strrchr-sse2-no-bsf
43115         * sysdeps/x86_64/multiarch/strchr.S: Update.
43116         Check bit_slow_BSF bit.
43117         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43118         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
43119         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
43120
43121 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43122
43123         [BZ #13134]
43124         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
43125         before glibc 2.15.
43126         (tryshell): Define.
43127         (__spawni): Change last parameter to be flag.  Test
43128         SPAWN_XFLAGS_USE_PATH flag to use path or not.
43129         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
43130         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
43131         * posix/spawni.c: Likewise.
43132         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
43133         * posix/spawnp.c: Likewise.  Change normal version to use
43134         SPAWN_XFLAGS_USE_PATH.
43135         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
43136         SPAWN_XFLAGS_TRY_SHELL.
43137
43138         [BZ #13150]
43139         * posix/glob.h: Remove gcc 1.x support.
43140
43141         [BZ #13068]
43142         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
43143
43144 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43145
43146         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43147         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
43148         strrchr-sse2-bsf
43149         * sysdeps/i386/i686/multiarch/strchr.S: New file.
43150         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
43151         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
43152         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
43153         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
43154         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
43155
43156 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43157
43158         * sysdeps/x86_64/wcscmp.S: New file.
43159
43160         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
43161         wcscmp-c wcscmp-sse2
43162         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
43163         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
43164         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
43165         * wcsmbs/wcscmp.c: Allow renaming.
43166
43167 2011-09-05  David S. Miller  <davem@davemloft.net>
43168
43169         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
43170         stack slot, rather than the struct return pointer slot.
43171         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
43172         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
43173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
43174         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
43175
43176 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43177
43178         * po/ja.po: Update from translation team.
43179
43180         [BZ #13144]
43181         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
43182         kernel in 64-bit binaries.
43183
43184 2011-09-01  David S. Miller  <davem@davemloft.net>
43185
43186         * elf/elf.h (HWCAP_SPARC_*): Move to..
43187         * sysdeps/sparc/sysdep.h: this new file and add new values.
43188         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
43189         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
43190         _DL_HWCAP_COUNT to 24.
43191         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
43192         entries.
43193         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
43194         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
43195         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
43196         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
43197         instead of magic constants.
43198         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
43199
43200 2011-08-31  David S. Miller  <davem@davemloft.net>
43201
43202         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
43203         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
43204         Reimplement to do errno handling inline.
43205         (SYSCALL_ERROR_HANDLER): New macro.
43206         (__SYSCALL_STRING): Do not do errno handling in asm.
43207         (__CLONE_SYSCALL_STRING): Delete.
43208         (__INTERNAL_SYSCALL_STRING): Delete.
43209         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
43210         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
43211         (PSEUDO): Reimplement to do errno handling inline.
43212         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
43213         (SYSCALL_ERROR_HANDLER): New macro.
43214         (__SYSCALL_STRING): Do not do errno handling in asm.
43215         (__CLONE_SYSCALL_STRING): Delete.
43216         (__INTERNAL_SYSCALL_STRING): Delete.
43217         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
43218         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
43219         i386.
43220         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
43221         (inline_syscall*): Add 'err' argument.
43222         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
43223         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
43224         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
43225         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
43226
43227         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
43228         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
43229
43230 2011-08-30  Andreas Schwab  <schwab@redhat.com>
43231
43232         * elf/rtld.c (dl_main): Relocate objects in dependency order.
43233
43234 2011-08-29  Jiri Olsa <jolsa@redhat.com>
43235
43236         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
43237         directive.
43238
43239 2011-08-24  David S. Miller  <davem@davemloft.net>
43240
43241         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
43242
43243 2011-08-24  Andreas Schwab  <schwab@redhat.com>
43244
43245         * elf/Makefile: Add rules to build and run unload8 test.
43246         * elf/unload8.c: New file.
43247         * elf/unload8mod1.c: New file.
43248         * elf/unload8mod1x.c: New file.
43249         * elf/unload8mod2.c: New file.
43250         * elf/unload8mod3.c: New file.
43251
43252         * elf/dl-close.c (_dl_close_worker): Reset private search list if
43253         it wasn't used.
43254
43255 2011-08-23  David S. Miller  <davem@davemloft.net>
43256
43257         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
43258         subtract stack bias.
43259         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
43260         %sp not %fp in calculations.
43261         (_JMPBUF_UNWINDS_ADJ): Likewise.
43262
43263         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
43264         (aio_suspend): Call it to force an exception region around the
43265         AIO_MISC_WAIT() invocation.
43266
43267 2011-08-23  Andreas Schwab  <schwab@redhat.com>
43268
43269         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
43270         backslash.
43271
43272 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
43273
43274         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
43275         protection macro.
43276         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
43277         and <dl-machine.h>.
43278         (Elf64_FuncDesc): Remove.
43279
43280 2011-08-22  David S. Miller  <davem@davemloft.net>
43281
43282         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
43283         sigaltstack check, add missing cfi directives.
43284         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
43285         missing cfi directives, and sigaltstack handling.
43286
43287 2011-08-16  Andreas Schwab  <schwab@redhat.com>
43288
43289         [BZ #11724]
43290         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
43291         object is seen twice.
43292         * elf/dl-fini.c (_dl_sort_fini): Likewise.
43293
43294         * elf/Makefile (distribute): Add tst-initorder2.c.
43295         (tests): Add tst-initorder2.
43296         (modules-names): Add tst-initorder2a tst-initorder2b
43297         tst-initorder2c tst-initorder2d.  Add rules to build them.
43298         ($(objpfx)tst-initorder2.out): New rule.
43299         * elf/tst-initorder2.c: New file.
43300         * elf/tst-initorder2.exp: New file.
43301
43302 2011-08-22  Andreas Schwab  <schwab@redhat.com>
43303
43304         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
43305
43306         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
43307         dependencies back to end of function.
43308
43309         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
43310         $(elfobjdir)/ld.so.
43311
43312 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
43313
43314         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
43315         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
43316         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
43317         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
43318         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
43319         of __vdso_gettimeofday.
43320         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
43321         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
43322         attribute_hidden.
43323         (_libc_vdso_platform_setup): Remove initialization of
43324         __vdso_gettimeofday and __vdso_time.
43325
43326 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43327
43328         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
43329         and fgetc_unlocked.
43330         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
43331         getc_unlocked.
43332
43333         * elf/dl-open.c (add_to_global): Report additions to the global scope
43334         for LD_DEBUG=scopes.
43335         (dl_open_worker): Also print scope of newly loaded dependencies.
43336         (_dl_show_scope): Indicate if there is no scope.
43337
43338         [BZ #13114]
43339         * stdio-common/Makefile (tests): Add bug24.
43340         * stdio-common/bug24.c: New file.
43341
43342 2011-08-19  Andreas Jaeger  <aj@suse.de>
43343
43344         [BZ #13114]
43345         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
43346         non-existant file when using close-on-exec mode.
43347
43348 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43349
43350         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
43351         the very first instruction.
43352
43353         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
43354         the CFI state in the end.
43355         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
43356         inclusion of dl-trampoline.h.
43357         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
43358
43359 2011-08-19  Andreas Schwab  <schwab@redhat.com>
43360
43361         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
43362         expectations for long double.
43363
43364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
43365         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
43366
43367 2011-08-14  David S. Miller  <davem@davemloft.net>
43368
43369         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
43370         artificual limit depends upon the system page size.
43371
43372 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43373
43374         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
43375         * resolv/Makefile: Define CFLAGS-libresolv.
43376
43377 2011-08-17  Andreas Schwab  <schwab@redhat.com>
43378
43379         * nss/makedb.c (compute_tables): Make variables used in nested
43380         function static.
43381
43382 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43383
43384         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
43385         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
43386         if buffer was too small.
43387
43388         * elf/pldd.c (main): Attach to all threads in the process.
43389         Rewrite /proc handling to use *at functions.
43390
43391 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
43392
43393         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
43394         specifies first scope to show.
43395         (dl_open_worker): Update callers.  Move printing scope of new
43396         object to before the relocation.
43397         * elf/rtld.c (dl_main): Update _dl_show_scope call.
43398         * sysdeps/generic/ldsodefs.h: Update declaration.
43399
43400         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
43401         string for the scope number.
43402
43403 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
43404
43405         * nscd/servicescache.c (cache_addserv): Make sure written is always
43406         initialized.
43407
43408 2011-08-14  Roland McGrath  <roland@hack.frob.com>
43409
43410         * sysdeps/i386/i486/bits/atomic.h
43411         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
43412         statement expression, so as to suppress "set but not used" warning.
43413         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
43414
43415         * string/strncat.c (STRNCAT): Use prototype definition.
43416
43417         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
43418         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
43419         -Iprograms here.
43420         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
43421         (localedef-modules): Add localedef.
43422         (locale-modules): Add locale.
43423
43424         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
43425         * elf/rtld.c (dl_main): Invert order of assignment in last change,
43426         to avoid a warning.
43427
43428 2011-08-14  David S. Miller  <davem@davemloft.net>
43429
43430         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
43431         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
43432
43433 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
43434
43435         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
43436         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
43437         * elf/rtld.c (dl_main): Set l_name of vDSO.
43438         Call _dl_show_scope when DL_DEBUG_SCOPES.
43439         (process_dl_debug): Recognize scopes flag and also set it for all.
43440         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
43441         Declare _dl_show_scope.
43442
43443         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
43444         (do_dlopen): Pass caller_dlopen to dl_open.
43445         (__libc_dlopen_mode): Initialize caller_dlopen.
43446
43447         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
43448         of libc.  Make tolower call locale-independent.  Optimize a bit by
43449         using isdigit instead of isalnum.
43450         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
43451
43452 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
43453
43454         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
43455         was a dependency or dynamically loaded.
43456
43457 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
43458
43459         * intl/l10nflist.c: Allow architecture-specific pop function.
43460         * sysdeps/x86_64/l10nflist.c: New file.
43461
43462         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
43463         classification.
43464
43465 2011-08-10  Andreas Schwab  <schwab@redhat.com>
43466
43467         * include/dirent.h: Add libc_hidden_proto for scandirat and
43468         scandirat64.  Don't declare __scandirat64.
43469         * dirent/scandirat.c: Add libc_hidden_def.
43470         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
43471         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
43472
43473 2011-08-10  David S. Miller  <davem@davemloft.net>
43474
43475         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
43476         enum.
43477         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43478         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43479         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43480
43481 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
43482
43483         * Versions.def [libc]: Add GLIBC_2.15.
43484         * dirent/Makefile (routines): Add scandirat and scandirat64.
43485         * dirent/Versions [libc]: Export scandirat and scandirat64 for
43486         GLIBC_2.15.
43487         * dirent/dirent.h: Declare scandirat and scandirat64.
43488         * dirent/scandirat.c: New file.
43489         * dirent/scandirat64.c: New file.
43490         * sysdeps/wordsize-64/scandirat.c: New file.
43491         * sysdeps/wordsize-64/scandirat64.c: New file.
43492         * dirent/opendir.c: Define opendirat.
43493         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
43494         using scandirat.
43495         * dirent/scandir64.c: Adjust for scandir.c change.
43496         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
43497         __scandirat64, and __scandir_cancel_handler.
43498         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
43499         additional parameter and use openat instead of open (outside of ld.so).
43500         Add new __opendir as wrapper around __opendirat.
43501         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
43502         here without requiring old scandirat implementation.
43503
43504 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
43505
43506         * dirent/scandir.c (cancel_handler): Renamed to
43507         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
43508         defined.  Adjust users.
43509         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
43510         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
43511
43512 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
43513
43514         * string/test-string.h (IMPL): Use __STRING to expand name and then
43515         stringify it.
43516
43517         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
43518         of cleanups.
43519
43520 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43521
43522         * string/Makefile: Update.
43523         (strop-tests): Append strncat.
43524         * string/test-wcscmp.c: New file.
43525         New comprehensive test for wcscmp.
43526         * string/test-strcmp.c: Update.
43527         (WIDE): New define.
43528
43529 2011-07-22  Andreas Schwab  <schwab@redhat.com>
43530
43531         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
43532         line.
43533
43534 2011-07-26  Andreas Schwab  <schwab@redhat.com>
43535
43536         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43537         encoding to ACE if AI_IDN.
43538
43539 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
43540
43541         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
43542         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
43543
43544 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43545
43546         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
43547         Fix overflow bug in strncat.
43548         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
43549
43550         * string/test-strncat.c: Update.
43551         Add new tests for checking overflow bugs.
43552
43553 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43554
43555         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43556         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
43557         * sysdeps/i386/i686/multiarch/strcat.S: New file.
43558         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
43559         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
43560         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
43561         * sysdeps/i386/i686/multiarch/strncat.S: New file.
43562         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
43563         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
43564
43565         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
43566         (USE_AS_STRCAT): Define.
43567         Add strcat and strncat support.
43568         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43569
43570 2011-07-25  Andreas Schwab  <schwab@redhat.com>
43571
43572         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
43573         __n bigger than INT_MAX+1.
43574         (__strncmp_g): Likewise.
43575
43576 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
43577
43578         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
43579         * libio/stido.h: Likewise.
43580
43581         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
43582         (AF_NFC): Define.
43583         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
43584         (AF_NFC): Define.
43585
43586         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
43587         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43588         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43589         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
43590         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43591
43592         [BZ #13021]
43593         * scripts/test-installation.pl: Don't expect libnss_test1 to be
43594         installed.
43595
43596         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
43597         typo.
43598         (_dl_x86_64_save_sse): Likewise.
43599
43600 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
43601
43602         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
43603         OSXSAVE.
43604         (_dl_x86_64_save_sse): Likewise.
43605
43606         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
43607
43608         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
43609
43610 2011-07-21  Andreas Schwab  <schwab@redhat.com>
43611
43612         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
43613         change.
43614         (_dl_x86_64_save_sse): Use correct AVX check.
43615
43616 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43617
43618         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
43619         bug in strncpy/strncat.
43620         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
43621
43622 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
43623
43624         * string/tester.c (test_strcat): Add tests for different alignments
43625         of source and destination.
43626         (test_strncat): Likewise.
43627
43628 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43629
43630         [BZ #12852]
43631         * posix/glob.c (glob): Check passed in values before using them in
43632         expressions to avoid some overflows.
43633         (glob_in_dir): Likewise.
43634
43635         [BZ #13007]
43636         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
43637         check for AVX enablement so that we don't crash with old kernels and
43638         new hardware.
43639         * elf/tst-audit4.c: Add same checks here.
43640         * elf/tst-audit6.c: Likewise.
43641
43642         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
43643
43644 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
43645
43646         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
43647
43648 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43649
43650         * po/cs.po: Update from translation team.
43651         * po/bg.po: Likewise.
43652
43653 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
43654
43655         * misc/sys/cdefs.h: Add support for const attribute.
43656         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
43657         to gnu_dev_{major,minor,makedev} functions.
43658
43659 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
43660
43661         * intl/dcigettext.c (get_output_charset): Add missing bracket.
43662
43663 2011-07-20  Andreas Schwab  <schwab@redhat.com>
43664
43665         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
43666         strlen results.
43667
43668 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43669
43670         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
43671         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
43672         register in order to avoid conflicts with the soft frame pointer
43673         being held in r11 when necessary.
43674         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
43675         (INTERNAL_VSYSCALL_NCS): Likewise.
43676
43677 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
43678
43679         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
43680         * elf/dl-fini.c (_dl_fini): Adjust caller.
43681         * elf/dl-close.c (_dl_close_worker): Likewise.
43682         * sysdeps/generic/ldsodefs.h: Adjust declaration.
43683
43684 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43685
43686         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
43687         "aux_cache->nlibs < 0".
43688
43689         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
43690         in the reload-count case.
43691
43692 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43693
43694         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43695         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
43696         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
43697         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
43698         * sysdeps/x86_64/multiarch/strcat.S: New file.
43699         * sysdeps/x86_64/multiarch/strncat.S: New file.
43700         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
43701         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
43702         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
43703         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
43704         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
43705         (USE_AS_STRCAT): Define.
43706         Add strcat and strncat support.
43707         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43708         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
43709         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
43710         * string/strncat.c: Update.
43711         (USE_AS_STRNCAT): Define.
43712         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43713         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
43714         and i7.
43715         * sysdeps/x86_64/multiarch/init-arch.h
43716         (bit_Prefer_PMINUB_for_stringop): New.
43717         (index_Prefer_PMINUB_for_stringop): Likewise.
43718         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
43719         bit_Prefer_PMINUB_for_stringop.
43720
43721 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43722
43723         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
43724         buffer64.
43725         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
43726         of casting of buffer.
43727         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
43728         buffer32 and buffer64.
43729         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
43730         writes instead of casting of buffer.
43731         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
43732         buffer32.
43733         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
43734         casting of buffer.
43735
43736 2011-07-19  Andreas Schwab  <schwab@redhat.com>
43737
43738         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
43739
43740 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43741
43742         * nscd/nscd.c (termination_handler): Don't do anything for a database
43743         if it has not yet been initialized.
43744
43745 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43746
43747         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43748
43749 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43750
43751         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43752
43753 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43754
43755         * po/nl.po: Update from translation team.
43756         * po/sv.po: Likewise.
43757
43758 2011-07-16  Roland McGrath  <roland@hack.frob.com>
43759
43760         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
43761         now disallowed by GCC.
43762
43763         * configure.in (use-default-link): Default to yes if a test -shared
43764         link meets our qualifications.
43765         * configure: Regenerated.
43766
43767         * config.make.in (output-format): New variable.
43768         * configure.in: Check for ld --print-output-format support.
43769         * configure: Regenerated.
43770         * Makerules ($(common-objpfx)format.lds)
43771         [$(output-format) != unknown]: Just use $(output-format),
43772         instead of the linker-script munging.
43773
43774 2011-07-14  Roland McGrath  <roland@hack.frob.com>
43775
43776         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
43777         of $(common-objpfx)shlib.lds.
43778         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
43779
43780         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
43781         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
43782
43783         * configure.in (-z relro check): Adjust test code to add a large
43784         writable data section after it.
43785         * configure: Regenerated.
43786
43787 2011-07-11  Roland McGrath  <roland@hack.frob.com>
43788
43789         * configure.in (-z relro check): Fix test code to make the variable
43790         truly const.
43791         * configure: Regenerated.
43792
43793 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
43794
43795         * nscd/nscd.h (struct traced_file): Define.
43796         (struct database_dyn): Remove inotify_descr, reset_res, and filename
43797         elements.  Add traced_files.
43798         (inotify_fd): Declare.
43799         (register_traced_file): Declare.
43800         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
43801         (inotify_fd): Export.
43802         (resolv_conf_descr): Remove.
43803         (nscd_init): Move inotify descriptor creation to main.
43804         Don't register files for notification here.
43805         (register_traced_file): New function.
43806         (invalidate_cache): Don't use reset_res to determine whether to call
43807         res_init, go through the list of registered files.
43808         (main_loop_poll): The inotify descriptors are now stored in the
43809         structures for the traced files.
43810         (main_loop_epoll): Likewise
43811         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
43812         to __nss_disable_nscd.
43813         * nscd/cache.c (prune_cache): There is no single inotify descriptor
43814         for a database anymore.  Check the records for all the registered
43815         files instead.
43816         * nss/Makefile (libnss_files-routines): Add files-init.
43817         (libnss_db-routines): Add db-init.
43818         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
43819         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
43820         * nss/nss_db/db-init.c: New file.
43821         * nss/nss_files/files-init.c: New file.
43822         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
43823         __nss_lookup_function.
43824         (__nss_lookup_function): Call nss_load_library.
43825         (nss_load_all_libraries): New function.
43826         (__nss_disable_nscd): Take parameter with callback function for files
43827         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
43828         used for the cached services.
43829         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
43830         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
43831         options for features to all the files in nscd.
43832
43833         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
43834
43835 2011-07-10  Roland McGrath  <roland@hack.frob.com>
43836
43837         * csu/elf-init.c (__libc_csu_init): Comment typo.
43838
43839 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
43840
43841         * po/pl.po: Update from translation team.
43842         * po/ja.po: Likewise.
43843         * po/ru.po: Likewise.
43844         * po/ko.po: Likewise.
43845         * po/fr.po: Likewise.
43846
43847 2011-07-09  Roland McGrath  <roland@hack.frob.com>
43848
43849         * configure.in (.ctors/.dtors header and trailer check):
43850         Use an empirical test on a built program.
43851         * configure: Regenerated.
43852
43853         * configure.in (-z relro check): Use an empirical test on a built DSO.
43854         Detect, but do not require, on ia64.
43855         * configure: Regenerated.
43856
43857         * configure.in (READELF): Find it with AC_CHECK_TOOL.
43858         Update tests that use readelf to use $READELF instead.
43859         * configure: Regenerated.
43860
43861 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
43862
43863         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
43864         if the result is not used.
43865
43866 2011-07-05  Andreas Jaeger  <aj@suse.de>
43867
43868         [BZ#9696]
43869         * stdlib/tst-strtod.c: Add testcase.
43870
43871 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
43872
43873         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
43874         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
43875         The latter has a higher limit.  Take additional parameter to pass to
43876         the new function.
43877         (__pathconf): Pass file to __statfs_link_max.
43878         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
43879         __statfs_link_max.
43880         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
43881         __statfs_link_max.
43882
43883         [BZ #12868]
43884         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
43885         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
43886         Handle Lustre.
43887         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
43888         (__statfs_filesize_max): Likewise.
43889         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
43890
43891 2011-07-05  Andreas Jaeger  <aj@suse.de>
43892
43893         * resolv/res_comp.c (dn_skipname): Remove unused variable.
43894
43895 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
43896
43897         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
43898         `status' variable.
43899         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
43900         Likewise.
43901
43902 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
43903
43904         * Makefile (strop-tests): Add strncat.
43905         * string/test-strncat.c: New file.
43906
43907 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
43908
43909         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
43910
43911 2011-06-21  Andreas Jaeger  <aj@suse.de>
43912
43913         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
43914         Copy rule from iconvdata/Makefile.
43915
43916 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43917
43918         [BZ #12922]
43919         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
43920         but no long options are defined, just return 'W'.
43921
43922 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
43923
43924         [BZ #9696]
43925         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
43926
43927 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43928
43929         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
43930         netgroups to read.
43931         (innetgr): Likewise.
43932
43933 2011-07-05  Roland McGrath  <roland@hack.frob.com>
43934
43935         * config.make.in (install_root): Default to $(DESTDIR).
43936
43937 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
43938
43939         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
43940
43941 2011-07-02  Roland McGrath  <roland@hack.frob.com>
43942
43943         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
43944
43945         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
43946         containing directory rather than embedding absolute directory names.
43947
43948         * scripts/check-local-headers.sh: Rewritten using awk.
43949         Match by word, not by line.  Print error messages for matches.
43950         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
43951
43952         * Makerules [shlib-lds-flags empty]:
43953         ($(common-objpfx)libc_pic.opts): New target.
43954         ($(common-objpfx)libc_pic.os.clean): New target.
43955         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
43956
43957         * config.make.in (OBJCOPY): New variable.
43958         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
43959         * configure: Regenerated.
43960
43961         * config.make.in (use-default-link): New variable.
43962         * configure.in (use_default_link): Grok --with-default-link to set it.
43963         * configure: Regenerated.
43964         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
43965         (shlib-lds, shlib-lds-flags): Define to empty.
43966
43967         * Makerules (shlib-lds): New variable.
43968         (shlib-lds-flags): New variable.
43969         (build-shlib, build-moduile, build-module-asneeded): Use it.
43970         ($(common-objpfx)libc.so): Use $(shlib-lds).
43971         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
43972         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
43973
43974         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
43975         DT_FLAGS/DT_FLAGS_1 with zero flags.
43976
43977         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
43978         linker script munging.
43979
43980 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
43981
43982         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
43983         as 128-bit value.
43984         * crypt/sha512.c (sha512_process_block): Perform total addition using
43985         128-bit if possible.
43986         (__sha512_finish_ctx): Likewise.
43987         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
43988         as 64-bit value.
43989         * crypt/sha256.c (SWAP64): Define.
43990         (sha256_process_block): Perform total addition using 64-bit if
43991         possible.
43992         (__sha256_finish_ctx): Likewise.
43993
43994 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
43995
43996         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
43997         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43998         * nscd/hstcache.c (cache_addhst): Likewise.
43999         * nscd/grpcache.c (cache_addgr): Likewise.
44000         * nscd/aicache.c (addhstaiX): Likewise
44001         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
44002
44003 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
44004
44005         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
44006         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44007         * nscd/hstcache.c (cache_addhst): Likewise.
44008         * nscd/grpcache.c (cache_addgr): Likewise.
44009         * nscd/aicache.c (addhstaiX): Likewise
44010
44011 2011-07-01  Andreas Schwab  <schwab@redhat.com>
44012
44013         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
44014         domain only when needed.
44015
44016 2011-06-30  Andreas Schwab  <schwab@redhat.com>
44017
44018         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
44019         is always restored.
44020
44021 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
44022
44023         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
44024         are re-adding the entry.
44025         * nscd/servicescache.c (cache_addserv): Likewise.
44026
44027 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
44028
44029         * sysdeps/generic/dl-irel.h: fix protection against multiple
44030         inclusions.
44031         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
44032
44033 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
44034
44035         [BZ #12935]
44036         * malloc/memusage.sh: Fix quoting in message.
44037         * debug/xtrace.sh: Likewise.
44038
44039         * configure.in: Remove support for --experimental-malloc option, make
44040         it the default.
44041         * config.make.in: Likewise.
44042         * malloc/Makefile: Likewise.
44043
44044 2011-06-27  Andreas Schwab  <schwab@redhat.com>
44045
44046         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
44047         two-byte characters.
44048
44049 2011-06-27  Roland McGrath  <roland@hack.frob.com>
44050
44051         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
44052         AC_CACHE_CHECK invocation.
44053         * configure: Regenerated.
44054
44055         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
44056
44057 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
44058
44059         [BZ #12350]
44060         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
44061         bit from old_res_options.
44062
44063         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
44064
44065         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
44066         value type for setfct.
44067
44068 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
44069
44070         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44071         __gettimeofday instead of gettimeofday.
44072
44073 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
44074
44075         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
44076
44077 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
44078
44079         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
44080
44081         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
44082         info.
44083
44084 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44085
44086         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44087         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44088         strcpy-sse2-unaligned strncpy-sse2-unaligned
44089         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
44090         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
44091         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
44092         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
44093         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
44094         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
44095         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
44096         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
44097         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
44098         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
44099         (STRCPY): Support SSE2 and SSSE3 versions.
44100
44101 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
44102
44103         [BZ #12874]
44104         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
44105         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
44106         kernels which artificially limit size of requests.
44107
44108 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44109
44110         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44111         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44112         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
44113         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
44114         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
44115         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
44116         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
44117         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
44118         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
44119         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
44120         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
44121         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
44122         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
44123         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
44124         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
44125         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44126         Enable unaligned load optimization for Intel Core i3, i5 and i7
44127         processors.
44128         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
44129         Define.
44130         (index_Fast_Unaligned_Load): Define.
44131         (HAS_FAST_UNALIGNED_LOAD): Define.
44132
44133 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
44134
44135         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
44136
44137 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44138
44139         [BZ #12907]
44140         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
44141         until it is clear that the information is realy needed.
44142         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
44143
44144 2011-06-22  Andreas Schwab  <schwab@redhat.com>
44145
44146         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
44147
44148 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44149
44150         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44151         /sys/devices/system/cpu/online if it is usable.
44152
44153         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
44154         reading the information from the /proc filesystem to once a second.
44155
44156 2011-06-21  Andreas Jaeger  <aj@suse.de>
44157
44158         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
44159         NULL after inclusion of kernel headers.
44160
44161 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
44162
44163         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
44164         calls to internal_setent.
44165
44166         [BZ #12885]
44167         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
44168         addresses using gethostbyname4_r ignore IPv4 addresses.
44169
44170         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
44171         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
44172
44173         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
44174
44175 2011-06-20  David S. Miller  <davem@davemloft.net>
44176
44177         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
44178         inclusions.
44179         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
44180
44181         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
44182         (elf_irel): Use it.
44183         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
44184         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
44185         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
44186         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
44187         * sysdeps/x86_64/dl-irel.h: Likewise.
44188
44189         * elf/dl-runtime.c: Use elf_ifunc_invoke.
44190         * elf/dl-sym.c: Likewise.
44191
44192 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44193
44194         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
44195         need to dereference resplen2.
44196
44197 2011-06-14  Andreas Schwab  <schwab@redhat.com>
44198
44199         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
44200
44201 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44202
44203         * Makeconfig: Define vardbdir and inst_vardbdir.
44204         * nss/Makefile: Add rules to install db-Makefile.
44205
44206         * nss/nss_db/db-XXX.c: Cleanup.
44207
44208         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
44209         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
44210         GLIBC_PRIVATE.
44211         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
44212         * nss/makedb.c: Implement -g option to specify that value strings
44213         are generated and should not be added to table iterated over for
44214         get*ent calls.
44215         * nss/nss_db/db-initgroups.c: New file.
44216
44217         * nss/getent.c: Add support for initgroups lookups through getgrouplist
44218         interface.
44219
44220         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
44221         (internal_getgrouplist): Adjust to name change.
44222         Update use_initgroups_entry if this is not the first call.
44223         * nss/databases.def: Add initgroups entry.
44224
44225         * nss/makedb.c (compute_tables): Check result of multiple hash table
44226         sizes to minimize maximum chain length.
44227
44228 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
44229
44230         * Versions.def: Add entry for libnss_db.
44231         * shlib-versions: Likewise.
44232         * nss/Makefile: Add rules to build libnss_db.
44233         * nss/Versions: Add libnss_db information.  Organize libnss_files
44234         entries better.
44235         * nss/db-Makefile: Add gshadow support.  Change rules for the new
44236         makedb progra.  Some minor improvements to generate smaller files.
44237         * nss/nss_db/nss_db.h: Move NSS database header data structures to
44238         here from...
44239         * nss/makedb.c: ...here.
44240         Improve database format to be smaller and require less memory at
44241         runtime.
44242         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
44243         db anymore.
44244         * nss/nss_db/db-netgrp.c: Likewise.
44245         * nss/nss_db/db-open.c: Likewise.
44246         * nss/nss_files/flies-XXX.x: Adjust comments.
44247         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
44248         * nss/nss_files/files-grp.c: Likewise.
44249         * nss/nss_files/files-hosts.c: Likewise.
44250         * nss/nss_files/files-network.c: Likewise.
44251         * nss/nss_files/files-proto.c: Likewise.
44252         * nss/nss_files/files-pwd.c: Likewise.
44253         * nss/nss_files/files-rpc.c: Likewise.
44254         * nss/nss_files/files-service.c: Likewise.
44255         * nss/nss_files/files-sgrp.c: Likewise.
44256         * nss/nss_files/files-spwd.c: Likewise.
44257         * nss/nss_db/db-alias.c: Removed.
44258         * nss/nss_db/dummy-db.h: Removed.
44259
44260 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
44261
44262         * nss/makedb.c: Rewritten to not use database library.
44263         * nss/Makefile: Update to build new makedb program.
44264
44265 2011-06-14  Andreas Jaeger  <aj@suse.de>
44266
44267         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
44268         memset declaration.
44269
44270 2011-06-10  Andreas Schwab  <schwab@redhat.com>
44271
44272         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
44273         tmpbuf.
44274
44275 2011-06-10  Roland McGrath  <roland@hack.frob.com>
44276
44277         * Makerules (shlib.lds): Fail if the linker script comes out empty.
44278         * elf/Makefile ($(objpfx)ld.so): Likewise.
44279
44280         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
44281         Don't list ld.so twice in dependencies.
44282
44283         * posix/bug-regex31.c: Include <stdlib.h>.
44284
44285         * nscd/hstcache.c (cache_addhst): Remove unused variable.
44286
44287         * nis/nss_compat/compat-spwd.c
44288         (getspent_next_nss_netgr): Remove unused variable.
44289         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
44290
44291         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
44292         nonmembers" output to use the right array.
44293
44294         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
44295
44296         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
44297
44298         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
44299         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
44300         * catgets/gencat.c (read_input_file): Likewise.
44301         * locale/programs/locarchive.c (enlarge_archive): Likewise.
44302
44303         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
44304         variable definition inside #if's controlling its use.
44305
44306         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
44307
44308         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
44309
44310         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
44311
44312         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
44313         unreachable code.
44314
44315         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
44316
44317         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
44318         * configure: Regenerated.
44319
44320         * Makerules: Revert last change.
44321         * elf/Makefile: Likewise.
44322
44323 2011-06-09  Roland McGrath  <roland@hack.frob.com>
44324
44325         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
44326         * elf/Makefile ($(objpfx)librtld.os): Likewise.
44327         (reloc-link): Likewise.
44328
44329 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
44330
44331         * elf/Makefile: Add rules to build pldd.
44332         * elf/pldd.c: New file.
44333         * elf/pldd-xx.c: New file.
44334
44335 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
44336
44337         * version.h: Update for 2.15 development version.
44338
44339 2011-06-07  David S. Miller  <davem@davemloft.net>
44340
44341         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
44342         ifuncs.
44343         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
44344         elf_machine_lazy_rel): Likewise.
44345         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44346         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
44347         elf_machine_lazy_rel): Likewise.
44348         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
44349         dl_hwcap via passed in argument.
44350         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
44351         Likewise.
44352
44353 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44354
44355         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
44356
44357 2011-06-06  Roland McGrath  <roland@hack.frob.com>
44358
44359         [BZ #12849]
44360         * manual/fdl-1.1.texi: New file, verbatim from:
44361         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
44362         * manual/lgpl-2.1.texi: New file, verbatim from:
44363         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
44364         * manual/Makefile (licenses): New variable, list those new file names.
44365         (texis): Use it.
44366         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
44367
44368         * manual/fdl.texi: File removed.
44369         * manual/lesser.texi: File removed.
44370         * manual/libc.texinfo (Copying, Documentation License):
44371         Use new @include file names, put @appendix directive before @include.
44372
44373 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
44374
44375         [BZ #12841]
44376         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
44377         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
44378         (mq_open): Add __NTH.
44379
44380 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
44381
44382         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44383         Assume Intel Core i3/i5/i7 processor if AVX is available.
44384
44385 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44386
44387         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
44388         typo.
44389
44390 2011-05-31  Andreas Schwab  <schwab@redhat.com>
44391
44392         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
44393         memory.  Use alloca_account.  Fix memory leak when retrying.
44394
44395 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44396
44397         * version.h (RELEASE): Bump for 2.14 release.
44398         * include/features.h (__GLIBC_MINOR__): Bump to 14.
44399
44400         * config.make.in (RANLIB): Remove entry.
44401
44402 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
44403
44404         * po/Makefile (po-sed-cmd): Add ksh to extensions.
44405         (libc.pot): Work around missing support for .ksh extension in xgettext.
44406
44407         [BZ #12684]
44408         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
44409         if both request failed.
44410         (send_dg): In case of server errors clear resplen or *resplen2.
44411
44412         [BZ #12454]
44413         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
44414         when there are multiple maps.
44415         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
44416         (_dl_fini): Remove test here.
44417
44418         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
44419
44420 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
44421
44422         [BZ #12350]
44423         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
44424         bit from old_res_options.
44425         (gaih_inet): Likewise.
44426
44427         [BZ #11099]
44428         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
44429         as signed.
44430
44431         * resolv/res_init.c (res_setoptions): Make the code more compact.
44432
44433         [BZ #11558]
44434         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
44435         set RES_USEVC.
44436
44437         [BZ #11634]
44438         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
44439
44440         * malloc/malloc.h: Mark malloc hook variables as deprecated.
44441
44442         [BZ #11781]
44443         * malloc/malloc.h: Declare malloc hook variables as volatile.
44444
44445         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
44446         in last patch.
44447
44448         [BZ #11799]
44449         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
44450         raise in the comment.
44451         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
44452         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
44453         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
44454
44455 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
44456
44457         [BZ #12811]
44458         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
44459         grow the buffers more if it already has to be sufficient.
44460         (build_wcs_upper_buffer): Likewise.
44461         * posix/regexec.c (check_matching): Likewise.
44462         (clean_state_log_if_needed): Likewise.
44463         (extend_buffers): Don't enlarge buffers beyond size of the input
44464         buffer.
44465         Patches mostly by Emil Wojak <emil@wojak.eu>.
44466         * posix/bug-regex32.c: New file.
44467         * posix/Makefile (tests): Add bug-regex32.
44468
44469         * locale/findlocale.c (_nl_find_locale): Return right away if
44470         _nl_explode_name failed.
44471         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
44472
44473         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
44474
44475         * debug/xtrace.sh: Unify messages.
44476         * malloc/memusage.sh: Likewise.
44477
44478         [BZ #12813]
44479         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
44480         time symbol from vDSO.  Substitute with vsyscall if not available.
44481         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
44482         __vdso_time.
44483
44484         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
44485         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
44486         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
44487         Add sendmmsg and internal_sendmmsg.
44488         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
44489         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
44490         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
44491
44492         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
44493         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
44494         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
44495
44496 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
44497
44498         [BZ #12813]
44499         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
44500         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
44501         available.
44502         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
44503         __vdso_getcpu.
44504
44505         [BZ #12814]
44506         * iconvdata/Makefile (tests): Add bug-iconv9.
44507         * iconvdata/bug-iconv9.c: New file.
44508
44509 2011-05-27  Andreas Schwab  <schwab@redhat.com>
44510
44511         [BZ #12814]
44512         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
44513
44514 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
44515
44516         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44517         (struct user_regs_struct): Change intcs field back to cs.
44518
44519 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
44520
44521         * po/ja.po: Update from translation team.
44522
44523 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
44524
44525         [BZ #12795]
44526         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
44527         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
44528
44529 2011-05-20  Andreas Schwab  <schwab@redhat.com>
44530
44531         * stdlib/longlong.h: Update from GCC.
44532
44533 2011-05-23  Andreas Schwab  <schwab@redhat.com>
44534
44535         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
44536         parameter name.
44537         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
44538         Add parameter name.
44539         (__sysconf): Pass it down.
44540
44541 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
44542
44543         [BZ #12671]
44544         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
44545         some situations.
44546         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44547         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
44548         add in in __libc_use_alloca calls.  Adjust callers.
44549         (glob): Use malloc in some situations.
44550
44551         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
44552         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
44553         pltexit.
44554
44555 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
44556
44557         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
44558         and CLOCK_BOOTTIME_ALARM.
44559
44560         [BZ #12782]
44561         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
44562         is returned.
44563
44564         * string/_strerror.c (__strerror_r): Print negative errors as signed
44565         numbers.
44566
44567         [BZ #12777]
44568         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
44569         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
44570         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
44571
44572         * configure.in: Fix typo in redirection and correct removal of test
44573         files in two cases.
44574
44575         [BZ #12788]
44576         * locale/setlocale.c (new_composite_name): Fix test to check for
44577         identical name of all categories.
44578
44579         [BZ #12792]
44580         * libio/filedoalloc.c (local_isatty): New function.
44581         (_IO_file_doallocate): Use local_isatty.
44582         * stdio-common/perror.c (perror): In case a new stream is used
44583         forward the stream error.
44584         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
44585         error flag.
44586
44587 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
44588
44589         [BZ #11869]
44590         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
44591         alloca.
44592         * include/alloca.h (extend_alloca_account): Define.
44593
44594         [BZ #11857]
44595         * posix/regex.h: Fix comments with documentation of user-accessible
44596         fields after compilation and describe correct free'ing of pattern
44597         after re_compile_pattern.
44598         Patch by Reuben Thomas <rrt@sc3d.org>.
44599
44600 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
44601
44602         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
44603         and -mno-altivec to prevent the compiler from using Altivec and/or
44604         VSX instructions when the corresponding registers are not available.
44605
44606 2011-05-19  Andreas Schwab  <schwab@redhat.com>
44607
44608         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
44609
44610 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
44611
44612         * libio/freopen.c (freopen): Use __dup2, not dup2.
44613         * libio/freopen64.c (freopen64): Likewise.
44614
44615 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
44616
44617         [BZ #12775]
44618         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
44619         * math/Makefile (tests): Add test-powl.
44620         (CFLAGS-test-powl.c): Define.
44621         * math/test-powl.c: New file.
44622
44623 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
44624
44625         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
44626
44627 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
44628
44629         [BZ #11837]
44630         * iconvdata/gb18030.c: Update to GB18020-2005.
44631
44632 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
44633
44634         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
44635         RE_SYNTAX_POSIX_AWK): Update to match recent development.
44636         Patch by Aharon Robbins <arnold@skeeve.com>.
44637
44638         [BZ #11892]
44639         * stdlib/putenv.c (putenv): Don't always create copy of the variable
44640         on the stack.
44641
44642         [BZ #11895]
44643         * misc/pselect.c (__pselect): Handle timeout value errors hidden
44644         through underflows.
44645
44646         [BZ #12766]
44647         * misc/error.c (error_at_line): Ensure file_name and old_file_name
44648         point to strings before performing equality test for error_one_per_line
44649         mode.
44650
44651         [BZ #11697]
44652         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
44653
44654         [BZ #11820]
44655         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44656         (struct user_fpregs_struct): Avoid __uint*_t types.
44657
44658         [BZ #6420]
44659         * malloc/mtrace.c (tr_where): Add additional parameter to point to
44660         symbol info.  Use it instead of calling _dl_addr locally.
44661         (lock_and_info): New function.
44662         (tr_freehook): Call lock_and_info and pass symbol info as additional
44663         parameter to tr_where.
44664         (tr_mallochook): Likewise.
44665         (tr_reallochook): Likewise.
44666         (tr_memalignhook): Likewise.
44667
44668         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
44669         used and couldn't be at all thread-safe.
44670
44671 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
44672
44673         * libio/freopen.c (freopen): Don't close old file descriptor
44674         before the new one is opened.  Instead dup the new file descriptor
44675         to the old one after the new stream is created.
44676         * libio/freopen64.c (freopen64): Likewise.
44677         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
44678         * libio/fileops.c (_IO_new_file_close_it): Handle new
44679         _IO_FLAGS2_NOCLOSE flag.
44680         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
44681         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
44682         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
44683         _IO_FLAGS2_NOCLOSE flag.
44684         * include/unistd.h: Add hidden_proto for dup3.
44685         Define __have_dup3.
44686         * io/dup3.c: Define hidden symbol.
44687         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
44688
44689         [BZ #7101]
44690         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
44691         when an incomplete long option is used.
44692         * posix/tst-getopt_long1.c: New file.
44693         * posix/Makefile (tests): Add tst-getopt_long1.
44694
44695         [BZ #10138]
44696         * scripts/config.guess: Update from autoconf-2.68.
44697         * scripts/config.sub: Likewise.
44698
44699         [BZ #10157]
44700         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
44701         tests into ...
44702         (has_cpuclock): ...this.  New function.
44703         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
44704         macro here based on has_cpuclock code.
44705
44706         [BZ #10149]
44707         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44708         First byte (not low byte) is now always NUL.
44709         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
44710
44711         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44712         Use non-cancelable interfaces.
44713
44714         [BZ #9809]
44715         * locale/iso-639.def: Add entry for Sorani.
44716
44717         [BZ #11901]
44718         * include/stdlib.h: Move include protection to the right place.
44719         Define abort_msg_s.  Declare __abort_msg with it.
44720         * stdlib/abort.c (__abort_msg): Adjust type.
44721         * assert/assert.c (__assert_fail_base): New function.  Majority
44722         of code from __assert_fail.  Allocate memory for __abort_msg with
44723         mmap.
44724         (__assert_fail): Now call __assert_fail_base.
44725         * assert/assert-perr.c: Remove bulk of implementation.  Use
44726         __assert_fail_base.
44727         * include/assert.hL Declare __assert_fail_base.
44728         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
44729         mmap.
44730         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
44731
44732 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
44733
44734         [BZ #11952]
44735         [BZ #12453]
44736         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
44737         until all modules are registered in the DTV.
44738         * elf/Makefile: Add rules to build and run tst-tls19.
44739         * elf/tst-tls19.c: New file.
44740         * elf/tst-tls19mod1.c: New file.
44741         * elf/tst-tls19mod2.c: New file.
44742         * elf/tst-tls19mod3.c: New file.
44743         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
44744
44745         [BZ #12083]
44746         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
44747         correctly.
44748
44749         [BZ #12601]
44750         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
44751         two-byte sequence errors.
44752         * iconvdata/Makefile (tests): Add bug-iconv8.
44753         * iconvdata/bug-iconv8.c: New file.
44754
44755         [BZ #12626]
44756         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
44757         buf2 definition.
44758
44759         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
44760
44761         [BZ #12432]
44762         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
44763         (dummy_getcfa): New function.
44764         (init): Get _Unwind_GetCFA address, use dummy if not found.
44765         (backtrace_helper): In recursion check, also check whether CFA changes.
44766         (__backtrace): Completely initialize arg.
44767
44768         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
44769         storing incomplete byte sequence in state object.  Avoid testing for
44770         guaranteed too small input if we know there is enough data available.
44771
44772 2011-05-11  Andreas Schwab  <schwab@redhat.com>
44773
44774         * Makeconfig (+link-pie): Indent.
44775         * Rules (binaries-pie): Define if $(have-fpie) and
44776         $(build-shared).
44777         (binaries-shared): Also filter out $(binaries-pie).
44778         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
44779         * nscd/Makefile (others-pie): Add nscd.
44780         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
44781         ($(objpfx)nscd): Remove command override.
44782         * login/Makefile (others-pie): Add pt_chown.
44783         ($(objpfx)pt_chown): Remove command override.
44784         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
44785         remove command overrides.
44786
44787 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
44788
44789         * libio/tst_putwc.c: Fix error messages.
44790
44791         [BZ #12724]
44792         * libio/fileops.c (_IO_new_file_close_it): Always flush when
44793         currently writing and seek to current position when not.
44794         * libio/Makefile (tests): Add bug-fclose1.
44795         * libio/bug-fclose1.c: New file.
44796
44797 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
44798
44799         [BZ #12511]
44800         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
44801         don't set DF_1_NODELETE here.
44802         (do_lookup_x): When entering new entry test for copy relocation
44803         and if necessary set DF_1_NODELETE flag.
44804         * elf/tst-unique4.cc: New file.
44805         * elf/tst-unique4.h: New file.
44806         * elf/tst-unique4lib.cc: New file.
44807         * elf/Makefile: Add rules to build and run tst-unique4.
44808         Patch by Piotr Bury <pbury@goahead.com>.
44809
44810 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44811
44812         [BZ #12052]
44813         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
44814
44815         [BZ #12625]
44816         * misc/mntent_r.c (addmntent): Flush the stream after the output
44817
44818         [BZ #12393]
44819         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
44820         (is_trusted_path_normalize): Skip initial colon.  Append slash
44821         to empty buffer.  Duplicate is_trusted_path code but allow
44822         constructed patch to be prefix.
44823         (is_dst): Allow $ORIGIN followed by /.
44824         (_dl_dst_substitute): Correct clearing of check_for_trusted.
44825         Correct testing of result of is_trusted_path_normalize
44826         (decompose_rpath): Fix warning.
44827
44828 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
44829
44830         [BZ #11257]
44831         * grp/initgroups.c (internal_getgrouplist): When we found the service
44832         list through the initgroups entry in nsswitch.conf do not always
44833         continue on a successful lookup.  Don't always use the
44834         __nss_group_database value if it is set.
44835         * nss/nsswitch.conf (initgroups): Change action for successful db
44836         lookup to continue for compatibility.
44837
44838 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
44839
44840         [BZ #11532]
44841         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
44842         and CP774 modules.
44843         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
44844         and CP774 modules.
44845         * iconvdata/tst-tables.sh: Likewise.
44846         * iconvdata/cp770.c: New file.
44847         * iconvdata/cp771.c: New file.
44848         * iconvdata/cp772.c: New file.
44849         * iconvdata/cp773.c: New file.
44850         * iconvdata/cp774.c: New file.
44851         * iconvdata/testdata/CP770: New file.
44852         * iconvdata/testdata/CP770..UTF8: New file.
44853         * iconvdata/testdata/CP771: New file.
44854         * iconvdata/testdata/CP771..UTF8: New file.
44855         * iconvdata/testdata/CP772: New file.
44856         * iconvdata/testdata/CP772..UTF8: New file.
44857         * iconvdata/testdata/CP773: New file.
44858         * iconvdata/testdata/CP773..UTF8: New file.
44859         * iconvdata/testdata/CP774: New file.
44860         * iconvdata/testdata/CP774..UTF8: New file.
44861
44862         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
44863         END CHARMAP line.
44864         * iconvdata/gen-8bit-gap.sh: Likewise.
44865         * iconvdata/gen-8bit.sh: Likewise.
44866
44867         * locale/iso-639.def: Add ary entry.
44868
44869         [BZ #11258]
44870         * locale/C-translit.h.in: Add U20A1 transliteration.
44871
44872         [BZ #12178]
44873         * locale/iso-639.def: Add wae entry.
44874         Patch by Kevin Bortis <bortis@translate-wae.ch>.
44875
44876         [BZ #12545]
44877         * locale/programs/localedef.c (construct_output_path): Use ssize_t
44878         for n.
44879
44880         [BZ #12711]
44881         * locale/C-translit.h.in: Add entry for U20B9.
44882         Patch by pravin.d.s@gmail.com.
44883
44884 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
44885
44886         [BZ #12713]
44887         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
44888         ENAMETOOLONG use generic getcwd.
44889         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
44890         in rtld.  Use *stat64.
44891         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
44892         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
44893         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
44894         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
44895         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
44896         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
44897         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
44898         __fstatat64 macros.
44899         * include/dirent.h: Add libc_hidden_proto for rewinddir.
44900         * dirent/rewinddir.c: Add libc_hidden_def.
44901         * sysdeps/mach/hurd/rewinddir.c: Likewise.
44902         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
44903
44904         * include/dirent.h (__alloc_dir): Add flags parameter.
44905         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
44906         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
44907         __alloc_dir.
44908         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
44909         from fdopendir if O_CLOEXEC is already set.
44910
44911 2011-03-15  Alan Modra  <amodra@gmail.com>
44912
44913         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
44914         l_tls_firstbyte_offset non-zero.  Save padding offset in
44915         l_tls_firstbyte_offset for later use.
44916         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
44917         freeing static tls block.
44918
44919 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
44920
44921         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
44922         where #ifdef was intended.  The intent is to prevent ARG_MAX from
44923         being defined by the kernel headers.
44924
44925 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
44926
44927         [BZ #12734]
44928         * resolv/resolv.h: Define RES_NOTLDQUERY.
44929         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
44930         no-tld-query and set RES_NOTLDQUERY.
44931         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
44932         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
44933         modern BIND to search name as TLD unless forbidden.
44934
44935 2011-05-07  Petr Baudis  <pasky@suse.cz>
44936             Ulrich Drepper  <drepper@gmail.com>
44937
44938         [BZ #12393]
44939         * elf/dl-load.c (fillin_rpath): Move trusted path check...
44940         (is_trusted_path): ...to here.
44941         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
44942         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
44943         using is_trusted_path_normalize() in setuid scripts.
44944
44945 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
44946
44947         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
44948         __BEGIN/__END_DECLS.
44949
44950 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
44951
44952         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
44953         NSS_STATUS_NOTFOUND if no record was found.
44954
44955 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44956
44957         * sunrpc/Makefile (headers): Add rpc/netdb.h.
44958         (headers-not-in-tirpc): Remove rpc/netdb.h
44959         * resolv/netdb.h: Revert last change.
44960
44961 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
44962
44963         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
44964         circular dependency between libgcc.a and libc.a.
44965
44966 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44967
44968         * resolv/netdb.h: Don't include <rpc/netdb.h>.
44969         * nis/Makefile: Don't install rpcsvc/*.
44970         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
44971         instead of <rpc/types.h>.
44972         (MAXHOSTNAMELEN): Define.
44973
44974 2011-05-03  Andreas Schwab  <schwab@redhat.com>
44975
44976         * elf/ldconfig.c (add_dir): Don't crash on empty path.
44977
44978 2011-04-28  Maciej Babinski  <mbabinski@google.com>
44979
44980         [BZ #12714]
44981         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
44982         gethostbyname4_r when IPv6 results are possible.
44983
44984 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
44985
44986         [BZ #12723]
44987         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
44988         _PC_PIPE_BUF handling.
44989
44990 2011-04-30  Bruno Haible  <bruno@clisp.org>
44991
44992         [BZ #12717]
44993         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
44994         * resolv/netdb.h (getnameinfo): Change type of flags parameter
44995         to 'int'.
44996         * inet/getnameinfo.c (getnameinfo): Likewise.
44997
44998 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
44999
45000         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
45001         to groups setting in database lookup.
45002         * nss/nsswitch.conf: Add initgroups entry.
45003
45004 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
45005
45006         [BZ #12685]
45007         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
45008         mode string.
45009         Patch by Eric Blake <eblake@redhat.com>.
45010
45011 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
45012
45013         * sunrpc/Makefile (need-export-routines): Add svc_run.
45014         (routines): Remove svc_run.
45015         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
45016         * sunrpc/clnt_perr.c (clnt_perrno): Export.
45017         * sunrpc/svc_run.c (svc_run): Likewise.
45018         * sunrpc/svc_udp.c (svcudp_create): Likewise.
45019
45020 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
45021
45022         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
45023         problem in reallocation in last patch.
45024
45025 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
45026
45027         * sunrpc/Makefile: Move inclusion of Rules.
45028
45029 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45030
45031         * nss/nss_files/files-initgroups.c: New file.
45032         * nss/Makefile (libnss_files-routines): Add files-initgroups.
45033         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
45034         _nss_files_initgroups_dyn.
45035
45036 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
45037
45038         * elf/elf.h (R_ARM_IRELATIVE): Define.
45039
45040 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45041
45042         * po/ru.po: Update from translation team.
45043
45044 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45045
45046         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
45047         dependencies.
45048
45049 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
45050
45051         [BZ #12653]
45052         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
45053         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
45054         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
45055         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
45056         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
45057
45058 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
45059
45060         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
45061         differing bytes.
45062         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
45063         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
45064         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
45065
45066 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45067
45068         [BZ #12420]
45069         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
45070         storing it.
45071         * stdlib/bug-getcontext.c: New file.
45072         * stdlib/Makefile: Add rules to build and run bug-getcontext.
45073
45074 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45075
45076         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
45077         instructions into .machine "z9-109".
45078         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
45079         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
45080
45081 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45082
45083         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
45084         between environment variables and auxiliary vector.
45085
45086 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
45087
45088         * Makefile: Add rules to build linkobj/libc.so.
45089         * include/libc-symbols.h: Define libc_hidden_nolink.
45090         * include/rpc/auth.h: Mark functions which are to be hidden.
45091         * include/rpc/auth_des.h: Likewise.
45092         * include/rpc/auth_unix.h: Likewise.
45093         * include/rpc/clnt.h: Likewise.
45094         * include/rpc/des_crypt.h: Likewise.
45095         * include/rpc/key_prot.h: Likewise.
45096         * include/rpc/pmap_clnt.h: Likewise.
45097         * include/rpc/pmap_prot.h: Likewise.
45098         * include/rpc/pmap_rmt.h: Likewise.
45099         * include/rpc/rpc_msg.h: Likewise.
45100         * include/rpc/svc.h: Likewise.
45101         * include/rpc/svc_auth.h: Likewise.
45102         * include/rpc/xdr.h: Likewise.
45103         * nis/Makefile: Link all DSOs against linkobj/libc.so.
45104         * nss/Makefile: Likewise.
45105         * sunrpc/Makefile: Don't install headers.  Build library with normal
45106         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
45107         * sunrpc/auth_des.c: Hide exported symbols by default, export some
45108         for the compat linking library.  Remove use of INTDEF/INTUSE.
45109         * sunrpc/auth_none.c: Likewise.
45110         * sunrpc/auth_unix.c: Likewise.
45111         * sunrpc/authdes_prot.c: Likewise.
45112         * sunrpc/authuxprot.c: Likewise.
45113         * sunrpc/clnt_gen.c: Likewise.
45114         * sunrpc/clnt_perr.c: Likewise.
45115         * sunrpc/clnt_raw.c: Likewise.
45116         * sunrpc/clnt_simp.c: Likewise.
45117         * sunrpc/clnt_tcp.c: Likewise.
45118         * sunrpc/clnt_udp.c: Likewise.
45119         * sunrpc/clnt_unix.c: Likewise.
45120         * sunrpc/des_crypt.c: Likewise.
45121         * sunrpc/des_soft.c: Likewise.
45122         * sunrpc/get_myaddr.c: Likewise.
45123         * sunrpc/key_call.c: Likewise.
45124         * sunrpc/key_prot.c: Likewise.
45125         * sunrpc/netname.c: Likewise.
45126         * sunrpc/pm_getmaps.c: Likewise.
45127         * sunrpc/pm_getport.c: Likewise.
45128         * sunrpc/pmap_clnt.c: Likewise.
45129         * sunrpc/pmap_prot.c: Likewise.
45130         * sunrpc/pmap_prot2.c: Likewise.
45131         * sunrpc/pmap_rmt.c: Likewise.
45132         * sunrpc/publickey.c: Likewise.
45133         * sunrpc/rpc_cmsg.c: Likewise.
45134         * sunrpc/rpc_common.c: Likewise.
45135         * sunrpc/rpc_dtable.c: Likewise.
45136         * sunrpc/rpc_prot.c: Likewise.
45137         * sunrpc/rpc_thread.c: Likewise.
45138         * sunrpc/rtime.c: Likewise.
45139         * sunrpc/svc.c: Likewise.
45140         * sunrpc/svc_auth.c: Likewise.
45141         * sunrpc/svc_authux.c: Likewise.
45142         * sunrpc/svc_raw.c: Likewise.
45143         * sunrpc/svc_run.c: Likewise.
45144         * sunrpc/svc_simple.c: Likewise.
45145         * sunrpc/svc_tcp.c: Likewise.
45146         * sunrpc/svc_udp.c: Likewise.
45147         * sunrpc/svc_unix.c: Likewise.
45148         * sunrpc/svcauth_des.c: Likewise.
45149         * sunrpc/xcrypt.c: Likewise.
45150         * sunrpc/xdr.c: Likewise.
45151         * sunrpc/xdr_array.c: Likewise.
45152         * sunrpc/xdr_float.c: Likewise.
45153         * sunrpc/xdr_intXX_t.c: Likewise.
45154         * sunrpc/xdr_mem.c: Likewise.
45155         * sunrpc/xdr_rec.c: Likewise.
45156         * sunrpc/xdr_ref.c: Likewise.
45157         * sunrpc/xdr_sizeof.c: Likewise.
45158         * sunrpc/xdr_stdio.c: Likewise.
45159
45160 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
45161
45162         [BZ #12650]
45163         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
45164         * sysdeps/ia64/dl-tls.h: Likewise.
45165         * sysdeps/powerpc/dl-tls.h: Likewise.
45166         * sysdeps/s390/dl-tls.h: Likewise.
45167         * sysdeps/sh/dl-tls.h: Likewise.
45168         * sysdeps/sparc/dl-tls.h: Likewise.
45169         * sysdeps/x86_64/dl-tls.h: Likewise.
45170         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
45171
45172 2011-03-14  Andreas Schwab  <schwab@redhat.com>
45173
45174         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
45175         rpath element also skip the following colon.
45176         (expand_dynamic_string_token): Add is_path parameter and pass
45177         down to DL_DST_REQUIRED and _dl_dst_substitute.
45178         (decompose_rpath): Call expand_dynamic_string_token with
45179         non-zero is_path.  Ignore empty rpaths.
45180         (_dl_map_object_from_fd): Call expand_dynamic_string_token
45181         with zero is_path.
45182
45183 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
45184
45185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
45186         Make cancelable.
45187
45188 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
45189
45190         [BZ #12655]
45191         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
45192         Patch by Filipe David Manana <fdmanana@apache.org>.
45193
45194 2011-04-07  Andreas Schwab  <schwab@redhat.com>
45195
45196         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
45197         Maintain aligned stack.
45198         (CHECK_RSP): Remove unused macro.
45199
45200 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
45201
45202         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
45203         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
45204
45205 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
45206
45207         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
45208
45209         * include/features.h: Mention __USE_XOPEN2K8 in comment.
45210
45211 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
45212
45213         [BZ #12518]
45214         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
45215         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
45216         * sysdeps/x86_64/memmove.c: New file.
45217         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
45218         (memcpy): Renamed to ...
45219         (__new_memcpy): This.
45220         (memcpy): Provide GLIBC_2_14 memcpy.
45221         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
45222         (memcpy): Provide GLIBC_2_2_5 memcpy.
45223
45224 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45225
45226         [BZ #12631]
45227         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
45228
45229 2011-03-30  Andreas Schwab  <schwab@redhat.com>
45230
45231         * misc/syncfs.c: New file.
45232         * misc/Makefile (routines): Add syncfs.
45233         * posix/unistd.h: Declare syncfs.
45234         * sysdeps/unix/syscalls.list: Add syncfs.
45235
45236 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45237
45238         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
45239         open_by_handle_at.
45240         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
45241         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45242         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45243         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45244         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45245         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
45246         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45247
45248 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45249
45250         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
45251         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45252         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
45253         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45254         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45255         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45256         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45257
45258         * io/Makefile: Compile fallocate.c, fallocate64.c, and
45259         sync_file_range.c with -fexceptions.
45260         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
45261         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
45262         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
45263         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
45264         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
45265         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
45266         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
45267         sync_file_range as cancellation point
45268         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
45269         now a wrapper around __call_sync_file_range with cancellation handling.
45270         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
45271         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
45272         function name to __call_sync_file_range.
45273         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
45274         Add call_sync_file_range.
45275
45276 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45277
45278         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
45279         bits/timex.h.
45280
45281 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45282
45283         * iconv/iconv.h: Fix typo in comment.
45284         * io/fcntl.h: Likewise.
45285         * libio/stdio.h: Likewise.
45286         * posix/spawn.h: Likewise.
45287         * posix/unistd.h: Likewise.
45288         * stdlib/stdlib.h: Likewise.
45289         * time/time.h: Likewise.
45290         * wcsmbs/wchar.h: Likewise.
45291
45292         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
45293         open_by_handle): Add.
45294         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
45295         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
45296         Augment a few comments.
45297         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45298         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45299         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45300         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45301         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45302         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
45303         open_by_handle.
45304
45305         * io/fcntl.h (AT_EMPTY_PATH): Define.
45306
45307 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
45308
45309         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
45310         * sysdeps/unix/sysv/linux/bits/time.h: New file.
45311         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
45312         to...
45313         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
45314         * Versions.def: Add GLIBC_2.14.
45315         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
45316         Export.
45317
45318 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
45319
45320         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
45321         round counter.
45322         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45323
45324 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
45325
45326         [BZ #12597]
45327         * string/test-strncmp.c (do_page_test): New function.
45328         (check2): Likewise.
45329         (test_main): Call check2.
45330         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
45331
45332 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
45333
45334         [BZ #12587]
45335         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
45336         Handle cache information in CPU leaf 4.
45337         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45338
45339 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
45340
45341         [BZ #12583]
45342         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
45343         character representation.
45344         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
45345
45346 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
45347
45348         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
45349         END(__isnan) to END(__isnanf) to match function entry point/label
45350         EALIGN(__isnanf,...).
45351
45352 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
45353
45354         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
45355
45356 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
45357
45358         [BZ #12510]
45359         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
45360         copy from the symbol referenced in the relocation to initialize the
45361         used variable.
45362         Patch by Piotr Bury <pbury@goahead.com>.
45363         * elf/Makefile: Add rules to build and tst-unique3.
45364         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
45365         * elf/tst-unique3.cc: New file.
45366         * elf/tst-unique3.h: New file.
45367         * elf/tst-unique3lib.cc: New file.
45368         * elf/tst-unique3lib2.cc: New file.
45369
45370         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
45371
45372 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
45373
45374         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
45375         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
45376         to _start.
45377
45378 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
45379
45380         * elf/dl-load.c (_dl_map_object): If we are looking for the first
45381         to-be-loaded object along a path to loader is ld.so.
45382
45383 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45384             Ulrich Drepper  <drepper@gmail.com>
45385
45386         * sysdeps/x86_64/memset.S: After aligning destination, code
45387         branches to different locations depending on the value of
45388         misalignment, when multiarch is enabled. Fix this.
45389
45390 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45391
45392         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
45393         Set _x86_64_preferred_memory_instruction for AMD processsors.
45394         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45395         Set bit_Prefer_SSE_for_memop for AMD processors.
45396
45397 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
45398
45399         * libio/fmemopen.c (fmemopen): Optimize a bit.
45400
45401 2011-03-03  Andreas Schwab  <schwab@redhat.com>
45402
45403         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
45404
45405 2011-03-03  Roland McGrath  <roland@redhat.com>
45406
45407         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
45408
45409 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
45410
45411         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
45412         __bzero_ultra1 instead of __memset_ultra1.
45413
45414 2011-02-23  Andreas Schwab  <schwab@redhat.com>
45415             Ulrich Drepper  <drepper@gmail.com>
45416
45417         [BZ #12509]
45418         * include/link.h (struct link_map): Add l_orig_initfini.
45419         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
45420         returning unsuccessfully.
45421         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
45422         close of a file loaded at startup, restore the original l_initfini
45423         list.
45424         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
45425         list, store the pointer.
45426         * elf/Makefile ($(objpfx)noload-mem): New rule.
45427         (noload-ENV): Define.
45428         (tests): Add $(objpfx)noload-mem.
45429         * elf/noload.c: Include <memcheck.h>.
45430         (main): Call mtrace.  Close all opened handles.
45431
45432 2011-02-17  Andreas Schwab  <schwab@redhat.com>
45433
45434         [BZ #12454]
45435         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
45436         dependencies are missing.
45437
45438 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45439
45440         Fix __if_freereq crash: Unlike the generic version which uses free,
45441         Hurd needs munmap.
45442         * sysdeps/mach/hurd/ifreq.h: New file.
45443
45444 2011-01-27  Petr Baudis  <pasky@suse.cz>
45445             Ulrich Drepper  <drepper@gmail.com>
45446
45447         [BZ 12445]#
45448         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
45449         to extend_alloca().
45450         * stdio-common/bug23.c: New file.
45451         * stdio-common/Makefile (tests): Add bug23.
45452
45453 2010-09-28  Andreas Schwab  <schwab@redhat.com>
45454             Ulrich Drepper  <drepper@gmail.com>
45455
45456         [BZ #12489]
45457         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
45458         before performing relro protection.  At old place add assertion
45459         to make sure nothing changed.
45460
45461 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
45462             Glauber de Oliveira Costa  <glommer@gmail.com>
45463
45464         * elf/elf.h: Add new ARM TLS relocs.
45465
45466 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
45467
45468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
45469         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
45470         cast from r3.
45471         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
45472         'tests' variable.
45473         * sysdeps/wordsize-64/tst-writev.c: New file.
45474
45475 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
45476
45477         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
45478         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
45479         insns in _dl_start to prevent a TOC reference before relocs are
45480         resolved.
45481
45482 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
45483
45484         [BZ #12469]
45485         * Makeconfig: Remove RANLIB definition.
45486         * Makerules: Don't use RANLIB.
45487         * aclocal.m4: Remove ranlib test.
45488         * configure.in: No need to check for ranlib.
45489         * elf/rtld-Rules: Don't use RANLIB.
45490
45491 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45492
45493         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
45494         protection macro.
45495         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
45496         inclusion protection macro.
45497
45498         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
45499         SIGRTMIN and SIGRTMAX and print information in that case only when
45500         SIGRTMIN is defined.
45501
45502 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
45503
45504         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
45505         arginfo fn returning -1.
45506
45507         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
45508         and thousands string is zero terminated.
45509
45510 2011-02-03  Andreas Schwab  <schwab@redhat.com>
45511
45512         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
45513         sysdeps/unix/sysv/linux/bits/socket.h.
45514
45515 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45516
45517         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
45518         (__CPU_COUNT): Remove old macros.
45519         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
45520         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
45521         (__CPU_ALLOC, __CPU_FREE): Add macros.
45522         (__sched_cpualloc, __sched_cpufree): Add declarations.
45523
45524 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
45525
45526         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
45527         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
45528         * nscd/aicache.c (addhstaiX): Return timeout of added value.
45529         (readdhstai): Return value of addhstaiX call.
45530         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
45531         (addgrbyX): Return value returned by cache_addgr.
45532         (readdgrbyname): Return value returned by addgrbyX.
45533         (readdgrbygid): Likewise.
45534         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
45535         (addpwbyX): Return value returned by cache_addpw.
45536         (readdpwbyname): Return value returned by addhstbyX.
45537         (readdpwbyuid): Likewise.
45538         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
45539         (addservbyX): Return value returned by cache_addserv.
45540         (readdservbyname): Return value returned by addservbyX:
45541         (readdservbyport): Likewise.
45542         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
45543         (addhstbyX): Return value returned by cache_addhst.
45544         (readdhstbyname): Return value returned by addhstbyX.
45545         (readdhstbyaddr): Likewise.
45546         (readdhstbynamev6): Likewise.
45547         (readdhstbyaddrv6): Likewise.
45548         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
45549         (readdinitgroups): Return value returned by addinitgroupsX.
45550         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
45551         (prune_cache): Keep track of timeout value of re-added entries.
45552         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
45553         * nscd/nscd.h: Adjust prototypes of readd* functions.
45554
45555 2011-02-04  Roland McGrath  <roland@redhat.com>
45556
45557         * nis/nis_server.c (nis_servstate): Use the right name for 0.
45558         (nis_stats): Likewise.
45559         * nis/nis_modify.c (nis_modify): Likewise.
45560         * nis/nis_remove.c (nis_remove): Likewise.
45561         * nis/nis_add.c (nis_add): Likewise.
45562
45563         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
45564
45565         * posix/fnmatch_loop.c: Add some consts.
45566
45567         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
45568
45569 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
45570
45571         [BZ #12460]
45572         * config.make.in (config-cflags-novzeroupper): Define.
45573         * configure.in: Substitute libc_cv_cc_novzeroupper.
45574         * elf/Makefile (AVX-CFLAGS): Define.
45575         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
45576         (CFLAGS-tst-auditmod4a.c): Likewise.
45577         (CFLAGS-tst-auditmod4b.c): Likewise.
45578         (CFLAGS-tst-auditmod6b.c): Likewise.
45579         (CFLAGS-tst-auditmod6c.c): Likewise.
45580         (CFLAGS-tst-auditmod7b.c): Likewise.
45581         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
45582
45583 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
45584
45585         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
45586         function to the callback.
45587         Patch partly by Jiri Olsa <jolsa@redhat.com>.
45588
45589 2011-02-02  Andreas Schwab  <schwab@redhat.com>
45590
45591         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
45592         of errno.
45593
45594 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
45595
45596         [BZ #11724]
45597         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
45598         of constructors.
45599         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
45600         of destructors.
45601         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
45602
45603         [BZ #11724]
45604         * elf/Makefile: Add rules to build and run new test.
45605         * elf/tst-initorder.c: New file.
45606         * elf/tst-initorder.exp: New file.
45607         * elf/tst-initordera1.c: New file.
45608         * elf/tst-initordera2.c: New file.
45609         * elf/tst-initordera3.c: New file.
45610         * elf/tst-initordera4.c: New file.
45611         * elf/tst-initorderb1.c: New file.
45612         * elf/tst-initorderb2.c: New file.
45613         * elf/tst-order-a1.c: New file.
45614         * elf/tst-order-a2.c: New file.
45615         * elf/tst-order-a3.c: New file.
45616         * elf/tst-order-a4.c: New file.
45617         * elf/tst-order-b1.c: New file.
45618         * elf/tst-order-b2.c: New file.
45619         * elf/tst-order-main.c: New file.
45620         New test case by George Gensure <werkt0@gmail.com>.
45621
45622 2010-10-01  Andreas Schwab  <schwab@redhat.com>
45623
45624         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
45625         decoding ACE if AI_CANONIDN.
45626
45627 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
45628
45629         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
45630
45631 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
45632
45633         * version.h (RELEASE): Bump for 2.13 release.
45634         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
45635
45636         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
45637
45638         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
45639         MADV_NOHUGEPAGE.
45640         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
45641         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
45642         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
45643         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
45644         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
45645         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45646
45647         * posix/getconf.c: Update copyright year.
45648         * catgets/gencat.c: Likewise.
45649         * csu/version.c: Likewise.
45650         * debug/catchsegv.sh: Likewise.
45651         * debug/xtrace.sh: Likewise.
45652         * elf/ldconfig.c: Likewise.
45653         * elf/ldd.bash.in: Likewise.
45654         * elf/sprof.c (print_version): Likewise.
45655         * iconv/iconv_prog.c: Likewise.
45656         * iconv/iconvconfig.c: Likewise.
45657         * locale/programs/locale.c: Likewise.
45658         * locale/programs/localedef.c: Likewise.
45659         * malloc/memusage.sh: Likewise.
45660         * malloc/mtrace.pl: Likewise.
45661         * nscd/nscd.c (print_version): Likewise.
45662         * nss/getent.c: Likewise.
45663
45664         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
45665         PF_CAIF, and PF_ALG.
45666         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
45667
45668 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
45669
45670         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
45671         (modules-names): Use them.
45672         (ifunc-test-modules, ifunc-pie-tests): Define.
45673         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
45674         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
45675         (test-extras): Likewise.
45676         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
45677         $(compile-command.c).
45678         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
45679         (all-built-dso): Define.
45680         (check-textrel.out, check-execstack.out): Depend on it.
45681
45682         * configure.in: Don't override --enable-multi-arch.
45683
45684 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
45685
45686         [BZ #6812]
45687         * nscd/hstcache.c (tryagain): Define.
45688         (cache_addhst): Return tryagain not notfound for temporary errors.
45689         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
45690         failed.
45691
45692 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
45693
45694         [BZ #10563]
45695         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
45696         to make the syscall.
45697         * sysdeps/unix/sysv/linux/setgroups.c: New file.
45698
45699         [BZ #12378]
45700         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
45701         and fall back to matching as normal character if the string ends before
45702         the matching ']' is found.  This is what POSIX requires.
45703         * posix/testfnm.c: Adjust test result.
45704         * posix/globtest.sh: Adjust test result.  Add new test.
45705         * posix/tst-fnmatch.input: Likewise.
45706         * posix/tst-fnmatch2.c: Add new test.
45707
45708 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
45709
45710         * elf/Makefile (check-execstack): Revert last change.  Depend on
45711         check-execstack.h.
45712         (check-execstack.h): New target.
45713         (generated): Add check-execstack.h.
45714         * elf/check-execstack.c: Include "check-execstack.h".
45715         (main): Revert last change.
45716         (handle_file): Return zero if GNU_STACK is absent and
45717         DEFAULT_STACK_PERMS doesn't include PF_X.
45718
45719 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
45720
45721         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
45722         in child fails because the descriptor is already closed.
45723         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
45724         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
45725         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
45726
45727         [BZ #12397]
45728         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
45729         syscall.
45730
45731         [BZ #10484]
45732         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
45733         temporary buffer used to handle multi lookups locally.
45734         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
45735
45736 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45737
45738         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
45739         loader is ld.so.
45740
45741 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
45742
45743         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
45744         alignment for SSE2.
45745
45746 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45747
45748         [BZ #12394]
45749         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
45750         characters.  When rounding increased number of integer digits recompute
45751         number of groups.
45752         * stdio-common/tst-grouping.c: New file.
45753         * stdio-common/Makefile: Add rules to build and run tst-grouping.
45754
45755 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
45756
45757         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
45758         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
45759
45760         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
45761         void.
45762         * bits/select.h: Likewise.
45763
45764 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
45765
45766         * po/ja.po: Update from translation team.
45767
45768 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
45769
45770         [BZ #11155]
45771         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
45772         implementation just like for lxstat, fxstatat, et al.
45773
45774 2010-12-27  Jim Meyering  <meyering@redhat.com>
45775
45776         [BZ #12348]
45777         * posix/regexec.c (build_trtable): Return failure indication upon
45778         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45779
45780 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
45781
45782         [BZ #12201]
45783         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
45784         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
45785         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
45786         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
45787
45788         [BZ #12207]
45789         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
45790
45791         [BZ #12204]
45792         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
45793         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
45794
45795 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
45796
45797         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
45798         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
45799         script has SORT_BY_INIT_PRIORITY.
45800         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
45801         NO_CTORS_DTORS_SECTIONS is defined.
45802         * elf/soinit.c: Likewise.
45803         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
45804         NO_CTORS_DTORS_SECTIONS is defined.
45805         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
45806         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
45807         * sysdeps/sh/init-first.c: Likewise.
45808         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
45809
45810 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
45811
45812         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
45813         always use the slow path.
45814
45815 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
45816
45817         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
45818         similar rule which adds the sysdep directories to the header search in
45819         order to pick up the correct platform stackinfo.h.
45820         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
45821         perform test if it is, otherwise return successfully without testing.
45822         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
45823         DEFAULT_STACK_PERMS define in stackinfo.h.
45824         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
45825         defined in stackinfo.h.
45826         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
45827         DEFAULT_STACK_PERMS defined in stackinfo.h.
45828         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
45829         * sysdeps/ia64/stackinfo.h: Likewise.
45830         * sysdeps/s390/stackinfo.h: Likewise.
45831         * sysdeps/sh/stackinfo.h: Likewise.
45832         * sysdeps/sparc/stackinfo.h: Likewise.
45833         * sysdeps/x86_64/stackinfo.h: Likewise.
45834         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
45835         PF_X for powerpc64.  Retain PF_X for powerpc32.
45836
45837 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
45838
45839         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
45840         accurately.
45841         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
45842         GETDENTS_64BIT_ALIGNED.
45843
45844 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
45845
45846         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
45847
45848 2010-12-10  Andreas Schwab  <schwab@redhat.com>
45849
45850         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
45851         _GNU_SOURCE.
45852
45853         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
45854         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
45855         Remove __restrict.
45856         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
45857         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
45858
45859 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
45860
45861         [BZ #11655]
45862         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
45863         are initialized.
45864
45865 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
45866
45867         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
45868
45869 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
45870
45871         * po/it.po: Update from translation team.
45872
45873 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
45874
45875         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
45876         unused codes.
45877
45878 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
45879
45880         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
45881
45882 2010-11-24  Andreas Schwab  <schwab@redhat.com>
45883
45884         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
45885         specially.
45886         (gaih_getanswer_slice): Likewise.
45887
45888 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
45889
45890         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
45891
45892 2010-05-31  Petr Baudis  <pasky@suse.cz>
45893
45894         [BZ #11149]
45895         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
45896         silently even in the chroot mode.
45897
45898 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
45899
45900         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
45901         last patch a bit.  Pretty printing
45902
45903 2010-05-31  Petr Baudis <pasky@suse.cz>
45904
45905         [BZ #10085]
45906         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
45907         initialization of skip_initgroups_dyn.
45908
45909 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
45910
45911         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
45912         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45913
45914 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
45915
45916         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
45917
45918 2010-11-11  Andreas Schwab  <schwab@redhat.com>
45919
45920         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
45921         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
45922         (tst-fnmatch-ENV): Set MALLOC_TRACE.
45923         ($(objpfx)tst-fnmatch-mem): New rule.
45924         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
45925         * posix/tst-fnmatch.c (main): Call mtrace.
45926
45927 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
45928
45929         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45930         Support Intel processor model 6 and model 0x2c.
45931
45932 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
45933
45934         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
45935           signed comparison.
45936
45937 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
45938
45939         [BZ #12205]
45940         * string/test-strncasecmp.c (check_result): New function.
45941         (do_one_test): Use it.
45942         (check1): New function.
45943         (test_main): Use it.
45944         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
45945         Support strcasecmp and strncasecmp.
45946
45947 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
45948
45949         [BZ #12194]
45950         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
45951         * sysdeps/x86_64/bits/byteswap.h: Likewise.
45952
45953 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
45954
45955         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
45956         IFUNC support.
45957         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45958         memset-x86-64.
45959         * sysdeps/x86_64/multiarch/bzero.S: New file.
45960         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
45961         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
45962         * sysdeps/x86_64/multiarch/memset.S: New file.
45963         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
45964         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45965         Set bit_Prefer_SSE_for_memop for Intel processors.
45966         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
45967         Define.
45968         (index_Prefer_SSE_for_memop): Define.
45969         (HAS_PREFER_SSE_FOR_MEMOP): Define.
45970
45971 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
45972
45973         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
45974         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
45975
45976 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
45977
45978         [BZ #12191]
45979         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45980         (__x86_64_raw_data_cache_size_half): Likewise.
45981         (__x86_64_raw_shared_cache_size): Likewise.
45982         (__x86_64_raw_shared_cache_size_half): Likewise.
45983
45984         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45985         (__x86_64_raw_data_cache_size_half): Likewise.
45986         (__x86_64_raw_shared_cache_size): Likewise.
45987         (__x86_64_raw_shared_cache_size_half): Likewise.
45988         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
45989         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
45990         and __x86_64_raw_shared_cache_size_half.  Round
45991         __x86_64_data_cache_size_half, __x86_64_data_cache_size
45992         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
45993         to multiple of 256 bytes.
45994
45995 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
45996
45997         [BZ #12167]
45998         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
45999         of inacessible symlinks.  Verify result of symlink before returning it.
46000         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
46001         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
46002
46003 2010-10-28  Erich Ritz  <erichritz@gmail.com>
46004
46005         * math/math.h (isinf): Fix typo in comment.
46006
46007 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
46008
46009         * po/da.po: Update from translation team.
46010
46011 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
46012
46013         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
46014         is added to the list.
46015
46016 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46017             Ulrich Drepper  <drepper@gmail.com>
46018
46019         * elf/dl-object.c (_dl_new_object): Don't append the new object to
46020         the global list here.  Move code to...
46021         (_dl_add_to_namespace_list): ...here.  New function.
46022         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
46023         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
46024         * elf/dl-load.c (lose): Don't remove the element from the list.
46025         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
46026         (_dl_map_object): Likewise.
46027
46028 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
46029
46030         [BZ #12159]
46031         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
46032         into all bytes of SSE register.
46033         Patch by Richard Li <richardpku@gmail.com>.
46034
46035 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
46036
46037         [BZ #12140]
46038         * malloc/malloc.c (_int_free): Fill correct number of bytes when
46039         perturbing.
46040
46041 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
46042
46043         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
46044         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
46045         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
46046         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
46047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
46048         submachine.
46049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
46050
46051 2010-10-22  Andreas Schwab  <schwab@redhat.com>
46052
46053         * include/dlfcn.h (__RTLD_SECURE): Define.
46054         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
46055         mode & __RTLD_SECURE instead.
46056         (open_path): Rename preloaded parameter to secure.
46057         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
46058         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
46059         * elf/dl-deps.c (openaux): Likewise.
46060         * elf/rtld.c (struct map_args): Remove is_preloaded.
46061         (map_doit): Don't use it.
46062         (dl_main): Likewise.
46063         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
46064         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
46065
46066 2010-09-09  Andreas Schwab  <schwab@redhat.com>
46067
46068         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
46069         (sysd-rules-targets): Remove duplicates.
46070         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
46071         rtld-%.$o dependency.
46072
46073 2010-10-18  Andreas Schwab  <schwab@redhat.com>
46074
46075         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
46076         _dl_map_object do it.
46077
46078 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
46079
46080         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
46081         fast fma builtins, define the macros in the C99 standard.
46082         (FP_FAST_FMAF): Likewise.
46083         (FP_FAST_FMAL): Likewise.
46084         * sysdeps/x86_64/bits/mathdef.h: Likewise.
46085
46086         * bits/mathdef.h: Update copyright year.
46087         * sysdeps/powerpc/bits/mathdef.h: Likewise.
46088
46089 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
46090
46091         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
46092         builtins, define the macros in the C99 standard.
46093         (FP_FAST_FMAF): Likewise.
46094         (FP_FAST_FMAL): Likewise.
46095         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
46096         multiply/add.
46097         (FP_FAST_FMAF): Likewise.
46098
46099 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
46100
46101         [BZ #3268]
46102         * math/libm-test.inc (fma_test): Some new testcases.
46103         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
46104         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
46105         y and infinite z.  Do multiplication by C already in long double.
46106         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
46107         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
46108         y and infinite z.  Do bitwise or of inexact bit into u.d.
46109         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
46110         * sysdeps/i386/fpu/s_fmaf.S: Removed.
46111         * sysdeps/i386/fpu/s_fma.S: Removed.
46112         * sysdeps/i386/fpu/s_fmal.S: Removed.
46113
46114 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
46115
46116         [BZ #3268]
46117         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
46118         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
46119         computation is not scheduled after fetestexcept.  Fix value
46120         of minimum denormal long double.
46121
46122 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
46123
46124         [BZ #3268]
46125         * math/libm-test.inc (fma_test): Add some more tests.
46126         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
46127         correctly.
46128
46129 2010-10-15  Andreas Schwab  <schwab@redhat.com>
46130
46131         * scripts/data/localplt-s390-linux-gnu.data: New file.
46132         * scripts/data/localplt-s390x-linux-gnu.data: New file.
46133
46134 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
46135
46136         [BZ #3268]
46137         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
46138         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
46139         instead of dbl-64.
46140         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
46141         inlines.
46142         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
46143         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
46144         if one of x and y is very large and the other is subnormal.
46145         * sysdeps/s390/fpu/s_fmaf.c: New file.
46146         * sysdeps/s390/fpu/s_fma.c: New file.
46147         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
46148         * sysdeps/powerpc/fpu/s_fma.S: New file.
46149         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
46150         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
46151         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
46152
46153 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
46154
46155         [BZ #3268]
46156         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
46157         fma tests.
46158         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
46159         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
46160         * sysdeps/i386/i686/multiarch/s_fma.c: Include
46161         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
46162         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
46163         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
46164         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
46165
46166 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
46167
46168         [BZ #12078]
46169         * posix/regcomp.c (parse_branch): One more memory leak plugged.
46170         * posix/bug-regex31.input: Add test case.
46171
46172 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46173
46174         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
46175         * posix/bug-regex31.input: New file.
46176
46177         [BZ #12078]
46178         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
46179         (parse_sub_exp): Fix last change, use postorder.
46180
46181         * posix/bug-regex31.c: New file.
46182         * posix/Makefile: Add rules to build and run bug-regex31.
46183
46184         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
46185
46186         [BZ #12078]
46187         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
46188
46189         [BZ #12108]
46190         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
46191         to have entries in sys_siglist.
46192
46193         [BZ #12093]
46194         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
46195         be NULL.
46196
46197 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
46198
46199         [BZ #3268]
46200         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
46201         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
46202         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
46203         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
46204         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
46205         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
46206         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
46207         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
46208         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
46209         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
46210         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
46211         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
46212         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
46213         * math/ftestexcept.c (fetestexcept): Likewise.
46214         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
46215         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
46216         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
46217         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
46218         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
46219         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
46220         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
46221
46222 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46223
46224         [BZ #12107]
46225         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
46226         newline.
46227
46228 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
46229
46230         * string/bug-strstr1.c: New file.
46231         * string/Makefile: Add rules to build and run bug-strstr1.
46232
46233 2010-10-05  Eric Blake  <eblake@redhat.com>
46234
46235         [BZ #12092]
46236         * string/str-two-way.h (two_way_long_needle): Always clear memory
46237         when skipping input due to the shift table.
46238
46239 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
46240
46241         [BZ #12005]
46242         * malloc/mcheck.c: Handle large requests.
46243
46244         [BZ #12077]
46245         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
46246         for strncmp and strncasecmp.
46247         * string/stratcliff.c: Add tests for strcmp and strncmp.
46248         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
46249
46250 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
46251
46252         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
46253         __set_fpscr.
46254
46255 2010-09-30  Andreas Jaeger  <aj@suse.de>
46256
46257         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
46258         (CGROUP_SUPER_MAGIC): Define.
46259         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46260         Handle btrfs and cgroup file systems.
46261         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
46262         Likewise.
46263
46264 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
46265
46266         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
46267         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
46268
46269 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46270
46271         [BZ #12067]
46272         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
46273         trying to locate the ELF header.
46274
46275 2010-09-27  Andreas Schwab  <schwab@redhat.com>
46276
46277         [BZ #11611]
46278         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
46279         Mask out sign-bit copies when constructing f_fsid.
46280
46281 2010-09-24  Petr Baudis <pasky@suse.cz>
46282
46283         * debug/stack_chk_fail_local.c: Add missing licence exception.
46284         * debug/warning-nop.c: Likewise.
46285
46286 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
46287
46288         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
46289         implementing getdents64 using getdents syscall, set d_type if
46290         __ASSUME_GETDENTS32_D_TYPE.
46291
46292 2010-09-16  Andreas Schwab  <schwab@redhat.com>
46293
46294         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
46295         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
46296
46297 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
46298
46299         [BZ #12037]
46300         * posix/unistd.h: Undo change of feature selection for ftruncate from
46301         2010-01-11.
46302
46303 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
46304
46305         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
46306         detection.
46307
46308 2010-09-20  Andreas Schwab  <schwab@redhat.com>
46309
46310         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
46311         fanotify_mark.
46312         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46313
46314 2010-09-14  Andreas Schwab  <schwab@redhat.com>
46315
46316         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
46317         variables after CHECK_SP call.
46318         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
46319
46320 2010-09-13  Andreas Schwab  <schwab@redhat.com>
46321             Ulrich Drepper  <drepper@redhat.com>
46322
46323         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
46324         re-relocationg ld.so.
46325         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
46326         _dl_init_paths call.
46327         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
46328         here anymore.
46329
46330 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
46331
46332         * resolv/res_init.c (__res_vinit): Count the default server we added.
46333
46334 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
46335             Ulrich Drepper  <drepper@redhat.com>
46336
46337         [BZ #11968]
46338         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
46339         (____longjmp_chk): Use %ebx for saving value across system call.
46340         Add unwind info.
46341
46342 2010-09-06  Andreas Schwab  <schwab@redhat.com>
46343
46344         * manual/Makefile: Don't mix pattern rules with normal rules.
46345
46346 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
46347
46348         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
46349         operation.
46350         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
46351         * libio/iofopncook.c (_IO_cookie_init): Likewise.
46352         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
46353         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
46354         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46355         Likewise.
46356
46357 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
46358
46359         [BZ #11979]
46360         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
46361         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
46362
46363 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
46364
46365         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
46366         * sysdeps/x86_64/addmul_1.S: Likewise.
46367         * sysdeps/x86_64/lshift.S: Likewise.
46368         * sysdeps/x86_64/mul_1.S: Likewise.
46369         * sysdeps/x86_64/rshift.S: Likewise.
46370         * sysdeps/x86_64/sub_n.S: Likewise.
46371         * sysdeps/x86_64/submul_1.S: Likewise.
46372
46373 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46374
46375         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
46376         Define __sched_param instead of SCHED_* and sched_param when
46377         <bits/sched.h> is included with __need_schedparam defined.
46378         * bits/sched.h [__need_schedparam]
46379         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
46380         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
46381         (__defined_schedparam): Define to 1.
46382         (__sched_param): New structure, identical to sched_param.
46383         (__need_schedparam): Undefine.
46384
46385 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
46386
46387         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
46388         (epoll_create1): Declare.
46389
46390         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
46391
46392 2010-08-31  Andreas Schwab  <schwab@redhat.com>
46393
46394         [BZ #7066]
46395         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
46396         shifting retval into place.
46397
46398 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
46399
46400         * nis/rpcsvc/nis.h: Update copyright notice.
46401         * nis/rpcsvc/nis.x: Likewise.
46402         * nis/rpcsvc/nis_callback.h: Likewise.
46403         * nis/rpcsvc/nis_callback.x: Likewise.
46404         * nis/rpcsvc/nis_object.x: Likewise.
46405         * nis/rpcsvc/nis_tags.h: Likewise.
46406         * nis/rpcsvc/yp.h: Likewise.
46407         * nis/rpcsvc/yp.x: Likewise.
46408         * nis/rpcsvc/ypupd.h: Likewise.
46409         * nis/yp_xdr.c: Likewise.
46410         * nis/ypupdate_xdr.c: Likewise.
46411
46412         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
46413         mainly the body of pmap_getport.  Add parameters to specify timeouts.
46414         (pmap_getport): Use __libc_rpc_getport.
46415         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
46416         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
46417         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
46418
46419 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
46420
46421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
46422         fanotify_mark.
46423
46424 2010-08-27  Roland McGrath  <roland@redhat.com>
46425
46426         * sysdeps/i386/i686/multiarch/Makefile
46427         (CFLAGS-varshift.c): New variable.
46428
46429 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
46430
46431         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
46432         * sysdeps/i386/i686/multiarch/varshift.c: New file.
46433
46434         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
46435
46436         * sysdeps/x86_64/strlen.S: Minimal code improvement.
46437
46438 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
46439
46440         * sysdeps/x86_64/strlen.S: Unroll the loop.
46441         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46442         strlen-sse2 strlen-sse2-bsf.
46443         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
46444         __strlen_no_bsf if bit_Slow_BSF is set.
46445         (__strlen_sse42): Removed.
46446         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
46447         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
46448
46449 2010-08-25  Roland McGrath  <roland@redhat.com>
46450
46451         * sysdeps/x86_64/multiarch/varshift.S: File removed.
46452         * sysdeps/x86_64/multiarch/varshift.c: New file.
46453         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
46454         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
46455         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
46456         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
46457
46458 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
46459
46460         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46461         strlen-sse2 strlen-sse2-bsf.
46462         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
46463         __strlen_sse2_bsf if bit_Slow_BSF is unset.
46464         (__strlen_sse2): Removed.
46465         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
46466         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
46467         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
46468         bit_Slow_BSF for Atom.
46469         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
46470         (index_Slow_BSF): Define.
46471         (HAS_SLOW_BSF): Define.
46472
46473 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
46474
46475         [BZ #10851]
46476         * resolv/res_init.c (__res_vinit): When no server address at all
46477         is given default to loopback.
46478
46479 2010-08-24  Roland McGrath  <roland@redhat.com>
46480
46481         * configure.in: Remove config-name.h generation.
46482         * configure: Regenerated.
46483         * config-name.in: File removed.
46484         * scripts/config-uname.sh: New file.
46485         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
46486         ($(objdir)config-name.h): New target.
46487
46488         * sunrpc/rpc_parse.h: Avoid nested comment.
46489
46490 2010-08-24  Richard Henderson  <rth@redhat.com>
46491             Ulrich Drepper  <drepper@redhat.com>
46492             H.J. Lu  <hongjiu.lu@intel.com>
46493
46494         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
46495         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
46496         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
46497         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
46498         _mm_alignr_epi8 with _mm_loadu_si128.
46499         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
46500         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
46501         (__m128i_shift_right): Removed.
46502         * sysdeps/i386/i686/multiarch/varshift.h: New file.
46503         * sysdeps/i386/i686/multiarch/varshift.S: New file.
46504         * sysdeps/x86_64/multiarch/varshift.h: New file.
46505         * sysdeps/x86_64/multiarch/varshift.S: New file.
46506
46507 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
46508
46509         * configure.in: Move assembler checks to before sysdep dir checking.
46510
46511 2010-08-20  Petr Baudis  <pasky@suse.cz>
46512
46513         * LICENSES: Sync the sunrpc license.
46514
46515 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
46516
46517         * sunrpc/auth_des.c: Update copyright notice once again.
46518         * sunrpc/auth_none.c: Likewise.
46519         * sunrpc/auth_unix.c: Likewise.
46520         * sunrpc/authdes_prot.c: Likewise.
46521         * sunrpc/authuxprot.c: Likewise.
46522         * sunrpc/bindrsvprt.c: Likewise.
46523         * sunrpc/clnt_gen.c: Likewise.
46524         * sunrpc/clnt_perr.c: Likewise.
46525         * sunrpc/clnt_raw.c: Likewise.
46526         * sunrpc/clnt_simp.c: Likewise.
46527         * sunrpc/clnt_tcp.c: Likewise.
46528         * sunrpc/clnt_udp.c: Likewise.
46529         * sunrpc/clnt_unix.c: Likewise.
46530         * sunrpc/des_crypt.c: Likewise.
46531         * sunrpc/des_soft.c: Likewise.
46532         * sunrpc/get_myaddr.c: Likewise.
46533         * sunrpc/getrpcport.c: Likewise.
46534         * sunrpc/key_call.c: Likewise.
46535         * sunrpc/key_prot.c: Likewise.
46536         * sunrpc/openchild.c: Likewise.
46537         * sunrpc/pm_getmaps.c: Likewise.
46538         * sunrpc/pm_getport.c: Likewise.
46539         * sunrpc/pmap_clnt.c: Likewise.
46540         * sunrpc/pmap_prot.c: Likewise.
46541         * sunrpc/pmap_prot2.c: Likewise.
46542         * sunrpc/pmap_rmt.c: Likewise.
46543         * sunrpc/rpc/auth.h: Likewise.
46544         * sunrpc/rpc/auth_unix.h: Likewise.
46545         * sunrpc/rpc/clnt.h: Likewise.
46546         * sunrpc/rpc/des_crypt.h: Likewise.
46547         * sunrpc/rpc/key_prot.h: Likewise.
46548         * sunrpc/rpc/netdb.h: Likewise.
46549         * sunrpc/rpc/pmap_clnt.h: Likewise.
46550         * sunrpc/rpc/pmap_prot.h: Likewise.
46551         * sunrpc/rpc/pmap_rmt.h: Likewise.
46552         * sunrpc/rpc/rpc.h: Likewise.
46553         * sunrpc/rpc/rpc_des.h: Likewise.
46554         * sunrpc/rpc/rpc_msg.h: Likewise.
46555         * sunrpc/rpc/svc.h: Likewise.
46556         * sunrpc/rpc/svc_auth.h: Likewise.
46557         * sunrpc/rpc/types.h: Likewise.
46558         * sunrpc/rpc/xdr.h: Likewise.
46559         * sunrpc/rpc_clntout.c: Likewise.
46560         * sunrpc/rpc_cmsg.c: Likewise.
46561         * sunrpc/rpc_common.c: Likewise.
46562         * sunrpc/rpc_cout.c: Likewise.
46563         * sunrpc/rpc_dtable.c: Likewise.
46564         * sunrpc/rpc_hout.c: Likewise.
46565         * sunrpc/rpc_main.c: Likewise.
46566         * sunrpc/rpc_parse.c: Likewise.
46567         * sunrpc/rpc_parse.h: Likewise.
46568         * sunrpc/rpc_prot.c: Likewise.
46569         * sunrpc/rpc_sample.c: Likewise.
46570         * sunrpc/rpc_scan.c: Likewise.
46571         * sunrpc/rpc_scan.h: Likewise.
46572         * sunrpc/rpc_svcout.c: Likewise.
46573         * sunrpc/rpc_tblout.c: Likewise.
46574         * sunrpc/rpc_util.c: Likewise.
46575         * sunrpc/rpc_util.h: Likewise.
46576         * sunrpc/rpcinfo.c: Likewise.
46577         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
46578         * sunrpc/rpcsvc/key_prot.x: Likewise.
46579         * sunrpc/rpcsvc/klm_prot.x: Likewise.
46580         * sunrpc/rpcsvc/mount.x: Likewise.
46581         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
46582         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
46583         * sunrpc/rpcsvc/rex.x: Likewise.
46584         * sunrpc/rpcsvc/rstat.x: Likewise.
46585         * sunrpc/rpcsvc/rusers.x: Likewise.
46586         * sunrpc/rpcsvc/sm_inter.x: Likewise.
46587         * sunrpc/rpcsvc/spray.x: Likewise.
46588         * sunrpc/rpcsvc/yppasswd.x: Likewise.
46589         * sunrpc/rtime.c: Likewise.
46590         * sunrpc/svc.c: Likewise.
46591         * sunrpc/svc_auth.c: Likewise.
46592         * sunrpc/svc_authux.c: Likewise.
46593         * sunrpc/svc_raw.c: Likewise.
46594         * sunrpc/svc_run.c: Likewise.
46595         * sunrpc/svc_simple.c: Likewise.
46596         * sunrpc/svc_tcp.c: Likewise.
46597         * sunrpc/svc_udp.c: Likewise.
46598         * sunrpc/svc_unix.c: Likewise.
46599         * sunrpc/svcauth_des.c: Likewise.
46600         * sunrpc/xcrypt.c: Likewise.
46601         * sunrpc/xdr.c: Likewise.
46602         * sunrpc/xdr_array.c: Likewise.
46603         * sunrpc/xdr_float.c: Likewise.
46604         * sunrpc/xdr_mem.c: Likewise.
46605         * sunrpc/xdr_rec.c: Likewise.
46606         * sunrpc/xdr_ref.c: Likewise.
46607         * sunrpc/xdr_sizeof.c: Likewise.
46608         * sunrpc/xdr_stdio.c: Likewise.
46609
46610         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
46611         handling.
46612
46613 2010-08-19  Andreas Schwab  <schwab@redhat.com>
46614
46615         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
46616
46617 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
46618
46619         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
46620         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
46621         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
46622         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
46623         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
46624         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
46625         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
46626         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
46627         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
46628         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
46629         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
46630         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
46631         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
46632         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
46633
46634 2010-07-26  Anton Blanchard  <anton@samba.org>
46635
46636         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
46637         * malloc/arena.c (heap_trim): Likewise.
46638
46639 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
46640
46641         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
46642         here.  Not...
46643         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
46644         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
46645
46646 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
46647
46648         * sysdeps/i386/elf/Makefile: New file.
46649
46650 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46651
46652         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
46653         from fanotify_init.
46654         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
46655         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46656
46657 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
46658
46659         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
46660         of strncasecmp_l.
46661         * sysdeps/multiarch/strcmp.S: Likewise.
46662
46663 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
46664
46665         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46666         strncase_l-nonascii.
46667         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46668         Add strncase_l-ssse3.
46669         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
46670         * sysdeps/x86_64/strcmp.S: Likewise.
46671         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
46672         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
46673         * sysdeps/x86_64/strncase.S: New file.
46674         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
46675         * sysdeps/x86_64/strncase_l.S: New file.
46676         * string/Makefile (strop-tests): Add strncasecmp.
46677         * string/test-strncasecmp.c: New file.
46678
46679         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
46680         warning.
46681
46682         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
46683         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
46684
46685 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46686
46687         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
46688
46689 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
46690
46691         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
46692         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
46693         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
46694
46695 2010-05-01  Alan Modra  <amodra@gmail.com>
46696
46697         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
46698         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
46699         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
46700         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
46701         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
46702         tidying.  Don't tail-call __sigjmp_save for static lib.
46703         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
46704         save location.
46705         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
46706         (CALL_MCOUNT): Add eh info, and nop after bl.
46707         (TAIL_CALL_SYSCALL_ERROR): New macro.
46708         (PSEUDO_RET): Use it.
46709         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
46710         Correct save location of integer regs and cr.
46711         (_dl_profile_resolve): Correct cr save location.  Delete nops
46712         after bl when SHARED.  Reduce cfi size a little by better
46713         placement of cfi directives.
46714         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
46715         make a stack frame.  Instead use parm save area as a temp.
46716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
46717         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
46718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
46719         Don't make a stack frame for parent, use parm save area.
46720         Increase child stack frame to 112 bytes.  Don't save unused reg,
46721         and adjust reg usage.  Set up cfi on error recovery and
46722         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
46723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
46724         (__makecontext): Add dummy nop after jump to exit.
46725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
46726         Use correct parm save area and cr save, reduce stack frame.
46727         Correct cfi for possible PSEUDO_RET frame setup.
46728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
46729         Branch to local label emitted by PSEUDO_RET rather than
46730         __syscall_error.
46731
46732 2010-08-12  Andreas Schwab  <schwab@redhat.com>
46733
46734         [BZ #11904]
46735         * locale/programs/locale.c (print_assignment): New function.
46736         (show_locale_vars): Use it.
46737
46738 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
46739
46740         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
46741         field.
46742         (struct statfs64): Likewise.
46743         (_STATFS_F_FLAGS): Define.
46744         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
46745         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46746         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
46747         (ST_VALID): Define locally.
46748         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
46749         __statvfs_getflags, use the provided value.
46750         * sysdeps/unix/sysv/linux/kernel-features.h: Define
46751         __ASSUME_STATFS_F_FLAGS.
46752
46753         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
46754
46755         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
46756         Add sys/fanotify.h.
46757         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
46758         fanotify_mask for GLIBC_2.13.
46759         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
46760         fanotify_init and fanotify_mark.
46761         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46762         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
46763
46764         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
46765         Add prlimit.
46766         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
46767         prlimit64 for GLIBC_2.13.
46768         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
46769         prlimit64.
46770         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
46771         syscall.
46772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
46773         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46774         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
46775         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
46776         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
46777         add prlimit alias.
46778         * sysdeps/unix/sysv/linux/prlimit.c: New file.
46779
46780         [BZ #11903]
46781         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
46782         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
46783
46784         * nss/Makefile: Add rules to build and run tst-nss-test1.
46785         * shlib-versions: Add entry for libnss_test1.
46786         * nss/nss_test1.c: New file.
46787         * nss/tst-nss-test1.c: New file.
46788
46789         * nss/nsswitch.c (__nss_database_custom): Define new variable.
46790         (__nss_configure_lookup): Set appropriate entry in
46791         __nss_configure_lookup to true.
46792         * nss/nsswitch.h: Define enum with indeces of databases in
46793         databases and __nss_database_custom arrays.  Declare
46794         __nss_database_custom.
46795         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
46796         to avoid using nscd when custom rules are installed.
46797         * nss/getXXbyYY_r.c: Likewise.
46798         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
46799
46800         * nss/nss_files/files-parse.c: Whitespace fixes.
46801
46802 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
46803
46804         [BZ #11883]
46805         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
46806         * posix/fnmatch_loop.c: Likewise.
46807
46808 2010-07-17  Andi Kleen  <ak@linux.intel.com>
46809
46810         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
46811         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
46812         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
46813         * Versions.def [GLIBC_2.13]: Add.
46814
46815 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
46816
46817         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46818         Also fail if tpwd after pwuid call is NULL.
46819
46820 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46821
46822         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
46823         when converting to ms.
46824
46825 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46826
46827         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
46828         EOPNOTSUPP errors with ENOTTY.
46829         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
46830         EOPNOTSUPP errors with ENOTTY.
46831
46832 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
46833
46834         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46835         Add strcasecmp_l-ssse3.
46836         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
46837         strcasecmp.
46838         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
46839         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
46840         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
46841
46842 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
46843
46844         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
46845
46846         * string/Makefile (strop-tests): Add strcasecmp.
46847         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46848         strcasecmp_l-nonascii.
46849         (gen-as-const-headers): Add locale-defines.sym.
46850         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
46851         * sysdeps/x86_64/strcasecmp.S: New file.
46852         * sysdeps/x86_64/strcasecmp_l.S: New file.
46853         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
46854         * sysdeps/x86_64/locale-defines.sym: New file.
46855         * string/test-strcasecmp.c: New file.
46856
46857         * string/test-strcasestr.c: Test both ends of the range of characters.
46858         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
46859
46860 2010-07-29  Roland McGrath  <roland@redhat.com>
46861
46862         [BZ #11856]
46863         * manual/locale.texi (Yes-or-No Questions): Fix example code.
46864
46865 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
46866
46867         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
46868         for ld.so.
46869
46870 2010-07-27  Andreas Schwab  <schwab@redhat.com>
46871
46872         * manual/memory.texi (Malloc Tunable Parameters): Document
46873         M_PERTURB.
46874
46875 2010-07-26  Roland McGrath  <roland@redhat.com>
46876
46877         [BZ #11840]
46878         * configure.in (-fgnu89-inline check): Set and substitute
46879         gnu89_inline, not libc_cv_gnu89_inline.
46880         * configure: Regenerated.
46881         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
46882
46883 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
46884
46885         * string/test-strnlen.c: New file.
46886         * string/Makefile (strop-tests): Add strnlen.
46887         * string/tester.c (test_strnlen): Add a few more test cases.
46888         * string/tst-strlen.c: Better error reporting.
46889
46890         * sysdeps/x86_64/strnlen.S: New file.
46891
46892 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
46893
46894         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
46895         lower-latency instructions.
46896
46897 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
46898
46899         * string/test-strcasestr.c: New file.
46900         * string/test-strstr.c: New file.
46901         * string/Makefile (strop-tests): Add strstr and strcasestr.
46902         * string/str-two-way.h: Don't undefine MAX.
46903         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
46904
46905 2010-07-21  Andreas Schwab  <schwab@redhat.com>
46906
46907         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46908         strcasestr-nonascii.
46909         (CFLAGS-strcasestr-nonascii.c): Define.
46910         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
46911         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
46912         Remove unused attribute.
46913
46914 2010-07-20  Roland McGrath  <roland@redhat.com>
46915
46916         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
46917         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
46918         ld.so.cache was broken.  With it, there is no way to disable dsocaps
46919         like LD_HWCAP_MASK can disable hwcaps.
46920
46921 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46922
46923         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
46924
46925 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
46926
46927         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
46928         call in strcasestr.
46929         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
46930         __strcasestr_sse42_nonascii.
46931         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
46932         strcasestr-nonascii.c.
46933         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
46934
46935 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
46936
46937         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
46938         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
46939         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
46940         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
46941
46942 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
46943
46944         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
46945         fcntl.
46946
46947 2010-07-06  Andreas Schwab  <schwab@redhat.com>
46948
46949         [BZ #11577]
46950         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
46951         dl_signal_cerror.
46952
46953 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
46954
46955         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
46956         _PC_PIPE_BUF using F_GETPIPE_SZ.
46957
46958 2010-07-05  Roland McGrath  <roland@redhat.com>
46959
46960         * manual/arith.texi (Rounding Functions): Fix rint description
46961         implicit in round description.
46962
46963 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
46964
46965         * elf/Makefile: Fix linking for a few tests to make recent linker
46966         happy.
46967
46968 2010-06-30  Andreas Schwab  <schwab@redhat.com>
46969
46970         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
46971         $(common-objpfx)libc_nonshared.a.
46972
46973 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
46974
46975         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
46976         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
46977         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46978         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46979         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
46980         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
46981         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46982         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
46984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
46985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
46986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
46988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
46990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
46991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
46992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
46993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
46995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
46997         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
46998         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
46999         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
47000         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
47001         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
47002         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
47003         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
47004         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
47005         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
47006         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
47007         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
47008         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
47009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
47010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
47011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
47012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
47013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
47014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
47015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
47016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
47017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
47018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
47019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
47020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
47021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
47022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
47023
47024 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
47025
47026         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
47027         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
47028         * string/memmove.c (memmove): Renamed to ...
47029         (MEMMOVE): ...this.  Default to memmove.
47030         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
47031         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
47032         (END_CHK): Define.
47033         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47034         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
47035         mempcpy-ssse3-back memmove-ssse3-back.
47036         * sysdeps/x86_64/multiarch/bcopy.S: New file .
47037         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
47038         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
47039         * sysdeps/x86_64/multiarch/memcpy.S: New file.
47040         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
47041         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
47042         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
47043         * sysdeps/x86_64/multiarch/memmove.c: New file.
47044         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
47045         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
47046         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
47047         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
47048         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
47049         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
47050         Define.
47051         (index_Fast_Copy_Backward): Define.
47052         (HAS_ARCH_FEATURE): Define.
47053         (HAS_FAST_REP_STRING): Define.
47054         (HAS_FAST_COPY_BACKWARD): Define.
47055
47056 2010-06-21  Andreas Schwab  <schwab@redhat.com>
47057
47058         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47059         Restore proper fallback handling.
47060
47061 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
47062
47063         [BZ #11701]
47064         * posix/group_member.c (__group_member): Correct checking loop.
47065
47066         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
47067         OOM in getpwuid_r correctly.  Return error number when the caller
47068         should return, otherwise -1.
47069         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
47070         call returning > 0 value.
47071         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
47072
47073 2010-06-07  Andreas Schwab  <schwab@redhat.com>
47074
47075         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
47076         libc_nonshared.a from targets in modules-names.
47077
47078 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
47079
47080         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
47081         requires it.
47082
47083 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
47084
47085         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
47086         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
47087         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
47088         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
47089
47090 2010-06-02  Andreas Schwab  <schwab@redhat.com>
47091
47092         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
47093
47094 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
47095
47096         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
47097         and F_GETPIPE_SZ.
47098         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
47099         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
47100         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
47101         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
47102         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
47103         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
47104
47105 2010-06-14  Roland McGrath  <roland@redhat.com>
47106
47107         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
47108
47109 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
47110
47111         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
47112         __REDIRECT followed by __THROW.
47113         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
47114         * posix/getopt.h (getopt): Likewise.
47115
47116 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47117
47118         * hurd/lookup-at.c (__file_name_lookup_at): Accept
47119         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
47120         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
47121         in AT_FLAGS.
47122         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
47123         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
47124
47125 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
47126
47127         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
47128
47129 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
47130
47131         [BZ #11640]
47132         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47133         Properly check family and model.
47134
47135 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
47136
47137         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
47138
47139 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
47140
47141         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
47142
47143 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
47144
47145         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
47146         symbol reference.
47147
47148 2010-05-19  Andreas Schwab  <schwab@redhat.com>
47149
47150         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
47151         symbol reference.
47152
47153 2010-05-21  Andreas Schwab  <schwab@redhat.com>
47154
47155         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
47156         and internal_recvmmsg.
47157         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
47158         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
47159         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
47160         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
47161
47162         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
47163         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
47164         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
47165
47166 2010-05-20  Andreas Schwab  <schwab@redhat.com>
47167
47168         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
47169
47170 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
47171
47172         POWER7 optimizations.
47173         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
47174         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
47175
47176 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
47177
47178         * version.h: Update for 2.13 development version.
47179
47180 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
47181
47182         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
47183         exceptions.  Return 0.
47184
47185 2010-05-07  Roland McGrath  <roland@redhat.com>
47186
47187         * elf/ldconfig.c (main): Add a const.
47188
47189 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
47190
47191         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
47192         (args_options): Add no-idn option.
47193         (ahosts_keys_int): Add idn_flags to ai_flags.
47194         (parse_option): Handle 'i' option to clear idn_flags.
47195
47196         * malloc/malloc.c (_int_free): Possible race in the most recently
47197         added check.  Only act on the data if no current modification
47198         happened.
47199
47200 See ChangeLog.17 for earlier changes.