Add missing #include in get-rounding-mode.h
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2014-06-23  Roland McGrath  <roland@hack.frob.com>
2
3         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
4         using abort.
5
6         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
7         Remove unused variable ST.
8
9 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
10
11         [BZ #16354]
12         [BZ #17061]
13         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
14         small arguments before calling __expm1.
15         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
16         small arguments before calling __expm1f.
17         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
18         small arguments before calling __expm1l.
19         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
20         Likewise.
21         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
22         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
23         spurious underflow for some cosh tests.
24         * math/auto-libm-test-out: Regenerated.
25         * sysdeps/i386/fpu/libm-test-ulps: Update.
26
27         [BZ #17050]
28         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29         (__ieee754_y1): Set errno if return value overflows.
30         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
31         (__ieee754_y1f): Set errno if return value overflows.
32         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
33         (__ieee754_y1l): Set errno if return value overflows.
34         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
35         (__ieee754_y1l): Set errno if return value overflows.
36         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
37         * math/auto-libm-test-out: Regenerated.
38
39         * math/gen-auto-libm-tests.c: Document use of
40         ignore-zero-inf-sign.
41         (input_flag_type): Add value flag_ignore_zero_inf_sign.
42         (input_flags): Add ignore-zero-inf-sign.
43         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
44         * math/gen-libm-test.pl (generate_testfile): Handle
45         ignore-zero-inf-sign.
46         * math/auto-libm-test-in: Mark some cpow tests with
47         ignore-zero-inf-sign and some with xfail-rounding.
48         * math/auto-libm-test-out: Regenerated.
49         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
50         * sysdeps/i386/fpu/libm-test-ulps: Update.
51         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52
53         [BZ #16315]
54         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
55         overflowing or underflowing operations take place with sign of
56         result.
57         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
58         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
59         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
60         (__ieee754_pow): Recompute overflowing and underflowing results in
61         original rounding mode.
62         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
63         (__powl_helper): Allow negative argument X and scale negated value
64         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
65         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
66         overflowing or underflowing operations take place with sign of
67         result.
68         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
69         Include <math.h>.
70         * math/auto-libm-test-in: Add more tests of pow.
71         * math/auto-libm-test-out: Regenerated.
72         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
73         (pow_tonearest_test_data): Remove.
74         (pow_test_tonearest): Likewise.
75         (pow_towardzero_test_data): Likewise.
76         (pow_test_towardzero): Likewise.
77         (pow_downward_test_data): Likewise.
78         (pow_test_downward): Likewise.
79         (pow_upward_test_data): Likewise.
80         (pow_test_upward): Likewise.
81         (main): Don't call removed functions.
82         * sysdeps/i386/fpu/libm-test-ulps: Update.
83         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
84
85 2014-06-23  Roland McGrath  <roland@hack.frob.com>
86
87         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
88         Moved ...
89         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
90         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
91         Moved ...
92         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
93         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
94         Moved ...
95         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
96         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
97         Moved ...
98         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
99         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
100         File removed.
101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
102         File removed.
103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
104         File removed.
105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
106         File removed.
107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
108         File removed.
109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
110         File removed.
111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
112         File removed.
113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
114         File removed.
115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
116         File removed.
117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
118         File removed.
119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
120         File removed.
121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
122         File removed.
123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
124         Moved ...
125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
127         Moved ...
128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
129         ... here.
130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
131         Moved ...
132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
134         Moved ...
135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
137         Moved ...
138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
140         Moved ...
141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
143         Moved ...
144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
146         Moved ...
147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
149         Moved ...
150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
153         ... here.
154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
155         Moved ...
156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
158         Moved ...
159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
160         ... here.
161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
162         Moved ...
163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
164         ... here.
165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
166         Moved ...
167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
168         ... here.
169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
170         Moved ...
171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
173         Moved ...
174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
178         Moved ...
179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
180         ... here.
181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
182         Moved ...
183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
184         ... here.
185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
186         Moved ...
187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
189         Moved ...
190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
192         Moved ...
193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
195         Moved ...
196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
198         Moved ...
199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
200         ... here.
201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
202         Moved ...
203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
205         Moved ...
206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
208         Moved ...
209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
211         Moved ...
212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
216         Moved ...
217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
219         Moved ...
220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
222         Moved ...
223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
224         ... here.
225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
226         Moved ...
227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
228         ... here.
229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
230         Moved ...
231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
232         ... here.
233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
234         Moved ...
235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
237         Moved ...
238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
240         Moved ...
241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
243         Moved ...
244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
245         ... here.
246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
247         Moved ...
248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
249         ... here.
250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
251         Moved ...
252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
253         ... here.
254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
255         Moved ...
256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
258         Moved ...
259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
260
261 2014-06-23  Will Newton  <will.newton@linaro.org>
262             Wilco  <wdijkstr@arm.com>
263
264         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
265         implementation.  Include get-rounding-mode.h.
266         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
267         [!libc_feholdsetround_noex_ctx]: Define
268         libc_feholdsetround_noex_ctx.
269         [!libc_feholdsetround_noexf_ctx]: Define
270         libc_feholdsetround_noexf_ctx.
271         [!libc_feholdsetround_noexl_ctx]: Define
272         libc_feholdsetround_noexl_ctx.
273         (libc_feholdsetround_ctx): New function.
274         (libc_feresetround_ctx): New function.
275         (libc_feholdsetround_noex_ctx): New function.
276         (libc_feresetround_noex_ctx): New function.
277
278 2014-06-23  Roland McGrath  <roland@hack.frob.com>
279
280         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
281         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
282         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
283         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
284         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
285         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
286
287         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
288         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
289         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
290         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
291         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
292         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
293         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
294         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
295         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
296         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
297         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
298         Moved ...
299         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
300         ... here.
301         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
302         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
303         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
304         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
305         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
306         Moved ...
307         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
308         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
309         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
310         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
311         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
312         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
313         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
314         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
315         Moved ...
316         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
317         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
318         Moved ...
319         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
320         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
321         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
322         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
323         Moved ...
324         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
325         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
326         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
327         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
328         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
329         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
330         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
331         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
332         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
333         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
334         Moved ...
335         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
336         ... here.
337         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
338         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
339         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
340         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
341         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
342         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
343         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
344         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
345         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
346         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
347         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
348         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
349         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
350         Moved ...
351         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
352         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
353         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
354         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
355         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
356         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
357         Moved ...
358         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
359         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
360         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
361         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
362         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
363
364         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
365         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
366         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
367         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
368         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
369         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
370         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
371         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
372         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
373         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
374         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
375         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
376         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
377         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
378         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
379         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
380         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
381         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
382         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
383         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
384         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
385         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
386         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
387         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
388         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
389         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
390         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
391         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
392
393 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
394
395         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
396         (FALLOC_FL_COLLAPSE_RANGE): New macro.
397         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
398         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
399         (IPV6_PMTUDISC_INTERFACE): Likewise.
400         (IPV6_PMTUDISC_OMIT): Likewise.
401
402 2014-06-23  Andreas Schwab  <schwab@suse.de>
403
404         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
405         Remove unused errout label.
406
407 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
408
409         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
410         macro: hardware supports Vector Crypto instructions.
411
412 2014-06-23  Will Newton  <will.newton@linaro.org>
413
414         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
415         rather than __builtin_expect.
416
417         * elf/dl-lookup.c (undefined_msg): Remove variable.
418         (_dl_lookup_symbol_x): Replace undefined_msg with string
419         literal.
420
421         * elf/dl-lookup.c (do_lookup_unique): New function.
422         (do_lookup_x): Move STB_GNU_UNIQUE handling code
423         to a separate function.
424
425 2014-06-23  Andreas Schwab  <schwab@suse.de>
426
427         [BZ #17079]
428         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
429         before reading the next line.
430
431 2014-06-23  Will Newton  <will.newton@linaro.org>
432
433         * test-skeleton.c (signal_handler): Use printf and %m
434         rather than perror.  Use printf rather than fprintf to
435         stderr.  Use puts rather than fputs to stderr.
436         (main): Likewise.
437
438 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
439
440         * nscd/nscd.c (thread_info_t): Remove typedef.
441         (thread_info): Remove variable.
442
443 2014-06-21  Allan McRae  <allan@archlinux.org>
444
445         * NEWS: Mention CVE-2014-4043.
446
447 2014-06-20  Roland McGrath  <roland@hack.frob.com>
448
449         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
450         * nptl/smp.h: ... here.
451
452         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
453
454         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
455         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
456         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
457         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
458
459         * nptl/allocatestack.c: Include <stack-aliasing.h>.
460         * nptl/stack-aliasing.h: New file.
461         * sysdeps/i386/i686/stack-aliasing.h: New file.
462         * sysdeps/i386/i686/nptl/Makefile: File removed.
463         * sysdeps/x86_64/stack-aliasing.h: New file.
464         * sysdeps/x86_64/nptl/Makefile
465         (CFLAGS-pthread_create.c): Variable removed.
466
467         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
468         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
469         old file.
470         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
471         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
472         old file.
473
474 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
475
476         * sysdeps/unix/sysv/linux/arm/kernel-features.h
477         (__ASSUME_SIGFRAME_V2): Remove macro.
478         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
479         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
480         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
481         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
482         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
483         Declare as function.  Remove conditional macro definitions.
484         (__default_rt_sa_restorer): Likewise.
485         (__default_sa_restorer_v1): Remove declaration.
486         (__default_sa_restorer_v2): Likewise.
487         (__default_rt_sa_restorer_v1): Likewise.
488         (__default_rt_sa_restorer_v2): Likewise.
489         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
490         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
491         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
492
493 2014-06-20  Roland McGrath  <roland@hack.frob.com>
494
495         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
496         (libpthread-routines): Add sysdep.
497         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
498         * sysdeps/unix/sysv/linux/sparc/Versions
499         (libpthread: GLIBC_2.3.3): New version set.
500         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
501         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
502         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
503         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
504         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
505         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
506         Moved ...
507         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
508         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
509         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
510         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
511         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
512         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
513         * sysdeps/sparc/nptl/sem_init.c: ... here.
514         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
515         * sysdeps/sparc/nptl/sem_post.c: ... here.
516         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
517         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
518         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
519         * sysdeps/sparc/nptl/sem_wait.c: ... here.
520         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
521         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
522         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
523         (libpthread-routines): Add cpu_relax.
524         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
525         File removed.
526         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
527         (librt: GLIBC_2.3.3): New version set.
528         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
529         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
530         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
531         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
532         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
533         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
534         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
535         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
536         Moved ...
537         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
538         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
539         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
540         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
541         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
542         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
543         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
544         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
545         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
546         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
547         Moved ...
548         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
549         Update #include.
550         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
551         Moved ...
552         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
553         Update #include.
554         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
555         Moved ...
556         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
557         Update #include.
558         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
559         Moved ...
560         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
561         Update #include.
562         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
563         Moved ...
564         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
565         Update #include.
566         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
567         Moved ...
568         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
569         Update #include.
570         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
571         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
572         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
573         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
574         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
575         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
576         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
577         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
578         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
579         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
580         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
581         Moved ...
582         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
583         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
584         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
585         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
586         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
587
588 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
589
590         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
591         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
592         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
593         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
594         * nscd/nscd.c: Likewise.
595         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
596         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
597         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
598         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
599
600         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
601         <kernel-features.h>.
602         (init_mq_netlink): Remove conditional have_sock_cloexec
603         definitions.  Remove code conditional on have_sock_cloexec < 0.
604         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
605         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
606         * sysdeps/unix/sysv/linux/opensock.c: Do not include
607         <kernel-features.h>.
608         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
609         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
610
611 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
612
613         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
614         Add tests for memset_chk and memset.
615
616         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
617         with AVX2_Usable.
618
619 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
620
621         [BZ #16046]
622         * elf/tst-dl-iter-static.c: New file.
623         * elf/Makefile (tests-static): Add tst-dl-iter-static.
624
625         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
626         error.
627
628 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
629
630         * sysdeps/unix/sysv/linux/kernel-features.h
631         (__ASSUME_F_GETOWN_EX): Remove macro.
632         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
633         <kernel-features.h>.
634         (miss_F_GETOWN_EX): Remove variable or macro.
635         (do_fcntl): Do not check miss_F_GETOWN_EX.
636         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
637
638         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
639         Remove macro.
640         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
641         [!__ASSUME_AT_RANDOM]: Remove conditional code.
642         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
643
644         * sysdeps/unix/sysv/linux/kernel-features.h
645         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
646         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
647         [ADJ_OFFSET_SS_READ]: Make code unconditional.
648         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
649
650 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
651
652         [BZ #17075]
653         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
654         Fix calculation of the symbol's value.
655         * sysdeps/arm/tst-armtlsdescloc.c: New file.
656         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
657         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
658         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
659         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
660         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
661         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
662         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
663         (modules-names): Add `tst-armtlsdescmod',
664         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
665         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
666         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
667         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
668         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
669         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
670         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
671         ($(objpfx)tst-armtlsdescloc): New dependency.
672         ($(objpfx)tst-armtlsdescextnow): Likewise.
673         ($(objpfx)tst-armtlsdescextlazy): Likewise.
674         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
675         TLS scheme support.
676         * sysdeps/arm/configure: Regenerate.
677
678 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
679
680         * include/fcntl.h (__atfct_seterrno): Remove prototype.
681         (__atfct_seterrno_2): Likewise.
682         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
683         <kernel-features.h>.
684         (__ASSUME_ATFCTS): Do not undefine and redefine.
685         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
686         (__have_atfcts): Remove conditional definition.
687         (__fxstatat([__NR_fstatat64]: Make code unconditional.
688         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
689         unreachable if [__ASSUME_ATFCTS].
690         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
691         not undefine and redefine.
692         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
693         <kernel-features.h>.
694         (faccessat) [__NR_faccessat]: Make code unconditional.
695         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
696         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
697         <kernel-features.h>.
698         (fchmodat) [__NR_fchmodat]: Make code unconditional.
699         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
700         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
701         <kernel-features.h>.
702         (fchownat) [__NR_fchownat]: Make code unconditional.
703         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
704         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
705         <kernel-features.h>.
706         (futimesat) [__NR_futimesat]: Make code unconditional.
707         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
708         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
709         <kernel-features.h>.
710         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
711         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
712         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
713         <kernel-features.h>.
714         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
715         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
716         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
717         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
718         <kernel-features.h>.
719         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
720         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
721         * sysdeps/unix/sysv/linux/linkat.c: Do not include
722         <kernel-features.h>.
723         (linkat) [__NR_linkat]: Make code unconditional.
724         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
725         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
726         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
727         <kernel-features.h>.
728         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
729         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
730         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
731         <kernel-features.h>.
732         (mkdirat) [__NR_mkdirat]: Make code unconditional.
733         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
734         * sysdeps/unix/sysv/linux/openat.c: Do not include
735         <kernel-features.h>.
736         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
737         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
738         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
739         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
740         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
741         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
742         <kernel-features.h>.
743         (readlinkat) [__NR_readlinkat]: Make code unconditional.
744         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
745         result of INLINE_SYSCALL directly, not via int variable.
746         * sysdeps/unix/sysv/linux/renameat.c: Do not include
747         <kernel-features.h>.
748         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
749         (renameat) [__NR_renameat]: Make code unconditional.
750         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
751         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
752         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
753         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
754         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
755         (__ASSUME_ATFCTS): Do not undefine and redefine.
756         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
757         <kernel-features.h>.
758         (symlinkat) [__NR_symlinkat]: Make code unconditional.
759         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
760         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
761         <kernel-features.h>.
762         (unlinkat) [__NR_unlinkat]: Make code unconditional.
763         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
764         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
765         (__ASSUME_ATFCTS): Do not undefine and redefine.
766         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
767         <kernel-features.h>.
768         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
769         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
770         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
771         <kernel-features.h>.
772         (__xmknodat) [__NR_mknodat]: Make code unconditional.
773         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
774
775 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
776
777         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
778
779 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
780
781         [BZ #17069]
782         * posix/regcomp.c (parse_reg_exp): Deallocate partially
783         constructed tree before returning error.
784         * posix/bug-regexp36.c: Expand test case.
785
786 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
787
788         [BZ #6803]
789         * math/libm-test.inc (scalbln_test_date):
790         Add errno expectations.
791         * math/w_scalblnf.c: New File.
792         Add wrapper which checks for setting errno to ERANGE.
793         Add weak_alias for corresponding scalbln function.
794         * math/w_scalbln.c: Likewise.
795         * math/w_scalblnl.c: Likewise.
796         * math/Makefile (libm-calls): Add w_scalbln.
797         * sysdeps/ieee754/flt-32/s_scalblnf.c:
798         Remove weak_alias for corresponding scalbln function.
799         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
800         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
801         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
802         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
803         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
804         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
805         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
806         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
807         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
808         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
809         Remove long_double_symbol for scalblnl function in libm, libc.
810         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
811         Add wrapper which checks for setting errno to ERANGE.
812         Add long_double_symbol for scalblnl function in libm, libc.
813         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
814         Remove long_double_symbol for scalblnl in libm.
815         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
816         Add wrapper which checks for setting errno to ERANGE.
817         Add long_double_symbol for scalblnl function in libm.
818         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
819         Do not use wrapper because of own implementation.
820
821 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
822
823         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
824         3 bytes for __pad1 for x32.
825         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
826
827 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
828             H.J. Lu  <hongjiu.lu@intel.com>
829
830         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
831         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
832         * sysdeps/x86_64/multiarch/memset.S: Likewise.
833         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
834         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
835
836 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
837
838         [BZ #17069]
839         * posix/regcomp.c (parse_expression): Deallocate partially
840         constructed tree before returning error.
841         * posix/Makefile.c (tests): Add bug-regex36.
842         (generated): Add bug-regex36.mtrace.
843         (tests-special): Add $(objpfx)bug-regex36-mem.out
844         (bug-regex36-ENV): New variable.
845         ($(objpfx)bug-regex36-mem.out): New rule.
846         * posix/bug-regex36.c: New file.
847
848 2014-06-19  Will Newton  <will.newton@linaro.org>
849
850         * malloc/malloc.c (systrim): If extra is zero then return
851         early.
852
853 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
854
855         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
856
857 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
858
859         * sysdeps/aarch64/strchr.S: New file.
860
861 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
862
863         [BZ #17022]
864         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
865         from arguments -2 or below.
866         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
867         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
868
869 2014-06-18  Andreas Schwab  <schwab@suse.de>
870
871         [BZ #17062]
872         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
873         of a bracket expr not to run off the end of the string.
874         * posix/Makefile (tests): Add tst-fnmatch3.
875         * posix/tst-fnmatch3.c: New file.
876
877 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
878
879         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
880         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
881         [$(cross-compiling) = no]: Likewise.
882         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
883         [$(cross-compiling) = no]: Likewise.
884
885 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
886
887         [BZ #17031]
888         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
889         double, adjusted for any remainder from the high double.
890         * math/libm-test.inc (nearbyint): Add tests.
891         (rint): Likewise.
892
893 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
894
895         * nptl/sysdeps/powerpc/Makefile: Moved ...
896         * sysdeps/powerpc/nptl/Makefile: ... here.
897         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
898         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
899         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
900         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
901         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
902         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
903         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
904         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
905         * nptl/sysdeps/powerpc/tls.h: Moved ...
906         * sysdeps/powerpc/nptl/tls.h: ... here.
907
908 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
909
910         [BZ #16681]
911         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
912         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
913         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
914         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
915         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
916         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
917         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
918         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
919         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
920
921 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
922
923         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
924
925 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
926
927         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
928         defined operator.
929
930         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
931         $TIMEOUTFACTOR.
932
933 2014-06-16  Florian Weimer  <fweimer@redhat.com>
934
935         [BZ #17058]
936         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
937         non-executed part of the test.
938
939 2014-06-16  Andreas Schwab  <schwab@suse.de>
940
941         * string/bits/string2.h (strdup, strndup): Update feature guard.
942
943 2014-06-14  David S. Miller  <davem@davemloft.net>
944
945         * sysdeps/sparc/fpu/libm-test-ulps: Update.
946
947 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
948
949         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
950         that was previously under [RESET_PID].
951         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
952
953         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
954         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
955         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
956         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
957         (__libc_vfork): New strong alias.
958         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
959
960 2014-06-14 Andi Kleen  <ak@linux.intel.com>
961
962         * sysdeps/generic/elide.h: New file.
963
964 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
965
966         * Makefile (installed-headers): Adjust path of pthread.h header.
967
968 2014-06-13  Roland McGrath  <roland@hack.frob.com>
969
970         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
971         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
972         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
973         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
974
975         * nptl/sysdeps/s390/Makefile: Moved ...
976         * sysdeps/s390/nptl/Makefile: ... here.
977         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
978         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
979         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
980         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
981         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
982         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
983         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
984         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
985         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
986         * sysdeps/s390/nptl/pthreaddef.h: ... here.
987         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
988         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
989         * nptl/sysdeps/s390/tls.h: Moved ...
990         * sysdeps/s390/nptl/tls.h: ... here.
991
992         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
993         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
994
995 2014-06-13  David S. Miller  <davem@davemloft.net>
996
997         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
998         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
999         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
1000         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
1001         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
1002         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
1003         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
1004         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
1005         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
1006         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
1007         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1008         Remove RESET_PID cpp guards.
1009         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1010         Remove RESET_PID cpp guards.
1011         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
1012
1013 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
1014
1015         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
1016         __sp to uintptr_t.
1017
1018 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1019
1020         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
1021         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
1022         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
1023         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
1024         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
1025         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
1026         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
1027         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
1028         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
1029         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
1030         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
1031         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
1032         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
1033         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
1034         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
1035         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
1036         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
1037         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
1038         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
1039         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
1040
1041         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
1042         (pthread_rwlock_rdlock): Add elision.
1043         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
1044         (pthread_rwlock_wrlock): Add elision.
1045         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
1046         (pthread_rwlock_trywrlock): Add elision.
1047         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
1048         (pthread_rwlock_tryrdlock): Add elision.
1049         * nptl/pthread_rwlock_unlock.c: Include elide.h.
1050         (pthread_rwlock_tryrdlock): Add elision unlock.
1051         * nptl/sysdeps/pthread/pthread.h:
1052         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
1053         (PTHREAD_RWLOCK_INITIALIZER,
1054         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
1055         Handle new elision field.
1056         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
1057         * sysdeps/arm/nptl/bits/pthreadtypes.h
1058         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1059         * sysdeps/sh/nptl/bits/pthreadtypes.h
1060         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1061         * sysdeps/tile/nptl/bits/pthreadtypes.h
1062         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1063         * sysdeps/a/nptl/bits/pthreadtypes.h
1064         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1065         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
1066         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1067         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
1068         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1069         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
1070         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1071         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
1072         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1073         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
1074         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1075         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
1076         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1077         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
1078         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1079         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
1080         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1081         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
1082         (elision_init): Set try_xbegin to zero when no RTM.
1083         * sysdeps/x86/nptl/bits/pthreadtypes.h
1084         (pthread_rwlock_t): Change __pad1 to __rwelision.
1085         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1086
1087 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1088
1089         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
1090         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
1091         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
1092         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
1093
1094 2014-06-13  Meador Inge  <meadori@codesourcery.com>
1095
1096         [BZ #16996]
1097         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
1098         that the cached result has been set before returning it.
1099
1100 2014-06-12  Roland McGrath  <roland@hack.frob.com>
1101
1102         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
1103         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
1104         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
1105         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
1106         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
1107         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
1108
1109         * nptl/sysdeps/sparc/Makefile: Moved ...
1110         * sysdeps/sparc/nptl/Makefile: ... here.
1111         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
1112         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
1113         * nptl/sysdeps/sparc/tls.h: Moved ...
1114         * sysdeps/sparc/nptl/tls.h: ... here.
1115         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
1116         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
1117         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
1118         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
1119         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
1120         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
1121         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
1122         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
1123         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
1124         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
1125         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
1126         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
1127         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
1128         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
1129         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
1130         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
1131         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
1132         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
1133         Update #include.
1134         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
1135         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
1136         Update #include.
1137         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
1138         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
1139         Update #include.
1140         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
1141         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
1142         Update #include.
1143
1144         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1145
1146         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
1147         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
1148
1149         * sysdeps/pthread/posix-timer.h: Include <list.h>.
1150         (struct list_links): Type removed.
1151         (struct thread_node, struct timer_node): Replace struct list_links
1152         with struct list_head.
1153         (list_unlink_ip): Likewise.
1154         * sysdeps/pthread/timer_routines.c
1155         (timer_free_list, thread_free_list, thread_active_list): Likewise.
1156         (list_append, list_insbefore): Likewise.
1157         (list_init): Function removed.
1158         (thread_init, init_module): Use INIT_LIST_HEAD instead.
1159         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
1160         * sysdeps/pthread/Makefile: ... here, new file.
1161
1162         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
1163         * sysdeps/nptl/Implies: ... here.
1164         * sysdeps/unix/sysv/linux/Implies: Add nptl.
1165         * nptl/sysdeps/pthread/list.h: Moved ...
1166         * include/list.h: ... here.
1167         * nptl/sysdeps/pthread/createthread.c: Moved ...
1168         * nptl/createthread.c: ... here.
1169         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
1170         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
1171         * nptl/pt-longjmp.c: ... here.
1172         * nptl/sysdeps/pthread/Makefile: Moved ...
1173         * sysdeps/nptl/Makefile: ... here.
1174         * nptl/sysdeps/pthread/Subdirs: Moved ...
1175         * sysdeps/nptl/Subdirs: ... here.
1176         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
1177         * sysdeps/nptl/aio_misc.h: ... here.
1178         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
1179         * sysdeps/nptl/bits/libc-lock.h: ... here.
1180         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
1181         * sysdeps/nptl/bits/libc-lockP.h: ... here.
1182         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
1183         * sysdeps/nptl/bits/stdio-lock.h: ... here.
1184         * nptl/sysdeps/pthread/configure: Moved ...
1185         * sysdeps/nptl/configure: ... here.
1186         * nptl/sysdeps/pthread/configure.ac: Moved ...
1187         * sysdeps/nptl/configure.ac: ... here.
1188         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
1189         * sysdeps/nptl/gai_misc.h: ... here.
1190         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
1191         * sysdeps/nptl/librt-cancellation.c: ... here.
1192         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
1193         * sysdeps/nptl/malloc-machine.h: ... here.
1194         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
1195         * sysdeps/nptl/pthread-functions.h: ... here.
1196         * nptl/sysdeps/pthread/pthread.h: Moved ...
1197         * sysdeps/nptl/pthread.h: ... here.
1198         * nptl/sysdeps/pthread/setxid.h: Moved ...
1199         * sysdeps/nptl/setxid.h: ... here.
1200         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
1201         * sysdeps/nptl/sigfillset.c: ... here.
1202         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
1203         * sysdeps/nptl/tcb-offsets.h: ... here.
1204         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
1205         * sysdeps/nptl/tst-mqueue8x.c: ... here.
1206         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
1207         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
1208         * nptl/sysdeps/pthread/allocalim.h: Moved ...
1209         * sysdeps/pthread/allocalim.h: ... here.
1210         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
1211         * sysdeps/pthread/bits/sigthread.h: ... here.
1212         * nptl/sysdeps/pthread/flockfile.c: Moved ...
1213         * sysdeps/pthread/flockfile.c: ... here.
1214         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
1215         * sysdeps/pthread/ftrylockfile.c: ... here.
1216         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
1217         * sysdeps/pthread/funlockfile.c: ... here.
1218         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
1219         * sysdeps/pthread/posix-timer.h: ... here.
1220         * nptl/sysdeps/pthread/timer_create.c: Moved ...
1221         * sysdeps/pthread/timer_create.c: ... here.
1222         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
1223         * sysdeps/pthread/timer_delete.c: ... here.
1224         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
1225         * sysdeps/pthread/timer_getoverr.c: ... here.
1226         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
1227         * sysdeps/pthread/timer_gettime.c: ... here.
1228         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
1229         * sysdeps/pthread/timer_routines.c: ... here.
1230         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
1231         * sysdeps/pthread/timer_settime.c: ... here.
1232         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
1233         * sysdeps/pthread/tst-timer.c: ... here.
1234         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
1235         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
1236
1237         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
1238         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
1239
1240         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
1241         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
1242         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
1243         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
1244         Update #include target.
1245         * nptl/sysdeps/i386/i686/Makefile: Moved ...
1246         * sysdeps/i386/i686/nptl/Makefile: ... here.
1247         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
1248         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
1249         Update #include target.
1250         * nptl/sysdeps/i386/i686/tls.h: Moved ...
1251         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
1252         * nptl/sysdeps/i386/Makefile: Moved ...
1253         * sysdeps/i386/nptl/Makefile: ... here.
1254         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
1255         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
1256         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
1257         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
1258         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
1259         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
1260         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
1261         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
1262         * sysdeps/i386/nptl/pthreaddef.h: ... here.
1263         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
1264         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
1265         * nptl/sysdeps/i386/tls.h: Moved ...
1266         * sysdeps/i386/nptl/tls.h: ... here.
1267
1268         * sysdeps/sh/Makefile [$(subdir) = csu]
1269         (gen-as-const-headers): Add tcb-offsets.sym.
1270         * nptl/sysdeps/sh/Makefile: File removed.
1271         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
1272         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
1273         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
1274         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
1275         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
1276         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
1277         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
1278         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
1279         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
1280         * sysdeps/sh/nptl/pthreaddef.h: ... here.
1281         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
1282         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
1283         * nptl/sysdeps/sh/tls.h: Moved ...
1284         * sysdeps/sh/nptl/tls.h: ... here.
1285         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
1286         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
1287         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
1288         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
1289         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
1290         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
1291         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
1292         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
1293         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
1294         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
1295         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
1296         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
1297         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
1298         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
1299         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
1300         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
1301         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
1302         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
1303         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
1304         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
1305         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
1306         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
1307         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
1308         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
1309         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
1310         Moved ...
1311         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
1312         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
1313         Moved ...
1314         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
1315         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
1316         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
1317         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
1318         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
1319         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
1320         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
1321         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
1322         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
1323         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
1324         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
1325         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
1326         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
1327         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
1328         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
1329         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
1330         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
1331         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
1332         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
1333
1334 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
1335
1336         * posix/spawn_faction_addopen.c: Include string.h.
1337
1338 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1339
1340         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
1341         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
1342         * nptl/sysdeps/x86_64/Makefile: Moved ...
1343         * sysdeps/x86_64/nptl/Makefile: ... here.
1344         * nptl/sysdeps/x86_64/configure: Moved ...
1345         * sysdeps/x86_64/nptl/configure: ... here.
1346         * nptl/sysdeps/x86_64/configure.ac: Moved ...
1347         * sysdeps/x86_64/nptl/configure.ac: ... here.
1348         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
1349         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
1350         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
1351         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
1352         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
1353         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
1354         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
1355         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
1356         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
1357         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
1358         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
1359         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
1360         * nptl/sysdeps/x86_64/tls.h: Moved ...
1361         * sysdeps/x86_64/nptl/tls.h: ... here.
1362         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
1363         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
1364         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
1365         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
1366
1367         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
1368
1369 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1370
1371         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1372
1373 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
1374
1375         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
1376         type.
1377         [POSIX] (off_t): Likewise.
1378         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
1379         [POSIX] (S_ISBLK): Require macro.
1380         [POSIX] (S_ISCHR): Likewise.
1381         [POSIX] (S_ISDIR): Likewise.
1382         [POSIX] (S_ISFIFO): Likewise.
1383         [POSIX] (S_ISREG): Likewise.
1384         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
1385         optional-macro.
1386         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
1387         type.
1388         [POSIX] (time_t): Likewise.
1389         [POSIX] (timer_t): Likewise.
1390
1391 2014-06-11  Florian Weimer  <fweimer@redhat.com>
1392
1393         [BZ #17048]
1394         * posix/spawn_int.h (struct __spawn_action): Make the path string
1395         non-const to support deallocation.
1396         * posix/spawn_faction_addopen.c
1397         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
1398         * posix/spawn_faction_destroy.c
1399         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
1400         path in all spawn_do_open actions.
1401         * posix/tst-spawn.c (do_test): Exercise the copy operation in
1402         posix_spawn_file_actions_addopen.
1403
1404 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
1405
1406         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
1407         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
1408         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
1409         conditional code always true.
1410         (__libc_vfork): New alias.
1411
1412 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1413
1414         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1415         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
1416
1417         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
1418
1419         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1420         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
1421
1422         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1423         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
1424
1425         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1426         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
1427
1428 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1429
1430         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
1431         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
1432         multiarch strcmp for PPC64.
1433         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
1434         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
1435         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
1436         multiarch optimizations.
1437         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1438         (__libc_ifunc_impl_list): Likewise.
1439
1440 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1441
1442         * benchtests/scripts/validate_benchout.py: New script.
1443         * benchtests/Makefile (bench-func): Call it.
1444         * benchtests/scripts/benchout.schema.json: New file.
1445
1446 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
1447
1448         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
1449         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
1450         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
1451         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
1452         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
1453         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
1454         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
1455         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
1456         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
1457         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
1458         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
1459         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
1460         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
1461         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
1462         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
1463         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
1464         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
1465         Moved ...
1466         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
1467         ... here.
1468         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
1469         Moved ...
1470         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
1471         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
1472         Moved ...
1473         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
1474         ... here.
1475         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
1476         Moved ...
1477         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
1478         ... here.
1479         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
1480         Moved ...
1481         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
1482         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
1483         Moved ...
1484         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
1485         ... here.
1486         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
1487         Moved ...
1488         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
1489         ... here.
1490         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
1491         Moved ...
1492         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
1493         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
1494         Moved ...
1495         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
1496         ... here.
1497         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
1498         Moved ...
1499         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
1500         ... here.
1501         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
1502         Moved ...
1503         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
1504         ... here.
1505         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
1506         Moved ...
1507         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
1508         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
1509         Moved ...
1510         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
1511         ... here.
1512         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
1513         Moved ...
1514         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
1515         ... here.
1516         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
1517         Moved ...
1518         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
1519         ... here.
1520         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
1521         Moved ...
1522         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
1523         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
1524         Moved ...
1525         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
1526         ... here.
1527         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
1528         Moved ...
1529         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
1530         ... here.
1531         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
1532         Moved ...
1533         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
1534         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
1535         Moved ...
1536         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
1537         ... here.
1538         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
1539         Moved ...
1540         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
1541         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
1542         Moved ...
1543         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
1544         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
1545         Moved ...
1546         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
1547         ... here.
1548         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
1549         Moved ...
1550         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
1551         ... here.
1552         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
1553         Moved ...
1554         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
1555         ... here.
1556         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
1557         Moved ...
1558         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
1559         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
1560         Moved ...
1561         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
1562         ... here.
1563         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
1564         Moved ...
1565         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
1566         ... here.
1567         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
1568         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
1569         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
1570         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
1571         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
1572         Moved ...
1573         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
1574         ... here.
1575         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
1576         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
1577         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
1578         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
1579         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
1580         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
1581         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
1582         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
1583         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
1584         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
1585         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
1586         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
1587         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
1588         Moved ...
1589         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
1590         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
1591         Moved ...
1592         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
1593         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
1594         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
1595         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
1596         Moved ...
1597         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
1598         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
1599         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
1600         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
1601         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
1602         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
1603         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
1604
1605 2014-06-10  Wilco  <wdijkstr@arm.com>
1606
1607         * math/test-fenv-return.c: New file.
1608         * math/Makefile: Add new test test-fenv-return.
1609
1610 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
1611
1612         [BZ #17042]
1613         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
1614         when x - 1 is zero.
1615         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
1616         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1617         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
1618         0.0L for an argument of 1.0L.
1619         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
1620         Likewise.
1621         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
1622         value when x - 1 is zero.
1623         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
1624         * sysdeps/i386/fpu/libm-test-ulps: Update.
1625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1626
1627 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
1628
1629         [BZ #15119]
1630         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
1631
1632 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1633
1634         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
1635         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
1636
1637 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1638
1639         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1640         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
1641
1642         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1643         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
1644
1645         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1646         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
1647
1648         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1649         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
1650
1651         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
1652         if not already defined.
1653         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
1654         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
1655         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
1656         (TLS_INIT_TP): Use it.
1657         (TLS_DEFINE_INIT_TP): New macro.
1658         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
1659
1660 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
1661
1662         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
1663         constant.
1664         [POSIX] (IXANY): Likewise.
1665         [POSIX] (OLCUC): Likewise.
1666         [POSIX || POSIX2008] (CBAUD): Do not allow.
1667         [POSIX || POSIX2008] (DEFECHO): Likewise.
1668         [POSIX || POSIX2008] (ECHOCTL): Likewise.
1669         [POSIX || POSIX2008] (ECHOKE): Likewise.
1670         [POSIX || POSIX2008] (ECHOPRT): Likewise.
1671         [POSIX || POSIX2008] (EXTA): Likewise.
1672         [POSIX || POSIX2008] (EXTB): Likewise.
1673         [POSIX || POSIX2008] (FLUSHO): Likewise.
1674         [POSIX || POSIX2008] (LOBLK): Likewise.
1675         [POSIX || POSIX2008] (PENDIN): Likewise.
1676         [POSIX || POSIX2008] (SWTCH): Likewise.
1677         [POSIX || POSIX2008] (VDISCARD): Likewise.
1678         [POSIX || POSIX2008] (VDSUSP): Likewise.
1679         [POSIX || POSIX2008] (VLNEXT): Likewise.
1680         [POSIX || POSIX2008] (VREPRINT): Likewise.
1681         [POSIX || POSIX2008] (VSTATUS): Likewise.
1682         [POSIX || POSIX2008] (VWERASE): Likewise.
1683         (B*): Change to B[0123456789]*.
1684         * conform/data/time.h-data [POSIX || UNIX98]
1685         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
1686         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
1687         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
1688         [POSIX] (tm_*): Do not allow.
1689
1690 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
1691
1692         * Makefile (install): Don't set LANGUAGE.
1693         * Makefile.in (install): Likewise.
1694         * assert/Makefile (test-assert-ENV): Remove variable.
1695         (test-assert-perr-ENV): Likewise.
1696         * elf/Makefile (neededtest4-ENV): Likewise.
1697         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1698         [$(cross-compiling) = no]: Don't set LANGUAGE.
1699         * io/ftwtest-sh (LANG): Remove variable.
1700         * libio/Makefile (tst-widetext-ENV): Likewise.
1701         * manual/install.texi (Running make install): Don't refer to
1702         environment settings for make install.
1703         * INSTALL: Regenerated.
1704         * nptl/tst-tls6.sh: Don't set LANG.
1705         * posix/globtest.sh (LANG): Remove variable.
1706         * string/Makefile (tester-ENV): Likewise.
1707         (inl-tester-ENV): Likewise.
1708         (noinl-tester-ENV): Likewise.
1709         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1710         [$(cross-compiling) = no]: Don't set LANGUAGE.
1711         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
1712         without explicit environment settings.
1713
1714 2014-06-06  Roland McGrath  <roland@hack.frob.com>
1715
1716         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
1717         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
1718         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
1719         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
1720
1721 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
1722
1723         * crypt/crypt-private.h [DOS]: Add some includes taken from the
1724         other files in the crypt directory.
1725         * crypt/crypt.c: Remove duplicate includes.
1726         * crypt/crypt-entry.c: Likewise.
1727         * crypt/crypt_util.c: Likewise.
1728
1729 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
1730
1731         * Makeconfig (run-program-env): New variable.
1732         (run-program-prefix-before-env): Likewise.
1733         (run-program-prefix-after-env): Likewise.
1734         (run-program-prefix): Define in terms of new variables.
1735         (built-program-cmd-before-env): New variable.
1736         (built-program-cmd-after-env): Likewise.
1737         (built-program-cmd): Define in terms of new variables.
1738         (test-program-prefix-before-env): New variable.
1739         (test-program-prefix-after-env): Likewise.
1740         (test-program-prefix): Define in terms of new variables.
1741         (test-program-cmd-before-env): New variable.
1742         (test-program-cmd-after-env): Likewise.
1743         (test-program-cmd): Define in terms of new variables.
1744         * Rules (make-test-out): Use $(run-program-env).
1745         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
1746         (help): Do not mention environment variables.  Mention
1747         --timeoutfactor option.
1748         (timeoutfactor): New variable.
1749         (blacklist_exports): Remove function.
1750         (exports): Remove variable.
1751         (command): Do not include ${exports}.
1752         * manual/install.texi (Configuring and compiling): Do not mention
1753         test wrappers preserving environment variables.  Mention that last
1754         assignment to a variable must take precedence.
1755         * INSTALL: Regenerated.
1756         * benchtests/Makefile (run-bench): Use $(run-program-env).
1757         * catgets/Makefile ($(objpfx)test1.cat): Use
1758         $(built-program-cmd-before-env), $(run-program-env) and
1759         $(built-program-cmd-after-env).
1760         ($(objpfx)test2.cat): Do not specify environment variables
1761         explicitly.
1762         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
1763         $(run-program-env) and $(built-program-cmd-after-env).
1764         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
1765         $(run-program-env) and $(test-program-cmd-after-env).
1766         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
1767         explicitly.
1768         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
1769         run_program_env and test_program_cmd_after_env arguments.
1770         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
1771         * elf/tst-pathopt.sh: Use run_program_env argument.
1772         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
1773         $(test-wrapper-env) and $(run-program-env).
1774         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
1775         run_program_env arguments.
1776         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
1777         * intl/Makefile ($(objpfx)tst-gettext.out): Use
1778         $(test-program-prefix-before-env), $(run-program-env) and
1779         $(test-program-prefix-after-env).
1780         ($(objpfx)tst-gettext2.out): Likewise.
1781         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
1782         run_program_env and test_program_prefix_after_env arguments.
1783         * intl/tst-gettext2.sh: Likewise.
1784         * intl/tst-gettext4.sh: Do not set environment variables
1785         explicitly.
1786         * intl/tst-gettext6.sh: Likewise.
1787         * intl/tst-translit.sh: Likewise.
1788         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
1789         $(test-program-prefix-before-env), $(run-program-env) and
1790         $(test-program-prefix-after-env).
1791         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
1792         run_program_env and test_program_prefix_after_env arguments.
1793         * math/Makefile (run-regen-ulps): Use $(run-program-env).
1794         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
1795         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
1796         explicitly with each use of ${test_wrapper_env}.
1797         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
1798         $(test-program-prefix-before-env), $(run-program-env) and
1799         $(test-program-prefix-after-env).
1800         * posix/tst-getconf.sh: Do not set environment variables
1801         explicitly.
1802         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
1803         run_program_env and test_program_prefix_after_env arguments.
1804         * stdio-common/tst-printf.sh: Do not set environment variables
1805         explicitly.
1806         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
1807         $(test-program-prefix-before-env), $(run-program-env) and
1808         $(test-program-prefix-after-env).
1809         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
1810         run_program_env and test_program_prefix_after_env arguments.
1811         Split $test calls into $test_pre and $test.
1812         * timezone/Makefile (build-testdata): Use
1813         $(built-program-cmd-before-env), $(run-program-env) and
1814         $(built-program-cmd-after-env).
1815
1816 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1817
1818         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
1819         strlen for non SHARED builds.
1820
1821 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1822
1823         * nptl/allocatestack.c (check_list): Inlined function...
1824         (__reclaim_stacks): ... here.
1825
1826 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1827
1828         [BZ #15698]
1829         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
1830         memory overrun.
1831
1832 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
1833
1834         * Rules (make-test-out): Include
1835         LOCPATH=$(common-objpfx)localedata in default environment.
1836         * debug/Makefile (tst-chk1-ENV): Remove variable.
1837         (tst-chk2-ENV): Likewise.
1838         (tst-chk3-ENV): Likewise.
1839         (tst-chk4-ENV): Likewise.
1840         (tst-chk5-ENV): Likewise.
1841         (tst-chk6-ENV): Likewise.
1842         (tst-lfschk1-ENV): Likewise.
1843         (tst-lfschk2-ENV): Likewise.
1844         (tst-lfschk3-ENV): Likewise.
1845         (tst-lfschk4-ENV): Likewise.
1846         (tst-lfschk5-ENV): Likewise.
1847         (tst-lfschk6-ENV): Likewise.
1848         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
1849         (tst-iconv7-ENV): Likewise.
1850         * intl/Makefile (LOCPATH-ENV): Likewise.
1851         (tst-codeset-ENV): Likewise.
1852         (tst-gettext3-ENV): Likewise.
1853         (tst-gettext5-ENV): Likewise.
1854         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
1855         (tst-fopenloc-ENV): Likewise.
1856         (tst-fgetws-ENV): Remove variable.
1857         (tst-ungetwc1-ENV): Likewise.
1858         (tst-ungetwc2-ENV): Likewise.
1859         (bug-ungetwc2-ENV): Likewise.
1860         (tst-swscanf-ENV): Likewise.
1861         (bug-ftell-ENV): Likewise.
1862         (tst-fgetwc-ENV): Likewise.
1863         (tst-fseek-ENV): Likewise.
1864         (tst-ftell-partial-wide-ENV): Likewise.
1865         (tst-ftell-active-handler-ENV): Likewise.
1866         (tst-ftell-append-ENV): Likewise.
1867         * posix/Makefile (tst-fnmatch-ENV): Likewise.
1868         (tst-regexloc-ENV): Likewise.
1869         (bug-regex1-ENV): Likewise.
1870         (tst-regex-ENV): Likewise.
1871         (tst-regex2-ENV): Likewise.
1872         (bug-regex5-ENV): Likewise.
1873         (bug-regex6-ENV): Likewise.
1874         (bug-regex17-ENV): Likewise.
1875         (bug-regex18-ENV): Likewise.
1876         (bug-regex19-ENV): Likewise.
1877         (bug-regex20-ENV): Likewise.
1878         (bug-regex22-ENV): Likewise.
1879         (bug-regex23-ENV): Likewise.
1880         (bug-regex25-ENV): Likewise.
1881         (bug-regex26-ENV): Likewise.
1882         (bug-regex30-ENV): Likewise.
1883         (bug-regex32-ENV): Likewise.
1884         (bug-regex33-ENV): Likewise.
1885         (bug-regex34-ENV): Likewise.
1886         (bug-regex35-ENV): Likewise.
1887         (tst-rxspencer-ENV): Likewise.
1888         (tst-rxspencer-no-utf8-ENV): Likewise.
1889         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
1890         (tst-sscanf-ENV): Likewise.
1891         (tst-swprintf-ENV): Likewise.
1892         (tst-swscanf-ENV): Likewise.
1893         (test-vfprintf-ENV): Likewise.
1894         (scanf13-ENV): Likewise.
1895         (bug14-ENV): Likewise.
1896         (tst-grouping-ENV): Likewise.
1897         * stdlib/Makefile (tst-strtod-ENV): Likewise.
1898         (tst-strtod3-ENV): Likewise.
1899         (tst-strtod4-ENV): Likewise.
1900         (tst-strtod5-ENV): Likewise.
1901         (testmb2-ENV): Likewise./
1902         * string/Makefile (tst-strxfrm-ENV): Likewise.
1903         (tst-strxfrm2-ENV): Likewise.
1904         (bug-strcoll1-ENV): Likewise.
1905         (test-strcasecmp-ENV): Likewise.
1906         (test-strncasecmp-ENV): Likewise.
1907         * time/Makefile (tst-strptime-ENV): Likewise.
1908         (tst-ftime_l-ENV): Likewise.
1909         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
1910         (tst-mbrtowc-ENV): Likewise.
1911         (tst-wcrtomb-ENV): Likewise.
1912         (tst-mbrtowc2-ENV): Likewise.
1913         (tst-c16c32-1-ENV): Likewise.
1914         (tst-mbsnrtowcs-ENV): Likewise.
1915
1916 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1917
1918         * manual/resource.texi (How to get information about the memory
1919         subsystem?): Fix typo.
1920         Reported by Peon de la Parra Ivan <peon@keba.com>
1921
1922 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
1923
1924         [BZ #16882]
1925         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
1926         (pthread_spin_lock): Branch out of spin loop to proper location.
1927         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
1928         (pthread_spin_lock): Likewise.
1929
1930         * nptl/tst-spin4.c: New test.
1931         * nptl/Makefile (tests): Add tst-spin4.
1932
1933 2014-06-03  Andreas Schwab  <schwab@suse.de>
1934
1935         [BZ #15946]
1936         * resolv/res_send.c (send_dg): Reload file descriptor after
1937         calling reopen.
1938
1939 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
1940
1941         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1942
1943 2014-06-03  Richard Henderson  <rth@redhat.com>
1944
1945         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
1946         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
1947         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
1948         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
1949         in the SAVE_PID block.
1950         (__libc_vfork): New alias.
1951         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
1952
1953         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
1954         child in registers, not on the stack.  Remove RESET_PID conditionals.
1955         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
1956
1957 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1958
1959         * sysdeps/aarch64/libm-test-ulps: Regenerate.
1960
1961 2014-06-03  Wilco  <wdijkstr@arm.com>
1962
1963         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
1964         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
1965         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1966         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
1967         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
1968         Likewise.
1969
1970 2014-06-03  Wilco  <wdijkstr@arm.com>
1971
1972         * sysdeps/aarch64/fpu/math_private.h
1973         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
1974         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
1975         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
1976         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1977         Fix declarations.
1978
1979 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
1980
1981         * crypt/crypt-private.h: Include ufc-crypt.h.
1982         (__b64_from_24bit): Declare extern.
1983         * crypt/crypt_util.c(__b64_from_24bit): New function.
1984         (b64t): New static const variable.
1985         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
1986         (b64t): Remove variable.
1987         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
1988         * crypt/sha256-crypt.c: Include crypt-private.h.
1989         (b64t): Remove variable.
1990         (__sha256_crypt_r): Remove b64_from_24bit and replace
1991         with __b64_from_24bit.
1992         * crypt/sha512-crypt.c: Likewise.
1993
1994 2014-06-02  Roland McGrath  <roland@hack.frob.com>
1995
1996         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
1997         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
1998         Label the code __libc_vfork rather than __vfork.
1999         [!NOT_IN_libc] (vfork): Define as weak alias.
2000         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
2001         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
2002         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
2003
2004 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2005
2006         * malloc/malloc.c (malloc_info): Fix format specifier for
2007         n_mmaps.
2008
2009 2014-06-02  Wilco  <wdijkstr@arm.com>
2010
2011         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
2012         FPCR write.
2013
2014 2014-06-02  Wilco  <wdijkstr@arm.com>
2015
2016         [BZ #17009]
2017         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
2018         Rewrite to reduce FPCR/FPSR accesses.
2019
2020 2014-06-01  David S. Miller  <davem@davemloft.net>
2021
2022         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2023
2024 2014-05-31  David S. Miller  <davem@davemloft.net>
2025
2026         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
2027         to occur in round to nearest mode when |x| >= 2.0
2028
2029 2014-05-30  Richard Henderson  <rth@twiddle.net>
2030
2031         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
2032         (PSEUDO_RET_NOERRNO): Remove.
2033         (ret): Don't redefine.
2034         (ret_NOERRNO): Define in terms of ret.
2035         (ret_ERRVAL): Likewise.
2036
2037         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
2038         use of PSEUDO_RET; perform the error check directly.
2039
2040 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
2041
2042         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
2043         with __int128_t.
2044
2045 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2046
2047         * malloc/malloc (malloc_info): Fix formatting.
2048
2049 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2050             Roland McGrath  <roland@hack.frob.com>
2051
2052         * malloc/malloc (malloc_info): Also print mmapped statistics.
2053
2054 2014-05-30  Roland McGrath  <roland@hack.frob.com>
2055
2056         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
2057         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
2058
2059 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
2060
2061         * malloc/malloc.c (malloc_info): Inline mi_arena.
2062
2063 2014-05-29  Richard Henderson  <rth@twiddle.net>
2064
2065         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
2066         Remove comma before expanding ASM_ARGS_##nr.
2067         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
2068         Make _x0 a strict output; make _x8 a strict input; adjust expansion
2069         of ASM_ARGS_##nr.
2070         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
2071         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
2072         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
2073         (ASM_ARGS_1): Add leading comma.
2074
2075         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
2076         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
2077         to __errno_location.
2078         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
2079         Remove the expected plt for __errno_location.
2080
2081         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2082         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
2083         call to __read_tp.
2084
2085         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2086         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
2087         it and break it down.
2088         (DOCARGS_0, DOCARGS_1): Do nothing.
2089         (DOCARGS_2): Update to store into the new stack frame.
2090         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
2091         (UNDOCARGS_1): Update to restore from the new stack frame.
2092         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
2093         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
2094
2095         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2096         (SINGLE_THREAD_P): New parameter for result regno.
2097         (PSEUDO): Update to match; use cbz instead of beq.
2098
2099         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2100         Use ENTRY to define the _nocancel entry point.  Share the syscall
2101         and syscall error check paths with the cancel path.
2102         (PSEUDO_END): New.
2103
2104         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
2105         whitespace; tabs before and after asm mnemonics.
2106
2107 2014-05-29  Eric Wong  <normalperson@yhbt.net>
2108
2109         [BZ #15132]
2110         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2111         Call fstat64 or stat64 internally, depending on arguments passed.
2112         Replace stat buffer argument with file descriptor argument.
2113         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
2114         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
2115         Pass fd to __internal_statvfs instead of calling fstat64.
2116         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
2117         Pass fd to __internal_statvfs64 instead of calling fstat64.
2118         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
2119         Pass -1 to __internal_statvfs instead of calling stat64.
2120         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
2121         Pass -1 to __internal_statvfs64 instead of calling stat64.
2122
2123 2014-05-28  Roland McGrath  <roland@hack.frob.com>
2124
2125         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
2126         that was previously under [RESET_PID].
2127         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
2128
2129         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
2130         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
2131
2132 2014-05-27  Roland McGrath  <roland@hack.frob.com>
2133
2134         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
2135
2136         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
2137         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
2138
2139 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
2140
2141         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
2142
2143 2014-05-27  Andreas Schwab  <schwab@suse.de>
2144
2145         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
2146         TLS_INIT_TP macro.
2147         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2148         * elf/rtld.c (init_tls, dl_main): Likewise.
2149         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
2150         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
2151         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
2152         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
2153         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
2154         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2155         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
2156         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
2157         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
2158         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
2159         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
2160         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
2161         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
2162         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
2163         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
2164         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
2165         * sysdeps/generic/tls.h: Update description.
2166
2167 2014-05-27  Will Newton  <will.newton@linaro.org>
2168
2169         [BZ #16990]
2170         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
2171         and restore r2 rather than just restoring.
2172
2173 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2174
2175         [BZ #16724]
2176         * libio/tst-ftell-append.c: New test case.
2177         * libio/Makefile (tests): Add test case.
2178         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
2179         append mode.
2180         * libio/wfileops.c (do_ftell_wide): Likewise.
2181
2182 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2183
2184         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2185
2186         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
2187         ...
2188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
2189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
2190         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
2191         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
2192         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
2193         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
2194         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
2195         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
2196         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
2197         Moved ...
2198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
2199         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
2200         Moved ...
2201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
2202         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
2203         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
2204         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
2205         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
2206         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
2207         ...
2208         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
2209         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
2210         Moved ...
2211         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
2212         here.
2213         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
2214         ...
2215         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
2216         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
2217         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
2218
2219         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
2220         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
2221         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
2222         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
2223
2224         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
2225         merge into ...
2226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
2227         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
2228         ...
2229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
2230         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
2231         ...
2232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
2233         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2234         Moved ...
2235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
2236         here.
2237         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2238         Moved ...
2239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
2240         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2241         Moved ...
2242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
2243
2244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
2245         conditional [RESET_PID].
2246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
2247         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
2248         removed.
2249         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
2250         removed.
2251
2252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
2253         <tcb-offsets.h>.
2254         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2255         (__libc_vfork): New strong alias.
2256         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
2257         removed.
2258         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
2259         Removed.
2260
2261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
2262         <tcb-offsets.h>.
2263         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
2264         (__libc_vfork): New strong alias.
2265         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
2266         removed.
2267         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
2268         removed.
2269
2270 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
2271
2272         * malloc/malloc.c (mi_arena): New function.
2273         (malloc_info): Remove nested function mi_arena. Call non-nosted
2274         function mi_arena.
2275
2276 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2277
2278         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
2279         by insrwi.
2280         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2281         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2282         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
2283         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
2284         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
2285         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
2286         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
2287
2288 2014-05-26  Andreas Schwab  <schwab@suse.de>
2289
2290         [BZ #16984]
2291         * locale/programs/repertoire.c (repertoire_read): Add slash
2292         between I18NPATH element and file name.
2293         * locale/programs/locfile.c (locfile_read): Likewise.
2294
2295 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2296
2297         * nptl/pthread_mutexattr_settype.c
2298         (__pthread_mutexattr_settype):
2299         Disable lock elision for PTHREAD_MUTEX_NORMAL.
2300
2301 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2302
2303         * nptl/tst-mutex5 (do_test):
2304         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
2305
2306 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2307
2308         * benchtests/README: Document 'init' directive.
2309         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
2310         BENCH_INIT.
2311         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
2312         (parse_file): Recognize 'init' directive.
2313
2314 2014-05-26  Kyle McMartin  <kyle@redhat.com>
2315
2316         [BZ #16796]
2317         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
2318         alignment of struct pthread.
2319
2320 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2321
2322         [BZ #16878]
2323         * nscd/netgroupcache.c (addgetnetgrentX): Look for
2324         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2325         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
2326         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2327
2328 2014-05-25  Richard Henderson  <rth@twiddle.net>
2329
2330         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2331         (SINGLE_THREAD_P_PIC): Remove.
2332         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
2333         (SINGLE_THREAD_P_PIC): Remove.
2334
2335         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
2336         branch to syscall error ...
2337         (PSEUDO): ... here.
2338         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
2339         from __local_syscall_error to .Lsyscall_error.
2340         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
2341         (SYSCALL_ERROR): Update label name.
2342
2343         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2344         Do not use DOARGS/UNDOARGS.
2345         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
2346         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
2347         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
2348         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
2349         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
2350
2351         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
2352         block comment.
2353
2354         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
2355         define if !NOT_IN_libc.
2356         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
2357         define with non-default symbol versions.
2358
2359 2014-05-23  Richard Henderson  <rth@twiddle.net>
2360
2361         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
2362         (vfork, __vfork): Define via compat_symbol.
2363
2364         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
2365         [!HAVE_IFUNC] (vfork_compat): Remove.
2366         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
2367
2368 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2369
2370         [BZ #16978]
2371         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
2372         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
2373         variable.
2374
2375 2014-05-23  Richard Henderson  <rth@twiddle.net>
2376
2377         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
2378         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
2379         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
2380         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
2381
2382         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
2383         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
2384         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
2385         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
2386         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
2387         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
2388         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
2389         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
2390         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
2391         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
2392         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
2393         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
2394         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
2395         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
2396         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
2397         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
2398         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
2399         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
2400         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
2401         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
2402         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
2403         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
2404         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
2405         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
2406         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
2407         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
2408         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
2409         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
2410         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
2411         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
2412         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
2413         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
2414         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
2415         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
2416         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
2417         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
2418         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
2419         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
2420         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
2421         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
2422         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
2423         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
2424         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
2425         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
2426         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
2427         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
2428         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
2429         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
2430         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
2431         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
2432         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
2433         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
2434         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
2435         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
2436         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
2437         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
2438
2439         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
2440         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
2441         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
2442         before exiting on error.
2443         (__libc_vfork): New strong alias.
2444         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
2445         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
2446
2447         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
2448         that was previously under [RESET_PID].
2449         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
2450
2451         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
2452
2453 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2454
2455         [BZ #16977]
2456         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
2457         value when x - 1 is zero.
2458         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
2459         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
2460         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
2461         0.0L for an argument of 1.0L.
2462         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
2463         Likewise.
2464         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
2465         value when x - 1 is zero.
2466         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
2467         * sysdeps/i386/fpu/libm-test-ulps: Update.
2468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2469
2470 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
2471
2472         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
2473         alphasort and versionsort.
2474
2475 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2476
2477         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
2478         macro.
2479         [copysignf]: Likewise.
2480
2481 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2482
2483         * crypt/md5-crypt.c: Fix formatting.
2484
2485 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2486
2487         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
2488         (b64_from_24bit): New function.
2489
2490 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2491
2492         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
2493         libc_hidden_builtin_def to ifunc.
2494         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
2495         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
2496
2497 2014-05-21  Roland McGrath  <roland@hack.frob.com>
2498
2499         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
2500         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
2501
2502 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
2503
2504         * nscd/Depend (linuxthreads): Remove.
2505         (nptl): Add.
2506         * resolv/Depend (linuxthreads): Remove.
2507         * rt/Depend (linuxthreads): Remove.
2508
2509         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
2510         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
2511         $(common-objpfx)elf/.
2512         (link-libc-before-gnulib): Likewise.
2513         (elfobjdir): Remove variable.
2514         * Makefile (install): Use $(elf-objpfx) instead of
2515         $(common-objpfx)elf/.
2516         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
2517         $(elfobjdir)/.
2518         (link-libc-deps): Likewise.
2519         ($(common-objpfx)libc.so): Likewise.
2520         ($(common-objpfx)linkobj/libc.so): Likewise.
2521         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
2522         instead of $(common-objpfx)elf/.
2523         (symbolic-link-list): Likewise.
2524         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2525         [$(cross-compiling) = no]: Likewise.
2526         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
2527         $(elfobjdir)/.
2528         (static-gnulib-arch): Likewise.
2529         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2530         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
2531         $(common-objpfx)elf/.
2532
2533 2014-05-21  Richard Henderson  <rth@redhat.com>
2534
2535         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2536         (SINGLE_THREAD_P): Use the correct width load.  Fold
2537         into the ldr offset.
2538
2539         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
2540         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
2541
2542 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
2543
2544         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
2545         (libgcc_s_resume): Use __attribute_used__.
2546         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
2547         Likewise.
2548
2549 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2550
2551         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
2552         optimization when used with float constants.
2553
2554         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2555
2556 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
2557
2558         [BZ #16915]
2559         * locale/nl_langinfo_l.c: Make direct reference to every
2560         _nl_current_CATEGORY symbol.
2561         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
2562         (tests-static): Add tst-langinfo-static.
2563         (tests-special): Add tst-langinfo-static.out.
2564         ($(objpfx)tst-langinfo.out): Redirect output.
2565         ($(objpfx)tst-langinfo-static.out): New.
2566         * localedata/tst-langinfo.sh: Send output to stdout.
2567         * localedata/tst-langinfo-static.c: New file.
2568
2569         [BZ #16965]
2570         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
2571         when the shift amount is modulo the limb size.
2572
2573 2014-05-20  Richard Henderson  <rth@redhat.com>
2574
2575         [BZ #16967]
2576         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
2577         Change type of sa_flags from unsigned int to int.
2578
2579         [BZ #16966]
2580         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
2581
2582         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
2583
2584 2014-05-20  Will Newton  <will.newton@linaro.org>
2585
2586         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2587         Test the return value of the system call in the nocancel case.
2588
2589 2014-05-20  Will Newton  <will.newton@linaro.org>
2590             Yvan Roux  <yvan.roux@linaro.org>
2591
2592         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
2593         #include of asm/ptrace.h.
2594         (PTRACE_GET_THREAD_AREA): Remove #undef.
2595         (PTRACE_GETHBPREGS): Likewise.
2596         (PTRACE_SETHBPREGS): Likewise.
2597         (struct user_regs_struct): New structure.
2598         (struct user_fpsimd_struct): New structure.
2599         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
2600         #include of asm/ptrace.h and second #include of sys/user.h.
2601         (PTRACE_GET_THREAD_AREA): Remove #undef.
2602         (PTRACE_GETHBPREGS): Likewise.
2603         (PTRACE_SETHBPREGS): Likewise.
2604         (ELF_NGREG): Use new struct user_regs_struct.
2605         (elf_fpregset_t): Use new struct user_fpsimd_struct.
2606
2607 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2608
2609         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
2610         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
2611
2612 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2613
2614         [BZ #16958]
2615         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
2616         membar to avoid block loads/stores to overlap previous stores.
2617
2618 2014-05-17  Richard Henderson  <rth@redhat.com>
2619
2620         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
2621         Create the __##syscall_name##_nocancel entry point.
2622         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
2623         Remove; let the sysdep-cancel.h code create it.
2624
2625 2014-05-17  David S. Miller  <davem@davemloft.net>
2626
2627         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
2628         Protect with __USE_GNU.
2629         (TIOCSET_TEMPT): Likewise.
2630         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
2631         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
2632         these are already provided in bits/ioctl-types.h
2633
2634 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2635
2636         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
2637         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
2638
2639         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
2640         Use wait4 regardless of [__NR_waitpid].
2641
2642 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2643
2644         PR libgcc/60166
2645         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
2646         (_FP_NANSIGN_Q): Set the quiet bit.
2647
2648 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
2649
2650         * benchtests/Makefile
2651         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
2652         not $(common-objpfx)math/libm.so.
2653         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
2654         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
2655         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
2656         $(common-objpfx)dlfcn/libdl.so.
2657         ($(objpfx)tst-audit8): Depend on $(libm), not
2658         $(common-objpfx)math/libm.so.
2659         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
2660         not $(common-objpfx)dlfcn/libdl.so.
2661         * math/Makefile
2662         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2663         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
2664         [$(build-shared) = yes].
2665         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
2666         $(common-objpfx)nptl/libpthread.so.
2667         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
2668         $(common-objpfx)math/libm.so$(libm.so-version) or
2669         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
2670         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
2671         $(common-objpfx)dlfcn/libdl.so.
2672         * setjmp/Makefile (link-libm): Remove variable.
2673         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
2674         * stdio-common/Makefile (link-libm): Remove variable.
2675         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
2676         * stdlib/Makefile (link-libm): Remove variable.
2677         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
2678         ($(objpfx)tst-strtod-round): Likewise.
2679         ($(objpfx)tst-tininess): Likewise.
2680         ($(objpfx)tst-strtod-underflow): Likewise.
2681         ($(objpfx)tst-strtod6): Likewise.
2682         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
2683         $(libdl), not $(common-objpfx)nptl/libpthread.so and
2684         $(common-objpfx)dlfcn/libdl.so.
2685
2686 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2687
2688         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
2689         BSD terminal modes definitions.
2690
2691 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2692
2693         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
2694         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
2695
2696         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
2697         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
2698         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
2699         Don't do #include_next.
2700         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
2701         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
2702         Don't do #include_next.
2703         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
2704         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
2705         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
2706         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
2707
2708 2014-05-16  Allan McRae  <allan@archlinux.org>
2709
2710         * po/sv.po: Update Swedish translation from translation project.
2711
2712         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
2713         in sed expression.
2714
2715 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
2716
2717         [BZ #16917]
2718         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
2719         errno if the TIOCGPTN ioctl fails with an error different than
2720         EINVAL.
2721         * login/tst-ptsname.c: New file.
2722         * login/Makefile (tests): Add tst-ptsname.
2723
2724         [BZ #16943]
2725         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
2726         and prlimit64.
2727
2728 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2729
2730         [BZ #16849]
2731         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
2732         herrno to return EAI_AGAIN.
2733
2734 2014-05-14  Roland McGrath  <roland@hack.frob.com>
2735
2736         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
2737         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
2738         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
2739         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
2740         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
2741         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
2742         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
2743         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
2744         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
2745         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
2746         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
2747         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
2748         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
2749         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
2750         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
2751         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
2752         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
2753         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
2754         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
2755         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
2756         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
2757         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
2758         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
2759         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
2760         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
2761         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
2762         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
2763         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
2764         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
2765         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
2766         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
2767         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
2768         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
2769         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
2770         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2771         Moved ...
2772         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
2773         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
2774         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
2775         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
2776         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
2777         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
2778         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
2779         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
2780         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
2781         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
2782         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
2783         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
2784         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
2785         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
2786         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
2787         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
2788         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
2789         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
2790         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
2791         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
2792         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
2793         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
2794         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
2795         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
2796         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
2797         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
2798         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
2799         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2800         Moved ...
2801         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
2802         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
2803         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
2804         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
2805         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
2806         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
2807         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
2808         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
2809         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
2810         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
2811         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
2812         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
2813         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
2814         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
2815         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
2816         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
2817         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
2818         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
2819         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
2820         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2821         Moved ...
2822         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
2823         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
2824         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
2825
2826         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
2827         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
2828         (libpthread-sysdep_routines): Add elision-related stuff here instead.
2829         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
2830         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
2831         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
2832         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
2833         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
2834         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
2835         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
2836         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
2837         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
2838         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
2839         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
2840         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
2841         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
2842         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
2843         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
2844         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
2845         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
2846         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
2847         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
2848         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
2849         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
2850         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
2851         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
2852         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
2853         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
2854         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
2855         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
2856         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
2857
2858         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
2859         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
2860
2861         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
2862         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
2863         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
2864         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
2865         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
2866         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
2867         Moved ...
2868         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
2869         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
2870         Moved ...
2871         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
2872         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
2873         Moved ...
2874         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
2875         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
2876         Moved ...
2877         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
2878         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
2879         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
2880         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
2881         Moved ...
2882         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
2883         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
2884         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
2885         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
2886         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
2887         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
2888         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
2889         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
2890         Moved ...
2891         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
2892         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2893         Moved ...
2894         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2895         ... here.
2896         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
2897         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
2898         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
2899         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
2900         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2901         Moved ...
2902         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2903         ... here.
2904         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
2905         Moved ...
2906         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
2907         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
2908         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
2909         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
2910         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
2911         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2912         Moved ...
2913         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
2914         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2915         Moved ...
2916         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
2917         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
2918         Moved ...
2919         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
2920         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2921         Moved ...
2922         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
2923         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
2924         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
2925         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2926         Moved ...
2927         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
2928         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
2929         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
2930         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
2931         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
2932         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
2933         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
2934         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2935         Moved ...
2936         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
2937         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2938         Moved ...
2939         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2940         ... here.
2941         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
2942         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
2943         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
2944         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
2945         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2946         Moved ...
2947         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2948         ... here.
2949         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
2950         Moved ...
2951         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
2952         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
2953         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
2954         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
2955         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
2956         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
2957         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
2958         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
2959         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
2960         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
2961         Moved ...
2962         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
2963         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
2964         Moved ...
2965         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
2966         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
2967         Moved ...
2968         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
2969         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
2970         Moved ...
2971         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
2972         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
2973         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
2974         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
2975         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
2976         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
2977         Moved ...
2978         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
2979         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
2980         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
2981         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
2982         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
2983         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
2984         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
2985         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
2986         Moved ...
2987         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
2988         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2989         Moved ...
2990         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2991         ... here.
2992         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
2993         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
2994         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
2995         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
2996         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2997         Moved ...
2998         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2999         ... here.
3000         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
3001         Moved ...
3002         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
3003         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
3004         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
3005         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
3006         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
3007         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
3008         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
3009         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
3010         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
3011         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
3012         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
3013
3014         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
3015         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
3016
3017         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
3018         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
3019
3020         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
3021         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
3022         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
3023         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
3024         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
3025         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
3026         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
3027         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
3028         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
3029         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
3030         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
3031         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
3032         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
3033         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
3034         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
3035         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
3036         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
3037         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3038         Moved ...
3039         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
3040         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
3041         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
3042         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3043         Moved ...
3044         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
3045         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
3046         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
3047         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
3048         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
3049         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
3050         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
3051         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3052         Moved ...
3053         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
3054         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3055         Moved ...
3056         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
3057         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
3058         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
3059         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
3060         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
3061         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
3062         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
3063         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
3064         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
3065         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
3066         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
3067         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
3068         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
3069         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
3070         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
3071         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
3072         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
3073
3074         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
3075         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
3076         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
3077         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
3078         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
3079
3080         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
3081         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
3082         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
3083         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
3084         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
3085         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
3086         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
3087         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
3088         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
3089         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
3090
3091         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
3092         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
3093
3094         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
3095         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
3096         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
3097         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
3098         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
3099         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
3100         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
3101         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
3102         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
3103         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
3104         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
3105         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
3106         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
3107         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
3108         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
3109         Update #include.
3110         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
3111         Likewise.
3112         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
3113         Likewise.
3114         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
3115         Likewise.
3116         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
3117         Likewise.
3118         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
3119         Likewise.
3120         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
3121         Likewise.
3122         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
3123         Likewise.
3124         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
3125         Likewise.
3126         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
3127         Likewise.
3128         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
3129         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
3130         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
3131         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
3132         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
3133         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
3134         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
3135         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
3136         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
3137         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
3138         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
3139         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
3140         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
3141         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
3142         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
3143
3144         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
3145         that was previously under [RESET_PID].
3146         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3147         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
3148         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
3149
3150         * sysdeps/i386/nptl/Implies: New file.
3151         * sysdeps/x86_64/nptl/Implies: New file.
3152         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
3153         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
3154         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
3155         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
3156
3157         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
3158         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3159         (__libc_vfork): New strong alias.
3160         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
3161         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
3162
3163         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
3164         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3165         (__libc_vfork): New strong alias.
3166         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
3167         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
3168
3169         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
3170         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3171         (__libc_vfork): New strong alias.
3172         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
3173         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
3174         * nptl/pt-vfork.c: New file.
3175         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
3176         (libpthread: GLIBC_2.20): New version set (empty).
3177
3178 2014-05-14  Will Newton  <will.newton@linaro.org>
3179
3180         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
3181         rather than #if.
3182
3183 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3184
3185         [BZ #16564]
3186         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
3187         arguments with exponent 65 or above.
3188         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
3189         arguments 0x1p113L or above.
3190         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
3191         to arguments 0x1p107L or above.
3192         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
3193         positive arguments with exponent 65 or above.
3194         * math/auto-libm-test-in: Add more tests of log1p.
3195         * math/auto-libm-test-out: Regenerated.
3196
3197         [BZ #16928]
3198         * math/s_cacos.c (__cacos): Ensure zero real part of result from
3199         non-finite arguments is +0.
3200         * math/s_cacosf.c (__cacosf): Likewise.
3201         * math/s_cacosl.c (__cacosl): Likewise.
3202         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
3203         * sysdeps/i386/fpu/libm-test-ulps: Update.
3204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3205
3206         [BZ #16927]
3207         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
3208         value.
3209         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
3210         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
3211         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
3212         for explicit high bit of mantissa when testing for argument equal
3213         to 1.
3214         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
3215         * sysdeps/i386/fpu/libm-test-ulps: Update.
3216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3217
3218         [BZ #16516]
3219         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
3220         (__erf): Scale by 16 instead of 8 in potentially underflowing
3221         case.  Ensure exception if result actually underflows.
3222         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
3223         (__erff): Scale by 16 instead of 8 in potentially underflowing
3224         case.  Ensure exception if result actually underflows.
3225         * sysdeps/ieee754/ldbl-128/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         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
3230         (efx8): Remove variable.
3231         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3232         case.  Ensure exception if result actually underflows.
3233         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
3234         (efx8): Remove variable.
3235         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3236         case.  Ensure exception if result actually underflows.
3237         * math/auto-libm-test-in: Add more tests of erf.
3238         * math/auto-libm-test-out: Regenerated.
3239
3240 2014-05-14  Andreas Schwab  <schwab@suse.de>
3241
3242         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
3243         Remove code conditionalized on USE___THREAD.
3244
3245         * config.h.in (HAVE_PT_CHOWN): Define as 0.
3246         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
3247         not definedness.
3248
3249 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3250
3251         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
3252         Define unconditionally.
3253         (__ASSUME_O_CLOEXEC): Likewise.
3254         (__ASSUME_SOCK_CLOEXEC): Likewise.
3255         (__ASSUME_IN_NONBLOCK): Likewise.
3256         (__ASSUME_PIPE2): Likewise.
3257         (__ASSUME_EVENTFD2): Likewise.
3258         (__ASSUME_SIGNALFD4): Likewise.
3259         (__ASSUME_DUP3): Likewise.
3260         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
3261         (__ASSUME_DUP3): Do not define.
3262         (__ASSUME_EVENTFD2): Likewise.
3263         (__ASSUME_IN_NONBLOCK): Likewise.
3264         (__ASSUME_O_CLOEXEC): Likewise.
3265         (__ASSUME_PIPE2): Likewise.
3266         (__ASSUME_SIGNALFD4): Likewise.
3267         (__ASSUME_SOCK_CLOEXEC): Likewise.
3268         (__ASSUME_UTIMES): Undefine.
3269         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3270         (__ASSUME_UTIMES): Do not define.
3271         (__ASSUME_O_CLOEXEC): Likewise.
3272         (__ASSUME_SOCK_CLOEXEC): Likewise.
3273         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
3274         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
3275         0x020621].
3276         (__ASSUME_PIPE2): Likewise.
3277         (__ASSUME_EVENTFD2): Likewise.
3278         (__ASSUME_SIGNALFD4): Likewise.
3279         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
3280         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
3281         Do not define.
3282         (__ASSUME_EVENTFD2): Likewise.
3283         (__ASSUME_SIGNALFD4): Likewise.
3284         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3285         (__ASSUME_32BITUIDS): Likewise.
3286         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3287         (__ASSUME_IPC64): Likewise.
3288         (__ASSUME_ST_INO_64_BIT): Likewise.
3289         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
3290         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
3291         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3292         (__ASSUME_UTIMES): Do not define.
3293         (__ASSUME_PSELECT): Likewise.
3294         (__ASSUME_PPOLL): Likewise.
3295         (__ASSUME_O_CLOEXEC): Likewise.
3296         (__ASSUME_SOCK_CLOEXEC): Likewise.
3297         (__ASSUME_IN_NONBLOCK): Likewise.
3298         (__ASSUME_PIPE2): Likewise.
3299         (__ASSUME_EVENTFD2): Likewise.
3300         (__ASSUME_SIGNALFD4): Likewise.
3301         (__ASSUME_DUP3): Likewise.
3302         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3303         (__ASSUME_UTIMES): Likewise.
3304         (__ASSUME_O_CLOEXEC): Likewise.
3305         (__ASSUME_SOCK_CLOEXEC): Likewise.
3306         (__ASSUME_IN_NONBLOCK): Likewise.
3307         (__ASSUME_PIPE2): Likewise.
3308         (__ASSUME_EVENTFD2): Likewise.
3309         (__ASSUME_SIGNALFD4): Likewise.
3310         (__ASSUME_DUP3): Likewise.
3311         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3312         (__ASSUME_UTIMES): Likewise.
3313         (__ASSUME_O_CLOEXEC): Likewise.
3314         (__ASSUME_SOCK_CLOEXEC): Likewise.
3315         (__ASSUME_IN_NONBLOCK): Likewise.
3316         (__ASSUME_PIPE2): Likewise.
3317         (__ASSUME_EVENTFD2): Likewise.
3318         (__ASSUME_SIGNALFD4): Likewise.
3319         (__ASSUME_DUP3): Likewise.
3320         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
3321         Likewise.
3322         (__ASSUME_UTIMES): Likewise.
3323         (__ASSUME_EVENTFD2): Likewise.
3324         (__ASSUME_SIGNALFD4): Likewise.
3325         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3326         (__ASSUME_O_CLOEXEC): Likewise.
3327         (__ASSUME_SOCK_CLOEXEC): Likewise.
3328         (__ASSUME_IN_NONBLOCK): Likewise.
3329         (__ASSUME_PIPE2): Likewise.
3330         (__ASSUME_EVENTFD2): Likewise.
3331         (__ASSUME_SIGNALFD4): Likewise.
3332         (__ASSUME_DUP3): Likewise.
3333         (__ASSUME_UTIMES): Undefine.
3334
3335         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
3336         feclearexcept.  Remove symbol versioning code.
3337         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
3338         symbol versioning code.
3339         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
3340         symbol versioning code.
3341         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
3342         feupdateenv.  Remove symbol versioning code.
3343         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
3344         fegetexceptflag.  Remove symbol versioning code.
3345         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
3346         fesetexceptflag.  Remove symbol versioning code.
3347         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
3348         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
3349         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
3350         (__posix_fadvise64_l32): Remove prototype.
3351         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
3352         code.
3353
3354 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3355
3356         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
3357         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
3358         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
3359         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
3360
3361 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
3362
3363         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
3364         current working directory
3365
3366 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3367
3368         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
3369         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
3370         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
3371         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
3372         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
3373         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
3374         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
3375         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
3376         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
3377         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
3378         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
3379         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
3380         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
3381         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
3382         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
3383         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
3384         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
3385         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
3386         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
3387         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
3388         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
3389         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
3390         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
3391         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
3392         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
3393         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
3394         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
3395         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
3396         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
3397         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
3398         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
3399         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
3400         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
3401         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
3402         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
3403         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
3404         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
3405         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
3406         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
3407         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
3408         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
3409         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
3410
3411         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
3412         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
3413
3414         * sysdeps/unix/sysv/linux/arm/Makefile
3415         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
3416         Add rt-aeabi_unwind_cpp_pr1.
3417         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
3418         Add nptl-aeabi_unwind_cpp_pr1.
3419         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
3420         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
3421         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
3422         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
3423         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
3424         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
3425
3426         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
3427         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
3428         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
3429         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
3430
3431         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
3432         Deconditionalize the code that was previously under [RESET_PID].
3433         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
3434
3435         * sysdeps/generic/exit-thread.h: New file.
3436         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
3437         * include/unistd.h (__exit_thread): Remove declaration.
3438         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
3439         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
3440         * csu/libc-start.c: Include <exit-thread.h>.
3441         (LIBC_START_MAIN): Pass no argument to __exit_thread.
3442         * nptl/pthread_create.c: Include <exit-thread.h>.
3443         (start_thread): Call __exit_thread in place of __exit_thread_inline.
3444         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
3445         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
3446         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
3447         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
3448         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
3449         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
3450         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
3451         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
3452         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
3453         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
3454         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
3455         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
3456         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
3457         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
3458         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
3459         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
3460
3461 2014-05-13  Andreas Schwab  <schwab@suse.de>
3462
3463         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
3464
3465 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
3466
3467         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
3468         (__ASSUME_UTIMES): Do not condition on kernel version.
3469         (__ASSUME_PSELECT): Define unconditionally.
3470         (__ASSUME_PPOLL): Likewise.
3471         (__ASSUME_ATFCTS): Likewise.
3472         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
3473         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
3474         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
3475         (__ASSUME_UTIMENSAT): Define unconditionally.
3476         (__ASSUME_PRIVATE_FUTEX): Likewise.
3477         (__ASSUME_FALLOCATE): Likewise.
3478         (__ASSUME_O_CLOEXEC): Likewise.
3479         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
3480         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
3481         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
3482         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
3483         (__ASSUME_IN_NONBLOCK): Likewise.
3484         (__ASSUME_PIPE2): Likewise.
3485         (__ASSUME_EVENTFD2): Likewise.
3486         (__ASSUME_SIGNALFD4): Likewise.
3487         (__ASSUME_DUP3): Likewise.
3488         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3489         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
3490         (__ASSUME_AT_RANDOM): Likewise.
3491         (__ASSUME_PREADV): Likewise.
3492         (__ASSUME_PWRITEV): Likewise.
3493         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
3494         (__ASSUME_F_GETOWN_EX): Define unconditionally.
3495         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
3496         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3497         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
3498         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3499         (__ASSUME_O_CLOEXEC): Define unconditionally.
3500         (__ASSUME_PSELECT): Do not undefine conditionally.
3501         (__ASSUME_PPOLL): Likewise.
3502         (__ASSUME_ATFCTS): Likewise.
3503         (__ASSUME_SET_ROBUST_LIST): Likewise.
3504         (__ASSUME_UTIMENSAT): Likewise.
3505         (__ASSUME_FDATASYNC): Define unconditionally.
3506         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3507         (__ASSUME_SIGFRAME_V2): Likewise.
3508         )__ASSUME_EVENTFD2): Likewise.
3509         (__ASSUME_SIGNALFD4): Likewise.
3510         (__ASSUME_PSELECT): Do not undefine conditionally.
3511         (__ASSUME_PPOLL): Likewise.
3512         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3513         (__ASSUME_PSELECT): Define unconditionally.
3514         (__ASSUME_PPOLL): Likewise.
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/m68k/kernel-features.h
3523         (__ASSUME_O_CLOEXEC): Likewise.
3524         (__ASSUME_SOCK_CLOEXEC): Likewise.
3525         (__ASSUME_IN_NONBLOCK): Likewise.
3526         (__ASSUME_PIPE2): Likewise.
3527         (__ASSUME_EVENTFD2): Likewise.
3528         (__ASSUME_SIGNALFD4): Likewise.
3529         (__ASSUME_DUP3): Likewise.
3530         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3531         (__ASSUME_EVENTFD2): Likewise.
3532         (__ASSUME_SIGNALFD4): Likewise.
3533         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3534
3535 2014-05-12  Andreas Schwab  <schwab@suse.de>
3536
3537         [BZ #16932]
3538         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
3539         (_nss_nis_gethostbyname4_r): Return error if item length is larger
3540         than maximum RPC packet size.
3541         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
3542         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3543         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
3544         (_nss_nis_getservbyport_r): Likewise.
3545
3546 2014-05-12  Will Newton  <will.newton@linaro.org>
3547
3548         * malloc/Makefile (tests): Add tst-mallopt.
3549         * malloc/tst-mallopt.c: New file.
3550
3551 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3552
3553         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
3554         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
3555
3556 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3557
3558         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
3559         (tst-tlsmod6.so): Likewise.
3560
3561 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3562
3563         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
3564
3565 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
3566
3567         [BZ #16064]
3568         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
3569         and <dl-procinfo.h>.
3570         (__fegetenv): Save SSE state in envp->__eip if supported.
3571         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
3572         envp->__eip if supported.
3573         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
3574         and <dl-procinfo.h>.
3575         (__fesetenv): Always set __eip, __cs_selector, __opcode,
3576         __data_offset and __data_selector in environment to 0.  Set SSE
3577         state if supported.
3578         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
3579         test-fenv-sse.
3580         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
3581         -mfpmath=sse.
3582         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
3583
3584 2014-05-09  Will Newton  <will.newton@linaro.org>
3585
3586         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
3587         and libc_relro_required for ARM.
3588         * sysdeps/arm/preconfigure: Regenerate.
3589
3590 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3591             Stefan Liebler  <stli@linux.vnet.ibm.com>
3592
3593         * config.make.in (enable-lock-elision): New Makefile variable.
3594         * configure.ac: Likewise.
3595         * configure: Regenerate.
3596         * sysdeps/s390/configure.ac:
3597         Add check for gcc transactions support.
3598         * sysdeps/s390/configure: Regenerate.
3599         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
3600         Build elision files if enabled.
3601         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
3602         Add lock elision support for s390.
3603         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
3604         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
3605         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
3606         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
3607         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
3608         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
3609         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
3610         Likewise.
3611         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
3612         Likewise.
3613         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
3614         Likewise.
3615         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
3616         Likewise.
3617         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
3618         (__lll_timedlock_elision, __lll_lock_elision)
3619         (__lll_unlock_elision, __lll_trylock_elision)
3620         (lll_timedlock_elision, lll_lock_elision)
3621         (lll_unlock_elision, lll_trylock_elision): Add.
3622         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3623         (pthread_mutex_t): Add lock elision support for s390.
3624
3625 2014-05-14  Wilco  <wdijkstr@arm.com>
3626
3627         * sysdeps/arm/fclrexcpt.c: Cleanup.
3628         * sysdeps/arm/fedisblxcpt.c: Cleanup.
3629         * sysdeps/arm/feenablxcpt.c: Cleanup.
3630         * sysdeps/arm/fegetenv.c: Cleanup.
3631         * sysdeps/arm/fegetexcept.c: Cleanup.
3632         * sysdeps/arm/fegetround.c: Cleanup.
3633         * sysdeps/arm/feholdexcpt.c: Cleanup.
3634         * sysdeps/arm/fesetenv.c: Cleanup.
3635         * sysdeps/arm/fesetround.c: Cleanup.
3636         * sysdeps/arm/feupdateenv.c: Cleanup.
3637         * sysdeps/arm/fgetexcptflg.c: Cleanup.
3638         * sysdeps/arm/fraiseexcpt.c: Cleanup.
3639         * sysdeps/arm/fsetexcptflg.c: Cleanup.
3640         * sysdeps/arm/ftestexcept.c: Cleanup.
3641         * sysdeps/arm/get-rounding-mode.h: Cleanup.
3642         * sysdeps/arm/setfpucw.c: Cleanup.
3643
3644 2014-05-09  Will Newton  <will.newton@linaro.org>
3645
3646         * sysdeps/arm/armv7/strcmp.S: New file.
3647         * NEWS: Mention addition of ARMv7 optimized strcmp.
3648
3649 2014-05-08  Roland McGrath  <roland@hack.frob.com>
3650
3651         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
3652         look for %.ac rather than %.in.
3653
3654         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
3655         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
3656         * sysdeps/mach/hurd/configure: Regenerated.
3657         * sysdeps/unix/sysv/linux/configure: Regenerated.
3658
3659         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
3660
3661 2014-05-07  Steve Ellcey  <sellcey@mips.com>
3662
3663         [BZ# 16922]
3664         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
3665         (LONG_SUB): Ditto.
3666         (PTR_SUB): Ditto.
3667
3668 2014-05-07  Andreas Schwab  <schwab@suse.de>
3669
3670         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
3671         when skipping over non-matching result from nscd.
3672
3673 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
3674
3675         [BZ #16876]
3676         * nptl/sockperf.c (client): Check socket return value.
3677
3678         [BZ #16877]
3679         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
3680         nscd security class.
3681
3682 2014-05-06  Roland McGrath  <roland@hack.frob.com>
3683
3684         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
3685         * sysdeps/arm/unwind.h: ... here.
3686
3687 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
3688
3689         [BZ# 16916]
3690         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
3691         Define.
3692
3693 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3694
3695         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
3696         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
3697         multiarch strncpy for PPC64.
3698         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
3699         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
3700         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
3701         multiarch optimizations.
3702         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3703         (__libc_ifunc_impl_list): Likewise.
3704         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
3705         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
3706         multiarch stpncpy for PPC64.
3707         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
3708         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
3709
3710 2014-05-06  Andreas Schwab  <schwab@suse.de>
3711
3712         [BZ #16912]
3713         * gmon/mcount.c (_MCOUNT_DECL): Use
3714         atomic_compare_and_exchange_bool_acq instead of
3715         catomic_compare_and_exchange_bool_acq.
3716
3717 2014-05-05  Roland McGrath  <roland@hack.frob.com>
3718
3719         * elf/Makefile (others, install-bin): Remove pldd.
3720         (pldd-modules): Variable removed.
3721         ($(objpfx)pldd): Target removed.
3722         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
3723         (others, install-bin): Append pldd here.
3724         ($(objpfx)pldd): New target.
3725
3726         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
3727         to 0, so the first #if test emitted later doesn't see it undefined.
3728         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
3729         * sysdeps/gnu/errlist.c: Regenerated.
3730
3731 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3732
3733         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3734         [libc_hidden_builtin_def]: Define to empty value.
3735         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
3736         [libc_hidden_builtin_def]: Likewise.
3737         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
3738         [libc_hidden_builtin_def]: Likewise.
3739         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
3740         [libc_hidden_builtin_def]: Likewise.
3741         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
3742         __redirect_memcpy and define ifunc as default hidden symbol.
3743         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
3744         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
3745
3746 2014-05-04  Adam Conrad  <adconrad@0c3.net>
3747
3748         * locale/iso-4217.def: Reintroduce XDR currency.
3749
3750 2014-05-04  Allan McRae  <allan@archlinux.org>
3751
3752         * po/eo.po: Update Esperanto translation from translation project.
3753
3754 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
3755
3756         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
3757         and FEATURE_INDEX_MAX to 1.
3758         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
3759
3760 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3761
3762         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
3763         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
3764         * iconvdata/big5.c (ONE_DIRECTION): Define.
3765         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
3766         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
3767         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
3768         * iconvdata/cp932.c (ONE_DIRECTION): Define.
3769         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
3770         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
3771         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
3772         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
3773         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
3774         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
3775         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
3776         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
3777         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
3778         * iconvdata/gbk.c (ONE_DIRECTION): Define.
3779         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
3780         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
3781         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
3782         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
3783         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
3784         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
3785         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
3786         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
3787         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
3788         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
3789         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
3790         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
3791         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
3792         * iconvdata/iso646.c (ONE_DIRECTION): Define.
3793         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
3794         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
3795         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
3796         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
3797         * iconvdata/johab.c (ONE_DIRECTION): Define.
3798         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
3799         * iconvdata/sjis.c (ONE_DIRECTION): Define.
3800         * iconvdata/t.61.c (ONE_DIRECTION): Define.
3801         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
3802         * iconvdata/tscii.c (ONE_DIRECTION): Define.
3803         * iconvdata/uhc.c (ONE_DIRECTION): Define.
3804         * iconvdata/unicode.c (ONE_DIRECTION): Define.
3805         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
3806         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
3807         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
3808
3809 2014-05-01  Roland McGrath  <roland@hack.frob.com>
3810
3811         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
3812         (_IO_JUMPS_OFFSET): Define to 0.
3813
3814         * nptl/sysdeps/pthread/bits/libc-lock.h
3815         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3816         (__libc_lock_define_initialized_recursive): Always define using
3817         initializer.  Modern compilers treat uninitialized (implicit zero) and
3818         explicit zero initializers the same (i.e. put the datum in bss).
3819
3820 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3821
3822         * nscd/nscd-client.h: Include <string.h>.
3823
3824 2014-05-01  David S. Miller  <davem@davemloft.net>
3825
3826         [BZ #16885]
3827         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
3828         multiple zero bytes exist at the end of a string.
3829         Reported by Aurelien Jarno <aurelien@aurel32.net>
3830
3831         * string/test-strcmp.c (check): Add explicit test for situations where
3832         there are multiple zero bytes after the first.
3833
3834 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3835
3836         [BZ #16890]
3837         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
3838         when compiling wprintf.
3839         * stdio-common/tstdiomisc.c (t3): New function.
3840         (main): Call it.
3841
3842 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3843
3844         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
3845         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
3846         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
3847         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
3848
3849 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3850
3851         * stdlib/longlong.h: Updated from GCC.
3852
3853 2014-05-01  Will Newton  <will.newton@linaro.org>
3854             Bernard Ogden  <bernie.ogden@linaro.org>
3855
3856         * NEWS: Update fixed bug list.
3857
3858         [BZ #15119]
3859         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
3860
3861 2014-04-30  David S. Miller  <davem@davemloft.net>
3862
3863         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
3864         (libc_feholdexcept_setround_sparc_ctx): New function.
3865         (libc_fesetenv_sparc_ctx): Likewise.
3866         (libc_feupdateenv_sparc_ctx): Likewise.
3867         (libc_feholdsetround_sparc_ctx): Likewise.
3868         (libc_feholdexcept_setround_ctx): Define.
3869         (libc_feholdexcept_setroundf_ctx): Likewise.
3870         (libc_feholdexcept_setroundl_ctx): Likewise.
3871         (libc_fesetenv_ctx): Likewise.
3872         (libc_fesetenvf_ctx): Likewise.
3873         (libc_fesetenvl_ctx): Likewise.
3874         (libc_feupdateenv_ctx): Likewise.
3875         (libc_feupdateenvf_ctx): Likewise.
3876         (libc_feupdateenvl_ctx): Likewise.
3877         (libc_feresetround_ctx): Likewise.
3878         (libc_feresetroundf_ctx): Likewise.
3879         (libc_feresetroundl_ctx): Likewise.
3880         (libc_feholdsetround_ctx): Likewise.
3881         (libc_feholdsetroundf_ctx): Likewise.
3882         (libc_feholdsetroundl_ctx): Likewise.
3883
3884         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3885         with __USE_GNU instead of XOPEN cpp guards.
3886
3887         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
3888         0.
3889
3890         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3891         with XOPEN cpp guards.
3892
3893 2014-04-30  Julian Brown  <julian@codesourcery.com>
3894
3895         [BZ #16888]
3896         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
3897         handling.
3898
3899 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
3900
3901         [BZ #9894]
3902         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
3903         Change to 2.6.32.
3904         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
3905         * sysdeps/unix/sysv/linux/configure: Regenerated.
3906         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
3907         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
3908         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
3909         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
3910         * README: Update reference to required Linux kernel version.
3911         * manual/install.texi (Linux): Update reference to required Linux
3912         kernel headers version.
3913         * INSTALL: Regenerated.
3914
3915         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
3916         header inclusion.
3917         [POSIX] (limits.h): Likewise.
3918         [POSIX] (math.h): Likewise.
3919         [POSIX] (sys/wait.h): Likewise.
3920         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
3921         function.
3922         [POSIX] (stddef.h): Do not allow header inclusion.
3923
3924 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3925
3926         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
3927
3928 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
3929
3930         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
3931         Return immediately after lll_futex_wake.
3932
3933 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3934
3935         [BZ #16791]
3936         * nscd/nscd-client.h (datahead_init_common): Initialize entire
3937         structure.
3938         (datahead_init_pos): Call datahead_init_common early.
3939         (datahead_init_neg): Likewise.
3940
3941         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
3942         datahead_init_neg): New functions.
3943         * nscd/aicache.c (addhstaiX): Use them.
3944         * nscd/grpcache.c (cache_addgr): Likewise.
3945         * nscd/hstcache.c (cache_addhst): Likewise.
3946         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3947         * nscd/netgroupcache.c (do_notfound): Likewise.
3948         (addgetnetgrentX): Likewise.
3949         (addinnetgrX): Likewise.
3950         * nscd/pwdcache.c (cache_addpw): Likewise.
3951         * nscd/servicescache.c (cache_addserv): Likewise.
3952
3953 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3954             Atsushi Onoe  <atsushi@onoe.org>
3955
3956         [BZ #14308]
3957         [BZ #12994]
3958         [BZ #13651]
3959         * resolv/res_query.c (__libc_res_nsearch): Return if at least
3960         one response is valid.
3961         * resolv/res_send.c (send_dg): Check for validity of other
3962         response if the current response is a referral.
3963
3964 2014-04-29  Steve Ellcey  <sellcey@mips.com>
3965
3966         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
3967
3968 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
3969
3970         [BZ #16823]
3971         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
3972         Always divide by positive zero when computing -Inf result.
3973         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
3974         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
3975
3976 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3977
3978         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
3979         FPSCR if value do not change.
3980         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3981         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
3982         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
3983         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3984         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
3985         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
3986         function.
3987
3988 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
3989
3990         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
3991         * sysdeps/unix/sysv/linux/hppa: Move directory from
3992         ports/systeps/unix/sysv/linux/hppa.
3993         * README: Update listing for hppa-*-linux-gnu.
3994
3995 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
3996
3997         [BZ #16754]
3998         * manual/stdio.texi (Hook functions): Fix types of stream hook
3999         functions.
4000         [BZ #16854]
4001         * socket/sys/socket.h: Fix typo in comment.
4002
4003 2014-04-28  Wilco  <wdijkstr@arm.com>
4004
4005         * sysdeps/arm/fenv_private.h: New file.
4006         * sysdeps/arm/math_private.h: New file.
4007         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
4008
4009 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
4010
4011         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
4012         with __int128_t.
4013         (La_x86_64_retval): Likewise.
4014
4015 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
4016
4017         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
4018         fpsr if value didn't change.
4019         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
4020         to fpcr if value didn't change.
4021         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
4022         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
4023         fpsr or fpcr if value didn't change.
4024         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
4025         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
4026         fpcr if value didn't change.
4027         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
4028         to fpsr if value didn't change.
4029
4030 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4031
4032         * nptl/tst-sem3.c: Use test-skeleton.c
4033         (main): Rename to do_test.  Use return instead of
4034         exit.
4035         * nptl/tst-sem4.c: Use test-skeleton.c
4036         (main): Rename to do_test.
4037
4038 2014-04-22  David S. Miller  <davem@davemloft.net>
4039
4040         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
4041         (struct sigaction): New struct member __glibc_reserved0, change
4042         type of sa_flags to int.
4043
4044 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
4045
4046         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
4047         (COUNT_LEADING_ZEROS_0): Define for AArch64.
4048
4049 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4050
4051         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
4052         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
4053
4054 2014-04-22  Will Newton  <will.newton@linaro.org>
4055             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
4056
4057         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
4058         (__longjmp): Add longjmp and longjmp_target SystemTap
4059         probes.
4060         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
4061         (__sigsetjmp): Add setjmp SystemTap probe.
4062
4063 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
4064
4065         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
4066         match manual order.
4067
4068 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4069
4070         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
4071
4072         * sysdeps/powerpc/fpu/fenv_private.h
4073         (libc_feholdexcept_setroundl_ctx): Define to
4074         libc_feholdexcept_setround_ppc_ctx.
4075         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
4076         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
4077         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
4078         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
4079
4080 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4081
4082         * sysdeps/aarch64/math-tests.h: New file.
4083
4084 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
4085
4086         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
4087         New.
4088         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4089         Check and set bit_AVX2_Usable.
4090         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
4091         macro.
4092         (bit_AVX2): Likewise.
4093         (index_AVX2_Usable): Likewise.
4094         (CPUID_AVX2): Likewise.
4095         (HAS_AVX2): Likewise.
4096
4097 2014-04-17  Will Newton  <will.newton@linaro.org>
4098
4099         * manual/setjmp.texi (System V contexts): Add note that
4100         calling setcontext on a context created by a call to a
4101         signal handler is undefined.  Update text to note that
4102         setcontext from a signal handler is possible but not
4103         recommended.
4104
4105         [BZ #16629]
4106         * stdlib/tst-setcontext.c: Include signal.h.
4107         (main): Check that the signal stack before and
4108         after swapcontext is the same.
4109
4110         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
4111         Re-implement to restore registers in user code and avoid
4112         rt_sigreturn system call.
4113
4114 2014-04-17  Wilco  <wdijkstr@arm.com>
4115
4116         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
4117         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
4118         * math/test-fenv.c: Skip exception trap tests on targets which only
4119         support non-stop mode.
4120
4121 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4122             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4123
4124         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
4125         (libc_feholdsetround_aarch64_ctx)
4126         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
4127         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
4128         (libc_feresetround_ctx, libc_feresetroundf_ctx)
4129         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
4130         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
4131         (libc_feresetround_noexl_ctx): Define.
4132
4133 2014-04-16  Richard Henderson  <rth@redhat.com>
4134
4135         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
4136
4137         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
4138         unwind tables.
4139
4140         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
4141         const from the non-libc, non-ldso copy.
4142
4143         * sysdeps/alpha/libm-test-ulps: Regenerate.
4144
4145 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
4146             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4147
4148         * sysdeps/aarch64/fpu/math_private.h: New file.
4149
4150 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4151
4152         * sysdeps/aarch64/libm-test-ulps: Regenerate.
4153
4154 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
4155
4156         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
4157         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
4158         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
4159         Intel MPX bound registers before _dl_profile_fixup.
4160         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
4161         registers after _dl_profile_fixup.  Save and restore bound
4162         registers bnd0/bnd1 when calling _dl_call_pltexit.
4163         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
4164         (LR_BND_OFFSET): Likewise.
4165         (LRV_BND0_OFFSET): Likewise.
4166         (LRV_BND1_OFFSET): Likewise.
4167
4168 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4169
4170         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
4171         to...
4172         * sysdeps/mach/hurd/i386/tls.h: ... here.
4173         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
4174         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
4175         fields.
4176
4177 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4178
4179         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
4180
4181 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4182
4183         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4184
4185 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4186
4187         [BZ #14770]
4188         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
4189         * sysdeps/s390/configure: Regenerate.
4190
4191         [BZ #16824]
4192         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
4193         Set round-to-nearest internally to reduce error accumulation.
4194
4195 2014-04-16  Alan Modra  <amodra@gmail.com>
4196
4197         [BZ #16740]
4198         [BZ #16619]
4199         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
4200         * math/libm-test.inc (frexp_test_data): Add tests.
4201         * NEWS: Update fixed bug list.
4202
4203 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4204
4205         * benchtests/Makefile: Depend on libraries in build directory.
4206         (bench-math): Separate out math tests.
4207         (bench-pthread): Separate out pthread tests.
4208         (bench): Include math and pthread tests.
4209
4210 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
4211
4212         [BZ #16831]
4213         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
4214         _dl_debug_initialize.
4215
4216         * configure.ac: Remove SELinux header check.
4217         * configure: Regenerate.
4218         * nscd/selinux.c (perms): Array of const char* to permission names.
4219         (nscd_request_avc_has_perm): Call security_deny_unknown to find
4220         default policy. Call string_to_security_class and string_to_av_perm to
4221         translate strings. Enforce default policy and call avs_has_perm with
4222         results of translated strings.
4223
4224 2014-04-13  David S. Miller  <davem@davemloft.net>
4225
4226         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4227
4228 2014-04-12  Allan McRae  <allan@archlinux.org>
4229
4230         [BZ #16838]
4231         * manual/string.texi (Collation Functions): Fix qsort argument
4232         order in example.
4233         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4234
4235 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
4236
4237         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
4238         Make the test a no-op if there are no exceptions defined.
4239
4240 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
4241
4242         * elf/Makefile (tests): make tst-dlopen-aout conditional on
4243         enable-hardcoded-path-in-tests
4244
4245 2014-04-11  Will Newton  <will.newton@linaro.org>
4246
4247         * benchtests/Makefile (extra-objs): Add json-lib.o.
4248         (bench-func): Tidy up JSON output.
4249         * benchtests/bench-skeleton.c: Include json-lib.h.
4250         (main): Use JSON library functions to do output of
4251         benchmark results.
4252         * benchtests/bench-timing-type.c (main): Output the
4253         timing type simply, leaving formatting to the user.
4254         * benchtests/json-lib.c: New file.
4255         * benchtests/json-lib.h: Likewise.
4256
4257 2014-04-11  Torvald Riegel  <triegel@redhat.com>
4258
4259         [BZ #15215]
4260         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
4261         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
4262         memory barriers.  Add comments.
4263         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
4264         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
4265         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
4266         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
4267         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
4268         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
4269
4270 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
4271
4272         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
4273         * sysdeps/s390/s390-64/configure.ac: ... this ...
4274         * sysdeps/s390/configure.ac: ... to here.
4275         * sysdeps/s390/s390-32/configure: Delete file.
4276         * sysdeps/s390/s390-64/configure: Delete file.
4277         * sysdeps/s390/configure: Regenerate.
4278
4279 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
4280
4281         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
4282
4283 2014-04-11  Will Newton  <will.newton@linaro.org>
4284
4285         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
4286         to zero if it is not defined elsewhere.  (mtrim): Test
4287         the value of MALLOC_DEBUG with #if rather than #ifdef.
4288
4289 2014-04-10 Torvald Riegel  <triegel@redhat.com>
4290
4291         * benchtests/pthread_once-inputs: New file.
4292         * benchtests/pthread_once-source.c: New file.
4293         * benchtests/README: Update documentation.
4294
4295 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
4296             H.J. Lu  <hongjiu.lu@intel.com>
4297
4298         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
4299         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
4300         * sysdeps/x86_64/configure: Regenerated.
4301         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
4302         macro.
4303         (REGISTER_SAVE_RAX): Likewise.
4304         (REGISTER_SAVE_RCX): Likewise.
4305         (REGISTER_SAVE_RDX): Likewise.
4306         (REGISTER_SAVE_RSI): Likewise.
4307         (REGISTER_SAVE_RDI): Likewise.
4308         (REGISTER_SAVE_R8): Likewise.
4309         (REGISTER_SAVE_R9): Likewise.
4310         (REGISTER_SAVE_BND0): Likewise.
4311         (REGISTER_SAVE_BND1): Likewise.
4312         (REGISTER_SAVE_BND2): Likewise.
4313         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
4314         bound registers when calling _dl_fixup.
4315
4316 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4317
4318         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
4319         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
4320         of its definition.
4321         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
4322         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
4323         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
4324         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
4325         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
4326         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
4327         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
4328
4329 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
4330
4331         [BZ #15514]
4332         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
4333         pathconf(_PC_NAME_MAX).
4334
4335 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4336
4337         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
4338         Remove macro usage.
4339         (__PTHREAD_SPINS): Move definition to ...
4340         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4341         (__PTHREAD_SPINS): ... here.
4342         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4343         (__PTHREAD_SPIN): Likewise.
4344         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
4345         (__PTHREAD_SPIN): Likewise.
4346         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
4347         (__PTHREAD_SPIN): Likewise.
4348         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
4349         (__PTHREAD_SPIN): Likewise.
4350         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
4351         (__PTHREAD_SPIN): Likewise.
4352         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
4353         (__PTHREAD_SPIN): Likewise.
4354         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
4355         (__PTHREAD_SPIN): Likewise.
4356         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
4357         (__PTHREAD_SPIN): Likewise.
4358         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
4359         (__PTHREAD_SPIN): Likewise.
4360         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
4361         (__PTHREAD_SPIN): Likewise.
4362         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
4363         (__PTHREAD_SPIN): Likewise.
4364         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
4365         (__PTHREAD_SPIN): Likewise.
4366
4367         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
4368         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
4369         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
4370         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
4371         imply folder.
4372         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
4373         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4374         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
4375         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
4376         correct imply path.
4377         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
4378         strlen symbol for non multi-arch builds.
4379         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
4380         missing hidden_def and weak_alias.
4381
4382 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
4383
4384         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
4385
4386 2014-04-07  Will Newton  <will.newton@linaro.org>
4387
4388         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
4389         and contents.  [!_LIBC] Remove #ifndef and contents.
4390         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
4391         * string/memccpy.c (__memccpy): Use ANSI prototype.
4392         * string/memfrob.c (memfrob): Likewise.
4393         * string/strcoll.c (STRCOLL): Likewise.
4394         * string/strlen.c (strlen): Likewise.
4395         * string/strtok.c (STRTOK): Likewise.
4396         * string/strcat.c: Remove unused #include of memcopy.h.
4397         (strcat): Use ANSI prototype.
4398         * string/strchr.c: Remove unused #include of memcopy.h.
4399         (strchr): Use ANSI prototype.
4400         * string/strcmp.c: Remove unused #include of memcopy.h.
4401         (strcmp): Use ANSI prototype.
4402         * string/strcpy.c: Remove unused #include of memcopy.h.
4403         (strcpy): Use ANSI prototype.
4404
4405 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4406
4407         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
4408         * config.make.in (config-extra-cppflags): Set it from
4409         libc_extra_cppflags.
4410         * configure.ac (libc_extra_cflags): Make it accumulate over
4411         configure fragments.
4412         (libc_extra_cppflags): New flag.
4413         * configure. Regenerate.
4414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
4415         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
4416         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
4417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
4418
4419         [BZ #16815]
4420         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
4421         result for FE_DOWNWARD rounding mode.
4422         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
4423         Likewise.
4424         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4425
4426 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
4427
4428         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
4429         in function argument name.
4430
4431 2014-04-03  David Svoboda  <svoboda@cert.org>
4432
4433         [BZ #5666]
4434         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
4435         explicitly.
4436
4437 2014-04-03  Roland McGrath  <roland@hack.frob.com>
4438
4439         * elf/dl-unmap-segments.h: New file.
4440         * sysdeps/generic/ldsodefs.h
4441         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
4442         * elf/dl-close.c: Include <dl-unmap-segments.h>.
4443         * elf/dl-fptr.c: Likewise.
4444         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
4445         * sysdeps/aarch64/tlsdesc.c: Likewise.
4446         * sysdeps/arm/tlsdesc.c: Likewise.
4447         * sysdeps/i386/tlsdesc.c: Likewise.
4448         * sysdeps/tile/dl-runtime.c: Likewise.
4449         * sysdeps/x86_64/tlsdesc.c: Likewise.
4450         * elf/dl-load.h: New file.
4451         * elf/dl-load.c: Include it.
4452         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
4453         Macros moved to dl-load.h.
4454         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
4455         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
4456         Use _dl_unmap_segments in place of __munmap.
4457         Break out segment-mapping loop into ...
4458         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
4459
4460 2014-04-03  Will Newton  <will.newton@linaro.org>
4461
4462         * elf/dl-lookup.c (do_lookup_x): Remove comment
4463         referring to nested function and move variable
4464         declarations down to before first use.
4465
4466 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
4467
4468         [BZ #16799]
4469         [BZ #16800]
4470         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
4471         with 0 numerator.
4472         * math/s_catanf.c (__catanf): Likewise.
4473         * math/s_catanh.c (__catanh): Likewise.
4474         * math/s_catanhf.c (__catanhf): Likewise.
4475         * math/s_catanhl.c (__catanhl): Likewise.
4476         * math/s_catanl.c (__catanl): Likewise.
4477         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
4478         by positive zero when computing -Inf result.
4479         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
4480         (catanh_test): Likewise.
4481         * sysdeps/i386/fpu/libm-test-ulps: Update.
4482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4483
4484         [BZ #16789]
4485         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
4486         instead of using underflowing value in computing result.
4487         * math/s_clog10.c (__clog10): Likewise.
4488         * math/s_clog10f.c (__clog10f): Likewise.
4489         * math/s_clog10l.c (__clog10l): Likewise.
4490         * math/s_clogf.c (__clogf): Likewise.
4491         * math/s_clogl.c (__clogl): Likewise.
4492         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
4493         (clog10_test): Likewise.
4494         * sysdeps/i386/fpu/libm-test-ulps: Update.
4495         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4496
4497 2014-04-02  Alan Modra  <amodra@gmail.com>
4498
4499         [BZ #16739]
4500         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
4501         output when value is near a power of two.  Use int64_t for lx and
4502         remove casts.  Use decimal rather than hex exponent constants.
4503         Don't use long double multiplication when double will suffice.
4504         * math/libm-test.inc (nextafter_test_data): Add tests.
4505         * NEWS: Add 16739 and 16786 to bug list.
4506
4507         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
4508
4509         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
4510
4511 2014-04-01  Will Newton  <will.newton@linaro.org>
4512
4513         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
4514         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
4515
4516 2014-04-01  Florian Weimer  <fweimer@redhat.com>
4517
4518         [BZ #13347]
4519         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
4520         * nptl/tst-setuid2.c: New file.
4521         * nptl/Makefile (xtests): Add tst-setuid2.
4522
4523 2014-04-01  Alan Modra  <amodra@gmail.com>
4524
4525         [BZ #16786]
4526         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
4527
4528 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4529
4530         [BZ #6803]
4531         [BZ #6804]
4532         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
4533         set errno as appropriate.
4534         * math/w_scalbf.c (__scalbf): Likewise.
4535         * math/w_scalbl.c (__scalbl): Likewise.
4536         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
4537         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
4538         * math/libm-test.inc (scalb_test_data): Add errno expectations.
4539         Add more NaN tests.
4540
4541         [BZ #16349]
4542         * math/w_atan2.c: Include <errno.h>.
4543         (__atan2): Set errno for result underflowing to zero.
4544         * math/w_atan2f.c: Include <errno.h>.
4545         (__atan2f): Set errno for result underflowing to zero.
4546         * math/w_atan2l.c: Include <errno.h>.
4547         (__atan2l): Set errno for result underflowing to zero.
4548         * math/auto-libm-test-in: Don't allow missing errno for some atan2
4549         tests.
4550         * math/auto-libm-test-out: Regenerated.
4551
4552 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4553
4554         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
4555         Encode instruction correctly in little endian.
4556         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
4557         Likewise.
4558         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
4559         Likewise.
4560         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
4561         Likewise.
4562         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
4563         Likewise.
4564
4565 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4566
4567         [BZ #9894]
4568         * sysdeps/unix/sysv/linux/kernel-features.h
4569         [__sparc__ && !__arch64__ && !__sparc_v9__]
4570         (__ASSUME_SET_ROBUST_LIST): Do not define.
4571         [__sparc__ && !__arch64__ && !__sparc_v9__]
4572         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4573         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
4574         Likewise.
4575         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4576         (__ASSUME_FUTEX_LOCK_PI): Undefine.
4577         (__ASSUME_REQUEUE_PI): Likewise.
4578         (__ASSUME_SET_ROBUST_LIST): Likewise.
4579         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4580         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
4581         Undefine.
4582         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4583         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
4584         Likewise.
4585         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
4586         Likewise.
4587         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
4588         Likewise.
4589         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4590         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
4591         Undefine.
4592         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
4593         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
4594         Likewise.
4595
4596         [BZ #16648]
4597         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4598         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
4599         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
4600
4601 2014-03-31  Will Newton  <will.newton@linaro.org>
4602
4603         * benchtests/Makefile (bench): Add ffs and ffsll to list
4604         of tests.
4605         * benchtests/ffs-inputs: New file.
4606         * benchtests/ffsll-inputs: Likewise.
4607
4608 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
4609
4610         [BZ #16770]
4611         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
4612         too large before casting to int.
4613         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
4614         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
4615         * math/libm-test.inc (scalb_test_data): Add more tests.
4616
4617 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4618
4619         * benchtests/Makefile (DETAILED_OPT): New make option.
4620         (bench-func): Run benchmark program with -d if DETAILED_OPT is
4621         set.
4622         * benchtests/bench-skeleton.c: Include stdbool.h.
4623         (main): Store and print timings per input.
4624         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
4625         member to each argument value.
4626         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
4627         (_print_arg_data): Initialize per-input timing to 0.
4628
4629         * benchtests/Makefile (timing-type): New binary.
4630         (bench-clean): Also remove bench-timing-type.
4631         (bench): New target for timing-type.
4632         (bench-func): Print output in JSON format.
4633         * benchtests/bench-skeleton.c (main): Print output in JSON
4634         format.
4635         * benchtests/bench-timing-type.c: New file.
4636         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
4637         (TIMING_PRINT_STATS): Remove.
4638         * benchtests/scripts/bench.py (_print_arg_data): Store variant
4639         name separately.
4640
4641         * benchtests/bench-modf.c: Remove.
4642         * benchtests/modf-inputs: New inputs file.
4643
4644 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
4645
4646         [BZ #16362]
4647         * math/s_clog10.c (M_PI_LOG10E): New macro.
4648         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
4649         imaginary parts are 0.
4650         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
4651         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
4652         imaginary parts are 0.
4653         * math/s_clog10l.c (M_PI_LOG10El): New macro.
4654         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
4655         imaginary parts are 0.
4656         * math/libm-test.inc (clog10_test_data): Update expected results
4657         for when real and imaginary parts are 0.
4658
4659 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
4660
4661         * elf/dl-load.c: Finish conversion of __builtin_expect into
4662         __glibc_{un}likely.
4663
4664 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
4665
4666         [BZ #16348]
4667         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
4668         1+x for argument with exponent below -67.
4669         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
4670         Likewise.
4671         * math/auto-libm-test-in: Add more tests of exp.
4672         * math/auto-libm-test-out: Regenerated.
4673
4674 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4675
4676         [BZ #16759]
4677         * inet/getnetgrent_r.c (get_nonempty_val): New function.
4678         (nscd_getnetgrent): Use it.
4679
4680         [BZ #16760]
4681         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
4682         of stpcpy.
4683
4684 2014-03-27  Andi Kleen  <ak@linux.intel.com>
4685
4686         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
4687         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4688         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4689         (lll_robust_unlock): Remove out of line section. Use cfi
4690         intrinsics.
4691         (LLL_STUB_UNWIND_INFO*): Remove.
4692         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
4693         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4694         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4695         (lll_robust_unlock): Remove out of line section. Use cfi
4696         intrinsics.
4697         (LLL_STUB_UNWIND_INFO*): Remove.
4698
4699 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4700
4701         [BZ #16758]
4702         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
4703         blank values.
4704
4705 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4706
4707         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
4708
4709 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
4710
4711         [BZ #16198]
4712         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
4713         fnstenv.
4714         * math/test-fenv-preserve.c: New file.
4715         * math/Makefile (tests): Add test-fenv-preserve.
4716
4717 2014-03-26  Will Newton <will.newton@linaro.org>
4718
4719         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
4720
4721 2014-03-25  Roland McGrath  <roland@hack.frob.com>
4722
4723         * scripts/versionlist.awk: Partition the version sets and emit all
4724         GLIBC_* (sorted) before all others (sorted).
4725
4726 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4727
4728         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
4729         GLIBC_2.2.5 version.
4730
4731 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4732
4733         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
4734         calls.
4735
4736         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
4737         previous change.
4738
4739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4740
4741 2014-03-25  Andreas Schwab  <schwab@suse.de>
4742
4743         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
4744         label to be used after in6ailist is initialized.
4745
4746 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4747
4748         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4749         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4750
4751 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4752
4753         [BZ #16357]
4754         [BZ #16599]
4755         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
4756         min_plus_half.
4757         (fp_formats): Update initializers.
4758         (init_fp_formats): Initialize new field.
4759         (output_for_one_input_case): Allow underflow for results up to
4760         min_plus_half.
4761         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
4762         * math/auto-libm-test-in: Don't mark some underflows from asin and
4763         atanh as spurious.
4764         * math/auto-libm-test-out: Regenerated.
4765         * sysdeps/i386/fpu/libm-test-ulps: Update.
4766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4767
4768 2014-03-25  Andreas Schwab  <schwab@suse.de>
4769
4770         * libio/Makefile (tst-ftell-partial-wide-ENV)
4771         (tst-ftell-active-handler-ENV): Define.
4772
4773 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
4774
4775         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
4776
4777 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4778
4779         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
4780
4781 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4782
4783         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
4784         * sysdeps/x86_64/fpu/multiarch/e_exp.c
4785         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
4786
4787 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4788
4789         [BZ #16634]
4790         * elf/dl-load.c (open_verify): Add mode parameter.
4791         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
4792         (open_path): Change from boolean 'secure' to complete flag 'mode'
4793         (_dl_map_object): Adjust.
4794         * elf/Makefile (tests): Add tst-dlopen-aout.
4795         * elf/tst-dlopen-aout.c: New test.
4796
4797 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
4798
4799         [BZ #16714]
4800         * sysdeps/unix/sysv/linux/s390/bits/stat.h
4801         (struct stat): Rename member pad0 to __glibc_reserved0.
4802
4803         [BZ #16712]
4804         * sysdeps/s390/s390-32/bits/wordsize.h
4805         (__WORDSIZE32_SIZE_ULONG): New define.
4806         * sysdeps/s390/s390-64/bits/wordsize.h
4807         (__WORDSIZE32_SIZE_ULONG): Likewise.
4808         * sysdeps/generic/stdint.h (SIZE_MAX):
4809         Define as UL if __WORDSIZE32_SIZE_ULONG.
4810
4811         [BZ #16713]
4812         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4813         (__glibc_reserved0): New variable.
4814         (sa_flags): Change type to int.
4815
4816         * posix/Makefile (before-compile): Use += before-compile instead
4817         of a :=.
4818
4819         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4820         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4821
4822 2014-03-20  Andreas Schwab  <schwab@suse.de>
4823
4824         [BZ #16743]
4825         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
4826         non-matching result from nscd.
4827
4828 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4829
4830         * scripts/bench.py: Moved to ...
4831         * benchtests/scripts/bench.py: ... here.
4832         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
4833
4834 2014-03-24  Andreas Schwab  <schwab@suse.de>
4835
4836         [BZ #16002]
4837         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
4838         alloca_account and account alloca use for struct in6ailist.
4839
4840 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4841
4842         [BZ #16284]
4843         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
4844         rounding mode to recompute results that overflow to infinity or
4845         underflow to zero.
4846         * math/auto-libm-test-in: Don't mark tests as expected to fail for
4847         bug 16284.
4848         * math/auto-libm-test-out: Regenerated.
4849         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
4850         (ccosh_test): Likewise.
4851         (csin_test_data): Use plus_oflow.
4852         (csin_test): Use ALL_RM_TEST.
4853         (csinh_test_data): Use plus_oflow.
4854         (csinh_test): Use ALL_RM_TEST.
4855         * sysdeps/i386/fpu/libm-test-ulps: Update.
4856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4857
4858 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
4859
4860         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
4861         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
4862         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
4863
4864         [BZ #16731]
4865         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
4866         when x - 1 is zero.
4867         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4868         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4869         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4870         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
4871         argument is 1.
4872         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
4873         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
4874         zero.
4875         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
4876         * sysdeps/i386/fpu/libm-test-ulps: Update.
4877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4878
4879 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4880
4881         * scripts/bench.pl: Remove file.
4882         * scripts/bench.py: New benchmark script.
4883         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
4884         * benchtests/README: Mention python dependency.
4885         * scripts/pylintrc: New file.
4886         * scripts/pylint: New file.
4887
4888         * bits/mathdef.h: Use #ifdef instead of #if.
4889         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
4890         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4891         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
4892         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4893         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
4894         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4895
4896 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4897             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4898
4899         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
4900         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
4901         and strpbrk-ppc64 objects.
4902         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4903         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
4904         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
4905         multiarch strpbrk for POWER7.
4906         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
4907         multiarch strpbrk for PPC64.
4908         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
4909         ifunc selector.
4910         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
4911         strpbrk for POWER7.
4912
4913 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4914
4915         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
4916         (atan_test): Likewise.
4917         (atanh_test_data): Use NO_TEST_INLINE for two tests.
4918         (atanh_test): Use ALL_RM_TEST.
4919         (atan2_test_data): Likewise.
4920         (cabs_test): Likewise.
4921         (cacosh_test): Likewise.
4922         (carg_test): Likewise.
4923         (casin_test): Likewise.
4924         (casinh_test): Likewise.
4925         (cbrt_test): Likewise.
4926         (csqrt_test): Likewise.
4927         (erf_test): Likewise.
4928         (erfc_test): Likewise.
4929         (pow10_test): Likewise.
4930         (exp2_test): Likewise.
4931         (hypot_test): Likewise.
4932         (j0_test): Likewise.
4933         (j1_test): Likewise.
4934         (lgamma_test): Likewise.
4935         (gamma_test): Likewise.
4936         (sincos_test): Likewise.
4937         (tanh_test): Likewise.
4938         (y0_test): Likewise.
4939         (y1_test): Likewise.
4940         * sysdeps/i386/fpu/libm-test-ulps: Update.
4941         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4942
4943 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4944
4945         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
4946         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
4947         and strcspn-ppc64 objects.
4948         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4949         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
4950         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
4951         multiarch strcspn for POWER7.
4952         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
4953         multiarch strcspn for PPC64.
4954         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
4955         ifunc selector.
4956         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
4957         strcspn for POWER7.
4958
4959 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4960
4961         * math/gen-libm-test.pl (generate_testfile): Expect only function
4962         name as argument to AUTO_TESTS_* and pass results for all rounding
4963         modes to parse_args.
4964         (parse_auto_input): Separate inputs of automatic tests from
4965         outputs before storing in %auto_tests.
4966         * math/libm-test.inc (acos_test_data): Update call to
4967         AUTO_TESTS_f_f.
4968         (acos_test): Use ALL_RM_TEST.
4969         (acos_tonearest_test_data): Remove.
4970         (acos_test_tonearest): Likewise.
4971         (acos_towardzero_test_data): Likewise.
4972         (acos_test_towardzero): Likewise.
4973         (acos_downward_test_data): Likewise.
4974         (acos_test_downward): Likewise.
4975         (acos_upward_test_data): Likewise.
4976         (acos_test_upward): Likewise.
4977         (acosh_test_data): Update call to AUTO_TESTS_f_f.
4978         (asin_test_data): Likewise.
4979         (asin_test): Use ALL_RM_TEST.
4980         (asin_tonearest_test_data): Remove.
4981         (asin_test_tonearest): Likewise.
4982         (asin_towardzero_test_data): Likewise.
4983         (asin_test_towardzero): Likewise.
4984         (asin_downward_test_data): Likewise.
4985         (asin_test_downward): Likewise.
4986         (asin_upward_test_data): Likewise.
4987         (asin_test_upward): Likewise.
4988         (asinh_test_data): Update call to AUTO_TESTS_f_f.
4989         (atan_test_data): Likewise.
4990         (atanh_test_data): Likewise.
4991         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
4992         (cabs_test_data): Update call to AUTO_TESTS_c_f.
4993         (carg_test_data): Likewise.
4994         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
4995         (ccos_test_data): Update call to AUTO_TESTS_c_c.
4996         (ccosh_test_data): Likewise.
4997         (cexp_test_data): Likewise.
4998         (clog_test_data): Likewise.
4999         (clog10_test_data): Likewise.
5000         (cos_test_data): Update call to AUTO_TESTS_f_f.
5001         (cos_test): Use ALL_RM_TEST.
5002         (cos_tonearest_test_data): Remove.
5003         (cos_test_tonearest): Likewise.
5004         (cos_towardzero_test_data): Likewise.
5005         (cos_test_towardzero): Likewise.
5006         (cos_downward_test_data): Likewise.
5007         (cos_test_downward): Likewise.
5008         (cos_upward_test_data): Likewise.
5009         (cos_test_upward): Likewise.
5010         (cosh_test_data): Update call to AUTO_TESTS_f_f.
5011         (cosh_test): Use ALL_RM_TEST.
5012         (cosh_tonearest_test_data): Remove.
5013         (cosh_test_tonearest): Likewise.
5014         (cosh_towardzero_test_data): Likewise.
5015         (cosh_test_towardzero): Likewise.
5016         (cosh_downward_test_data): Likewise.
5017         (cosh_test_downward): Likewise.
5018         (cosh_upward_test_data): Likewise.
5019         (cosh_test_upward): Likewise.
5020         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
5021         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
5022         (ctan_test_data): Likewise.
5023         (ctan_test): Use ALL_RM_TEST.
5024         (ctan_tonearest_test_data): Remove.
5025         (ctan_test_tonearest): Likewise.
5026         (ctan_towardzero_test_data): Likewise.
5027         (ctan_test_towardzero): Likewise.
5028         (ctan_downward_test_data): Likewise.
5029         (ctan_test_downward): Likewise.
5030         (ctan_upward_test_data): Likewise.
5031         (ctan_test_upward): Likewise.
5032         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
5033         (ctanh_test): Use ALL_RM_TEST.
5034         (ctanh_tonearest_test_data): Remove.
5035         (ctanh_test_tonearest): Likewise.
5036         (ctanh_towardzero_test_data): Likewise.
5037         (ctanh_test_towardzero): Likewise.
5038         (ctanh_downward_test_data): Likewise.
5039         (ctanh_test_downward): Likewise.
5040         (ctanh_upward_test_data): Likewise.
5041         (ctanh_test_upward): Likewise.
5042         (erf_test_data): Update call to AUTO_TESTS_f_f.
5043         (erfc_test_data): Likewise.
5044         (exp_test_data): Likewise.
5045         (exp_test): Use ALL_RM_TEST.
5046         (exp_tonearest_test_data): Remove.
5047         (exp_test_tonearest): Likewise.
5048         (exp_towardzero_test_data): Likewise.
5049         (exp_test_towardzero): Likewise.
5050         (exp_downward_test_data): Likewise.
5051         (exp_test_downward): Likewise.
5052         (exp_upward_test_data): Likewise.
5053         (exp_test_upward): Likewise.
5054         (exp10_test_data): Update call to AUTO_TESTS_f_f.
5055         (exp10_test): Use ALL_RM_TEST.
5056         (exp10_tonearest_test_data): Remove.
5057         (exp10_test_tonearest): Likewise.
5058         (exp10_towardzero_test_data): Likewise.
5059         (exp10_test_towardzero): Likewise.
5060         (exp10_downward_test_data): Likewise.
5061         (exp10_test_downward): Likewise.
5062         (exp10_upward_test_data): Likewise.
5063         (exp10_test_upward): Likewise.
5064         (exp2_test_data): Update call to AUTO_TESTS_f_f.
5065         (expm1_test_data): Likewise.
5066         (expm1_test): Use ALL_RM_TEST.
5067         (expm1_tonearest_test_data): Remove.
5068         (expm1_test_tonearest): Likewise.
5069         (expm1_towardzero_test_data): Likewise.
5070         (expm1_test_towardzero): Likewise.
5071         (expm1_downward_test_data): Likewise.
5072         (expm1_test_downward): Likewise.
5073         (expm1_upward_test_data): Likewise.
5074         (expm1_test_upward): Likewise.
5075         (fma_test_data): Update call to AUTO_TESTS_fff_f.
5076         (fma_test): Use ALL_RM_TEST.
5077         (fma_towardzero_test_data): Remove.
5078         (fma_test_towardzero): Likewise.
5079         (fma_downward_test_data): Likewise.
5080         (fma_test_downward): Likewise.
5081         (fma_upward_test_data): Likewise.
5082         (fma_test_upward): Likewise.
5083         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
5084         (j0_test_data): Update call to AUTO_TESTS_f_f.
5085         (j1_test_data): Likewise.
5086         (jn_test_data): Update call to AUTO_TESTS_if_f.
5087         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
5088         (log_test_data): Update call to AUTO_TESTS_f_f.
5089         (log10_test_data): Likewise.
5090         (log1p_test_data): Likewise.
5091         (log2_test_data): Likewise.
5092         (pow_test_data): Update call to AUTO_TESTS_ff_f.
5093         (pow_tonearest_test_data): Likewise.
5094         (sin_test_data): Update call to AUTO_TESTS_f_f.
5095         (sin_test): Use ALL_RM_TEST.
5096         (sin_tonearest_test_data): Remove.
5097         (sin_test_tonearest): Likewise.
5098         (sin_towardzero_test_data): Likewise.
5099         (sin_test_towardzero): Likewise.
5100         (sin_downward_test_data): Likewise.
5101         (sin_test_downward): Likewise.
5102         (sin_upward_test_data): Likewise.
5103         (sin_test_upward): Likewise.
5104         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
5105         (sinh_test_data): Update call to AUTO_TESTS_f_f.
5106         (sinh_test): Use ALL_RM_TEST.
5107         (sinh_tonearest_test_data): Remove.
5108         (sinh_test_tonearest): Likewise.
5109         (sinh_towardzero_test_data): Likewise.
5110         (sinh_test_towardzero): Likewise.
5111         (sinh_downward_test_data): Likewise.
5112         (sinh_test_downward): Likewise.
5113         (sinh_upward_test_data): Likewise.
5114         (sinh_test_upward): Likewise.
5115         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
5116         (sqrt_test): Use ALL_RM_TEST.
5117         (sqrt_tonearest_test_data): Remove.
5118         (sqrt_test_tonearest): Likewise.
5119         (sqrt_towardzero_test_data): Likewise.
5120         (sqrt_test_towardzero): Likewise.
5121         (sqrt_downward_test_data): Likewise.
5122         (sqrt_test_downward): Likewise.
5123         (sqrt_upward_test_data): Likewise.
5124         (sqrt_test_upward): Likewise.
5125         (tan_test_data): Update call to AUTO_TESTS_f_f.
5126         (tan_test): Use ALL_RM_TEST.
5127         (tan_tonearest_test_data): Remove.
5128         (tan_test_tonearest): Likewise.
5129         (tan_towardzero_test_data): Likewise.
5130         (tan_test_towardzero): Likewise.
5131         (tan_downward_test_data): Likewise.
5132         (tan_test_downward): Likewise.
5133         (tan_upward_test_data): Likewise.
5134         (tan_test_upward): Likewise.
5135         (tanh_test_data): Update call to AUTO_TESTS_f_f.
5136         (tgamma_test_data): Likewise.
5137         (y0_test_data): Likewise.
5138         (y1_test_data): Likewise.
5139         (yn_test_data): Update call to AUTO_TESTS_if_f.
5140         (main): Do not call removed functions.
5141
5142 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5143
5144         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
5145         (ldexp_test_data): Remove.
5146         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
5147         scalbn_test_data.
5148         (scalb_test): Use ALL_RM_TEST.
5149
5150 2014-03-19  Andreas Schwab  <schwab@suse.de>
5151
5152         * nscd/nscd.service: Also invalidate netgroup cache on reload.
5153
5154 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5155
5156         [BZ #16649]
5157         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5158         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
5159         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
5160         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5161         (__ASSUME_PREADV): Undefine.
5162         (__ASSUME_PWRITEV): Likewise.
5163
5164 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5165
5166         * bits/mman-linux.h: Add comment about non-Linux use.
5167         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
5168         bits/mman-linux.h resting place.
5169
5170         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
5171         * bits/mman-linux.h: ... here.
5172
5173 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5174
5175         * conform/conformtest.pl: Add standard definition when calling C
5176         preprocessor on data files.
5177         (checknamespace): Remove unused variable.
5178
5179 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5180
5181         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
5182         minus_oflow, plus_uflow and minus_uflow in expected results.
5183         * math/libm-test.inc (scalbn_test_data): Add more tests of
5184         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
5185         minus_uflow.
5186         (scalbn_test): Use ALL_RM_TEST.
5187         (scalbln_test_data): Add more tests of negative arguments.  Use
5188         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
5189         (scalbln_test): Use ALL_RM_TEST.
5190
5191 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5192
5193         * scripts/abilist.awk: Ignore symbols marked with .hidden.
5194
5195 2014-03-18  Will Newton  <will.newton@linaro.org>
5196
5197         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
5198         inaccurate comment.
5199
5200 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5201
5202         * Makerules [!subdir] (check-abi): Exit with error status if a
5203         test failed.
5204
5205 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5206
5207         * math/libm-test.inc (nearbyint_test_data): Include all tests used
5208         for rint.  Include results for all rounding modes.
5209         (nearbyint_test): Use ALL_RM_TEST.
5210         (rint_test_data): Include all tests used for nearbyint.
5211
5212 2014-03-17  Will Newton  <will.newton@linaro.org>
5213
5214         * nptl/sysdeps/pthread/pthread.h: Revert previous
5215         change.
5216
5217         * sysdeps/generic/ldsodefs.h: Revert previous
5218         change.
5219
5220         * libio/genops.c: Revert previous change.
5221         * libio/libioP.h: Likewise.
5222         * stdio-common/vfprintf.c: Likewise.
5223
5224         * sysdeps/generic/math_private.h: Revert previous
5225         change.
5226
5227         * sysdeps/generic/math_private.h: Check whether
5228         HAVE_RM_CTX is defined with #ifdef rather
5229         than #if.
5230
5231         * argp/argp-fmtstream.h: Check whether
5232         __STRICT_ANSI__ is defined with #ifdef rather
5233         than #if.
5234         * argp/argp.h: Likewise.
5235
5236         * libio/genops.c: Check whether
5237         _IO_JUMPS_OFFSET is defined with #ifdef rather
5238         than #if.
5239         * libio/libioP.h: Likewise.
5240         * stdio-common/vfprintf.c: Likewise.
5241
5242         * sysdeps/generic/ldsodefs.h: Check whether
5243         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
5244         than #if.
5245
5246         * nptl/sysdeps/pthread/pthread.h: Check
5247         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
5248         its value.
5249
5250 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5251
5252         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
5253         setting O_APPEND.
5254         * libio/tst-ftell-active-handler.c (do_append_test): Add a
5255         test case.
5256
5257         [BZ #16680]
5258         * libio/fileops.c (_IO_file_open): Seek to end of file but
5259         don't cache the offset.
5260         (get_file_offset): Remove function.
5261         (do_ftell): Use cached offset when available.
5262         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
5263         don't cache the offset.
5264         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
5265         case.
5266         (do_one_test): Call it.
5267         (do_ftell_test): Fix up expected old offset for a+ mode.
5268         * libio/wfileops.c (do_ftell_wide): Used cached offset when
5269         available.
5270
5271         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
5272         up test status with function return status.
5273         (do_write_test): Likewise.
5274         (do_append_test): Likewise.
5275
5276         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
5277         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
5278         Remove.
5279
5280 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5281
5282         * math/gen-libm-test.pl (parse_args): Handle results specified for
5283         each rounding mode separately.
5284         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
5285         tests and results from lrint_tonearest_test_data,
5286         lrint_towardzero_test_data, lrint_downward_test_data and
5287         lrint_upward_test_data.
5288         (lrint_test): Use ALL_RM_TEST.
5289         (lrint_tonearest_test_data): Remove.
5290         (lrint_test_tonearest): Likewise.
5291         (lrint_towardzero_test_data): Likewise.
5292         (lrint_test_towardzero): Likewise.
5293         (lrint_downward_test_data): Likewise.
5294         (lrint_test_downward): Likewise.
5295         (lrint_upward_test_data): Likewise.
5296         (lrint_test_upward): Likewise.
5297         (llrint_test_data): Merge in per-rounding-mode tests and results
5298         from llrint_tonearest_test_data, llrint_towardzero_test_data,
5299         llrint_downward_test_data and llrint_upward_test_data.
5300         (llrint_test): Use ALL_RM_TEST.
5301         (llrint_tonearest_test_data): Remove.
5302         (llrint_test_tonearest): Likewise.
5303         (llrint_towardzero_test_data): Likewise.
5304         (llrint_test_towardzero): Likewise.
5305         (llrint_downward_test_data): Likewise.
5306         (llrint_test_downward): Likewise.
5307         (llrint_upward_test_data): Likewise.
5308         (llrint_test_upward): Likewise.
5309         (rint_test_data): Merge in per-rounding-mode tests and results
5310         from rint_tonearest_test_data, rint_towardzero_test_data,
5311         rint_downward_test_data and rint_upward_test_data.  Add
5312         per-rounding-mode results for tests not in those arrays.
5313         (rint_test): Use ALL_RM_TEST.
5314         (rint_tonearest_test_data): Remove.
5315         (rint_test_tonearest): Likewise.
5316         (rint_towardzero_test_data): Likewise.
5317         (rint_test_towardzero): Likewise.
5318         (rint_downward_test_data): Likewise.
5319         (rint_test_downward): Likewise.
5320         (rint_upward_test_data): Likewise.
5321         (rint_test_upward): Likewise.
5322         (main): Don't call removed functions.
5323
5324 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5325
5326         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
5327         "Compiled on ..." crapola.  It is anti-useful.
5328
5329 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
5330
5331         * scripts/evaluate-test.sh: Handle fourth argument to determine
5332         whether test run should stop on failure.
5333         * Makeconfig (stop-on-test-failure): New variable.
5334         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
5335         $(stop-on-test-failure).
5336         * Makefile (tests): Give a summary of results from testing and
5337         exit with failure status if they include an ERROR or FAIL.
5338         (xtests): Likewise.
5339         * manual/install.texi (Configuring and compiling): Mention
5340         stop-on-test-failure=y.
5341         * INSTALL: Regenerated.
5342
5343 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5344
5345         * scripts/versionlist.awk: New file.
5346         * Makerules [$(build-shared) = yes]
5347         (postclean-generated): Add Versions.def, not Versions.def.v and
5348         Versions.def.v.i.
5349         ($(common-objpfx)Versions.def.v.i): Target removed.
5350         ($(common-objpfx)Versions.def): New target.
5351         ($(common-objpfx)Versions.all): Depend on that rather that
5352         $(common-objpfx)Versions.def.v.
5353         * Versions.def: File removed.
5354
5355         * Makeconfig (+gccwarn): Add -Wundef.
5356         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
5357         a dl-sysdep.h breaking its contract.
5358         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
5359         * include/stackinfo.h: New file.
5360         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
5361         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
5362         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
5363         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
5364         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
5365         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
5366         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5367         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5368         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5369         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5370         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5371         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
5372         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5373         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5374         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5375
5376 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5377
5378         [BZ #16707]
5379         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
5380         implementation.
5381         * math/libm-test.inc (round_test_data): Add more tests.
5382
5383         [BZ #16706]
5384         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
5385         implementation.
5386         * math/libm-test.inc (nearbyint_test_data): Add more tests.
5387
5388         [BZ #16701]
5389         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
5390         implementation.
5391         * math/libm-test.inc (ceil_test_data): Add more tests.
5392
5393         * math/libm-test.inc (trunc_test_data): Add more tests related to
5394         BZ#16414.
5395
5396 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5397
5398         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
5399         with #if rather than #ifdef.
5400         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
5401
5402 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
5403
5404         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
5405         first.  Disable AVX-512 GCC support if assembler doesn't support
5406         it.
5407         * sysdeps/x86_64/configure: Regenerated.
5408
5409 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
5410
5411         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
5412         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
5413         (__old_pthread_attr_setstack): Likewise.
5414         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
5415         [!_STACK_GROWS_DOWN]: Likewise.
5416
5417 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
5418
5419         * config.make.in (have-bash2): Delete.
5420         * configure.ac (libc_cv_have_bash2): Delete.
5421         * configure: Regenerate.
5422         * elf/Makefile (common-ldd-rewrite): Rename to ...
5423         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
5424         (sh-ldd-rewrite): Delete.
5425         (bash-ldd-rewrite): Delete.
5426         (have-bash2): Delete checks.
5427         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
5428         ldd-rewrite.
5429
5430         * config.make.in (have-ksh): Delete.
5431         (KSH): Delete.
5432         * configure.ac (libc_cv_have_ksh): Delete.
5433         * configure: Regenerate.
5434
5435         * elf/Makefile: Delete $(have-ksh) check.
5436         ($(objpfx)sotruss): Change KSH to BASH.
5437         * elf/sotruss.ksh: Rename to ...
5438         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
5439         function style to match POSIX.  Drop ksh vim mode setting.
5440
5441         * manual/time.texi (Specifying the Time Zone with TZ): Change
5442         Tuesday to Thursday.
5443
5444         * debug/tst-longjmp_chk2.c: Update header comment.
5445         (stackoverflow_handler): Add comment.  Call assert on pass value.
5446
5447 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
5448
5449         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
5450         (HAVE_AVX512_ASM_SUPPORT): Likewise.
5451         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
5452         (La_x86_64_vector): Add zmm.
5453         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
5454         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
5455         ($(objpfx)tst-audit10): New target.
5456         ($(objpfx)tst-audit10.out): Likewise.
5457         (tst-audit10-ENV): New.
5458         (AVX512-CFLAGS): Likewise.
5459         (CFLAGS-tst-audit10.c): Likewise.
5460         (CFLAGS-tst-auditmod10a.c): Likewise.
5461         (CFLAGS-tst-auditmod10b.c): Likewise.
5462         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
5463         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
5464         * sysdeps/x86_64/configure: Regenerated.
5465         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
5466         AVX-512 zmm register support.
5467         (_dl_x86_64_save_sse): Likewise.
5468         (_dl_x86_64_restore_sse): Likewise.
5469         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
5470         size vector registers.
5471         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
5472         (ZMM_SIZE): Likewise.
5473         * sysdeps/x86_64/tst-audit10.c: New file.
5474         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
5475         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
5476
5477 2014-03-13  Roland McGrath  <roland@hack.frob.com>
5478
5479         * configure.ac (HAVE_EHDR_START): New check.
5480         * configure: Regenerated.
5481         * config.h.in (HAVE_EHDR_START): New #undef.
5482         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
5483         assuming the lowest-addressed segment maps the start of the file.
5484
5485 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
5486
5487         * INSTALL: Regenerated.
5488
5489 2014-03-13  Will Newton  <will.newton@linaro.org>
5490
5491         * manual/setjmp.texi (System V contexts): Improve
5492         clarity and grammar of documentation.
5493
5494 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
5495
5496         [BZ #16381]
5497         * elf/Makefile (tests): Add tst-pie2.
5498         (tests-pie): Add tst-pie2.
5499         * elf/tst-pie2.c: New file.
5500         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
5501         for ET_EXEC.
5502         * elf/rtld.c (map_doit): Load executable as lt_executable.
5503         (dl_main): Likewise.
5504
5505 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
5506
5507         [BZ #16642]
5508         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5509         (__ASSUME_PSELECT): Undefine.
5510
5511 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5512
5513         [BZ #16689]
5514         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
5515         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
5516         static build.
5517         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
5518         selector for static builds.
5519
5520 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5521
5522         [BZ #16695]
5523         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
5524         key in the buffer.
5525
5526 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5527
5528         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
5529         IFUNC selector for static builds.
5530
5531 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
5532
5533         * sysdeps/mips/math_private.h [__mips_hard_float]
5534         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
5535         libc_feresetround_mips_ctx.
5536         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
5537         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
5538         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
5539
5540         [BZ #16677]
5541         * math/s_nextafter.c (__nextafter): Do not return value from
5542         overflowing computation.
5543         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
5544         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
5545         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
5546         Likewise.
5547         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5548         Likewise.
5549         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
5550         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
5551
5552 2014-03-11  Roland McGrath  <roland@hack.frob.com>
5553
5554         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
5555         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
5556         Move sfi_sp use from the load-multiple (that no longer sets sp) to
5557         the new mov targetting sp.
5558
5559 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5560
5561         [BZ #16683]
5562         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
5563         Define it for static builds as well.
5564         (NO_BZERO_IMPL): Likewise.
5565
5566 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5567
5568         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
5569         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
5570         multiarch strspn for PPC64.
5571         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
5572         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
5573         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5574         (__libc_ifunc_impl_list): Likewise.
5575         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
5576         multiarch optimizations
5577         * string/strspn.c (strspn): Using macro to redefine symbol name.
5578
5579 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5580             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5581
5582         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
5583         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
5584         multiarch strncat for PPC64.
5585         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
5586         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
5587         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5588         (__libc_ifunc_impl_list): Likewise.
5589         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
5590         multiarch optimizations
5591
5592 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5593
5594         [BZ #16639]
5595         * nscd/nscd.service: Make service type forking.
5596
5597 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5598
5599         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
5600         sign in non default rounding modes.
5601         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5602
5603 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
5604
5605         * math/libm-test.inc (ALL_RM_TEST): New macro.
5606         (ceil_test): Use ALL_RM_TEST.
5607         (cimag_test): Likewise.
5608         (conj_test): Likewise.
5609         (copysign_test): Likewise.
5610         (cproj_test): Likewise.
5611         (creal_test): Likewise.
5612         (fabs_test): Likewise.
5613         (floor_test): Likewise.
5614         (fmax_test): Likewise.
5615         (fmin_test): Likewise.
5616         (fmod_test): Likewise.
5617         (fpclassify_test): Likewise.
5618         (frexp_test): Likewise.
5619         (ilogb_test): Likewise.
5620         (isfinite_test): Likewise.
5621         (finite_test): Likewise.
5622         (isgreater_test): Likewise.
5623         (isgreaterequal_test): Likewise.
5624         (isinf_test): Likewise.
5625         (isless_test): Likewise.
5626         (islessequal_test): Likewise.
5627         (islessgreater_test): Likewise.
5628         (isnan_test): Likewise.
5629         (isnormal_test): Likewise.
5630         (issignaling_test): Likewise.
5631         (isunordered_test): Likewise.
5632         (logb_test): Likewise.
5633         (logb_downward_test_data): Remove.
5634         (logb_test_downward): Likewise.
5635         (lround_test): Use ALL_RM_TEST.
5636         (llround_test): Likewise.
5637         (modf_test): Likewise.
5638         (nexttoward_test): Likewise.
5639         (remainder_test): Likewise.
5640         (drem_test): Likewise.
5641         (remainder_tonearest_test_data): Likewise.
5642         (remainder_test_tonearest): Likewise.
5643         (drem_test_tonearest): Likewise.
5644         (remainder_towardzero_test_data): Likewise.
5645         (remainder_test_towardzero): Likewise.
5646         (drem_test_towardzero): Likewise.
5647         (remainder_downward_test_data): Likewise.
5648         (remainder_test_downward): Likewise.
5649         (drem_test_downward): Likewise.
5650         (remainder_upward_test_data): Likewise.
5651         (remainder_test_upward): Likewise.
5652         (drem_test_upward): Likewise.
5653         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
5654         (round_test): Use ALL_RM_TEST.
5655         (signbit_test): Likewise.
5656         (trunc_test): Likewise.
5657         (significand_test): Likewise.
5658         (main): Don't call removed functions.
5659
5660 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5661
5662         [BZ #16674]
5663         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
5664         || __USE_XOPEN2K8].
5665         (ILL_ILLOPN): Likewise.
5666         (ILL_ILLADR): Likewise.
5667         (ILL_ILLTRP): Likewise.
5668         (ILL_PRVOPC): Likewise.
5669         (ILL_PRVREG): Likewise.
5670         (ILL_COPROC): Likewise.
5671         (ILL_BADSTK): Likewise.
5672         (FPE_INTDIV): Likewise.
5673         (FPE_INTOVF): Likewise.
5674         (FPE_FLTDIV): Likewise.
5675         (FPE_FLTOVF): Likewise.
5676         (FPE_FLTUND): Likewise.
5677         (FPE_FLTRES): Likewise.
5678         (FPE_FLTINV): Likewise.
5679         (FPE_FLTSUB): Likewise.
5680         (SEGV_MAPERR): Likewise.
5681         (SEGV_ACCERR): Likewise.
5682         (BUS_ADRALN): Likewise.
5683         (BUS_ADRERR): Likewise.
5684         (BUS_OBJERR): Likewise.
5685         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5686         (TRAP_TRACE): Likewise.
5687         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5688         __USE_XOPEN2K8].
5689         (CLD_KILLED): Likewise.
5690         (CLD_DUMPED): Likewise.
5691         (CLD_TRAPPED): Likewise.
5692         (CLD_STOPPED): Likewise.
5693         (CLD_CONTINUED): Likewise.
5694         (POLL_IN): Likewise.
5695         (POLL_OUT): Likewise.
5696         (POLL_MSG): Likewise.
5697         (POLL_ERR): Likewise.
5698         (POLL_PRI): Likewise.
5699         (POLL_HUP): Likewise.
5700         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
5701         Likewise.
5702         (ILL_ILLOPN): Likewise.
5703         (ILL_ILLADR): Likewise.
5704         (ILL_ILLTRP): Likewise.
5705         (ILL_PRVOPC): Likewise.
5706         (ILL_PRVREG): Likewise.
5707         (ILL_COPROC): Likewise.
5708         (ILL_BADSTK): Likewise.
5709         (FPE_INTDIV): Likewise.
5710         (FPE_INTOVF): Likewise.
5711         (FPE_FLTDIV): Likewise.
5712         (FPE_FLTOVF): Likewise.
5713         (FPE_FLTUND): Likewise.
5714         (FPE_FLTRES): Likewise.
5715         (FPE_FLTINV): Likewise.
5716         (FPE_FLTSUB): Likewise.
5717         (SEGV_MAPERR): Likewise.
5718         (SEGV_ACCERR): Likewise.
5719         (BUS_ADRALN): Likewise.
5720         (BUS_ADRERR): Likewise.
5721         (BUS_OBJERR): Likewise.
5722         (BUS_MCEERR_AR): Likewise.
5723         (BUS_MCEERR_AO): Likewise.
5724         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5725         (TRAP_TRACE): Likewise.
5726         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5727         __USE_XOPEN2K8].
5728         (CLD_KILLED): Likewise.
5729         (CLD_DUMPED): Likewise.
5730         (CLD_TRAPPED): Likewise.
5731         (CLD_STOPPED): Likewise.
5732         (CLD_CONTINUED): Likewise.
5733         (POLL_IN): Likewise.
5734         (POLL_OUT): Likewise.
5735         (POLL_MSG): Likewise.
5736         (POLL_ERR): Likewise.
5737         (POLL_PRI): Likewise.
5738         (POLL_HUP): Likewise.
5739         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
5740         (ILL_ILLOPN): Likewise.
5741         (ILL_ILLADR): Likewise.
5742         (ILL_ILLTRP): Likewise.
5743         (ILL_PRVOPC): Likewise.
5744         (ILL_PRVREG): Likewise.
5745         (ILL_COPROC): Likewise.
5746         (ILL_BADSTK): Likewise.
5747         (FPE_INTDIV): Likewise.
5748         (FPE_INTOVF): Likewise.
5749         (FPE_FLTDIV): Likewise.
5750         (FPE_FLTOVF): Likewise.
5751         (FPE_FLTUND): Likewise.
5752         (FPE_FLTRES): Likewise.
5753         (FPE_FLTINV): Likewise.
5754         (FPE_FLTSUB): Likewise.
5755         (SEGV_MAPERR): Likewise.
5756         (SEGV_ACCERR): Likewise.
5757         (BUS_ADRALN): Likewise.
5758         (BUS_ADRERR): Likewise.
5759         (BUS_OBJERR): Likewise.
5760         (BUS_MCEERR_AR): Likewise.
5761         (BUS_MCEERR_AO): Likewise.
5762         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5763         (TRAP_TRACE): Likewise.
5764         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5765         __USE_XOPEN2K8].
5766         (CLD_KILLED): Likewise.
5767         (CLD_DUMPED): Likewise.
5768         (CLD_TRAPPED): Likewise.
5769         (CLD_STOPPED): Likewise.
5770         (CLD_CONTINUED): Likewise.
5771         (POLL_IN): Likewise.
5772         (POLL_OUT): Likewise.
5773         (POLL_MSG): Likewise.
5774         (POLL_ERR): Likewise.
5775         (POLL_PRI): Likewise.
5776         (POLL_HUP): Likewise.
5777         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
5778         Likewise.
5779         (ILL_ILLOPN): Likewise.
5780         (ILL_ILLADR): Likewise.
5781         (ILL_ILLTRP): Likewise.
5782         (ILL_PRVOPC): Likewise.
5783         (ILL_PRVREG): Likewise.
5784         (ILL_COPROC): Likewise.
5785         (ILL_BADSTK): Likewise.
5786         (ILL_BADIADDR): Likewise.
5787         (ILL_BREAK): Likewise.
5788         (FPE_INTDIV): Likewise.
5789         (FPE_INTOVF): Likewise.
5790         (FPE_FLTDIV): Likewise.
5791         (FPE_FLTOVF): Likewise.
5792         (FPE_FLTUND): Likewise.
5793         (FPE_FLTRES): Likewise.
5794         (FPE_FLTINV): Likewise.
5795         (FPE_FLTSUB): Likewise.
5796         (FPE_DECOVF): Likewise.
5797         (FPE_DECDIV): Likewise.
5798         (FPE_DECERR): Likewise.
5799         (FPE_INVASC): Likewise.
5800         (FPE_INVDEC): Likewise.
5801         (SEGV_MAPERR): Likewise.
5802         (SEGV_ACCERR): Likewise.
5803         (SEGV_PSTKOVF): Likewise.
5804         (BUS_ADRALN): Likewise.
5805         (BUS_ADRERR): Likewise.
5806         (BUS_OBJERR): Likewise.
5807         (BUS_MCEERR_AR): Likewise.
5808         (BUS_MCEERR_AO): Likewise.
5809         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5810         (TRAP_TRACE): Likewise.
5811         (TRAP_BRANCH): Likewise.
5812         (TRAP_HWBKPT): Likewise.
5813         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5814         __USE_XOPEN2K8].
5815         (CLD_KILLED): Likewise.
5816         (CLD_DUMPED): Likewise.
5817         (CLD_TRAPPED): Likewise.
5818         (CLD_STOPPED): Likewise.
5819         (CLD_CONTINUED): Likewise.
5820         (POLL_IN): Likewise.
5821         (POLL_OUT): Likewise.
5822         (POLL_MSG): Likewise.
5823         (POLL_ERR): Likewise.
5824         (POLL_PRI): Likewise.
5825         (POLL_HUP): Likewise.
5826         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
5827         (ILL_ILLOPN): Likewise.
5828         (ILL_ILLADR): Likewise.
5829         (ILL_ILLTRP): Likewise.
5830         (ILL_PRVOPC): Likewise.
5831         (ILL_PRVREG): Likewise.
5832         (ILL_COPROC): Likewise.
5833         (ILL_BADSTK): Likewise.
5834         (FPE_INTDIV): Likewise.
5835         (FPE_INTOVF): Likewise.
5836         (FPE_FLTDIV): Likewise.
5837         (FPE_FLTOVF): Likewise.
5838         (FPE_FLTUND): Likewise.
5839         (FPE_FLTRES): Likewise.
5840         (FPE_FLTINV): Likewise.
5841         (FPE_FLTSUB): Likewise.
5842         (SEGV_MAPERR): Likewise.
5843         (SEGV_ACCERR): Likewise.
5844         (BUS_ADRALN): Likewise.
5845         (BUS_ADRERR): Likewise.
5846         (BUS_OBJERR): Likewise.
5847         (BUS_MCEERR_AR): Likewise.
5848         (BUS_MCEERR_AO): Likewise.
5849         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5850         (TRAP_TRACE): Likewise.
5851         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5852         __USE_XOPEN2K8].
5853         (CLD_KILLED): Likewise.
5854         (CLD_DUMPED): Likewise.
5855         (CLD_TRAPPED): Likewise.
5856         (CLD_STOPPED): Likewise.
5857         (CLD_CONTINUED): Likewise.
5858         (POLL_IN): Likewise.
5859         (POLL_OUT): Likewise.
5860         (POLL_MSG): Likewise.
5861         (POLL_ERR): Likewise.
5862         (POLL_PRI): Likewise.
5863         (POLL_HUP): Likewise.
5864         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
5865         (ILL_ILLOPN): Likewise.
5866         (ILL_ILLADR): Likewise.
5867         (ILL_ILLTRP): Likewise.
5868         (ILL_PRVOPC): Likewise.
5869         (ILL_PRVREG): Likewise.
5870         (ILL_COPROC): Likewise.
5871         (ILL_BADSTK): Likewise.
5872         (FPE_INTDIV): Likewise.
5873         (FPE_INTOVF): Likewise.
5874         (FPE_FLTDIV): Likewise.
5875         (FPE_FLTOVF): Likewise.
5876         (FPE_FLTUND): Likewise.
5877         (FPE_FLTRES): Likewise.
5878         (FPE_FLTINV): Likewise.
5879         (FPE_FLTSUB): Likewise.
5880         (SEGV_MAPERR): Likewise.
5881         (SEGV_ACCERR): Likewise.
5882         (BUS_ADRALN): Likewise.
5883         (BUS_ADRERR): Likewise.
5884         (BUS_OBJERR): Likewise.
5885         (BUS_MCEERR_AR): Likewise.
5886         (BUS_MCEERR_AO): Likewise.
5887         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5888         (TRAP_TRACE): Likewise.
5889         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5890         __USE_XOPEN2K8].
5891         (CLD_KILLED): Likewise.
5892         (CLD_DUMPED): Likewise.
5893         (CLD_TRAPPED): Likewise.
5894         (CLD_STOPPED): Likewise.
5895         (CLD_CONTINUED): Likewise.
5896         (POLL_IN): Likewise.
5897         (POLL_OUT): Likewise.
5898         (POLL_MSG): Likewise.
5899         (POLL_ERR): Likewise.
5900         (POLL_PRI): Likewise.
5901         (POLL_HUP): Likewise.
5902         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
5903         (ILL_ILLOPN): Likewise.
5904         (ILL_ILLADR): Likewise.
5905         (ILL_ILLTRP): Likewise.
5906         (ILL_PRVOPC): Likewise.
5907         (ILL_PRVREG): Likewise.
5908         (ILL_COPROC): Likewise.
5909         (ILL_BADSTK): Likewise.
5910         (FPE_INTDIV): Likewise.
5911         (FPE_INTOVF): Likewise.
5912         (FPE_FLTDIV): Likewise.
5913         (FPE_FLTOVF): Likewise.
5914         (FPE_FLTUND): Likewise.
5915         (FPE_FLTRES): Likewise.
5916         (FPE_FLTINV): Likewise.
5917         (FPE_FLTSUB): Likewise.
5918         (SEGV_MAPERR): Likewise.
5919         (SEGV_ACCERR): Likewise.
5920         (BUS_ADRALN): Likewise.
5921         (BUS_ADRERR): Likewise.
5922         (BUS_OBJERR): Likewise.
5923         (BUS_MCEERR_AR): Likewise.
5924         (BUS_MCEERR_AO): Likewise.
5925         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5926         (TRAP_TRACE): Likewise.
5927         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5928         __USE_XOPEN2K8].
5929         (CLD_KILLED): Likewise.
5930         (CLD_DUMPED): Likewise.
5931         (CLD_TRAPPED): Likewise.
5932         (CLD_STOPPED): Likewise.
5933         (CLD_CONTINUED): Likewise.
5934         (POLL_IN): Likewise.
5935         (POLL_OUT): Likewise.
5936         (POLL_MSG): Likewise.
5937         (POLL_ERR): Likewise.
5938         (POLL_PRI): Likewise.
5939         (POLL_HUP): Likewise.
5940         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
5941         (ILL_ILLOPN): Likewise.
5942         (ILL_ILLADR): Likewise.
5943         (ILL_ILLTRP): Likewise.
5944         (ILL_PRVOPC): Likewise.
5945         (ILL_PRVREG): Likewise.
5946         (ILL_COPROC): Likewise.
5947         (ILL_BADSTK): Likewise.
5948         (ILL_DBLFLT): Likewise.
5949         (ILL_HARDWALL): Likewise.
5950         (FPE_INTDIV): Likewise.
5951         (FPE_INTOVF): Likewise.
5952         (FPE_FLTDIV): Likewise.
5953         (FPE_FLTOVF): Likewise.
5954         (FPE_FLTUND): Likewise.
5955         (FPE_FLTRES): Likewise.
5956         (FPE_FLTINV): Likewise.
5957         (FPE_FLTSUB): Likewise.
5958         (SEGV_MAPERR): Likewise.
5959         (SEGV_ACCERR): Likewise.
5960         (BUS_ADRALN): Likewise.
5961         (BUS_ADRERR): Likewise.
5962         (BUS_OBJERR): Likewise.
5963         (BUS_MCEERR_AR): Likewise.
5964         (BUS_MCEERR_AO): Likewise.
5965         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5966         (TRAP_TRACE): Likewise.
5967         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5968         __USE_XOPEN2K8].
5969         (CLD_KILLED): Likewise.
5970         (CLD_DUMPED): Likewise.
5971         (CLD_TRAPPED): Likewise.
5972         (CLD_STOPPED): Likewise.
5973         (CLD_CONTINUED): Likewise.
5974         (POLL_IN): Likewise.
5975         (POLL_OUT): Likewise.
5976         (POLL_MSG): Likewise.
5977         (POLL_ERR): Likewise.
5978         (POLL_PRI): Likewise.
5979         (POLL_HUP): Likewise.
5980         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
5981         (ILL_ILLOPN): Likewise.
5982         (ILL_ILLADR): Likewise.
5983         (ILL_ILLTRP): Likewise.
5984         (ILL_PRVOPC): Likewise.
5985         (ILL_PRVREG): Likewise.
5986         (ILL_COPROC): Likewise.
5987         (ILL_BADSTK): Likewise.
5988         (FPE_INTDIV): Likewise.
5989         (FPE_INTOVF): Likewise.
5990         (FPE_FLTDIV): Likewise.
5991         (FPE_FLTOVF): Likewise.
5992         (FPE_FLTUND): Likewise.
5993         (FPE_FLTRES): Likewise.
5994         (FPE_FLTINV): Likewise.
5995         (FPE_FLTSUB): Likewise.
5996         (SEGV_MAPERR): Likewise.
5997         (SEGV_ACCERR): Likewise.
5998         (BUS_ADRALN): Likewise.
5999         (BUS_ADRERR): Likewise.
6000         (BUS_OBJERR): Likewise.
6001         (BUS_MCEERR_AR): Likewise.
6002         (BUS_MCEERR_AO): Likewise.
6003         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6004         (TRAP_TRACE): Likewise.
6005         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6006         __USE_XOPEN2K8].
6007         (CLD_KILLED): Likewise.
6008         (CLD_DUMPED): Likewise.
6009         (CLD_TRAPPED): Likewise.
6010         (CLD_STOPPED): Likewise.
6011         (CLD_CONTINUED): Likewise.
6012         (POLL_IN): Likewise.
6013         (POLL_OUT): Likewise.
6014         (POLL_MSG): Likewise.
6015         (POLL_ERR): Likewise.
6016         (POLL_PRI): Likewise.
6017         (POLL_HUP): Likewise.
6018         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
6019         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6020
6021         [BZ #16670]
6022         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
6023         before #include of <time.h>.
6024         [!__USE_XOPEN2K] (__need_timespec): Likewise.
6025         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
6026         (test-xfail-UNIX98/sched.h/conform): Likewise.
6027
6028 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6029
6030         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
6031         error absence of trapping exception support.
6032         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
6033
6034 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
6035
6036         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
6037         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
6038         * timezone/Makefile (testdata): Move definition above include of
6039         Rules.
6040         (test-zones): New variable.
6041         (tests-special): Add zone files.
6042         (build-testdata): Use $(evaluate-test).
6043
6044         * elf/Makefile (tests-special): Rename tests to end with .out.
6045         ($(objpfx)noload-mem): Likewise.
6046         ($(objpfx)tst-leaks1-mem): Likewise.
6047         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
6048         * iconv/Makefile (xtests-special): Change test-iconvconfig to
6049         $(objpfx)test-iconvconfig.out.
6050         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
6051         set -e inside subshell and redirect output to file.
6052         * iconvdata/Makefile (generated): Rename tests to end with .out.
6053         Correct type.
6054         (tests-special): Rename tests to end with .out.
6055         ($(objpfx)mtrace-tst-loading): Likewise.
6056         * intl/Makefile (generated): Likewise.
6057         (tests-special): Likewise.
6058         ($(objpfx)mtrace-tst-gettext): Likewise.
6059         * misc/Makefile (generated): Likewise.
6060         (tests-special): Likewise.
6061         ($(objpfx)tst-error1-mem): Likewise.
6062         * nptl/Makefile (tests-special): Likewise.
6063         ($(objpfx)tst-stack3-mem): Likewise.
6064         (generated): Likewise.
6065         * posix/Makefile (generated): Likewise.
6066         (tests-special): Likewise.
6067         (xtests-special): Likewise.
6068         ($(objpfx)tst-fnmatch-mem): Likewise.
6069         ($(objpfx)bug-regex2-mem): Likewise.
6070         ($(objpfx)bug-regex14-mem): Likewise.
6071         ($(objpfx)bug-regex21-mem): Likewise.
6072         ($(objpfx)bug-regex31-mem): Likewise.
6073         ($(objpfx)tst-vfork3-mem): Likewise.
6074         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6075         ($(objpfx)tst-pcre-mem): Likewise.
6076         ($(objpfx)tst-boost-mem): Likewise.
6077         ($(objpfx)bug-ga2-mem): Likewise.
6078         ($(objpfx)bug-glob2-mem): Likewise.
6079         * resolv/Makefile (generate): Likewise.
6080         (tests-special): Likewise.
6081         (xtests-special): Likewise.
6082         (generated): Likewise.
6083         ($(objpfx)mtrace-tst-leaks): Likewise.
6084         ($(objpfx)mtrace-tst-leaks2): Likewise.
6085
6086         * scripts/merge-test-results.sh: New file.
6087         * Makefile (tests-special-notdir): New variable.
6088         (tests): Run merge-test-results.sh.
6089         (xtests): Likewise.
6090         * Rules (tests-special-notdir): New variable.
6091         (xtests-special-notdir): Likewise.
6092         (tests): Run merge-test-results.sh
6093         (xtests): Likewise.
6094
6095         * Makeconfig (test-xfail-name): New variable.
6096         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
6097         compute variable name for expected failures.
6098         * conform/Makefile (conformtest-headers-data): New variable.
6099         (conformtest-standards): Likewise.
6100         (conformtest-headers-ISO): Likewise.
6101         (conformtest-headers-ISO99): Likewise.
6102         (conformtest-headers-ISO11): Likewise.
6103         (conformtest-headers-POSIX): Likewise.
6104         (conformtest-headers-XPG3): Likewise.
6105         (conformtest-headers-XPG4): Likewise.
6106         (conformtest-headers-UNIX98): Likewise.
6107         (conformtest-headers-XOPEN2K): Likewise.
6108         (conformtest-headers-POSIX2008): Likewise.
6109         (conformtest-headers-XOPEN2K8): Likewise.
6110         (conformtest-header-list-base): Likewise.
6111         (conformtest-header-list-tests): Likewise.
6112         (conformtest-header-base): Likewise.
6113         (conformtest-header-tests): Likewise.
6114         (tests-special): Add $(conformtest-header-list-tests).  If
6115         [$(fast-check) && !$(cross-compiling)], add
6116         $(conformtest-header-tests) instead of
6117         $(objpfx)run-conformtest.out.
6118         (generated): Add $(conformtest-header-list-base).  If
6119         [$(fast-check) && !$(cross-compiling)], add
6120         $(conformtest-header-base).  Remove previous setting.
6121         ($(conformtest-header-list-tests)): New target.
6122         (test-xfail-run-conformtest): Remove variable.
6123         ($(objpfx)run-conformtest.out): Remove target.
6124         (test-xfail-ISO11/complex.h/conform): New variable.
6125         (test-xfail-ISO11/stdalign.h/conform): Likewise.
6126         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
6127         (test-xfail-XPG3/varargs.h/conform): Likewise.
6128         (test-xfail-XPG4/varargs.h/conform): Likewise.
6129         (test-xfail-UNIX98/varargs.h/conform): Likewise.
6130         (test-xfail-XPG4/ndbm.h/conform): Likewise.
6131         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
6132         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
6133         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
6134         (test-xfail-XPG3/fcntl.h/conform): Likewise.
6135         (test-xfail-XPG3/ftw.h/conform): Likewise.
6136         (test-xfail-XPG3/grp.h/conform): Likewise.
6137         (test-xfail-XPG3/langinfo.h/conform): Likewise.
6138         (test-xfail-XPG3/limits.h/conform): Likewise.
6139         (test-xfail-XPG3/pwd.h/conform): Likewise.
6140         (test-xfail-XPG3/search.h/conform): Likewise.
6141         (test-xfail-XPG3/signal.h/conform): Likewise.
6142         (test-xfail-XPG3/stdio.h/conform): Likewise.
6143         (test-xfail-XPG3/stdlib.h/conform): Likewise.
6144         (test-xfail-XPG3/string.h/conform): Likewise.
6145         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
6146         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
6147         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
6148         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
6149         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
6150         (test-xfail-XPG3/sys/types.h/conform): Likewise.
6151         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
6152         (test-xfail-XPG3/termios.h/conform): Likewise.
6153         (test-xfail-XPG3/time.h/conform): Likewise.
6154         (test-xfail-XPG3/unistd.h/conform): Likewise.
6155         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
6156         (test-xfail-XPG4/fcntl.h/conform): Likewise.
6157         (test-xfail-XPG4/langinfo.h/conform): Likewise.
6158         (test-xfail-XPG4/netdb.h/conform): Likewise.
6159         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
6160         (test-xfail-XPG4/signal.h/conform): Likewise.
6161         (test-xfail-XPG4/stdio.h/conform): Likewise.
6162         (test-xfail-XPG4/stdlib.h/conform): Likewise.
6163         (test-xfail-XPG4/stropts.h/conform): Likewise.
6164         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
6165         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
6166         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
6167         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
6168         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
6169         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
6170         (test-xfail-XPG4/sys/time.h/conform): Likewise.
6171         (test-xfail-XPG4/sys/types.h/conform): Likewise.
6172         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
6173         (test-xfail-XPG4/termios.h/conform): Likewise.
6174         (test-xfail-XPG4/ucontext.h/conform): Likewise.
6175         (test-xfail-XPG4/unistd.h/conform): Likewise.
6176         (test-xfail-XPG4/utmpx.h/conform): Likewise.
6177         (test-xfail-POSIX/sched.h/conform): Likewise.
6178         (test-xfail-POSIX/signal.h/conform): Likewise.
6179         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6180         (test-xfail-POSIX/tar.h/conform): Likewise.
6181         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
6182         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
6183         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
6184         (test-xfail-UNIX98/netdb.h/conform): Likewise.
6185         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
6186         (test-xfail-UNIX98/sched.h/conform): Likewise.
6187         (test-xfail-UNIX98/signal.h/conform): Likewise.
6188         (test-xfail-UNIX98/stdio.h/conform): Likewise.
6189         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
6190         (test-xfail-UNIX98/stropts.h/conform): Likewise.
6191         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
6192         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
6193         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
6194         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
6195         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
6196         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
6197         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6198         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6199         (test-xfail-UNIX98/unistd.h/conform): Likewise.
6200         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
6201         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
6202         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
6203         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
6204         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
6205         (test-xfail-XOPEN2K/math.h/conform): Likewise.
6206         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
6207         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
6208         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
6209         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
6210         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6211         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
6212         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
6213         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
6214         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
6215         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
6216         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
6217         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
6218         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
6219         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6220         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
6221         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
6222         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6223         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
6224         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
6225         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
6226         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
6227         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
6228         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6229         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
6230         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
6231         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6232         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
6233         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
6234         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
6235         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
6236         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
6237         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
6238         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6239         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
6240         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
6241         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
6242         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
6243         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
6244         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
6245         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
6246         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
6247         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
6248         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6249         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
6250         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
6251         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
6252         (conformtest-cc-flags): Likewise.
6253         ($(conformtest-header-tests): New target.
6254         * conform/check-header-lists.sh: New file.
6255         * conform/run-conformtest.sh: Remove.
6256
6257         * conform/conformtest.pl: Allow ' and \ in values given for
6258         constants.
6259         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
6260         inclusion.
6261         [POSIX] (sys/types.h): Likewise.
6262         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
6263         inclusion.
6264         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
6265         inclusion.
6266         * conform/data/signal.h-data (SIGIO): Remove expectation.
6267         [XPG3] (SIGBUS): Do not expect.
6268         [POSIX || XPG3] (SIGPOLL): Likewise.
6269         [POSIX || XPG3] (SIGPROF): Likewise.
6270         [POSIX || XPG3] (SIGSYS): Likewise.
6271         [XPG3] (SIGTRAP): Likewise.
6272         [POSIX || XPG3] (SIGURG): Likewise.
6273         [POSIX || XPG3] (SIGVTALRM): Likewise.
6274         [POSIX || XPG3] (SIGXCPU): Likewise.
6275         [POSIX || XPG3] (SIGXFSZ): Likewise.
6276         [POSIX] (SA_SIGINFO): Expect.
6277         [XPG3] (siginfo_t): Do not expect type or contents.
6278         [POSIX] (si_pid): Do not expect element.
6279         [POSIX] (si_uid): Likewise.
6280         [POSIX] (si_addr): Likewise.
6281         [POSIX] (si_status): Likewise.
6282         [POSIX] (si_band): Likewise.
6283         [XPG4] (si_value): Likewise.
6284         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
6285         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
6286         [POSIX || XPG3] (ILL_ILLADR): Likewise.
6287         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
6288         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
6289         [POSIX || XPG3] (ILL_PRVREG): Likewise.
6290         [POSIX || XPG3] (ILL_COPROC): Likewise.
6291         [POSIX || XPG3] (ILL_BADSTK): Likewise.
6292         [POSIX || XPG3] (FPE_INTDIV): Likewise.
6293         [POSIX || XPG3] (FPE_INTOVF): Likewise.
6294         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
6295         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
6296         [POSIX || XPG3] (FPE_FLTUND): Likewise.
6297         [POSIX || XPG3] (FPE_FLTRES): Likewise.
6298         [POSIX || XPG3] (FPE_FLTINV): Likewise.
6299         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
6300         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
6301         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
6302         [POSIX || XPG3] (BUS_ADRALN): Likewise.
6303         [POSIX || XPG3] (BUS_ADRERR): Likewise.
6304         [POSIX || XPG3] (BUS_OBJERR): Likewise.
6305         [POSIX || XPG3] (CLD_EXITED): Likewise.
6306         [POSIX || XPG3] (CLD_KILLED): Likewise.
6307         [POSIX || XPG3] (CLD_DUMPED): Likewise.
6308         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
6309         [POSIX || XPG3] (CLD_STOPPED): Likewise.
6310         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
6311         [POSIX || XPG3] (POLL_IN): Likewise.
6312         [POSIX || XPG3] (POLL_OUT): Likewise.
6313         [POSIX || XPG3] (POLL_MSG): Likewise.
6314         [POSIX || XPG3] (POLL_ERR): Likewise.
6315         [POSIX || XPG3] (POLL_PRI): Likewise.
6316         [POSIX || XPG3] (POLL_HUP): Likewise.
6317         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
6318         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
6319         (SIG*): Do not allow.
6320         [XPG3] (si_*): Likewise.
6321         [XPG3] (SI_*): Likewise.
6322         [XPG3 || XPG4] (sigev_*): Likewise.
6323         [XPG3 || XPG4] (SIGEV_*): Likewise.
6324         [XPG3 || XPG4] (sival_*): Likewise.
6325         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
6326         [POSIX || XPG3] (BUS_*): Likewise.
6327         [POSIX || XPG3] (CLD_*): Likewise.
6328         [POSIX || XPG3] (FPE_*): Likewise.
6329         [POSIX || XPG3] (ILL_*): Likewise.
6330         [POSIX || XPG3] (POLL_*): Likewise.
6331         [POSIX || XPG3] (SEGV_*): Likewise.
6332         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
6333         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
6334         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
6335         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
6336         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
6337         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
6338         Specify type and value.
6339         (TVERSLEN): Likewise.
6340         (REGTYPE): Likewise.
6341         (AREGTYPE): Likewise.
6342         (LNKTYPE): Likewise.
6343         (SYMTYPE): Likewise.
6344         (CHRTYPE): Likewise.
6345         (BLKTYPE): Likewise.
6346         (DIRTYPE): Likewise.
6347         (FIFOTYPE): Likewise.
6348         (CONTTYPE): Likewise.
6349         (TSUID): Likewise.
6350         (TSGID): Likewise.
6351         (TSVTX): Likewise.
6352         (TUREAD): Likewise.
6353         (TUWRITE): Likewise.
6354         (TUEXEC): Likewise.
6355         (TGREAD): Likewise.
6356         (TGWRITE): Likewise.
6357         (TGEXEC): Likewise.
6358         (TOREAD): Likewise.
6359         (TOWRITE): Likewise.
6360         (TOEXEC): Likewise.
6361         [POSIX] (TSVTX): Expect constant.
6362
6363 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
6364
6365         * Makefile (tests): Change dependencies to ....
6366         (tests-special): ... additions to this variable.
6367         (tests): Depend on $(tests-special).
6368         * Makerules (check-abi-list): New variable.
6369         (check-abi): Depend on $(check-abi-list).
6370         [$(subdir) = elf] (tests-special): Add
6371         $(objpfx)check-abi-libc.out.
6372         [$(build-shared) = yes && subdir] (tests-special): Add
6373         $(check-abi-list).
6374         [$(build-shared) = yes && subdir] (tests): Do not depend on
6375         check-abi.
6376         * Rules (tests): Depend on $(tests-special).
6377         (xtests): Depend on $(xtests-special).
6378         * catgets/Makefile (tests): Change dependencies to ....
6379         (tests-special): ... additions to this variable.
6380         * conform/Makefile (tests): Change dependencies to ....
6381         (tests-special): ... additions to this variable.
6382         * elf/Makefile (tests): Change dependencies to ....
6383         (tests-special): ... additions to this variable.
6384         * grp/Makefile (tests): Change dependencies to ....
6385         (tests-special): ... additions to this variable.
6386         * iconv/Makefile (xtests): Change dependencies to ....
6387         (xtests-special): ... additions to this variable.
6388         * iconvdata/Makefile (tests): Change dependencies to ....
6389         (tests-special): ... additions to this variable.
6390         * intl/Makefile (tests): Change dependencies to ....
6391         (tests-special): ... additions to this variable.  Also add
6392         $(objpfx)tst-gettext.out.
6393         * io/Makefile (tests): Change dependencies to ....
6394         (tests-special): ... additions to this variable.
6395         * libio/Makefile (tests): Change dependencies to ....
6396         (tests-special): ... additions to this variable.
6397         * malloc/Makefile (tests): Change dependencies to ....
6398         (tests-special): ... additions to this variable.
6399         * misc/Makefile (tests): Change dependencies to ....
6400         (tests-special): ... additions to this variable.
6401         * nptl/Makefile (tests): Change dependencies to ....
6402         (tests-special): ... additions to this variable.
6403         * nptl_db/Makefile (tests): Change dependencies to ....
6404         (tests-special): ... additions to this variable.
6405         * posix/Makefile (tests): Change dependencies to ....
6406         (tests-special): ... additions to this variable.
6407         (xtests): Change dependencies to ....
6408         (xtests-special): ... additions to this variable.
6409         * resolv/Makefile (tests): Change dependencies to ....
6410         (tests-special): ... additions to this variable.
6411         (xtests): Change dependencies to ....
6412         (xtests-special): ... additions to this variable.
6413         * stdio-common/Makefile (tests): Change dependencies to ....
6414         (tests-special): ... additions to this variable.
6415         (do-tst-unbputc): Remove target.
6416         (do-tst-printf): Likewise.
6417         * stdlib/Makefile (tests): Change dependencies to ....
6418         (tests-special): ... additions to this variable.
6419         * string/Makefile (tests): Change dependencies to ....
6420         (tests-special): ... additions to this variable.
6421         * sysdeps/x86/Makefile (tests): Change dependencies to ....
6422         (tests-special): ... additions to this variable.
6423
6424         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
6425         whole file.
6426         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
6427         whole file.
6428         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
6429         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
6430
6431         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
6432         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
6433         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
6434         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
6435         * conform/data/libgen.h-data [XPG3]: Likewise.
6436         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
6437         * conform/data/ndbm.h-data [XPG3]: Likewise.
6438         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6439         * conform/data/netdb.h-data [XPG3]: Likewise.
6440         * conform/data/netinet/in.h-data [XPG3]: Likewise.
6441         * conform/data/poll.h-data [XPG3]: Likewise.
6442         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6443         * conform/data/strings.h-data [XPG3]: Likewise.
6444         * conform/data/stropts.h-data [XPG3]: Likewise.
6445         * conform/data/sys/mman.h-data [XPG3]: Likewise.
6446         * conform/data/sys/resource.h-data [XPG3]: Likewise.
6447         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
6448         Likewise.
6449         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
6450         * conform/data/sys/time.h-data [XPG3]: Likewise.
6451         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
6452         * conform/data/sys/uio.h-data [XPG3]: Likewise.
6453         * conform/data/sys/un.h-data [XPG3]: Likewise.
6454         * conform/data/syslog.h-data [XPG3]: Likewise.
6455         * conform/data/ucontext.h-data [XPG3]: Likewise.
6456         * conform/data/utmpx.h-data [XPG3]: Likewise.
6457         * conform/data/varargs.h-data [UNIX98]: Enable file.
6458
6459         * manual/Makefile (INSTALL_INFO): Remove variable setting.
6460
6461         * math/libm-test.inc (struct test_f_f_data): Move expected results
6462         into structure for each rounding mode.
6463         (struct test_ff_f_data): Likewise.
6464         (struct test_ff_f_data_nexttoward): Likewise.
6465         (struct test_fi_f_data): Likewise.
6466         (struct test_fl_f_data): Likewise.
6467         (struct test_if_f_data): Likewise.
6468         (struct test_fff_f_data): Likewise.
6469         (struct test_c_f_data): Likewise.
6470         (struct test_f_f1_data): Likewise.
6471         (struct test_fF_f1_data): Likewise.
6472         (struct test_ffI_f1_data): Likewise.
6473         (struct test_c_c_data): Likewise.
6474         (struct test_cc_c_data): Likewise.
6475         (struct test_f_i_data): Likewise.
6476         (struct test_ff_i_data): Likewise.
6477         (struct test_f_l_data): Likewise.
6478         (struct test_f_L_data): Likewise.
6479         (struct test_fFF_11_data): Likewise.
6480         (RM_): New macro.
6481         (RM_FE_DOWNWARD): Likewise.
6482         (RM_FE_TONEAREST): Likewise.
6483         (RM_FE_TOWARDZERO): Likewise.
6484         (RM_FE_UPWARD): Likewise.
6485         (RUN_TEST_LOOP_f_f): Update references to expected results.
6486         (RUN_TEST_LOOP_2_f): Likewise.
6487         (RUN_TEST_LOOP_fff_f): Likewise.
6488         (RUN_TEST_LOOP_c_f): Likewise.
6489         (RUN_TEST_LOOP_f_f1): Likewise.
6490         (RUN_TEST_LOOP_fF_f1): Likewise.
6491         (RUN_TEST_LOOP_fI_f1): Likewise.
6492         (RUN_TEST_LOOP_ffI_f1): Likewise.
6493         (RUN_TEST_LOOP_c_c): Likewise.
6494         (RUN_TEST_LOOP_cc_c): Likewise.
6495         (RUN_TEST_LOOP_f_i): Likewise.
6496         (RUN_TEST_LOOP_f_i_tg): Likewise.
6497         (RUN_TEST_LOOP_ff_i_tg): Likewise.
6498         (RUN_TEST_LOOP_f_b): Likewise.
6499         (RUN_TEST_LOOP_f_b_tg): Likewise.
6500         (RUN_TEST_LOOP_f_l): Likewise.
6501         (RUN_TEST_LOOP_f_L): Likewise.
6502         (RUN_TEST_LOOP_fFF_11): Likewise.
6503         * math/gen-libm-test.pl (parse_args): Output four copies of
6504         expected results for each test.
6505
6506         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6507         (__ASSUME_UTIMES): Remove.
6508         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6509         (__ASSUME_UTIMES): Likewise.
6510
6511         * math/gen-auto-libm-tests.c: Update comment on output format.
6512         (output_for_one_input_case): Generate before-rounding and
6513         after-rounding information as conditions on output flags not
6514         floating-point format.
6515         * math/auto-libm-test-out: Regenerated.
6516         * math/gen-libm-test.pl (cond_value): New function.
6517         (or_cond_value): Use cond_value.
6518         (generate_testfile): Handle conditional exceptions.
6519
6520 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
6521
6522         * math/libm-test.inc (max_valid_error): New variable.
6523         (init_max_error): Take new argument specifying whether function
6524         results are exactly determined.  Set max_valid_error and bound
6525         other variables for errors based on this argument.
6526         (set_max_error): Do not record results above max_valid_error.
6527         (check_float_internal): Only accept errors of up to 0.5ulps if
6528         also at most max_valid_error.
6529         (START): Take new argument EXACT and pass it to init_max_error.
6530         (acos_test): Update call to START.
6531         (acos_test_tonearest): Likewise.
6532         (acos_test_towardzero): Likewise.
6533         (acos_test_downward): Likewise.
6534         (acos_test_upward): Likewise.
6535         (acosh_test): Likewise.
6536         (asin_test): Likewise.
6537         (asin_test_tonearest): Likewise.
6538         (asin_test_towardzero): Likewise.
6539         (asin_test_downward): Likewise.
6540         (asin_test_upward): Likewise.
6541         (asinh_test): Likewise.
6542         (atan_test): Likewise.
6543         (atanh_test): Likewise.
6544         (atan2_test): Likewise.
6545         (cabs_test): Likewise.
6546         (cacos_test): Likewise.
6547         (cacosh_test): Likewise.
6548         (carg_test): Likewise.
6549         (casin_test): Likewise.
6550         (casinh_test): Likewise.
6551         (catan_test): Likewise.
6552         (catanh_test): Likewise.
6553         (cbrt_test): Likewise.
6554         (ccos_test): Likewise.
6555         (ccosh_test): Likewise.
6556         (ceil_test): Likewise.
6557         (cexp_test): Likewise.
6558         (cimag_test): Likewise.
6559         (clog_test): Likewise.
6560         (clog10_test): Likewise.
6561         (conj_test): Likewise.
6562         (copysign_test): Likewise.
6563         (cos_test): Likewise.
6564         (cos_test_tonearest): Likewise.
6565         (cos_test_towardzero): Likewise.
6566         (cos_test_downward): Likewise.
6567         (cos_test_upward): Likewise.
6568         (cosh_test): Likewise.
6569         (cosh_test_tonearest): Likewise.
6570         (cosh_test_towardzero): Likewise.
6571         (cosh_test_downward): Likewise.
6572         (cosh_test_upward): Likewise.
6573         (cpow_test): Likewise.
6574         (cproj_test): Likewise.
6575         (creal_test): Likewise.
6576         (csin_test): Likewise.
6577         (csinh_test): Likewise.
6578         (csqrt_test): Likewise.
6579         (ctan_test): Likewise.
6580         (ctan_test_tonearest): Likewise.
6581         (ctan_test_towardzero): Likewise.
6582         (ctan_test_downward): Likewise.
6583         (ctan_test_upward): Likewise.
6584         (ctanh_test): Likewise.
6585         (ctanh_test_tonearest): Likewise.
6586         (ctanh_test_towardzero): Likewise.
6587         (ctanh_test_downward): Likewise.
6588         (ctanh_test_upward): Likewise.
6589         (erf_test): Likewise.
6590         (erfc_test): Likewise.
6591         (exp_test): Likewise.
6592         (exp_test_tonearest): Likewise.
6593         (exp_test_towardzero): Likewise.
6594         (exp_test_downward): Likewise.
6595         (exp_test_upward): Likewise.
6596         (exp10_test): Likewise.
6597         (exp10_test_tonearest): Likewise.
6598         (exp10_test_towardzero): Likewise.
6599         (exp10_test_downward): Likewise.
6600         (exp10_test_upward): Likewise.
6601         (pow10_test): Likewise.
6602         (exp2_test): Likewise.
6603         (expm1_test): Likewise.
6604         (expm1_test_tonearest): Likewise.
6605         (expm1_test_towardzero): Likewise.
6606         (expm1_test_downward): Likewise.
6607         (expm1_test_upward): Likewise.
6608         (fabs_test): Likewise.
6609         (fdim_test): Likewise.
6610         (floor_test): Likewise.
6611         (fma_test): Likewise.
6612         (fma_test_towardzero): Likewise.
6613         (fma_test_downward): Likewise.
6614         (fma_test_upward): Likewise.
6615         (fmax_test): Likewise.
6616         (fmin_test): Likewise.
6617         (fmod_test): Likewise.
6618         (fpclassify_test): Likewise.
6619         (frexp_test): Likewise.
6620         (hypot_test): Likewise.
6621         (ilogb_test): Likewise.
6622         (isfinite_test): Likewise.
6623         (finite_test): Likewise.
6624         (isgreater_test): Likewise.
6625         (isgreaterequal_test): Likewise.
6626         (isinf_test): Likewise.
6627         (isless_test): Likewise.
6628         (islessequal_test): Likewise.
6629         (islessgreater_test): Likewise.
6630         (isnan_test): Likewise.
6631         (isnormal_test): Likewise.
6632         (issignaling_test): Likewise.
6633         (isunordered_test): Likewise.
6634         (j0_test): Likewise.
6635         (j1_test): Likewise.
6636         (jn_test): Likewise.
6637         (ldexp_test): Likewise.
6638         (lgamma_test): Likewise.
6639         (gamma_test): Likewise.
6640         (lrint_test): Likewise.
6641         (lrint_test_tonearest): Likewise.
6642         (lrint_test_towardzero): Likewise.
6643         (lrint_test_downward): Likewise.
6644         (lrint_test_upward): Likewise.
6645         (llrint_test): Likewise.
6646         (llrint_test_tonearest): Likewise.
6647         (llrint_test_towardzero): Likewise.
6648         (llrint_test_downward): Likewise.
6649         (llrint_test_upward): Likewise.
6650         (log_test): Likewise.
6651         (log10_test): Likewise.
6652         (log1p_test): Likewise.
6653         (log2_test): Likewise.
6654         (logb_test): Likewise.
6655         (logb_test_downward): Likewise.
6656         (lround_test): Likewise.
6657         (llround_test): Likewise.
6658         (modf_test): Likewise.
6659         (nearbyint_test): Likewise.
6660         (nextafter_test): Likewise.
6661         (nexttoward_test): Likewise.
6662         (pow_test): Likewise.
6663         (pow_test_tonearest): Likewise.
6664         (pow_test_towardzero): Likewise.
6665         (pow_test_downward): Likewise.
6666         (pow_test_upward): Likewise.
6667         (remainder_test): Likewise.
6668         (drem_test): Likewise.
6669         (remainder_test_tonearest): Likewise.
6670         (drem_test_tonearest): Likewise.
6671         (remainder_test_towardzero): Likewise.
6672         (drem_test_towardzero): Likewise.
6673         (remainder_test_downward): Likewise.
6674         (drem_test_downward): Likewise.
6675         (remainder_test_upward): Likewise.
6676         (drem_test_upward): Likewise.
6677         (remquo_test): Likewise.
6678         (rint_test): Likewise.
6679         (rint_test_tonearest): Likewise.
6680         (rint_test_towardzero): Likewise.
6681         (rint_test_downward): Likewise.
6682         (rint_test_upward): Likewise.
6683         (round_test): Likewise.
6684         (scalb_test): Likewise.
6685         (scalbn_test): Likewise.
6686         (scalbln_test): Likewise.
6687         (signbit_test): Likewise.
6688         (sin_test): Likewise.
6689         (sin_test_tonearest): Likewise.
6690         (sin_test_towardzero): Likewise.
6691         (sin_test_downward): Likewise.
6692         (sin_test_upward): Likewise.
6693         (sincos_test): Likewise.
6694         (sinh_test): Likewise.
6695         (sinh_test_tonearest): Likewise.
6696         (sinh_test_towardzero): Likewise.
6697         (sinh_test_downward): Likewise.
6698         (sinh_test_upward): Likewise.
6699         (sqrt_test): Likewise.
6700         (sqrt_test_tonearest): Likewise.
6701         (sqrt_test_towardzero): Likewise.
6702         (sqrt_test_downward): Likewise.
6703         (sqrt_test_upward): Likewise.
6704         (tan_test): Likewise.
6705         (tan_test_tonearest): Likewise.
6706         (tan_test_towardzero): Likewise.
6707         (tan_test_downward): Likewise.
6708         (tan_test_upward): Likewise.
6709         (tanh_test): Likewise.
6710         (tgamma_test): Likewise.
6711         (trunc_test): Likewise.
6712         (y0_test): Likewise.
6713         (y1_test): Likewise.
6714         (yn_test): Likewise.
6715         (significand_test): Likewise.
6716
6717         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
6718         individual tests in comment.
6719         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
6720         (prev_max_error): New variable.
6721         (prev_real_max_error): Likewise.
6722         (prev_imag_max_error): Likewise.
6723         (compare_ulp_data): Don't refer to test names in comment.
6724         (find_test_ulps): Remove function.
6725         (find_function_ulps): Likewise.
6726         (find_complex_function_ulps): Likewise.
6727         (init_max_error): Take function name as argument.  Look up ulps
6728         for that function.
6729         (print_ulps): Remove function.
6730         (print_max_error): Use prev_max_error instead of calling
6731         find_function_ulps.
6732         (print_complex_max_error): Use prev_real_max_error and
6733         prev_imag_max_error instead of calling find_complex_function_ulps.
6734         (check_float_internal): Take max_ulp parameter instead of calling
6735         find_test_ulps.  Don't call print_ulps.
6736         (check_float): Update call to check_float_internal.
6737         (check_complex): Update calls to check_float_internal.
6738         (START): Pass argument to init_max_error.
6739         * math/gen-libm-test.pl (%results): Don't include "kind"
6740         information.
6741         (parse_ulps): Don't handle ulps of individual tests.
6742         (print_ulps_file): Likewise.
6743         (output_ulps): Likewise.
6744         * math/README.libm-test: Update.
6745         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
6746         individual tests.
6747         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
6748         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6749         * sysdeps/arm/libm-test-ulps: Likewise.
6750         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6751         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
6752         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
6753         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
6754         * sysdeps/microblaze/libm-test-ulps: Likewise.
6755         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6756         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6757         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6758         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6759         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6760         * sysdeps/sh/libm-test-ulps: Likewise.
6761         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6762         * sysdeps/tile/libm-test-ulps: Likewise.
6763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6764
6765 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
6766
6767         * math/libm-test.inc (print_complex_max_error): Check separately
6768         whether real and imaginary errors are within allowed range and
6769         pass 0 to print_complex_function_ulps instead of value within
6770         allowed range.
6771
6772 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6773
6774         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
6775         formatting.
6776         (get_handles_fopen): Likewise.
6777         (do_write_test): Likewise.
6778
6779         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
6780
6781         * libio/fileops.c (do_ftell): Use cached offset when
6782         available.
6783         * libio/iofwide.c (do_ftell_wide): Likewise.
6784         * libio/iofdopen.c (_IO_new_fdopen): Don't use
6785         _IO_file_attach.
6786         * libio/wfileops.c (_IO_fwide): Don't cache offset.
6787
6788         [BZ #16532]
6789         * libio/libioP.h (get_file_offset): New function.
6790         * libio/fileops.c (get_file_offset): Likewise.
6791         (do_ftell): Likewise.
6792         (_IO_new_file_seekoff): Split out ftell logic.
6793         * libio/wfileops.c (do_ftell_wide): Likewise.
6794         (_IO_wfile_seekoff): Split out ftell logic.
6795         * libio/tst-ftell-active-handler.c: New test case.
6796         * libio/Makefile (tests): Add it.
6797
6798 2014-03-03  Roland McGrath  <roland@hack.frob.com>
6799
6800         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
6801         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
6802
6803 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6804
6805         [BZ #16639]
6806         * nscd/connections.c (nscd_init): Call do_exit.
6807         (start_threads): Call do_exit and notify_parent.
6808         (begin_drop_privileges): Call do_exit.
6809         (finish_drop_privileges): Likewise.
6810         * nscd/selinux.c (preserve_capabilities): Likewise.
6811         (install_real_capabilities): Likewise.
6812         (nscd_selinux_enabled): Likewise.
6813         (avc_create_thread): Likewise.
6814         (avc_alloc_lock): Likewise.
6815         (nscd_avc_init): Likewise.
6816         * nscd/nscd.c (parent_fd): New static variable.
6817         (main): Create a pipe between parent and child processes.
6818         Skip closing parent_fd.
6819         (monitor_child): New function.
6820         (do_exit): Likewise.
6821         (notify_parent): Likewise.
6822         * nscd/nscd.h (notify_parent): Likewise.
6823         (do_exit): Likewise.
6824
6825 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
6826
6827         * malloc/malloc.c (__libc_calloc): Revert last change.
6828
6829 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6830
6831         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6832
6833 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6834
6835         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
6836         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
6837         implementation.
6838         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6839         (__libc_ifunc_impl_list): Likewise.
6840         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
6841         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
6842         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
6843         * string/strrchr.c: Define STRRCHR.
6844
6845 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
6846
6847         * benchtest/bench-strtok.c (simple_strtok): Delete.
6848         (strtok_string): Use as benchmark.
6849         * string/strtok (STRTOK): New macro.
6850
6851 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
6852
6853         * manual/threads.texi: Add header and standard comments to all
6854         functions.
6855
6856         * elf/dl-lookup.c (check_match): New function.
6857         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
6858         (do_lookup_x): Remove nested function check_match. Use non-nested
6859         function check_match.
6860
6861 2014-02-28  Roland McGrath  <roland@hack.frob.com>
6862
6863         * csu/Makefile (generated, before-compile): Use += rather than =.
6864         * catgets/Makefile (generated, generated-dirs): Likewise.
6865         * debug/Makefile (generated): Likewise.
6866         * dlfcn/Makefile (generated): Likewise.
6867         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
6868         * iconvdata/Makefile (before-compile, generated): Likewise.
6869         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
6870         * libio/Makefile (generated): Likewise.
6871         * malloc/Makefile (generated): Likewise.
6872         * manual/Makefile (generated, generated-dirs): Likewise.
6873         * misc/Makefile (generated): Likewise.
6874         * posix/Makefile (generated): Likewise.
6875         * resolv/Makefile (generated): Likewise.
6876         * sunrpc/Makefile (generated, generated-dirs): Likewise.
6877         * timezone/Makefile (generated, generated-dirs): Likewise.
6878
6879         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
6880
6881 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6882
6883         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
6884         power8 implementation.
6885         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
6886         file: POWER8 llround ifunc implementation.
6887         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6888         (__lllround): Add POWER8 implementation.
6889         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
6890         POWER8 llround implementation.
6891
6892         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
6893         power8 implementation.
6894         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
6895         file: POWER8 llrint ifunc implementation.
6896         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
6897         Add POWER8 implementation.
6898         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
6899         POWER8 llrint implementation.
6900
6901         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
6902         power8 implementation.
6903         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
6904         file: POWER8 finite ifunc implementation.
6905         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
6906         Add POWER8 implementation.
6907         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
6908         Likewise.
6909         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
6910         POWER8 finite implementation.
6911         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
6912
6913         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
6914         power8 implementation.
6915         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
6916         file: POWER8 isinf ifunc implementation.
6917         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
6918         POWER8 implementation.
6919         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
6920         Likewise.
6921         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
6922         isinf implementation.
6923         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
6924
6925         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
6926         (INIT_ARCH): Add hwcap2 initialization.
6927         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
6928         power8 implementation.
6929         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
6930         file: POWER8 isnan ifunc implementation.
6931         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
6932         POWER8 implementation.
6933         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
6934         Likewise.
6935         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
6936         isnan implementation.
6937         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
6938
6939 2014-02-27  Joey Ye  <joey.ye@arm.com>
6940
6941         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
6942         (_FP_NANFRAC_Q): Set to zero.
6943
6944 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6945
6946         [BZ #16623]
6947         * math/auto-libm-test-in: New test inputs.
6948         * math/auto-libm-test-out: Regenerate.
6949         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
6950         and DA.
6951         (__cos): Likewise.
6952         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6953
6954 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
6955
6956         * scripts/evaluate-test.sh: Take new argument indicating whether
6957         failure is expected.
6958         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
6959         indicating whether failure is expected.
6960         * conform/Makefile (test-xfail-run-conformtest): New variable.
6961         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
6962         level.
6963         * posix/Makefile (test-xfail-annexc): New variable.
6964         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
6965
6966 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
6967
6968         * argp/Makefile: Include Makeconfig immediately after defining
6969         subdir.
6970         * assert/Makefile: Likewise.
6971         * benchtests/Makefile: Likewise.
6972         * catgets/Makefile: Likewise.
6973         * conform/Makefile: Likewise.
6974         * crypt/Makefile: Likewise.
6975         * csu/Makefile: Likewise.
6976         (all): Remove target.
6977         * ctype/Makefile: Include Makeconfig immediately after defining
6978         subdir.
6979         * debug/Makefile: Likewise.
6980         * dirent/Makefile: Likewise.
6981         * dlfcn/Makefile: Likewise.
6982         * gmon/Makefile: Likewise.
6983         * gnulib/Makefile: Likewise.
6984         * grp/Makefile: Likewise.
6985         * gshadow/Makefile: Likewise.
6986         * hesiod/Makefile: Likewise.
6987         * hurd/Makefile: Likewise.
6988         (all): Remove target.
6989         * iconvdata/Makefile: Include Makeconfig immediately after
6990         defining subdir.
6991         * inet/Makefile: Likewise.
6992         * intl/Makefile: Likewise.
6993         * io/Makefile: Likewise.
6994         * libio/Makefile: Likewise.
6995         (all): Remove target.
6996         * locale/Makefile: Include Makeconfig immediately after defining
6997         subdir.
6998         * login/Makefile: Likewise.
6999         * mach/Makefile: Likewise.
7000         (all): Remove target.
7001         * malloc/Makefile: Include Makeconfig immediately after defining
7002         subdir.
7003         (all): Remove target.
7004         * manual/Makefile: Include Makeconfig immediately after defining
7005         subdir.
7006         * math/Makefile: Likewise.
7007         * misc/Makefile: Likewise.
7008         * nis/Makefile: Likewise.
7009         * nss/Makefile: Likewise.
7010         * po/Makefile: Likewise.
7011         (all): Remove target.
7012         * posix/Makefile: Include Makeconfig immediately after defining
7013         subdir.
7014         * pwd/Makefile: Likewise.
7015         * resolv/Makefile: Likewise.
7016         * resource/Makefile: Likewise.
7017         * rt/Makefile: Likewise.
7018         * setjmp/Makefile: Likewise.
7019         * shadow/Makefile: Likewise.
7020         * signal/Makefile: Likewise.
7021         * socket/Makefile: Likewise.
7022         * soft-fp/Makefile: Likewise.
7023         * stdio-common/Makefile: Likewise.
7024         * stdlib/Makefile: Likewise.
7025         * streams/Makefile: Likewise.
7026         * string/Makefile: Likewise.
7027         * sunrpc/Makefile: Likewise.
7028         (all): Remove target.
7029         * sysvipc/Makefile: Include Makeconfig immediately after defining
7030         subdir.
7031         * termios/Makefile: Likewise.
7032         * time/Makefile: Likewise.
7033         * timezone/Makefile: Likewise.
7034         (all): Remove target.
7035         * wcsmbs/Makefile: Include Makeconfig immediately after defining
7036         subdir.
7037         * wctype/Makefile: Likewise.
7038
7039 2014-02-26  Steve Ellcey  <sellcey@mips.com>
7040
7041         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
7042         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
7043         (libc_feholdexcept_setround_mips): Ditto.
7044         (libc_feholdsetround): New.
7045         (libc_feholdsetroundf): New.
7046         (libc_feholdsetroundl): New.
7047         (libc_feupdateenv_test_mips): New.
7048         (libc_feupdateenv_test): New.
7049         (libc_feupdateenv_testf): New.
7050         (libc_feupdateenv_testl): New.
7051         (libc_feresetround): New.
7052         (libc_feresetroundf): New.
7053         (libc_feresetroundl): New.
7054         (libc_fetestexcept_mips): New.
7055         (libc_fetestexcept): New.
7056         (libc_fetestexceptf): New.
7057         (libc_fetestexceptl): New.
7058         (HAVE_RM_CTX): New.
7059         (libc_feholdexcept_setround_mips_ctx): New.
7060         (libc_feholdexcept_setround_ctx): New.
7061         (libc_feholdexcept_setroundf_ctx): New.
7062         (libc_feholdexcept_setroundl_ctx): New.
7063         (libc_fesetenv_mips_ctx): New.
7064         (libc_fesetenv_ctx): New.
7065         (libc_fesetenv_ctxf): New.
7066         (libc_fesetenv_ctxl): New.
7067         (libc_feupdateenv_mips_ctx): New.
7068         (libc_feupdateenv_ctx): New.
7069         (libc_feupdateenvf_ctx): New.
7070         (libc_feupdateenvl_ctx): New.
7071         (libc_feholdsetround_mips_ctx): New.
7072         (libc_feholdsetround_ctx): New.
7073         (libc_feholdsetroundf_ctx): New.
7074         (libc_feholdsetroundl_ctx): New.
7075         (libc_feresetround_mips_ctx): New.
7076         (libc_feresetround_ctx): New.
7077         (libc_feresetroundf_ctx): New.
7078         (libc_feresetroundl_ctx): New.
7079
7080 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
7081
7082         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
7083
7084         * manual/ipc.texi: New file.
7085         * manual/Makefile (chapters): Add ipc.
7086         * manual/job.texi: Add "Inter-Process Communication" to next.
7087         * manual/process.texi: Add "Inter-Process Communication" to prev.
7088
7089 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7090
7091         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7092
7093 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
7094
7095         * malloc/malloc.c (__libc_calloc): Simplify implementation.
7096
7097         * manual/arith.texi: Fix spaces after sentences.
7098         * manual/charset.texi: Likewise.
7099         * manual/errno.texi: Likewise.
7100         * manual/install.texi: Likewise.
7101         * manual/llio.texi: Likewise.
7102         * manual/locale.texi: Likewise.
7103         * manual/maint.texi: Likewise.
7104         * manual/math.texi: Likewise.
7105         * manual/memory.texi: Likewise.
7106         * manual/message.texi: Likewise.
7107         * manual/probes.texi: Likewise.
7108         * manual/resource.texi: Likewise.
7109         * manual/signal.texi: Likewise.
7110         * manual/socket.texi: Likewise.
7111         * manual/stdio.texi: Likewise.
7112         * manual/string.texi: Likewise.
7113         * manual/time.texi: Likewise.
7114         * manual/users.texi: Likewise.
7115
7116 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
7117
7118         [BZ #16632]
7119         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
7120         _DEFAULT_SOURCE is defined.
7121
7122 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
7123             Carlos O'Donell  <carlos@redhat.com>
7124
7125         [BZ #16613]
7126         * elf/dl-tls.c (_dl_count_modids): New function.
7127         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
7128         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
7129         audit library and increment generation counter.
7130         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
7131         * elf/tst-audit9.c: New file.
7132         * elf/tst-auditmod9a.c: New file.
7133         * elf/tst-auditmod9b.c: New file.
7134         * elf/Makefile: Add rules to build and run tst-audit9.
7135
7136 2014-02-25  Florian Weimer  <fweimer@redhat.com>
7137
7138         [BZ #15347]
7139         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
7140
7141 2014-02-25  Will Newton  <will.newton@linaro.org>
7142
7143         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
7144         (__longjmp): Restore sp and lr before restoring callee
7145         saved registers.  Add longjmp and longjmp_target
7146         SystemTap probe point.
7147         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
7148         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
7149         Define to zero to match jmpbuf layout.
7150         * sysdeps/arm/setjmp.S: Include stap-probe.h.
7151         (__sigsetjmp): Save sp and lr before saving callee
7152         saved registers.  Add setjmp SystemTap probe point.
7153
7154 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
7155
7156         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7157
7158 2014-02-24  Andreas Schwab  <schwab@suse.de>
7159
7160         [BZ #15804]
7161         * elf/pldd.c (wait_for_ptrace_stop): New function.
7162         (main): Call it after attaching.
7163
7164 2014-02-22  Roland McGrath  <roland@hack.frob.com>
7165
7166         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
7167         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
7168         Versions files is now verboten.
7169         * hurd/Versions (libc: GLIBC_2.0):
7170         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
7171         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
7172         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
7173         * mach/Versions: Likewise.
7174
7175         * csu/Versions: Remove unused %include.
7176         * resolv/Versions: Likewise.
7177
7178 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
7179
7180         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
7181         ($(objpfx)check-local-headers.out): Likewise.
7182         ($(objpfx)begin-end-check.out): Likewise.
7183         * Makerules (check-abi-%.out): Likewise.
7184         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
7185         ($(objpfx)test2.cat): Likewise.
7186         ($(objpfx)de/libc.cat): Likewise.
7187         ($(objpfx)test-gencat.out): Likewise.
7188         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
7189         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
7190         ($(objpfx)noload-mem): Likewise.
7191         ($(objpfx)tst-pathopt.out): Likewise.
7192         ($(objpfx)tst-rtld-load-self.out): Likewise.
7193         ($(objpfx)tst-array1-cmp.out): Likewise.
7194         ($(objpfx)tst-array1-static-cmp.out): Likewise.
7195         ($(objpfx)tst-array2-cmp.out): Likewise.
7196         ($(objpfx)tst-array3-cmp.out): Likewise.
7197         ($(objpfx)tst-array4-cmp.out): Likewise.
7198         ($(objpfx)tst-array5-cmp.out): Likewise.
7199         ($(objpfx)tst-array5-static-cmp.out): Likewise.
7200         ($(objpfx)check-textrel.out): Likewise.
7201         ($(objpfx)check-execstack.out): Likewise.
7202         ($(objpfx)check-localplt.out): Likewise.
7203         ($(objpfx)order2-cmp.out): Likewise.
7204         ($(objpfx)tst-leaks1-mem): Likewise.
7205         ($(objpfx)tst-leaks1-static-mem): Likewise.
7206         ($(objpfx)tst-initorder-cmp.out): Likewise.
7207         ($(objpfx)tst-initorder2-cmp.out): Likewise.
7208         ($(objpfx)tst-unused-dep.out): Likewise.
7209         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
7210         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7211         * iconv/Makefile (test-iconvconfig): Likewise.
7212         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
7213         ($(objpfx)iconv-test.out): Likewise.
7214         ($(objpfx)tst-tables.out): Likewise.
7215         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
7216         ($(objpfx)tst-gettext.out): Likewise.
7217         ($(objpfx)tst-translit.out): Likewise.
7218         ($(objpfx)tst-gettext2.out): Likewise.
7219         ($(objpfx)tst-gettext4.out): Likewise.
7220         ($(objpfx)tst-gettext6.out): Likewise.
7221         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
7222         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7223         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
7224         ($(objpfx)tst-fopenloc-mem.out): Likewise.
7225         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7226         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
7227         * posix/Makefile ($(objpfx)globtest.out): Likewise.
7228         ($(objpfx)wordexp-tst.out): Likewise.
7229         ($(objpfx)annexc.out): Likewise.
7230         ($(objpfx)tst-fnmatch-mem): Likewise.
7231         ($(objpfx)bug-regex2-mem): Likewise.
7232         ($(objpfx)bug-regex14-mem): Likewise.
7233         ($(objpfx)bug-regex21-mem): Likewise.
7234         ($(objpfx)bug-regex31-mem): Likewise.
7235         ($(objpfx)tst-vfork3-mem): Likewise.
7236         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
7237         ($(objpfx)tst-pcre-mem): Likewise.
7238         ($(objpfx)tst-boost-mem): Likewise.
7239         ($(objpfx)tst-getconf.out): Likewise.
7240         ($(objpfx)bug-ga2-mem): Likewise.
7241         ($(objpfx)bug-glob2-mem): Likewise.
7242         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
7243         ($(objpfx)mtrace-tst-leaks2): Likewise.
7244         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
7245         ($(objpfx)tst-printf.out): Likewise.
7246         ($(objpfx)tst-setvbuf1.out): Likewise.
7247         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
7248         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
7249         ($(objpfx)tst-fmtmsg.out): Likewise.
7250         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
7251         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
7252
7253         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
7254         * bits/sigaction.h [__USE_MISC]: Likewise.
7255         * bits/waitstatus.h: Update #endif comments.
7256         * ctype/ctype.h: Likewise.
7257         * dirent/dirent.h: Likewise.
7258         [__USE_MISC]: Remove redundant conditionals.
7259         * grp/grp.h: Update #endif comments.
7260         [__USE_GNU]: Remove redundant conditionals.
7261         [__USE_MISC]: Likewise.
7262         * inet/netinet/in.h [__USE_GNU]: Likewise.
7263         * io/sys/stat.h [__USE_MISC]: Likewise.
7264         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
7265         * libio/bits/stdio.h: Update #endif comments.
7266         [__USE_MISC]: Remove redundant conditionals.
7267         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
7268         * libio/stdio.h: Update #endif comments.
7269         [__USE_MISC]: Remove redundant conditionals.
7270         * math/bits/math-finite.h [__USE_MISC]: Likewise.
7271         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
7272         * math/math.h: Update #else and #endif comments.
7273         [__USE_MISC]: Remove redundant conditionals.
7274         * misc/sys/uio.h: Update #endif comments.
7275         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
7276         * posix/glob.h [__USE_MISC]: Likewise.
7277         * posix/sys/types.h: Update #endif comments.
7278         [__USE_MISC]: Remove redundant conditionals.
7279         * posix/sys/wait.h: Update #endif comments.
7280         [__USE_MISC]: Remove redundant conditionals.
7281         * posix/unistd.h: Update #endif comments.
7282         [__USE_MISC]: Remove redundant conditionals.
7283         * pwd/pwd.h [__USE_GNU]: Likewise.
7284         [__USE_MISC]: Likewise.
7285         * resolv/netdb.h [__USE_GNU]: Likewise.
7286         * signal/signal.h: Update #endif comments.
7287         [__USE_MISC]: Remove redundant conditionals.
7288         * stdlib/stdlib.h: Update #else and #endif comments.
7289         [__USE_MISC]: Remove redundant conditionals.
7290         [__USE_GNU]: Likewise.
7291         * string/bits/string2.h [__USE_MISC]: Likewise.
7292         * string/string.h: Update #endif comments.
7293         [__USE_MISC]: Remove redundant conditionals.
7294         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
7295         Likewise.
7296         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
7297         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
7298         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
7299         Likewise.
7300         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
7301         Likewise.
7302         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
7303         comments.
7304         [__USE_MISC]: Remove redundant conditionals.
7305         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
7306         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
7307         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
7308         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
7309         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
7310         Likewise.
7311         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
7312         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
7313         Likewise.
7314         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
7315         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
7316         Likewise.
7317         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
7318         Likewise.
7319         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
7320         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
7321         Likewise.
7322         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
7323         Likewise.
7324         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
7325         * sysdeps/x86/bits/string.h: Update #endif comments.
7326         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
7327         conditionals.
7328         * time/sys/time.h: Update #endif comments.
7329         * time/time.h: Likewise.
7330         [__USE_MISC]: Remove redundant conditionals.
7331
7332 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
7333
7334         [BZ #16600]
7335         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
7336
7337 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
7338
7339         * Versions.def (librt): Add GLIBC_2.17.
7340
7341 2014-02-21  Adam Conrad  <adconrad@0c3.net>
7342
7343         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
7344         synonym for _SYS_AUXV_H to allow direct inclusion.
7345         * sysdeps/sparc/bits/hwcap.h: Likewise.
7346         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
7347         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
7348         * sysdeps/sparc/sysdep.h: Likewise.
7349
7350 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7351
7352         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
7353
7354 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7355
7356         * benchtests/bench-strrchr.c: Print length instead of position.
7357
7358 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
7359
7360         [BZ #16611]
7361         * sysdeps/unix/sysv/linux/kernel-features.h
7362         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
7363         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
7364         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
7365         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
7366         Likewise.
7367         [__i386__ || __powerpc__ || __sh__ || __sparc__]
7368         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7369         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
7370         (__ASSUME_SENDMMSG): Define instead of using previous
7371         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
7372         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7373         (__ASSUME_SENDMMSG_SYSCALL): Define.
7374         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7375         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
7376         Likewise.
7377         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7378         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7379         Likewise.
7380         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7381         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7382         Likewise.
7383         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
7384         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7385         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7386         [__ASSUME_SENDMMSG]: Change conditionals to
7387         [__ASSUME_SENDMMSG_SOCKETCALL].
7388         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7389         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
7390         Define.
7391         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7392         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
7393         Likewise.
7394         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
7395         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7396         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7397         [!__ASSUME_SENDMMSG]: Change conditional to
7398         [!__ASSUME_SENDMMSG_SOCKETCALL].
7399         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7400         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7401         Define.
7402
7403         [BZ #16610]
7404         * sysdeps/unix/sysv/linux/kernel-features.h
7405         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
7406         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
7407         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
7408         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
7409         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7410         [__i386__ || __sparc__]
7411         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7412         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
7413         (__ASSUME_RECVMMSG): Define instead of using previous
7414         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
7415         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7416         (__ASSUME_RECVMMSG_SYSCALL): Define.
7417         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7418         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7419         Likewise.
7420         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7421         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7422         Likewise.
7423         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7424         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7425         Likewise.
7426         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
7427         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7428         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7429         [__ASSUME_RECVMMSG]: Change condition to
7430         [__ASSUME_RECVMMSG_SOCKETCALL].
7431         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7432         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7433         Define.
7434         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7435         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7436         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7437         Likewise.
7438         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
7439         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7440         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7441         [!__ASSUME_RECVMMSG]: Change condition to
7442         [!__ASSUME_RECVMMSG_SOCKETCALL].
7443         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7444         (__ASSUME_RECVMMSG_SYSCALL): Define.
7445
7446         [BZ #16609]
7447         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
7448         __powerpc__ || __s390__ || __sh__ || __sparc__]
7449         (__ASSUME_SOCKETCALL): Define.
7450         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
7451         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
7452         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
7453         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
7454         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7455         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
7456         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
7457         (__ASSUME_ACCEPT4): Define instead of using previous
7458         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
7459         __powerpc__ || __sparc__ || __s390__)] condition.
7460         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7461         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7462         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
7463         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7464         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7465         [!__ASSUME_ACCEPT4]: Change condition to
7466         [!__ASSUME_ACCEPT4_SOCKETCALL].
7467         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7468         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
7469         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
7470         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7471         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
7472         __ASSUME_ACCEPT4_SYSCALL.
7473         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
7474         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
7475         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7476         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
7477         __ASSUME_ACCEPT4_SYSCALL.
7478         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
7479         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7480         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7481         [__ASSUME_ACCEPT4]: Change condition to
7482         [__ASSUME_ACCEPT4_SOCKETCALL].
7483         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7484         (__ASSUME_SOCKETCALL): Define.
7485         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
7486         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7487         (__ASSUME_SOCKETCALL): Define.
7488         (__ASSUME_ACCEPT4): Remove.
7489         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
7490         Define.
7491         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7492         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
7493         Likewise.
7494         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7495         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7496
7497         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
7498         macro.
7499         (HWCAP_ARM_LPAE): Likewise.
7500         (HWCAP_ARM_EVTSTRM): Likewise.
7501         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
7502         Add vpfd32, lpae and evtstrm.
7503         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7504         Increase to 22.
7505
7506 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
7507
7508         * math/auto-libm-test-in: Add tests of clog10.
7509         * math/auto-libm-test-out: Regenerated.
7510         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
7511         * sysdeps/i386/fpu/libm-test-ulps: Update.
7512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7513
7514 2014-02-18  Andreas Schwab  <schwab@suse.de>
7515
7516         [BZ #16574]
7517         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
7518         Store non-zero if the second buffer was newly allocated.
7519         (send_dg): Likewise.
7520         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
7521         to send_vc and send_dg.
7522         (res_nsend): Pass NULL for ansp2_malloced.
7523         * resolv/res_query.c (__libc_res_nquery): Add parameter
7524         answerp2_malloced and pass it down to __libc_res_nsend.
7525         (res_nquery): Pass additional NULL to __libc_res_nquery.
7526         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
7527         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
7528         second answer buffer if answerp2_malloced was set.
7529         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
7530         (__libc_res_nquerydomain): Add parameter
7531         answerp2_malloced and pass it down to __libc_res_nquery.
7532         (res_nquerydomain): Pass additional NULL to
7533         __libc_res_nquerydomain.
7534         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
7535         additional NULL to __libc_res_nsend and __libc_res_nquery.
7536         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
7537         additional NULL to __libc_res_nsearch.
7538         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
7539         parameter of __libc_res_nsearch to check for separately allocated
7540         second buffer.
7541         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
7542         __libc_res_nquery.
7543         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
7544         additional NULL to __libc_res_nquery.
7545         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
7546         __libc_res_nsearch.
7547         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
7548         * include/resolv.h: Update prototypes of __libc_res_nquery,
7549         __libc_res_nsearch, __libc_res_nsend.
7550
7551 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
7552
7553         * math/auto-libm-test-in: Add tests of fma.
7554         * math/auto-libm-test-out: Regenerated.
7555         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
7556         (fma_towardzero_test_data): Likewise.
7557         (fma_downward_test_data): Likewise.
7558         (fma_upward_test_data): Likewise.
7559         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
7560         mpc_mode.
7561         (rounding_modes): Add values for new field.
7562         (func_calc_method): Add value mpfr_fff_f.
7563         (func_calc_desc): Add mpfr_fff_f union field.
7564         (test_function): Add field exact_args.
7565         (FUNC): Add macro argument EXACT_ARGS.
7566         (FUNC_mpfr_f_f): Update call to FUNC.
7567         (FUNC_mpfr_f_f): Likewise.
7568         (FUNC_mpfr_ff_f): Likewise.
7569         (FUNC_mpfr_if_f): Likewise.
7570         (FUNC_mpc_c_f): Likewise.
7571         (FUNC_mpc_c_c): Likewise.
7572         (test_functions): Add fma.  Update calls to FUNC.
7573         (handle_input_arg): Add argument exact_args.
7574         (add_test): Update call to handle_input_arg.
7575         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
7576         (output_for_one_input_case): Update call to calc_generic_results.
7577         Recalculate exact zero results in each rounding mode.
7578
7579         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
7580         non-negative before setting low bit.
7581         * math/auto-libm-test-in: Mark one asin test possibly having
7582         spurious underflow.
7583         * math/auto-libm-test-out: Regenerated.
7584         * sysdeps/i386/fpu/libm-test-ulps: Update.
7585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7586
7587 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
7588
7589         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
7590         * sysdeps/unix/sysv/linux/microblaze: Move directory from
7591         ports/sysdeps/unix/sysv/linux/microblaze.
7592         * README: Add missing listing for microblaze*-*-linux-gnu.
7593
7594 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
7595
7596         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
7597         * sysdeps/unix/sysv/linux/ia64: Move directory from
7598         ports/sysdeps/unix/sysv/linux/ia64.
7599         * README: Update listing for ia64-*-linux-gnu.
7600
7601 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
7602             Joseph Myers  <joseph@codesourcery.com>
7603
7604         * Makeconfig (test-name): New variable.
7605         (evaluate-test): Likewise.
7606         * Makerules (do-test-clean): Remove .test-result files.
7607         (common-mostlyclean): Likewise.
7608         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
7609         * scripts/evaluate-test.sh: New file.
7610
7611 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
7612
7613         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
7614         separate $(objpfx)tst-fopenloc-cmp.out and
7615         $(objpfx)tst-fopenloc-mem.out targets.
7616         (tests): Update dependencies.
7617         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
7618         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
7619         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
7620         (tst-rxspencer-no-utf8-ARGS): New variable.
7621         (tst-rxspencer-no-utf8-ENV): Likewise.
7622         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
7623         instead of $(objpfx)tst-rxspencer-mem.
7624         ($(objpfx)tst-rxspencer-mem): Change target to
7625         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
7626         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
7627         * posix/tst-rxspencer-no-utf8.c: New file.
7628
7629         * elf/Makefile ($(objpfx)order.out): Remove rule.
7630         [$(run-built-tests) = yes] (tests): Depend on
7631         $(objpfx)order-cmp.out.
7632         ($(objpfx)order-cmp.out): New rule.
7633         [$(run-built-tests) = yes] (tests): Depend on
7634         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
7635         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
7636         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
7637         $(objpfx)tst-array5-static-cmp.out.
7638         ($(objpfx)tst-array1.out): Remove rule.
7639         ($(objpfx)tst-array1-cmp.out): New rule.
7640         ($(objpfx)tst-array1-static.out): Remove rule.
7641         ($(objpfx)tst-array1-static-cmp.out): New rule.
7642         ($(objpfx)tst-array2.out): Remove rule.
7643         ($(objpfx)tst-array2-cmp.out): New rule.
7644         ($(objpfx)tst-array3.out): Remove rule.
7645         ($(objpfx)tst-array3-cmp.out): New rule.
7646         ($(objpfx)tst-array4.out): Remove rule.
7647         ($(objpfx)tst-array4-cmp.out): New rule.
7648         ($(objpfx)tst-array5.out): Remove rule.
7649         ($(objpfx)tst-array5-cmp.out): New rule.
7650         ($(objpfx)tst-array5-static.out): Remove rule.
7651         ($(objpfx)tst-array5-static-cmp.out): New rule.
7652         [$(run-built-tests) = yes] (tests): Depend on
7653         $(objpfx)order2-cmp.out.
7654         ($(objpfx)order2.out): Remove rule.
7655         ($(objpfx)order2-cmp.out): New rule.
7656         ($(objpfx)tst-initorder.out): Remove rule.
7657         [$(run-built-tests) = yes] (tests): Depend on
7658         $(objpfx)tst-initorder-cmp.out.
7659         ($(objpfx)tst-initorder-cmp.out): New rule.
7660         ($(objpfx)tst-initorder2.out): Remove rule.
7661         [$(run-built-tests) = yes] (tests): Depend on
7662         $(objpfx)tst-initorder2-cmp.out.
7663         ($(objpfx)tst-initorder2-cmp.out): New rule.
7664         [$(run-built-tests) = yes] (tests): Depend on
7665         $(objpfx)tst-unused-dep-cmp.out.
7666         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
7667         ($(objpfx)tst-unused-dep-cmp.out): New rule.
7668         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
7669         on $(objpfx)tst-setvbuf1-cmp.out.
7670         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
7671         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
7672         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
7673         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
7674         ($(objpfx)tst-svc.out): Remove rule.
7675         ($(objpfx)tst-svc-cmp.out): New rule.
7676
7677 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
7678
7679         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
7680         * ctype/ctype.h [__USE_MISC]: Likewise.
7681         * dirent/dirent.h [__USE_MISC]: Likewise.
7682         * grp/grp.h [__USE_MISC]: Likewise.
7683         * io/fcntl.h [__USE_MISC]: Likewise.
7684         * io/sys/stat.h [__USE_MISC]: Likewise.
7685         * libio/stdio.h [__USE_MISC]: Likewise.
7686         * posix/unistd.h [__USE_MISC]: Likewise.
7687         * pwd/pwd.h [__USE_MISC]: Likewise.
7688         * stdlib.h [__USE_MISC]: Likewise.
7689         * string/bits/string2.h [__USE_MISC]: Likewise.
7690         * string/string.h [__USE_MISC]: Likewise.
7691         * time/time.h [__USE_MISC]: Likewise.
7692
7693 2014-02-13  Andreas Schwab  <schwab@suse.de>
7694
7695         [BZ #16574]
7696         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
7697         second answer buffer if it was separately allocated.
7698
7699 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
7700
7701         * sysdeps/mips/math-tests.h: Include <features.h>.
7702         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7703         (ROUNDING_TESTS_long_double): Do not define.
7704         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7705         (EXCEPTION_TESTS_long_double): Likewise.
7706         * sysdeps/mips/mips64/libm-test-ulps: Update.
7707
7708         * include/features.h (__USE_BSD): Remove macro definitions.
7709         (__USE_SVID): Likewise.
7710         (_BSD_SOURCE): Likewise.
7711         (_SVID_SOURCE): Likewise.
7712         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
7713         from definition of _DEFAULT_SOURCE.
7714         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
7715         [_DEFAULT_SOURCE].
7716         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
7717         * bits/mman.h [__USE_BSD]: Likewise.
7718         * bits/termios.h [__USE_BSD]: Likewise.
7719         * bits/waitstatus.h [__USE_BSD]: Likewise.
7720         * ctype/ctype.h [__USE_SVID]: Likewise.
7721         * dirent/dirent.h [__USE_BSD]: Likewise.
7722         * grp/grp.h [__USE_SVID]: Likewise.
7723         [__USE_BSD]: Likewise.
7724         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
7725         * io/fcntl.h [__USE_BSD]: Likewise.
7726         * io/ftw.h [__USE_BSD]: Likewise.
7727         * io/sys/stat.h [__USE_BSD]: Likewise.
7728         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
7729         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
7730         * libio/stdio.h [__USE_SVID]: Likewise.
7731         [__USE_BSD]: Likewise.
7732         * math/math.h [__USE_SVID]: Likewise.
7733         [__USE_BSD]: Likewise.
7734         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
7735         * misc/bits/syslog.h [__USE_BSD]: Likewise.
7736         * misc/search.h [__USE_SVID]: Likewise.
7737         * misc/sys/mman.h [__USE_BSD]: Likewise.
7738         * misc/sys/syslog.h [__USE_BSD]: Likewise.
7739         * misc/sys/uio.h [__USE_BSD]: Likewise.
7740         * posix/bits/unistd.h [__USE_BSD]: Likewise.
7741         * posix/glob.h [__USE_BSD]: Likewise.
7742         * posix/regex.h [__USE_BSD]: Likewise.
7743         * posix/sys/types.h [__USE_BSD]: Likewise.
7744         [__USE_SVID]: Likewise.
7745         * posix/sys/utsname.h [__USE_SVID]: Likewise.
7746         * posix/sys/wait.h [__USE_BSD]: Likewise.
7747         [__USE_SVID]: Likewise.
7748         * posix/unistd.h [__USE_BSD]: Likewise.
7749         [__USE_SVID]: Likewise.
7750         * pwd/pwd.h [__USE_SVID]: Likewise.
7751         * resolv/netdb.h [__USE_BSD]: Likewise.
7752         * setjmp/setjmp.h [__USE_BSD]: Likewise.
7753         * signal/signal.h [__USE_BSD]: Likewise.
7754         [__USE_SVID]: Likewise.
7755         * socket/sys/socket.h [__USE_BSD]: Likewise.
7756         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
7757         * stdlib/stdlib.h [__USE_BSD]: Likewise.
7758         [__USE_SVID]: Likewise.
7759         * string/bits/string2.h [__USE_BSD]: Likewise.
7760         [__USE_SVID]: Likewise.
7761         * string/bits/string3.h [__USE_BSD]: Likewise.
7762         * string/endian.h [__USE_BSD]: Likewise.
7763         * string/string.h [__USE_SVID]: Likewise.
7764         [__USE_BSD]: Likewise.
7765         * string/strings.h [__USE_BSD]: Likewise.
7766         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
7767         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
7768         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
7769         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
7770         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
7771         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
7772         Likewise.
7773         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
7774         Likewise.
7775         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
7776         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
7777         Likewise.
7778         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
7779         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
7780         Likewise.
7781         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
7782         Likewise.
7783         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
7784         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
7785         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
7786         Likewise.
7787         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
7788         Likewise.
7789         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
7790         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
7791         * termios/termios.h [__USE_BSD]: Likewise.
7792         * time/sys/time.h [__USE_BSD]: Likewise.
7793         * time/time.h [__USE_BSD]: Likewise.
7794         [__USE_SVID]: Likewise.
7795
7796         * Makefile (subdir_targets): Remove subdir_lint.out.
7797
7798         * stdio-common/Makefile (do-tst-unbputc): Remove target.
7799         (do-tst-printf): Likewise.
7800         (tests): Depend directly on $(objpfx)tst-unbputc.out and
7801         $(objpfx)tst-printf.out.
7802
7803         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
7804
7805         * Makerules (check-abi-%): Change target to
7806         $(objpfx)check-abi-%.out.
7807         (check-abi target): Update dependencies.
7808         (check-abi-pattern variable): Redirect output of diff to $@.
7809         (check-abi variable): Likewise.
7810         * elf/Makefile (check-abi): Update dependencies.
7811
7812         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
7813         unused.
7814         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
7815         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
7816         subnormal range.
7817         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
7818         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
7819         value has largest subnormal exponent.
7820         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
7821         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
7822         * sysdeps/aarch64/soft-fp/sfp-machine.h
7823         (_FP_TININESS_AFTER_ROUNDING): New macro.
7824         * sysdeps/alpha/soft-fp/sfp-machine.h
7825         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7826         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7827         Likewise.
7828         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
7829         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7830         * sysdeps/mips/soft-fp/sfp-machine.h
7831         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7832         * sysdeps/powerpc/soft-fp/sfp-machine.h
7833         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7834         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7835         Likewise.
7836         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7837         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7838         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7839         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7840         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7841         Likewise.
7842
7843 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
7844
7845         [BZ #16545]
7846         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
7847         model 1.
7848
7849 2014-02-12  Richard Henderson  <rth@redhat.com>
7850
7851         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
7852         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
7853         * sysdeps/unix/sysv/linux/alpha: Move directory from
7854         ports/sysdeps/unix/sysv/linux/alpha.
7855         * README: Update listing for alpha-*-linux-gnu.
7856
7857 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
7858
7859         * include/features.h: Update comment documenting feature test
7860         macros.
7861         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
7862         _DEFAULT_SOURCE.
7863         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
7864         (_SVID_SOURCE): Likewise.
7865         (_DEFAULT_SOURCE): Update description of default features.
7866         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
7867         with _GNU_SOURCE.
7868         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
7869         (S_ISVTX): Likewise.
7870         * manual/math.texi (Mathematical Constants): Likewise.
7871         * manual/signal.texi (Interrupted Primitives): Likewise.
7872         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
7873         * math/test-matherr.c (_SVID_SOURCE): Do not define.
7874         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
7875         Don't refer to _SVID_SOURCE in warning text.
7876
7877         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7878
7879         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
7880         already defined.
7881         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
7882         * sysdeps/mips/dl-lookup.c: Remove.
7883         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
7884
7885 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
7886
7887         [BZ #16447]
7888         * math/auto-libm-test-in: Add testcase for expl.
7889         * math/auto-libm-test-out: Regenerate.
7890         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
7891         calculation of unsafe.
7892         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
7893
7894 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7895
7896         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
7897         * sysdeps/unix/sysv/linux/aarch64: Move directory from
7898         ports/sysdeps/unix/sysv/linux/aarch64.
7899         * README: Update listing for aarch64*-*-linux-gnu.
7900
7901 2014-02-11  Will Newton  <will.newton@linaro.org>
7902
7903         * manual/probes.texi (Mathematical Function Probes): Use
7904         "triggered" instead of "hit".
7905
7906         * manual/probes.texi (Internal Probes): Add documentation
7907         of setjmp, longjmp and longjmp_target probes.
7908
7909         * include/stap-probe.h: Add comment about probe argument
7910         format.
7911
7912         * malloc/mtrace.c (attribute_hidden): Remove unused macro
7913         definition.  (tr_where, tr_freehook, tr_mallochook,
7914         tr_reallochook, tr_memalignhook): Use ANSI protoype.
7915
7916 2014-02-11  David S. Miller  <davem@davemloft.net>
7917
7918         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
7919         processing int_tests.
7920
7921 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
7922
7923         * sysdeps/mips: Move directory from ports/sysdeps/mips.
7924         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
7925         * sysdeps/unix/sysv/linux/mips: Move directory from
7926         ports/sysdeps/unix/sysv/linux/mips.
7927         * README: Update listing for mips-*-linux-gnu and
7928         mips64-*-linux-gnu.
7929
7930 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
7931
7932         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
7933         * sysdeps/unix/sysv/linux/m68k: Move directory from
7934         ports/sysdeps/unix/sysv/linux/m68k.
7935         * README: Update listing for m68k-*-linux-gnu.
7936
7937 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
7938
7939         * sysdeps/tile: Move directory from ports/sysdeps/tile.
7940         * sysdeps/unix/sysv/linux/generic: Move directory from
7941         ports/sysdeps/unix/sysv/linux/generic.
7942         * sysdeps/unix/sysv/linux/tile: Move directory from
7943         ports/sysdeps/unix/sysv/linux/tile.
7944         * README: Update listing for tile*-*-linux-gnu.
7945
7946 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
7947
7948         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
7949         __builtin_expect.
7950         * benchtests/bench-memmem.c (simple_memmem): Likewise.
7951         * catgets/open_catalog.c (__open_catalog): Likewise.
7952         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
7953         * debug/confstr_chk.c: Likewise.
7954         * debug/fread_chk.c (__fread_chk): Likewise.
7955         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
7956         * debug/getgroups_chk.c: Likewise.
7957         * debug/mbsnrtowcs_chk.c: Likewise.
7958         * debug/mbsrtowcs_chk.c: Likewise.
7959         * debug/mbstowcs_chk.c: Likewise.
7960         * debug/memcpy_chk.c: Likewise.
7961         * debug/memmove_chk.c: Likewise.
7962         * debug/mempcpy_chk.c: Likewise.
7963         * debug/memset_chk.c: Likewise.
7964         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7965         * debug/strcat_chk.c (__strcat_chk): Likewise.
7966         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
7967         * debug/strncat_chk.c (__strncat_chk): Likewise.
7968         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
7969         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
7970         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
7971         * debug/wcpncpy_chk.c: Likewise.
7972         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7973         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
7974         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
7975         * debug/wcsncpy_chk.c: Likewise.
7976         * debug/wcsnrtombs_chk.c: Likewise.
7977         * debug/wcsrtombs_chk.c: Likewise.
7978         * debug/wcstombs_chk.c: Likewise.
7979         * debug/wmemcpy_chk.c: Likewise.
7980         * debug/wmemmove_chk.c: Likewise.
7981         * debug/wmempcpy_chk.c: Likewise.
7982         * debug/wmemset_chk.c: Likewise.
7983         * dirent/scandirat.c (SCANDIRAT): Likewise.
7984         * dlfcn/dladdr1.c (dladdr1): Likewise.
7985         * dlfcn/dladdr.c (dladdr): Likewise.
7986         * dlfcn/dlclose.c (dlclose_doit): Likewise.
7987         * dlfcn/dlerror.c (__dlerror): Likewise.
7988         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7989         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
7990         * dlfcn/dlopen.c (dlopen_doit): Likewise.
7991         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
7992         * dlfcn/dlsym.c (dlsym_doit): Likewise.
7993         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
7994         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
7995         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
7996         Likewise.
7997         * elf/dl-conflict.c: Likewise.
7998         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7999         * elf/dl-dst.h: Likewise.
8000         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
8001         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
8002         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
8003         * elf/dl-init.c (call_init, _dl_init): Likewise.
8004         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
8005         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
8006         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
8007         Likewise.
8008         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
8009         Likewise.
8010         * elf/dl-minimal.c (__libc_memalign): Likewise.
8011         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
8012         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8013         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8014         * elf/dl-sym.c (do_sym): Likewise.
8015         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
8016         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
8017         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
8018         * elf/dl-writev.h (_dl_writev): Likewise.
8019         * elf/ldconfig.c (search_dir): Likewise.
8020         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
8021         (dl_main): Likewise.
8022         * elf/setup-vdso.h (setup_vdso): Likewise.
8023         * grp/compat-initgroups.c (compat_call): Likewise.
8024         * grp/fgetgrent.c (fgetgrent): Likewise.
8025         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
8026         * grp/putgrent.c (putgrent): Likewise.
8027         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
8028         Likewise.
8029         * hurd/hurdinit.c: Likewise.
8030         * iconvdata/8bit-gap.c (struct): Likewise.
8031         * iconvdata/ansi_x3.110.c : Likewise.
8032         * iconvdata/big5.c : Likewise.
8033         * iconvdata/big5hkscs.c : Likewise.
8034         * iconvdata/cp1255.c: Likewise.
8035         * iconvdata/cp1258.c : Likewise.
8036         * iconvdata/cp932.c : Likewise.
8037         * iconvdata/euc-cn.c: Likewise.
8038         * iconvdata/euc-jisx0213.c : Likewise.
8039         * iconvdata/euc-jp.c: Likewise.
8040         * iconvdata/euc-jp-ms.c : Likewise.
8041         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
8042         * iconvdata/gb18030.c : Likewise.
8043         * iconvdata/gbbig5.c (const): Likewise.
8044         * iconvdata/gbgbk.c: Likewise.
8045         * iconvdata/gbk.c : Likewise.
8046         * iconvdata/ibm1364.c : Likewise.
8047         * iconvdata/ibm930.c : Likewise.
8048         * iconvdata/ibm932.c: Likewise.
8049         * iconvdata/ibm933.c : Likewise.
8050         * iconvdata/ibm935.c : Likewise.
8051         * iconvdata/ibm937.c : Likewise.
8052         * iconvdata/ibm939.c : Likewise.
8053         * iconvdata/ibm943.c: Likewise.
8054         * iconvdata/iso_11548-1.c: Likewise.
8055         * iconvdata/iso-2022-cn.c : Likewise.
8056         * iconvdata/iso-2022-cn-ext.c : Likewise.
8057         * iconvdata/iso-2022-jp-3.c: Likewise.
8058         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
8059         * iconvdata/iso-2022-kr.c : Likewise.
8060         * iconvdata/iso646.c (gconv_end): Likewise.
8061         * iconvdata/iso_6937-2.c : Likewise.
8062         * iconvdata/iso_6937.c : Likewise.
8063         * iconvdata/iso8859-1.c: Likewise.
8064         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
8065         * iconvdata/shift_jisx0213.c : Likewise.
8066         * iconvdata/sjis.c : Likewise.
8067         * iconvdata/t.61.c : Likewise.
8068         * iconvdata/tcvn5712-1.c : Likewise.
8069         * iconvdata/tscii.c: Likewise.
8070         * iconvdata/uhc.c : Likewise.
8071         * iconvdata/unicode.c (gconv_end): Likewise.
8072         * iconvdata/utf-16.c (gconv_end): Likewise.
8073         * iconvdata/utf-32.c (gconv_end): Likewise.
8074         * iconvdata/utf-7.c (base64): Likewise.
8075         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8076         * iconv/gconv_close.c (__gconv_close): Likewise.
8077         * iconv/gconv_open.c (__gconv_open): Likewise.
8078         * iconv/gconv_simple.c (internal_ucs4_loop_single)
8079         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
8080         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
8081         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
8082         (ucs4le_internal_loop_single): Likewise.
8083         * iconv/iconv.c (iconv): Likewise.
8084         * iconv/iconv_close.c: Likewise.
8085         * iconv/loop.c (SINGLE): Likewise.
8086         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
8087         * include/atomic.h: Likewise.
8088         * inet/inet6_option.c (option_alloc): Likewise.
8089         * intl/bindtextdom.c (set_binding_values): Likewise.
8090         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
8091         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8092         * intl/localealias.c (read_alias_file): Likewise.
8093         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8094         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
8095         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
8096         * libio/fmemopen.c (fmemopen): Likewise.
8097         * libio/iofgets.c (_IO_fgets): Likewise.
8098         * libio/iofgets_u.c (fgets_unlocked): Likewise.
8099         * libio/iofgetws.c (fgetws): Likewise.
8100         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8101         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8102         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
8103         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
8104         * locale/findlocale.c (_nl_find_locale): Likewise.
8105         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8106         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
8107         Likewise.
8108         * locale/setlocale.c (setlocale): Likewise.
8109         * login/programs/pt_chown.c (main): Likewise.
8110         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
8111         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
8112         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
8113         (mmap, mmap64, mremap, munmap): Likewise.
8114         * math/e_exp2l.c: Likewise.
8115         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
8116         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
8117         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
8118         * math/s_catan.c (__catan): Likewise.
8119         * math/s_catanf.c (__catanf): Likewise.
8120         * math/s_catanh.c (__catanh): Likewise.
8121         * math/s_catanhf.c (__catanhf): Likewise.
8122         * math/s_catanhl.c (__catanhl): Likewise.
8123         * math/s_catanl.c (__catanl): Likewise.
8124         * math/s_ccosh.c (__ccosh): Likewise.
8125         * math/s_ccoshf.c (__ccoshf): Likewise.
8126         * math/s_ccoshl.c (__ccoshl): Likewise.
8127         * math/s_cexp.c (__cexp): Likewise.
8128         * math/s_cexpf.c (__cexpf): Likewise.
8129         * math/s_cexpl.c (__cexpl): Likewise.
8130         * math/s_clog10.c (__clog10): Likewise.
8131         * math/s_clog10f.c (__clog10f): Likewise.
8132         * math/s_clog10l.c (__clog10l): Likewise.
8133         * math/s_clog.c (__clog): Likewise.
8134         * math/s_clogf.c (__clogf): Likewise.
8135         * math/s_clogl.c (__clogl): Likewise.
8136         * math/s_csin.c (__csin): Likewise.
8137         * math/s_csinf.c (__csinf): Likewise.
8138         * math/s_csinh.c (__csinh): Likewise.
8139         * math/s_csinhf.c (__csinhf): Likewise.
8140         * math/s_csinhl.c (__csinhl): Likewise.
8141         * math/s_csinl.c (__csinl): Likewise.
8142         * math/s_csqrt.c (__csqrt): Likewise.
8143         * math/s_csqrtf.c (__csqrtf): Likewise.
8144         * math/s_csqrtl.c (__csqrtl): Likewise.
8145         * math/s_ctan.c (__ctan): Likewise.
8146         * math/s_ctanf.c (__ctanf): Likewise.
8147         * math/s_ctanh.c (__ctanh): Likewise.
8148         * math/s_ctanhf.c (__ctanhf): Likewise.
8149         * math/s_ctanhl.c (__ctanhl): Likewise.
8150         * math/s_ctanl.c (__ctanl): Likewise.
8151         * math/w_pow.c: Likewise.
8152         * math/w_powf.c: Likewise.
8153         * math/w_powl.c: Likewise.
8154         * math/w_scalb.c (sysv_scalb): Likewise.
8155         * math/w_scalbf.c (sysv_scalbf): Likewise.
8156         * math/w_scalbl.c (sysv_scalbl): Likewise.
8157         * misc/error.c (error_tail): Likewise.
8158         * misc/pselect.c (__pselect): Likewise.
8159         * nis/nis_callback.c (__nis_create_callback): Likewise.
8160         * nis/nis_call.c (__nisfind_server): Likewise.
8161         * nis/nis_creategroup.c (nis_creategroup): Likewise.
8162         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
8163         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
8164         * nis/nis_getservlist.c (nis_getservlist): Likewise.
8165         * nis/nis_lookup.c (nis_lookup): Likewise.
8166         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
8167         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
8168         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
8169         * nis/nis_xdr.c (xdr_endpoint): Likewise.
8170         * nis/nss_compat/compat-grp.c (getgrent_next_file)
8171         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
8172         * nis/nss_compat/compat-initgroups.c (add_group)
8173         (internal_getgrent_r): Likewise.
8174         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
8175         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
8176         * nis/nss_compat/compat-spwd.c (getspent_next_file)
8177         (internal_getspnam_r): Likewise.
8178         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
8179         (_nss_nis_getaliasbyname_r): Likewise.
8180         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
8181         (_nss_nis_getntohost_r): Likewise.
8182         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
8183         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
8184         (_nss_nis_getgrgid_r): Likewise.
8185         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
8186         (internal_nis_gethostent_r, internal_gethostbyname2_r)
8187         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
8188         (_nss_nis_gethostbyname4_r): Likewise.
8189         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
8190         (initgroups_netid): Likewise.
8191         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
8192         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
8193         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
8194         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
8195         (_nss_nis_getprotobynumber_r): Likewise.
8196         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
8197         (_nss_nis_getsecretkey): Likewise.
8198         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
8199         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
8200         (_nss_nis_getpwuid_r): Likewise.
8201         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
8202         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
8203         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
8204         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
8205         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
8206         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
8207         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
8208         Likewise.
8209         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
8210         (_nss_nisplus_getntohost_r): Likewise.
8211         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
8212         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8213         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
8214         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
8215         Likewise.
8216         * nis/nss_nisplus/nisplus-initgroups.c
8217         (_nss_nisplus_initgroups_dyn): Likewise.
8218         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
8219         (_nss_nisplus_getnetbyaddr_r): Likewise.
8220         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
8221         (_nss_nisplus_getprotobynumber_r): Likewise.
8222         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
8223         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
8224         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
8225         Likewise.
8226         * nis/nss_nisplus/nisplus-service.c
8227         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
8228         (_nss_nisplus_getservbyport_r): Likewise.
8229         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
8230         (_nss_nisplus_getspnam_r): Likewise.
8231         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
8232         Likewise.
8233         * nscd/aicache.c (addhstaiX): Likewise.
8234         * nscd/cache.c (cache_search, prune_cache): Likewise.
8235         * nscd/connections.c (register_traced_file, send_ro_fd)
8236         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
8237         (main_loop_epoll): Likewise.
8238         * nscd/grpcache.c (addgrbyX): Likewise.
8239         * nscd/hstcache.c (addhstbyX): Likewise.
8240         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8241         * nscd/mem.c (gc, mempool_alloc): Likewise.
8242         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
8243         (addinnetgrX): Likewise.
8244         * nscd/nscd-client.h (__nscd_acquire_maplock)
8245         (__nscd_drop_map_ref): Likewise.
8246         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8247         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8248         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
8249         Likewise.
8250         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8251         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8252         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
8253         (__nscd_get_map_ref): Likewise.
8254         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8255         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
8256         Likewise.
8257         * nscd/pwdcache.c (addpwbyX): Likewise.
8258         * nscd/selinux.c (preserve_capabilities): Likewise.
8259         * nscd/servicescache.c (addservbyX): Likewise.
8260         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
8261         * posix/fnmatch.c (fnmatch): Likewise.
8262         * posix/getopt.c (_getopt_internal_r): Likewise.
8263         * posix/glob.c (glob, glob_in_dir): Likewise.
8264         * posix/wordexp.c (exec_comm_child): Likewise.
8265         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
8266         (getanswer_r, gaih_getanswer_slice): Likewise.
8267         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
8268         * resolv/res_init.c: Likewise.
8269         * resolv/res_mkquery.c (res_nmkquery): Likewise.
8270         * resolv/res_query.c (__libc_res_nquery): Likewise.
8271         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
8272         Likewise.
8273         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
8274         * stdio-common/perror.c (perror): Likewise.
8275         * stdio-common/printf_fp.c (___printf_fp): Likewise.
8276         * stdio-common/tmpnam.c (tmpnam): Likewise.
8277         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
8278         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
8279         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
8280         Likewise.
8281         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8282         * stdlib/putenv.c (putenv): Likewise.
8283         * stdlib/setenv.c (__add_to_environ): Likewise.
8284         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8285         * stdlib/strtol_l.c (INTERNAL): Likewise.
8286         * string/memmem.c (memmem): Likewise.
8287         * string/strerror.c (strerror): Likewise.
8288         * string/strnlen.c (__strnlen): Likewise.
8289         * string/test-memmem.c (simple_memmem): Likewise.
8290         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
8291         * sunrpc/pm_getport.c (__get_socket): Likewise.
8292         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
8293         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8294         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
8295         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
8296         Likewise.
8297         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8298         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
8299         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8300         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
8301         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8302         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
8303         Likewise.
8304         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
8305         Likewise.
8306         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8307         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8308         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
8309         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8310         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8311         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
8312         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
8313         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
8314         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8315         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8316         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8317         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
8318         Likewise.
8319         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
8320         Likewise.
8321         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
8322         Likewise.
8323         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
8324         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8325         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
8326         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
8327         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8328         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
8329         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
8330         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
8331         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
8332         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
8333         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
8334         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8335         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
8336         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
8337         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8338         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8339         Likewise.
8340         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
8341         Likewise.
8342         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
8343         Likewise.
8344         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
8345         Likewise.
8346         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8347         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8348         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
8349         Likewise.
8350         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
8351         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
8352         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8353         * sysdeps/posix/sleep.c: Likewise.
8354         * sysdeps/posix/tempname.c: Likewise.
8355         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
8356         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8357         Likewise.
8358         * sysdeps/powerpc/powerpc32/dl-machine.h
8359         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
8360         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
8361         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
8362         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
8363         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
8364         Likewise.
8365         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
8366         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
8367         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8368         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
8369         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8370         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
8371         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
8372         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
8373         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8374         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
8375         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
8376         (elf_machine_lazy_rel): Likewise.
8377         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8378         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
8379         (elf_machine_lazy_rel): Likewise.
8380         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
8381         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
8382         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
8383         * sysdeps/unix/grantpt.c (grantpt): Likewise.
8384         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
8385         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
8386         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8387         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8388         Likewise.
8389         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8390         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8391         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
8392         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
8393         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
8394         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8395         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
8396         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
8397         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8398         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8399         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8400         Likewise.
8401         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
8402         (__posix_fallocate64_l64): Likewise.
8403         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
8404         (posix_fallocate): Likewise.
8405         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8406         Likewise.
8407         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8408         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
8409         (getifaddrs_internal): Likewise.
8410         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
8411         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
8412         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
8413         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
8414         * sysdeps/unix/sysv/linux/posix_fallocate64.c
8415         (__posix_fallocate64_l64): Likewise.
8416         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
8417         Likewise.
8418         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8419         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
8420         (__get_clockfreq): Likewise.
8421         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
8422         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
8423         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
8424         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8425         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8426         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
8427         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8428         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
8429         Likewise.
8430         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
8431         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
8432         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8433         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
8434         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8435         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
8436         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
8437         Likewise.
8438         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8439         (posix_fallocate): Likewise.
8440         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8441         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
8442         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
8443         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
8444         (elf_machine_rela, elf_machine_rela_relative)
8445         (elf_machine_lazy_rel): Likewise.
8446         * time/asctime.c (asctime_internal): Likewise.
8447         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
8448         * time/tzset.c (__tzset_parse_tz): Likewise.
8449         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
8450         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
8451         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
8452         * wcsmbs/wcsmbsload.h: Likewise.
8453
8454         [BZ #15894]
8455         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
8456
8457         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
8458         (arena_get2): Remove THREAD_STATS conditionals.
8459         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
8460         (__malloc_stats, int): Likewise.
8461
8462 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
8463
8464         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
8465         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
8466
8467         * manual/setjmp.texi: Fix typos/grammar errors.
8468
8469         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
8470         Only return early when n is <= 0.  Delete unused return statement.
8471
8472         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
8473         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
8474         * debug/tst-longjmp_chk3.c: New file.
8475
8476         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
8477         (test_main): Replace code with set_fortify_handler call.
8478         * debug/test-strcpy_chk.c: Likewise.
8479         * debug/tst-chk1.c: Likewise.
8480         * debug/tst-longjmp_chk.c: Likewise.
8481         * test-skeleton.c: Include fcntl.h & paths.h
8482         (set_fortify_handler): Define.
8483
8484         * debug/tst-longjmp_chk.c: Add header comment and include
8485         ../test-skeleton.c.
8486         (do_test): Mark static.
8487         (TEST_FUNCTION): Define.
8488
8489         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
8490         (IP_PMTUDISC_INTERFACE): Likewise.
8491         (IP_MULTICAST_IF): Likewise.
8492         (IP_MULTICAST_TTL): Likewise.
8493         (IP_MULTICAST_LOOP): Likewise.
8494         (IP_ADD_MEMBERSHIP): Likewise.
8495         (IP_DROP_MEMBERSHIP): Likewise.
8496         (IP_UNBLOCK_SOURCE): Likewise.
8497         (IP_BLOCK_SOURCE): Likewise.
8498         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
8499         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
8500         (IP_MSFILTER): Likewise.
8501         (MCAST_JOIN_GROUP): Likewise.
8502         (MCAST_BLOCK_SOURCE): Likewise.
8503         (MCAST_UNBLOCK_SOURCE): Likewise.
8504         (MCAST_LEAVE_GROUP): Likewise.
8505         (MCAST_JOIN_SOURCE_GROUP): Likewise.
8506         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
8507         (MCAST_MSFILTER): Likewise.
8508         (IP_MULTICAST_ALL): Likewise.
8509         (IP_UNICAST_IF): Likewise.
8510
8511         * timezone/Makefile: Delete $(have-ksh) check.
8512         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
8513         * timezone/tzselect.ksh: Add +x mode bits.
8514
8515         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
8516         (ANON_INODE_FS_MAGIC): Likewise.
8517         (BDEVFS_MAGIC): Likewise.
8518         (BINFMTFS_MAGIC): Likewise.
8519         (BTRFS_TEST_MAGIC): Likewise.
8520         (CRAMFS_MAGIC_WEND): Likewise.
8521         (DEBUGFS_MAGIC): Likewise.
8522         (ECRYPTFS_SUPER_MAGIC): Likewise.
8523         (EXT3_SUPER_MAGIC): Likewise.
8524         (EXT4_SUPER_MAGIC): Likewise.
8525         (FUTEXFS_SUPER_MAGIC): Likewise.
8526         (HOSTFS_SUPER_MAGIC): Likewise.
8527         (HUGETLBFS_MAGIC): Likewise.
8528         (MINIX3_SUPER_MAGIC): Likewise.
8529         (MTD_INODE_FS_MAGIC): Likewise.
8530         (NILFS_SUPER_MAGIC): Likewise.
8531         (OPENPROM_SUPER_MAGIC): Likewise.
8532         (PIPEFS_MAGIC): Likewise.
8533         (PSTOREFS_MAGIC): Likewise.
8534         (QNX6_SUPER_MAGIC): Likewise.
8535         (RAMFS_MAGIC): Likewise.
8536         (REISERFS_SUPER_MAGIC_STRING): Likewise.
8537         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
8538         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
8539         (SECURITYFS_MAGIC): Likewise.
8540         (SELINUX_MAGIC): Likewise.
8541         (SMACK_MAGIC): Likewise.
8542         (SOCKFS_MAGIC): Likewise.
8543         (SQUASHFS_MAGIC): Likewise.
8544         (STACK_END_MAGIC): Likewise.
8545         (TMPFS_MAGIC): Likewise.
8546         (USBDEVICE_SUPER_MAGIC): Likewise.
8547         (V9FS_MAGIC): Likewise.
8548         (XENFS_SUPER_MAGIC): Likewise.
8549         (CRAMFS_MAGIC): Fix typo in comment.
8550         (EXT2_SUPER_MAGIC): Update comment.
8551         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
8552
8553 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
8554
8555         * sysdeps/arm: Move directory from ports/sysdeps/arm.
8556         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
8557         * sysdeps/unix/sysv/linux/arm: Move directory from
8558         ports/sysdeps/unix/sysv/linux/arm.
8559         * README: Update listing for arm-*-linux-gnueabi.
8560
8561         * README: Remove mention of am33.
8562
8563 2014-02-07  Roland McGrath  <roland@hack.frob.com>
8564
8565         * bits/sigset.h (__sigemptyset): Use a statement expression rather
8566         than the comma operator, to avoid "rhs of comma has no effect"
8567         compiler warnings.
8568         (__sigfillset, __sigandset, __sigorset): Likewise.
8569         * include/signal.h (__sigemptyset): Likewise.
8570         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
8571
8572 2014-02-07  Allan McRae  <allan@archlinux.org>
8573
8574         * version.h (RELEASE): Set to "development".
8575         (VERSION): Set to "2.19.90"
8576         * NEWS: Add 2.20 section.
8577
8578 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
8579
8580         [BZ #16529]
8581         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
8582
8583 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8584
8585         * manual/contrib.texi: Update entry for Carlos O'Donell,
8586         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
8587
8588 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
8589
8590         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
8591
8592         * sysdeps/unix/sysv/linux/kernel-features.h
8593         [__LINUX_KERNEL_VERSION >= 0x020621]
8594         (__ASSUME_PROC_PID_TASK_COMM): Define.
8595
8596 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8597
8598         [BZ #16398]
8599         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
8600         conversion when destination buffer does not have enough space.
8601         * libio/tst-ftell-partial-wide.c: New test case.
8602         * libio/Makefile (tests): Add tst-ftell-partial-wide.
8603
8604         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
8605         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
8606         Leonard and Allan McRae.
8607
8608 2014-02-04  David S. Miller  <davem@davemloft.net>
8609
8610         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
8611         32-bit.
8612
8613 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8614
8615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
8616         New file
8617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
8618         New file
8619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
8620         New file.
8621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
8622         New file.
8623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
8624         New file.
8625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
8626         New file.
8627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
8628         New file.
8629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
8630         New file.
8631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
8632         New file.
8633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
8634         New file.
8635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
8636         New file.
8637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
8638         New file.
8639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
8640         New file.
8641
8642 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8643
8644         * nptl/shlib-versions: Change powerpc*le start to 2.17.
8645         * shlib-versions: Likewise.
8646
8647 2014-02-04  Roland McGrath  <roland@hack.frob.com>
8648             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8649
8650         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
8651         (abilist-pattern): New variable, set to %-le.abilist.
8652
8653         * Makerules (abilist-pattern): New variable.
8654         (vpath): Use $(abilist-pattern) in place of %.abilist.
8655         (check-abi-% pattern rule): Likewise.
8656         (check-abi, update-abi): Likewise.
8657
8658 2014-02-04  Eric Wong  <normalperson@yhbt.net>
8659
8660         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8661
8662 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
8663
8664         * manual/startup.texi: Add next, previous, and top entries for
8665         the `Program Arguments' and `Environment Variables' nodes.
8666
8667 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
8668
8669         * manual/macros.texi: Add comments before MTASC-safety macros.
8670
8671         * manual/users.texi: Document MTASC-safety properties.
8672
8673         * manual/threads.texi (pthread_key_create, pthread_key_delete)
8674         (pthread_getspecific, pthread_setspecific): Format with
8675         @deftypefun, and add @safety note.
8676         * manual/signal.texi: Move comments that analyze the above
8677         functions to their home place.
8678
8679 2014-02-03  Allan McRae  <allan@archlinux.org>
8680
8681         * po/sl.po: Update Slovenian translation from translation project.
8682
8683 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
8684
8685         * manual/time.texi (timegm): Add missing blank after @c.
8686         Reported by Joseph Myers <joseph@codesourcery.com>.
8687
8688 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
8689
8690         * manual/check-safety.sh: New.
8691         * manual/Makefile ($(objpfx)stamp-summary): Run it.
8692
8693         * manual/terminal.texi: Document MTASC-safety properties.
8694
8695         * manual/filesys.texi: Document MTASC-safety properties.
8696
8697         * manual/errno.texi: Document MTASC-safety properties.
8698
8699         * manual/intro.texi: Document safety identifiers and
8700         conditionals.
8701
8702         * manual/string.texi (wcstok): Fix prototype.
8703         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
8704
8705         * manual/time.texi: Document MTASC-safety properties.
8706
8707         * manual/string.texi: Document MTASC-safety properties.
8708
8709         * manual/threads.texi: Document MTASC-safety properties.
8710
8711         * manual/stdio.texi: Document MTASC-safety properties.
8712
8713         * manual/syslog.texi: Document MTASC-safety properties.
8714
8715         * manual/sysinfo.texi: Document MTASC-safety properties.
8716
8717         * manual/startup.texi: Document MTASC-safety properties.
8718
8719         * manual/socket.texi: Document MTASC-safety properties.
8720
8721         * manual/signal.texi: Document MTASC-safety properties.
8722
8723 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
8724
8725         * manual/setjmp.texi: Document MTASC-safety properties.
8726
8727         * manual/search.texi: Document MTASC-safety properties.
8728
8729         * manual/resource.texi: Document MTASC-safety properties.
8730
8731         * manual/process.texi: Document MTASC-safety properties.
8732
8733         * manual/platform.texi: Document MTASC-safety properties.
8734
8735         * manual/pipe.texi: Document MTASC-safety properties.
8736
8737         * manual/pattern.texi: Document MTASC-safety properties.
8738
8739         * manual/message.texi: Document MTASC-safety properties.
8740
8741         [BZ #12751]
8742         * manual/memory.texi: Document MTASC-safety properties.
8743
8744         * manual/math.texi: Document MTASC-safety properties.
8745
8746         * manual/locale.texi: Document MTASC-safety properties.
8747
8748         * manual/llio.texi: Document MTASC-safety properties.
8749
8750         * manual/libdl.texi: New.
8751
8752         * manual/lang.texi: Document MTASC-safety properties.
8753
8754         * manual/job.texi: Document MTASC-safety properties.
8755
8756         * manual/getopt.texi: Document MTASC-safety properties.
8757
8758         * manual/ctype.texi: Document MTASC-safety properties.
8759
8760 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
8761
8762         [BZ #16046]
8763         * csu/libc-tls.c (static_map): Remove variable.
8764         (__libc_setup_tls): Use main executable's link map for TLS data.
8765         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
8766         casing for LM_ID_BASE and GL(dl_nns).
8767         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
8768         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
8769         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
8770         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
8771         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
8772         member.
8773         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
8774         l_phnum members.
8775
8776 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
8777
8778         * manual/debug.texi: Document MTASC-safety properties.
8779
8780 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8781
8782         [BZ #16510]
8783         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
8784         of __x86_64__ when disabling x87 inline functions.
8785
8786 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
8787
8788         * manual/charset.texi: Document MTASC-safety properties.
8789
8790         * manual/crypt.texi: Document MTASC-safety properties.
8791
8792         * manual/conf.texi: Document MTASC-safety properties.
8793
8794         * manual/arith.texi: Document MTASC-safety properties.
8795
8796         * manual/argp.texi: Document MTASC-safety properties.
8797
8798         * manual/macros.texi: Introduce macros to document multi
8799         thread, asynchronous signal and asynchronous cancellation
8800         safety properties.
8801         * manual/intro.texi: Introduce the properties themselves.
8802
8803 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8804
8805         * sysdeps/sh/sh4/Makefile: New file.
8806
8807 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
8808
8809         * math/gen-libm-test.pl ($srcdir): New variable.
8810         ($auto_input): Use it.
8811
8812 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8813
8814         [BZ #16506]
8815         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
8816         access beyond array bounds when parsing netgroups file.
8817
8818         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
8819         the old buffer before realloc.
8820
8821 2014-01-27  Allan McRae  <allan@archlinux.org>
8822
8823         * po/fr.po: Update French translation from translation project.
8824
8825 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8826
8827         * sysdeps/sh/libm-test-ulps: Regenerate.
8828
8829 2014-01-24  David S. Miller  <davem@davemloft.net>
8830
8831         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
8832
8833 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8834
8835         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
8836         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
8837
8838 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8839
8840         [BZ #16474]
8841         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
8842         string pointers after reallocation.
8843
8844 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8845
8846         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
8847         __SH4A__ instead of __SH_FPU_ANY__.
8848
8849 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8850
8851         * sysdeps/sh/fpu_control.h: New file.
8852         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
8853         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8854         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
8855         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
8856         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
8857         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
8858         * sysdeps/sh/sys/ucontext.h: Remove.
8859         * sysdeps/sh/sys: Remove directory.
8860
8861 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8862
8863         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
8864         s390/sys/ucontext.h.
8865         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8866         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
8867
8868 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
8869
8870         [BZ #15605]
8871         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
8872
8873 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8874
8875         [BZ#16431]
8876         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
8877         Adjust the vDSO correctly for internal calls.
8878         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
8879
8880 2014-01-20  Allan McRae  <allan@archlinux.org>
8881
8882         * po/ca.po: Update Catalan translation from translation project.
8883
8884 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
8885
8886         * sysdeps/s390/sotruss-lib.c: New file.
8887
8888 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8889
8890         [BZ#16430]
8891         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
8892         (__GI___gettimeofday): Alias for a different internal symbol to avoid
8893         local calls issues by not having a PLT stub required for IFUNC calls.
8894         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
8895
8896 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
8897
8898         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
8899         * math/test-fpucw-static.c: Likewise.
8900
8901 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8902
8903         [BZ #16453]
8904         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
8905
8906 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8907
8908         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
8909         implementation for powerpc.
8910
8911 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
8912
8913         [BZ #14782]
8914         * sysdeps/posix/system.c (__libc_system): Do not enable
8915         asynchronous cancellation.
8916
8917 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8918
8919         [BZ #16427]
8920         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
8921         handling only for numbers special also in the IEEE case.
8922
8923 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8924
8925         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8926
8927 2014-01-11  Allan McRae  <allan@archlinux.org>
8928
8929         * po/bg.po: Update Bulgarian translation from translation project.
8930
8931         * po/de.po: Update German translation from translation project.
8932
8933 2014-01-10  Roland McGrath  <roland@hack.frob.com>
8934
8935         * sysdeps/generic/gcc-compat.h: New file.
8936
8937 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8938
8939         * benchtests/asin-inputs: Correct slow inputs.
8940         * benchtests/acos-inputs: Likewise.
8941
8942 2014-01-10  Allan McRae  <allan@archlinux.org>
8943
8944         * po:sv.po: Update Swedish translation from translation project.
8945
8946         * po/vi.po: Update Vietnamese translation from translation project.
8947
8948         * po/eo.po: Update Esperanto translation from translation project.
8949
8950         * po/cs.po: Update Czech translation from translation project.
8951
8952         * po/nl.po: Update Dutch translation from translation project.
8953
8954         * po/pl.po: Update Polish translation from translation project.
8955
8956         * po/ru.po: Update Russian translation from translation project.
8957
8958         * po/uk.po: Update Ukrainian translation from translation project.
8959
8960 2014-01-08  Brooks Moses  <bmoses@google.com>
8961
8962         * elf/dl-load.c: Fix comment typo.
8963
8964 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
8965
8966         * po/header.pot: Rename to...
8967         * po/pot.header: ... this.
8968         * po/Makefile: Use pot.header.
8969
8970 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
8971             Maxim Kuvyrkov  <maxim@kugelworks.com>
8972
8973         [BZ #16394]
8974         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
8975         SRC and DEST against LEN.
8976
8977 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8978
8979         [BZ #16414]
8980         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
8981         implementation.
8982         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
8983
8984 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8985
8986         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8987
8988 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
8989
8990         [BZ #16408]
8991         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
8992         for large positive arguments.
8993
8994 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
8995
8996         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8997
8998         * math/auto-libm-test-in: Mark various tests with
8999         xfail-rounding:ldbl-128ibm.
9000         * math/auto-libm-test-out: Regenerated.
9001
9002         [BZ #16407]
9003         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
9004         Increase overflow threshold.
9005
9006 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
9007
9008         [BZ #14286]
9009         * stdio-common/vfprintf.c: Check for integer overflow.
9010
9011 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9012
9013         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
9014         the first argument and return value of __tls_get_addr_internal.
9015
9016 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9017
9018         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
9019         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
9020
9021 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9022
9023         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
9024         * sysdeps/s390/rtld-global-offsets.sym: New file.
9025         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
9026         GLIBC_2.19 symbol.
9027         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
9028         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
9029         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
9030         ... this.
9031         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
9032         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
9033         ... this.
9034         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9035         Regenerate.
9036         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9037         Regenerate.
9038         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
9039         halfs of GPRs for high_gprs contexts.
9040         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
9041         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
9042         field.
9043         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
9044         uc_flags field.
9045         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
9046         64 bit versions:
9047         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
9048         for high GPRs (uc_high_gprs) and for future extensions
9049         (__reserved).
9050         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
9051         for future extensions (__reserved).
9052         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
9053         64 bit versions:
9054         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
9055         SC_HIGHGPRS offset definition.
9056         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
9057         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
9058
9059         * Versions.def: Add GLIBC_2.19 for libpthread.
9060         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
9061         siglongjmp for libpthread with GLIBC_2.19 symver.
9062         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
9063         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
9064         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
9065         * sysdeps/s390/__longjmp.c: New file.
9066         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
9067         * sysdeps/s390/longjmp.c: New file.
9068         * sysdeps/s390/setjmp.S: New file.
9069         * sysdeps/s390/sigjmp.S: New file.
9070         * sysdeps/s390/v1-longjmp.c: New file.
9071         * sysdeps/s390/v1-setjmp.h: New file.
9072         * sysdeps/s390/v1-sigjmp.c: New file.
9073         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
9074         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
9075         GLIBC_2.19 version.
9076         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
9077         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
9078         versioned symbols for ____longjmp_chk.
9079         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
9080         Likewise.
9081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9082         Regenerate.
9083         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9084         Regenerate.
9085         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9086         Regenerate.
9087         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9088         Regenerate.
9089         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
9090         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
9091         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
9092         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
9093         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
9094         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
9095         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
9096         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
9097         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
9098         * sysdeps/s390/rtld-__longjmp.c: New file.
9099         * sysdeps/s390/rtld-setjmp.S: New file.
9100
9101 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
9102
9103         [BZ #16400]
9104         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9105         Return -__logl (x) for small positive arguments without evaluating
9106         a polynomial.
9107
9108 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
9109
9110         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
9111         Rename to ...
9112         (__ptrace_peeksiginfo_args): ... this.
9113         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9114         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9115         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9116
9117 2014-01-06  Allan McRae  <allan@archlinux.org>
9118
9119         * inet/netinet/in.h: Fix typo in comment.
9120
9121 2014-01-05  Andreas Jaeger  <aj@suse.de>
9122
9123         * sysdeps/i386/fpu/libm-test-ulps: Update.
9124
9125 2014-01-05  Allan McRae  <allan@archlinux.org>
9126
9127         * po/libc.pot: Regenerated.
9128
9129         * malloc/memusagestat.c: Fix gettext call formatting.
9130
9131 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
9132
9133         * nscd/nscd.c: Improve usage() output.
9134
9135 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
9136
9137         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
9138         * sysdeps/unix/sysv/linux/configure: Regenerated.
9139         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
9140         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
9141
9142 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9143
9144         [BZ #16390]
9145         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
9146         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
9147
9148 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9149
9150         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
9151         extra tokens at end of #undef directive.
9152         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
9153         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
9154         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
9155
9156 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9157
9158         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9159
9160         * math/auto-libm-test-in: Mark various tests with
9161         xfail-rounding:ldbl-128ibm.
9162         * math/auto-libm-test-out: Regenerated.
9163
9164 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
9165
9166         [BZ #16386]
9167         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
9168         numbers with subnormal high part when calculating exponent.
9169
9170         [BZ #16385]
9171         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
9172         fabs.
9173
9174         [BZ #16384]
9175         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
9176         M_LN2l.
9177         (__ieee754_acoshl): Use __log1pl not __log1p.
9178
9179 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
9180
9181         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
9182         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
9183         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
9184         (grow_heap, heap_trim, _int_new_arena, get_free_list)
9185         (reused_arena, arena_get2): Convert to GNU style.
9186         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
9187         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
9188         (memalign_check, __malloc_set_state): Likewise.
9189         * malloc/mallocbug.c (main): Likewise.
9190         * malloc/malloc.c (__malloc_assert, malloc_init_state)
9191         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
9192         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
9193         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
9194         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
9195         (__posix_memalign, malloc_info): Likewise.
9196         * malloc/malloc.h: Likewise.
9197         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
9198         (mallochook, memalignhook, reallochook, mabort): Likewise.
9199         * malloc/mcheck.h: Likewise.
9200         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
9201         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
9202         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
9203         * malloc/morecore.c (__default_morecore): Likewise.
9204         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
9205         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
9206         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
9207         (print_and_abort): Likewise.
9208         * malloc/obstack.h: Likewise.
9209         * malloc/set-freeres.c (__libc_freeres): Likewise.
9210         * malloc/tst-mallocstate.c (main): Likewise.
9211         * malloc/tst-mtrace.c (main): Likewise.
9212         * malloc/tst-realloc.c (do_test): Likewise.
9213
9214 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9215
9216         [BZ #16366]
9217         * nscd/netgroupcache.c (do_notfound): New function.
9218         (addgetnetgrentX): Use it.
9219
9220         [BZ # 16365]
9221         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
9222         NSS_STATUS_NOTFOUND.
9223
9224 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
9225
9226         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
9227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9228
9229 2014-01-01  Allan McRae  <allan@archlinux.org>
9230
9231         * scripts/update-copyrights: Update configure input file suffix.
9232
9233         * NEWS: Update copyright year.
9234         * catgets/gencat.c: Likewise.
9235         * csu/version.c: Likewise.
9236         * debug/catchsegv.sh: Likewise.
9237         * debug/pcprofiledump.c: Likewise.
9238         * debug/xtrace.sh: Likewise.
9239         * elf/ldconfig.c: Likewise.
9240         * elf/ldd.bash.in: Likewise.
9241         * elf/pldd.c: Likewise.
9242         * elf/sotruss.ksh: Likewise.
9243         * elf/sprof.c: Likewise.
9244         * iconv/iconv_prog.c: Likewise.
9245         * iconv/iconvconfig.c: Likewise.
9246         * locale/programs/locale.c: Likewise.
9247         * locale/programs/localedef.c: Likewise.
9248         * login/programs/pt_chown.c: Likewise.
9249         * malloc/memusage.sh: Likewise.
9250         * malloc/memusagestat.c: Likewise.
9251         * malloc/mtrace.pl: Likewise.
9252         * manual/libc.texinfo: Likewise.
9253         * nscd/nscd.c: Likewise.
9254         * nss/getent.c: Likewise.
9255         * nss/makedb.c: Likewise.
9256         * posix/getconf.c: Likewise.
9257         * scripts/test-installation.pl: Likewise.
9258
9259         * All files with FSF copyright notices: Update copyright dates
9260         using scripts/update-copyrights.
9261         * intl/plural.c: Regenerated.
9262         * locale/programs/charmap-kw.h: Likewise.
9263         * locale/programs/locfile-kw.h: Likewise.
9264
9265 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
9266
9267         * sysdeps/unix/sysv/linux/configure: Regenerated.
9268         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
9269         the linux/fanotify.h header.
9270         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
9271         HAVE_LINUX_FANOTIFY_H is defined.
9272
9273 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9274
9275         * benchtests/cos-inputs: New inputs.
9276         * benchtests/sin-inputs: Likewise.
9277
9278         * benchtests/atan-inputs: New inputs. Fix name of multiple
9279         precision fallback inputs.
9280
9281         * benchtests/atanh-inputs: New inputs.
9282         * benchtests/tanh-inputs: Likewise.
9283
9284         * benchtests/acosh-inputs: New inputs.
9285         * benchtests/asinh-inputs: Likewise.
9286
9287         * benchtests/cosh-inputs: New inputs.
9288         * benchtests/sinh-inputs: Likewise.
9289
9290         * benchtests/acos-inputs: Add more inputs.
9291         * benchtests/asin-inputs: Likewise.
9292
9293 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
9294
9295         [BZ #16375]
9296         * manual/arith.texi: Fix spelling.
9297         * manual/charset.texi: Likewise.
9298         * manual/errno.texi: Likewise.
9299         * manual/filesys.texi: Likewise.
9300         * manual/lang.texi: Likewise.
9301         * manual/llio.texi: Likewise.
9302         * manual/locale.texi: Likewise.
9303         * manual/message.texi: Likewise.
9304         * manual/resource.texi: Likewise.
9305         * manual/search.texi: Likewise.
9306         * manual/setjmp.texi: Likewise.
9307         * manual/stdio.texi: Likewise.
9308         * manual/string.texi: Likewise.
9309         * manual/sysinfo.texi: Likewise.
9310         * manual/time.texi: Likewise.
9311
9312 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
9313
9314         * po/sl.po: New file.
9315
9316 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
9317
9318         * .gitignore: Add core/.gdbinit/.gdb_history.
9319
9320 2013-12-27  Allan McRae  <allan@archlinux.org>
9321
9322         [BZ #16369]
9323         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
9324         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
9325
9326 2013-12-24  Brooks Moses  <bmoses@google.com>
9327
9328         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
9329         all compilers that claim C++98 compliance, not just GCC.
9330         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
9331         Likewise.
9332
9333 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9334
9335         * NEWS: Restore accidentally deleted bug-fix entries.
9336
9337 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9338             Ondřej Bílka  <neleai@seznam.cz>
9339
9340         [BZ #15073]
9341         * malloc/malloc.c (_int_free): Perform sanity check only if we
9342         have_lock.
9343
9344 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
9345
9346         [BZ #12986]
9347         * manual/stdio.texi (String Input Conversions): Clarify that character
9348         classes are not supported.
9349
9350 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9351
9352         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9353
9354 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
9355
9356         [BZ #16337]
9357         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9358         Calculate results for small negative arguments directly rather
9359         than using reflection formula with special underflow handling.
9360
9361         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
9362         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
9363         sysdeps/unix/bsd/bsd4.4/syscalls.list.
9364         (fchflags): Likewise.
9365         (revoke): Likewise.
9366         (setlogin): Likewise.
9367         (sigaltstack): Likewise.
9368         (wait4): Likewise.
9369         (sigblock): Remove.
9370         (sigsetmask): Likewise.
9371         (wait3): Likewise.
9372         (waitpid): Likewise.
9373         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
9374         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
9375         file.
9376         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
9377         * sysdeps/unix/bsd/Makefile: ... here.
9378         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
9379         * sysdeps/unix/bsd/Versions: ... here.
9380         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
9381         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
9382         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
9383         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
9384         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
9385         * sysdeps/unix/bsd/sigblock.c: ... here.
9386         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
9387         * sysdeps/unix/bsd/sigsetmask.c: ... here.
9388         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
9389         * sysdeps/unix/bsd/sigvec.c: ... here.
9390         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
9391         * sysdeps/unix/bsd/tcdrain.c: ... here.
9392         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
9393         * sysdeps/unix/bsd/tcgetattr.c: ... here.
9394         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
9395         * sysdeps/unix/bsd/tcsetattr.c: ... here.
9396         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
9397         * sysdeps/unix/bsd/wait.c: ... here.
9398         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
9399         * sysdeps/unix/bsd/wait3.c: ... here.
9400         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
9401         * sysdeps/unix/bsd/waitpid.c: ... here.
9402
9403 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
9404
9405         [BZ #16356]
9406         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
9407         round-to-nearest for [!USE_AS_EXPM1L].
9408         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
9409         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
9410         more tests of exp and exp10.  Expect some exp10 tests to miss
9411         exceptions or fail in directed rounding modes.
9412         * math/auto-libm-test-out: Regenerated.
9413         * math/libm-test.inc (exp10_tonearest_test_data): New array.
9414         (exp10_test_tonearest): New function.
9415         (exp10_towardzero_test_data): New array.
9416         (exp10_test_towardzero): New function.
9417         (exp10_downward_test_data): New array.
9418         (exp10_test_downward): New function.
9419         (exp10_upward_test_data): New array.
9420         (exp10_test_upward): New function.
9421         (main): Call the new functions.
9422         * sysdeps/i386/fpu/libm-test-ulps: Update.
9423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9424
9425 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
9426
9427         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
9428         asinh, atan, atan2, atanh, cbrt, cos and cosh.
9429         * math/auto-libm-test-out: Regenerated.
9430         * math/libm-test.inc (acosh_test_data): Add more tests.
9431         (atanh_test_data): Likewise.
9432         (ceil_test_data): Likewise.
9433         (copysign_test_data): Likewise.
9434         * sysdeps/i386/fpu/libm-test-ulps: Update.
9435         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9436
9437         * timezone/checktab.awk: Update from tzcode 2013i.
9438         * timezone/private.h: Likewise.
9439         * timezone/scheck.c: Likewise.
9440         * timezone/tzfile.h: Likewise.
9441         * timezone/tzselect.ksh: Likewise.
9442         * timezone/zdump.c: Likewise.
9443         * timezone/zic.c: Likewise.
9444
9445         * math/auto-libm-test-in: Add tests of cpow.
9446         * math/auto-libm-test-out: Regenerated.
9447         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
9448         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9449         mpc_cc_c.
9450         (func_calc_desc): Add mpc_cc_c union field.
9451         (test_functions): Add cpow.
9452         (special_fill_2pi): New function.
9453         (special_real_inputs): Add 2pi.
9454         (calc_generic_results): Handle mpc_cc_c.
9455         * sysdeps/i386/fpu/libm-test-ulps: Update.
9456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9457
9458         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
9459         csqrt, ctan and ctanh.
9460         * math/auto-libm-test-out: Regenerated.
9461         * math/libm-test.inc (TEST_COND_x86_64): New macro.
9462         (TEST_COND_x86): Likewise.
9463         (ccos_test_data): Use AUTO_TESTS_c_c.
9464         (ccosh_test_data): Likewise.
9465         (cexp_test_data): Likewise.
9466         (clog_test_data): Likewise.
9467         (csqrt_test_data): Likewise.
9468         (ctan_test_data): Likewise.
9469         (ctan_tonearest_test_data): Likewise.
9470         (ctan_towardzero_test_data): Likewise.
9471         (ctan_downward_test_data): Likewise.
9472         (ctan_upward_test_data): Likewise.
9473         (ctanh_test_data): Likewise.
9474         (ctanh_tonearest_test_data): Likewise.
9475         (ctanh_towardzero_test_data): Likewise.
9476         (ctanh_downward_test_data): Likewise.
9477         (ctanh_upward_test_data): Likewise.
9478         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9479         mpc_c_c.
9480         (func_calc_desc): Add mpc_c_c union field.
9481         (FUNC_mpc_c_c): New macro.
9482         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
9483         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
9484         ctanh.
9485         (special_fill_min_subnorm_p120): New function.
9486         (special_real_inputs): Add min_subnorm_p120.
9487         (calc_generic_results): Handle mpc_c_c.
9488         * sysdeps/i386/fpu/libm-test-ulps: Update.
9489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9490
9491 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9492
9493         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
9494         (do_sin_slow): New functions.
9495         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
9496         (cslow2, csloww1, csloww2): Use the new functions.
9497
9498         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
9499         Use M to change sign of result instead of X.  Assume X is
9500         positive.
9501         (csloww1): Likewise.
9502         (__sin): Adjust.
9503         (__cos): Adjust.
9504
9505         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
9506         arguments A and DA.
9507         (__sin): Adjust.
9508         (__cos): Likewise.
9509
9510         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
9511         (__cos): Likewise.
9512         (sloww1): Don't adjust sign of DX.
9513         (csloww1): Likewise.
9514         (sloww2): Use X directly and don't adjust sign of DX.
9515         (csloww2): Likewise.
9516
9517 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9518
9519         * math/auto-libm-test-in: Add tests of cabs and carg.
9520         * math/auto-libm-test-out: Regenerated.
9521         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
9522         (carg_test_data): Likewise.
9523         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9524         mpc_c_f.
9525         (func_calc_desc): Add mpc_c_f union field.
9526         (test_functions): Add cabs and carg.
9527         (calc_generic_results): Handle mpc_c_f.
9528
9529         * sysdeps/powerpc/powerpc32/libgcc-compat.S
9530         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
9531         as a macro and a compat symbol.
9532         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
9533         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
9534         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
9535         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
9536         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
9537         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
9538         not use .hidden.
9539         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
9540         Likewise.
9541         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
9542         Likewise.
9543         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
9544         Likewise.
9545         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
9546         Likewise.
9547         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
9548         Likewise.
9549         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
9550         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
9551         from GLIBC_2.3.2.
9552
9553 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9554
9555         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9556
9557 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9558
9559         * manual/texinfo.tex: Update to version 2013-11-26.10 with
9560         trailing whitespace removed.
9561         * scripts/config.guess: Update to version 2013-11-29.
9562         * scripts/config.sub: Update to version 2013-10-01.
9563
9564         * math/auto-libm-test-in: Add tests of sincos.
9565         * math/auto-libm-test-out: Regenerated.
9566         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
9567         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9568         mpfr_f_11.
9569         (func_calc_desc): Add mpfr_f_11 union field.
9570         (test_functions): Add sincos.
9571         (calc_generic_results): Handle mpfr_f_11.
9572         * sysdeps/i386/fpu/libm-test-ulps: Update.
9573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9574
9575 2013-12-19  Andreas Schwab  <schwab@suse.de>
9576
9577         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
9578         CALL_MCOUNT.
9579         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
9580         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
9581         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
9582
9583 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9584
9585         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
9586         * sysdeps/i386/fpu/libm-test-ulps: Update.
9587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9588
9589         [BZ #16293]
9590         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
9591         round-to-nearest mode when using frndint.
9592         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
9593         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9594         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
9595         Likewise.
9596         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
9597         sinh test to fail.
9598         * math/auto-libm-test-out: Regenerated.
9599         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
9600         (TEST_COND_x86): Likewise.
9601         (expm1_tonearest_test_data): New array.
9602         (expm1_test_tonearest): New function.
9603         (expm1_towardzero_test_data): New array.
9604         (expm1_test_towardzero): New function.
9605         (expm1_downward_test_data): New array.
9606         (expm1_test_downward): New function.
9607         (expm1_upward_test_data): New array.
9608         (expm1_test_upward): New function.
9609         (main): Run the new test functions.
9610         * sysdeps/i386/fpu/libm-test-ulps: Update.
9611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9612
9613         * include/features.h: Update comment documenting feature test
9614         macros.  Mention _DEFAULT_SOURCE in comment.
9615         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
9616         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
9617         _BSD_SOURCE and _SVID_SOURCE.
9618         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
9619         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
9620         !_SVID_SOURCE]: Likewise.
9621         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9622         (__USE_POSIX_IMPLICITLY): Define.
9623         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9624         (_POSIX_SOURCE): Undefine and redefine.
9625         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9626         (_POSIX_C_SOURCE): Likewise.
9627         * manual/creature.texi (_DEFAULT_SOURCE): Document.
9628         (Feature Test Macros): Update documentation of default features.
9629
9630 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9631
9632         * benchtests/Makefile: Add bench-strtok.
9633         * benchtests/bench-strtok.c: New file: strtok benchtest.
9634
9635 2013-12-19  Allan McRae  <allan@archlinux.org>
9636
9637         * manual/install.texi: Suppress menu for plain text output.
9638         * INSTALL: Regenerated.
9639
9640 2013-12-18  Brooks Moses  <bmoses@google.com>
9641
9642         [BZ #15846]
9643         * misc/getauxval.c: Include errno.h.
9644         (__getauxval): Set errno to ENOENT if the requested type is not
9645         found.
9646         * misc/sys/auxv.h (getauxval): Document that it may set errno;
9647         don't declare with __attribute_const__.
9648         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
9649         * manual/startup.texi: Document that getauxval sets errno.
9650
9651 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9652
9653         * math/auto-libm-test-in: Add tests of jn and yn.
9654         * math/auto-libm-test-out: Regenerated.
9655         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
9656         (yn_test_data): Likewise.
9657         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9658         mpfr_if_f.
9659         (func_calc_desc): Add mpfr_if_f union field.
9660         (FUNC_mpfr_if_f): New macro.
9661         (test_functions): Add jn and yn.
9662         (calc_generic_results): Assert type of second input for
9663         mpfr_ff_f.  Handle mpfr_if_f.
9664         (output_for_one_input_case): Disable all checking for arguments
9665         fitting floating-point types in case of an integer argument.
9666         * sysdeps/i386/fpu/libm-test-ulps: Update.
9667         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9668
9669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
9670         Don't expect fegetround reference in libm.so.
9671
9672 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9673
9674         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
9675         $(config-cflags-nofma).
9676
9677 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9678
9679         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
9680         * math/auto-libm-test-out: Regenerated.
9681
9682         [BZ #16338]
9683         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
9684         to determine exponent and adjust argument to have exponent of -1.
9685         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
9686         log2.
9687         * math/auto-libm-test-out: Regenerated.
9688         * sysdeps/i386/fpu/libm-test-ulps: Update.
9689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9690
9691 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
9692
9693         * manual/probes.texi: Remove cases when per-thread arenas are
9694         disabled.
9695
9696 2013-12-18  Andreas Schwab  <schwab@suse.de>
9697
9698         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
9699         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
9700         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
9701         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
9702         * sysdeps/i386/i686/multiarch/Makefile: Update.
9703         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
9704
9705 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9706
9707         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
9708         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
9709
9710 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9711
9712         [BZ #15968]
9713         Support TZ transition times < 00:00:00.
9714         This is needed for version-3 tz-format files; it supports time
9715         stamps past 2037 for America/Godthab (the only entry in the tz
9716         database for which this change is relevant).
9717         * manual/time.texi (TZ Variable): Document transition times
9718         from -167:59:59 through -00:00:01.
9719         * time/tzset.c (tz_rule): Time of day is now signed.
9720         (__tzset_parse_tz): Parse negative time of day.
9721
9722         Document TZ transition times >= 25:00:00.
9723         * manual/time.texi (TZ Variable): Document transition times from
9724         25:00:00 through 167:59:59.  These are already supported, and this
9725         support will help with version-3 tz-format files.
9726
9727         * manual/time.texi (TZ Variable): Modernize North America example
9728         to reflect current (i.e., 2007-and-later) daylight saving rules.
9729
9730         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
9731
9732 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9733
9734         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
9735         * sysdeps/unix/bsd/bits/stat.h: Likewise.
9736         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
9737         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9738         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
9739         * sysdeps/unix/bsd/bsdstat.h: Likewise.
9740         * sysdeps/unix/bsd/clock.c: Likewise.
9741         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9742         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
9743         * sysdeps/unix/bsd/init-posix.c: Likewise.
9744         * sysdeps/unix/bsd/poll.c: Likewise.
9745         * sysdeps/unix/bsd/ptsname.c: Likewise.
9746         * sysdeps/unix/bsd/seekdir.c: Likewise.
9747         * sysdeps/unix/bsd/setegid.c: Likewise.
9748         * sysdeps/unix/bsd/seteuid.c: Likewise.
9749         * sysdeps/unix/bsd/setgid.c: Likewise.
9750         * sysdeps/unix/bsd/setrgid.c: Likewise.
9751         * sysdeps/unix/bsd/setruid.c: Likewise.
9752         * sysdeps/unix/bsd/setsid.c: Likewise.
9753         * sysdeps/unix/bsd/setuid.c: Likewise.
9754         * sysdeps/unix/bsd/sigaction.c: Likewise.
9755         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
9756         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
9757         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
9758         * sysdeps/unix/bsd/telldir.c: Likewise.
9759         * sysdeps/unix/bsd/times.c: Likewise.
9760         * sysdeps/unix/bsd/usleep.c: Likewise.
9761
9762         * misc/Makefile (install-lib): Remove libbsd-compat.a.
9763         ($(objpfx)libbsd-compat.a): Remove rule.
9764
9765         * include/features.h (__FAVOR_BSD): Do not define.
9766         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
9767         features conflicting with POSIX.
9768         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
9769         (_BSD_SOURCE): Remove description of not being a subset of other
9770         feature test macros.
9771         * manual/job.texi (getpgrp): Do not document BSD version.
9772         (getpgid): Do not document by reference to BSD getpgrp.
9773         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
9774         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
9775         * signal/signal.h [__FAVOR_BSD]: Likewise.
9776         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
9777         instead of making contents conditional on [__FAVOR_BSD].
9778         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
9779
9780 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9781
9782         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9783
9784 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9785
9786         [BZ #16314]
9787         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
9788         values below 2**-450, not 2**-500.
9789         * math/auto-libm-test-in: Don't allow spurious underflow from
9790         hypot.
9791         * math/auto-libm-test-out: Regenerated.
9792
9793         [BZ #16316]
9794         [BZ #16330]
9795         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
9796         values of ha and hb and sort them after adjusting subnormal
9797         arguments.
9798         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9799         Likewise.
9800         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
9801         values of ea and eb and sort them after adjusting subnormal
9802         arguments.
9803         * math/auto-libm-test-in: Do not expect some hypot tests of
9804         subnormals to fail.  Add more hypot tests.
9805         * math/auto-libm-test-out: Regenerated.
9806
9807 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9808
9809         [BZ #13304]
9810         * sysdeps/sh/s_fma.c: New file.
9811         * sysdeps/sh/s_fmaf.c: New file.
9812         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
9813         version.
9814         * sysdeps/sh/Implies: Add sh/soft-fp.
9815
9816 2013-12-16  Roland McGrath  <roland@hack.frob.com>
9817
9818         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
9819         level of indirection to members `objname', `errstring', `malloced'.
9820         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
9821         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
9822         it as the __longjmp argument (just pass 1 instead).
9823         (_dl_catch_error): Initialize C with argument pointers and address of
9824         volatile local ERRCODE rather than copying values out of C at return.
9825
9826 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
9827
9828         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
9829         * math/auto-libm-test-out: Regenerated.
9830         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
9831         (hypot_test_data): Likewise.
9832         (pow_test_data): Likewise.
9833         (pow_tonearest_test_data): Likewise.
9834         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9835         mpfr_ff_f.
9836         (func_calc_desc): Add mpfr_ff_f union field.
9837         (FUNC_mpfr_ff_f): New macro.
9838         (test_functions): Add atan2, hypot and pow.
9839         (special_fill_min): New function.
9840         (special_fill_minus_min): Likewise.
9841         (special_fill_min_subnorm): Likewise.
9842         (special_fill_minus_min_subnorm): Likewise.
9843         (special_real_inputs): Add min, -min, min_subnorm and
9844         -min_subnorm.
9845         (calc_generic_results): Handle mpfr_ff_f.
9846         * sysdeps/i386/fpu/libm-test-ulps: Update.
9847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9848
9849 2013-12-16  Will Newton  <will.newton@linaro.org>
9850
9851         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
9852         (Aligned Memory Blocks): Add documentation for aligned_alloc
9853         and suggest it as an alternative to posix_memalign.
9854         (Hooks for Malloc): Document __memalign_hook is also called
9855         for aligned_alloc.  (Summary of Malloc): Add summary for
9856         aligned alloc.  Document __memalign_hook is also called
9857         for aligned_alloc.
9858
9859 2013-12-16  Will Newton  <will.newton@linaro.org>
9860
9861         * manual/memory.texi (Malloc Examples): Clarify default
9862         alignment documentation.  Suggest posix_memalign rather
9863         than memalign or valloc.
9864         (Aligned Memory Blocks): Remove suggestion to use memalign
9865         or valloc.  Remove obsolete comment about BSD.
9866         Document memalign errno values and mark the function obsolete.
9867         Document posix_memalign returned error codes.  Mark valloc
9868         as obsolete.  (Hooks for Malloc): __memalign_hook is also
9869         called for posix_memalign and valloc.
9870         (Summary of Malloc): Add posix_memalign to function summary.
9871         __memalign_hook is also called for posix_memalign and valloc.
9872
9873 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9874
9875         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
9876         TAYLOR_SIN.
9877         (__sin): Adjust.
9878         (__cos): Likewise.
9879         (sloww): Use mynumber union.  Expand ternary operator into
9880         if-else statements.
9881         (cslow): use mynumber union.
9882
9883 2013-12-16  Allan McRae  <allan@archlinux.org>
9884
9885         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
9886         * configure: Regenerated.
9887
9888         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
9889
9890         [BZ #14120]
9891         * configure.ac: Added --enable-maintainer-mode. Check for
9892         autoconf when enabled.
9893         * configure: Regenerated.
9894
9895         * nscd/nscd.service: New file.
9896         * nscd/nscd.tmpfiles: New file.
9897
9898 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
9899
9900         [BZ #12100]
9901         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
9902         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
9903         * sysdeps/x86_64/multiarch/strstr.c: ... here.
9904         (strstr): Add __strstr_sse2_unaligned ifunc.
9905         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
9906         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
9907         (strcasestr): Remove __strcasestr_sse42 ifunc.
9908         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
9909         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
9910         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
9911
9912 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9913
9914         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
9915         * sysdeps/sh/bits/fenv.h: ... here.
9916         * sysdeps/sh/sh4/fpu/bits: Remove directory.
9917
9918 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9919
9920         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
9921
9922         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
9923         hypotf multiarch implementations.
9924         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
9925         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
9926         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
9927         multiarch hypot for PPC64.
9928         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
9929         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
9930         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
9931         multiarch hypotf for PPC64.
9932
9933         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
9934         modff multiarch implementations.
9935         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
9936         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
9937         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
9938         multiarch modf for PPC64.
9939         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
9940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
9941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
9942         multiarch modff for PPC64.
9943
9944         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
9945         and logl multiarch implementations.
9946         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
9947         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
9948         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
9949         multiarch logb for PPC64.
9950         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
9951         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
9952         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
9953         multiarch logb for PPC64.
9954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
9955         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
9956         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
9957         multiarch logb for PPC64.
9958
9959         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
9960         isinff multiarch implementation.
9961         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
9962         file.
9963         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
9964         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
9965         multiarch isinf for PPC64.
9966         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
9967         file.
9968         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
9969         multiarch isinff for PPC64.
9970
9971         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
9972         finitef multiarch implementation.
9973         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
9974         file.
9975         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
9976         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
9977         multiarch finite for PPC64.
9978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
9979         file.
9980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
9981         multiarch finitef for PPC64.
9982
9983         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
9984         lrint multiarch implementation.
9985         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
9986         file.
9987         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
9988         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
9989         multiarch llrint for PPC64.
9990         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
9991         multiarch lrint for PPC64.
9992
9993         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
9994         copysignf multiarch implementation.
9995         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
9996         file.
9997         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
9998         file.
9999         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
10000         multiarch copysign for PPC64.
10001         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
10002         multiarch copysignf for PPC64.
10003
10004         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
10005         multiarch implementation.
10006         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
10007         file.
10008         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
10009         file.
10010         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
10011         file.
10012         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
10013         file.
10014         multiarch llround for PPC64.
10015         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
10016         multiarch trunc for PPC64.
10017         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
10018         multiarch truncf for PPC64.
10019
10020         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
10021         multiarch implementation.
10022         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
10023         file.
10024         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
10025         file.
10026         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
10027         file.
10028         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
10029         file.
10030         multiarch llround for PPC64.
10031         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
10032         multiarch round for PPC64.
10033         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
10034         multiarch roundf for PPC64.
10035
10036         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
10037         multiarch implementation.
10038         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
10039         file.
10040         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
10041         file.
10042         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
10043         file.
10044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
10045         file.
10046         multiarch llround for PPC64.
10047         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
10048         multiarch floor for PPC64.
10049         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
10050         multiarch floorf for PPC64.
10051
10052         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
10053         multiarch implementation.
10054         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
10055         file.
10056         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
10057         file.
10058         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
10059         file.
10060         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
10061         file.
10062         multiarch llround for PPC64.
10063         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
10064         multiarch ceil for PPC64.
10065         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
10066         multiarch ceilf for PPC64.
10067
10068         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
10069         multiarch implementation.
10070         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
10071         file.
10072         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
10073         file.
10074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
10075         file.
10076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
10077         multiarch llround for PPC64.
10078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
10079         multiarch lround for PPC64.
10080
10081         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
10082         multiarch implementation.
10083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
10084         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
10085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
10086         file.
10087         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
10088         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
10089         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
10090         multiarch isnan for PPC64.
10091         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
10092         multiarch isnanf for PPC64.
10093
10094         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
10095         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
10096         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
10097         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
10098         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
10099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
10100
10101         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
10102         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10103         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10104         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10105
10106         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
10107         multiarch implementations.
10108         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10109         (__libc_ifunc_impl_list): Likewise.
10110         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
10111         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
10112         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
10113         multiarch stpcpy for PPC64.
10114
10115         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
10116         multiarch implementations.
10117         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10118         (__libc_ifunc_impl_list): Likewise.
10119         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
10120         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
10121         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
10122         multiarch strcpy for PPC64.
10123
10124         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
10125         redefine function name.
10126         (_wordcopy_fwd_dest_aligned): Likewise.
10127         (_wordcopy_bwd_aligned): Likewise.
10128         (_wordcopy_bwd_dest_aligned): Likewise.
10129         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
10130         multiarch implementations.
10131         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10132         (__libc_ifunc_impl_list): Likewise.
10133         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
10134         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
10135         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
10136         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
10137         multiarch wcscpy for PPC64.
10138
10139         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
10140         multiarch implementations.
10141         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10142         (__libc_ifunc_impl_list): Likewise.
10143         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
10144         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
10145         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
10146         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
10147         multiarch wcscpy for PPC64.
10148
10149         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
10150         multiarch implementations.
10151         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10152         (__libc_ifunc_impl_list): Likewise.
10153         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
10154         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
10155         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
10156         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
10157         multiarch wcsrchr for PPC64.
10158
10159         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
10160         multiarch implementations.
10161         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10162         (__libc_ifunc_impl_list): Likewise.
10163         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
10164         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
10165         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
10166         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
10167         multiarch wcschr for PPC64.
10168
10169         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
10170         multiarch implementations.
10171         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10172         (__libc_ifunc_impl_list): Likewise.
10173         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
10174         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
10175         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
10176         multiarch strchrnul for PPC64.
10177
10178         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
10179         implementations.
10180         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10181         (__libc_ifunc_impl_list): Likewise.
10182         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
10183         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
10184         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
10185         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
10186         strchr for PPC64.
10187
10188         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
10189         implementations.
10190         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10191         (__libc_ifunc_impl_list): Likewise.
10192         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
10193         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
10194         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
10195         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
10196         strncmp for PPC64.
10197
10198         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
10199         multiarch implementations.
10200         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10201         (__libc_ifunc_impl_list): Likewise.
10202         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
10203         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
10204         strncasecmp for PPC64.
10205         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
10206         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
10207         multiarch strncasecmp_l for PPC64.
10208
10209         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
10210         multiarch implementations.
10211         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10212         (__libc_ifunc_impl_list): Likewise.
10213         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
10214         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
10215         multiarch strcasecmp for PPC64.
10216         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
10217         file.
10218         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
10219         multiarch strcasecmp_l for PPC64.
10220
10221         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
10222         implementations.
10223         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10224         (__libc_ifunc_impl_list): Likewise.
10225         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
10226         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
10227         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
10228         strnlen for PPC64.
10229
10230         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
10231         implementations.
10232         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10233         (__libc_ifunc_impl_list): Likewise.
10234         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
10235         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
10236         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
10237         strlen for PPC64.
10238
10239         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
10240         implementations.
10241         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10242         (__libc_ifunc_impl_list): Likewise.
10243         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
10244         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
10245         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
10246         rawmemrchr for PPC64.
10247
10248         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
10249         implementation.
10250         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10251         (__libc_ifunc_impl_list): Likewise.
10252         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
10253         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
10254         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
10255         memrchr for PPC64.
10256
10257         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
10258         implementation.
10259         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10260         (__libc_ifunc_impl_list): Likewise.
10261         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
10262         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
10263         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
10264         memchr for PPC64.
10265
10266         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
10267         implementation.
10268         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10269         (__libc_ifunc_impl_list): Likewise.
10270         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
10271         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
10272         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
10273         mempcpy for PPC64.
10274
10275         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
10276         avoid cretion of __bzero symbol.
10277         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
10278         Likewise.
10279         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
10280         Likewise.
10281         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
10282         Likewise.
10283         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
10284         multiarch implementations.
10285         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10286         (__libc_ifunc_impl_list): Likewise.
10287         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
10288         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
10289         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
10290         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
10291         bzero for PPC32.
10292         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
10293         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
10294         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
10295         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
10296         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
10297         memset for PPC64.
10298         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
10299
10300         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
10301         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
10302         implementations.
10303         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10304         (__libc_ifunc_impl_list): Likewise.
10305         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
10306         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
10307         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
10308         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
10309         memcmp for PPC64.
10310
10311         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
10312         multiarch for POWER/PPC64.
10313         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
10314         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
10315         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
10316         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
10317         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
10318         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
10319         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
10320         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
10321         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
10322         memcpy for PPC64.
10323
10324         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
10325         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
10326         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
10327         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
10328         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
10329         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
10330         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
10331         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
10332         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
10333         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
10334         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
10335         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
10336         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
10337         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
10338         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
10339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
10340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
10341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
10342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
10343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
10344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
10345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
10346
10347 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10348
10349         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
10350
10351 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10352
10353         * benchtests/Makefile (bench): Add exp2 and log2.
10354         (LDLIBS-bench-exp2): Add -lm.
10355         (LDLIBS-bench-log2): Likewise.
10356         * benchtests/exp2-inputs: New inputs file.
10357         * benchtests/log2-inputs: New inputs file.
10358         * benchtests/log-inputs: Add new inputs.
10359         * benchtests/tan-inputs: Likewise.
10360
10361 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10362
10363         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
10364         definition...
10365         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
10366         (csloww2): ... from here.
10367
10368         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
10369         instead of structures.
10370         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
10371         (POLYNOMIAL): Likewise.
10372         (TAYLOR_SLOW): Likewise.
10373         (__sin): Likewise.
10374         (__cos): Likewise.
10375         (slow1): Likewise.
10376         (slow2): Likewise.
10377         (sloww): Likewise.
10378         (sloww1); Likewise.
10379         (sloww2): Likewise.
10380         (bsloww1): Likewise.
10381         (bsloww2): Likewise.
10382         (cslow2): Likewise.
10383         (csloww): Likewise.
10384         (csloww1): Likewise.
10385         (csloww2): Likewise.
10386
10387 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
10388
10389         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
10390         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
10391         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
10392         * malloc/hooks.c (realloc_check): Likewise.
10393
10394         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
10395         * malloc/arena.c: Remove PER_THREAD conditional.
10396         [!PER_THREAD]: Remove code.
10397         (ptmalloc_unlock_all2): Likewise.
10398         (ptmalloc_init): Likewise.
10399         (_int_new_arena): Likewise.
10400         (arena_get2): Likewise.
10401         * malloc/hooks.c (__malloc_get_state): Likewise.
10402         (__malloc_set_state): Likewise.
10403         * malloc/malloc.c: Likewise.
10404         (struct malloc_state): Likewise.
10405         (struct malloc_par): Likewise.
10406         (__libc_realloc): Likewise.
10407         (__libc_mallopt): Likewise.
10408
10409 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10410
10411         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
10412
10413 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
10414
10415         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
10416         macro to a function.  Check for zero perturb_byte.
10417         (_int_malloc, _int_free): Remove zero perturb_byte checks.
10418
10419         * malloc/malloc.c: (force_reg): Remove.
10420         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
10421         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
10422         force_reg by atomic_forced_read.
10423         * malloc/arena.c (ptmalloc_init): Likewise.
10424         * malloc/hooks.c (top_check): Likewise.
10425
10426 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10427
10428         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10429
10430 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
10431
10432         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10433
10434 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
10435
10436         * math/auto-libm-test-in: Add tests of lgamma.
10437         * math/auto-libm-test-out: Regenerated.
10438         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
10439         (M_LOG_2_SQRT_PIl): Likewise.
10440         (lgamma_test_data): Use AUTO_TESTS_f_f1.
10441         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10442         mpfr_f_f1.
10443         (func_calc_desc): Add mpfr_f_f1 union field.
10444         (ARGS1): New macro.
10445         (ARGS2): Likewise.
10446         (ARGS3): Likewise.
10447         (ARGS4): Likewise.
10448         (RET1): Likewise.
10449         (RET2): Likewise.
10450         (CALC): Likewise.
10451         (FUNC): Likewise.
10452         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
10453         (test_functions): Add lgamma.
10454         (calc_generic_results): Handle mpfr_f_f1.
10455         * sysdeps/i386/fpu/libm-test-ulps: Update.
10456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10457
10458 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10459
10460         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
10461         __mpn_add_n for PowerPC64/POWER7.
10462         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
10463         __mpn_sub_n for PowerPC64/POWER7.
10464
10465         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
10466         __mpn_addmul_1 for PowerPC64.
10467         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
10468         __mpn_submul_1 for PowerPC64.
10469         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
10470         for PowerPC64.
10471         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
10472         for PowerPC64.
10473
10474 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
10475
10476         [BZ #15089]
10477         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
10478
10479 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10480
10481         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
10482
10483         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
10484         add multiarch folders.
10485         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
10486         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
10487         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
10488         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
10489         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
10490         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
10491         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
10492         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
10493         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
10494         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
10495         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
10496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
10497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
10498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
10499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
10500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
10501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
10502
10503         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10504         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
10505         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
10506         New file.
10507         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
10508         New file.
10509         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
10510         multiarch __ieee754_hypot for PowerPC32.
10511         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
10512         New file.
10513         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
10514         New file.
10515         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
10516         multiarch __ieee754_hypotf for PowerPC32.
10517
10518         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
10519         long_double_symbol only if __logbl is defined.
10520         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
10521         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
10522         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
10523         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
10524         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
10525         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
10526         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
10527         path for implementation.
10528         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
10529         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
10530         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
10531         logb, and logbl multiarch implementations for PowerPC32.
10532         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
10533         file.
10534         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
10535         file.
10536         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
10537         multiarch logb for PowerPC32.
10538         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
10539         file.
10540         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
10541         file.
10542         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
10543         multiarch logbf for PowerPC32.
10544         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
10545         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
10546         file.
10547         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
10548         multiarch logbl implementation for PowerPC32.
10549
10550         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
10551         and modff multiarch implementations.
10552         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
10553         New file.
10554         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
10555         New file.
10556         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
10557         multiarch modf for PowerPC32.
10558         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
10559         New file.
10560         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
10561         New file.
10562         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
10563         multiarch modff for PowerPC32.
10564
10565         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
10566         and lrintf multiarch implementations.
10567         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
10568         New file.
10569         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
10570         New file.
10571         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
10572         multiarch lrint for PowerPC32.
10573         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
10574         file: multiarch lrintf for PowerPC32.
10575
10576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
10577         and lroundf multiarch implementations.
10578         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
10579         New file.
10580         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
10581         New file.
10582         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
10583         New file.
10584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
10585         multiarch lround for PowerPC32.
10586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
10587         file: multiarch lroundf for PowerPC32.
10588
10589         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10590         copysign and copysignf multiarch implementations.
10591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
10592         New file.
10593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
10594         New file.
10595         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
10596         file: multiarch copysign for PowerPC32.
10597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
10598         file: multiarch copysignf for PowerPC32.
10599
10600         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
10601         and truncf multiarch implementations.
10602         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
10603         New file.
10604         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
10605         file.
10606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
10607         multiarch trunc for PowerPC32.
10608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
10609         New file.
10610         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
10611         New file.
10612         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
10613         multiarch truncf for PowerPC32.
10614
10615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
10616         and roundf multiarch implementations.
10617         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
10618         New file.
10619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
10620         file.
10621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
10622         multiarch round for PowerPC32.
10623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
10624         New file.
10625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
10626         New file.
10627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
10628         multiarch roundf for PowerPC32.
10629
10630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
10631         and floorf multiarch implementations.
10632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
10633         New file.
10634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
10635         file.
10636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
10637         multiarch floor for PowerPC32.
10638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
10639         New file.
10640         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
10641         New file.
10642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
10643         multiarch floorf for PowerPC32.
10644
10645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
10646         and ceilf multiarch implementations.
10647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
10648         New file.
10649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
10650         file.
10651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
10652         multiarch ceil for PowerPC32.
10653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
10654         New file.
10655         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
10656         file.
10657         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
10658         multiarch ceilf for PowerPC32.
10659
10660         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
10661         is defined.
10662         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
10663         FINITEF is defined.
10664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
10665         and finitef multiarch implementations.
10666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
10667         New file.
10668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
10669         file.
10670         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
10671         multiarch finite for PowerPC32.
10672         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
10673         New file.
10674         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
10675         file: multiarch finitef for PowerPC32.
10676
10677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
10678         and isinff multiarch implementations.
10679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
10680         file.
10681         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
10682         file.
10683         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
10684         multiarch isinf for PowerPC32.
10685         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
10686         New file.
10687         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
10688         multiarch isinff for PowerPC32.
10689
10690         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
10691         alias when __isnan is defined.
10692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
10693         and isnanf multiarch implementations.
10694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
10695         file.
10696         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
10697         file.
10698         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
10699         file.
10700         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
10701         file.
10702         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
10703         multiarch isnan for PowerPC32.
10704         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
10705         New file.
10706         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
10707         New file.
10708         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
10709         multiarch isnanf for PowerPC32.
10710
10711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
10712         and sqrtf multiarch implementations.
10713         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
10714         file.
10715         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
10716         file.
10717         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
10718         multiarch sqrt for PowerPC32.
10719         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
10720         file.
10721         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
10722         file.
10723         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
10724         multiarch sqrtf for PowerPC32.
10725
10726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
10727         and llroundf multiarch implementations.
10728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
10729         New file.
10730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
10731         New file.
10732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
10733         New file.
10734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
10735         file: multiarch llround for PowerPC32.
10736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
10737         file: multiarch llroundf for PowerPC32.
10738
10739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
10740         multiarch PowerPC32 fpu implementations.
10741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
10742         New file.
10743         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
10744         New file.
10745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
10746         multiarch llrint for PowerPC32.
10747         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
10748         New file.
10749         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
10750         New file.
10751         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
10752         file.
10753
10754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
10755
10756         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
10757         file.
10758         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
10759         file.
10760         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
10761         file.
10762         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
10763         multiarch wordcopy for PPC32.
10764         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10765         wordcopy objects.
10766         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10767         (__libc_ifunc_impl_list): Likewise.
10768         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
10769         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
10770         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
10771         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
10772         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
10773         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
10774
10775         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
10776         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
10777         file.
10778         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
10779         file.
10780         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
10781         file.
10782         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
10783         multiarch wcscpy for PPC32.
10784         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10785         multiarch objects.
10786         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10787         (__libc_ifunc_impl_list): Likewise.
10788         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10789         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10790         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
10791         sysdeps/powerpc/power6/wcscpy.c.
10792
10793         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
10794         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
10795         file.
10796         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
10797         file.
10798         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
10799         file.
10800         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
10801         multiarch wcsrchr for PPC32.
10802         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10803         multiarch objects.
10804         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10805         (__libc_ifunc_impl_list): Likewise.
10806         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10807         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10808         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
10809         sysdeps/powerpc/power6/wcsrchr.c.
10810
10811         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
10812         file.
10813         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
10814         file.
10815         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
10816         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
10817         multiarch wcschr for PPc32.
10818         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10819         multiarch objects.
10820         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10821         (__libc_ifunc_impl_list): Likewise.
10822         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
10823         * sysdeps/powerpc/power6/wcschr.c: ... to here.
10824         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
10825         sysdeps/powerpc/power6/wcschr.c.
10826
10827         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
10828         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
10829         file.
10830         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
10831         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
10832         file: multiarch strchr for PPC32.
10833         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
10834         multiarch objects.
10835         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10836         (__libc_ifunc_impl_list): Likewise.
10837
10838         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
10839         name.
10840         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
10841         file.
10842         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
10843         file.
10844         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
10845         multiarch strchrnul for PPC32.
10846         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
10847         multiarch objects.
10848         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10849         (__libc_ifunc_impl_list): Likewise.
10850
10851         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
10852         file.
10853         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
10854         multiarch strncasecmp for PPC32.
10855         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
10856         file.
10857         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
10858         multiarch strncasecmp_l for PPC32.
10859         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
10860         strncasecmp multiarch objects.
10861         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10862         (__libc_ifunc_impl_list): Likewise.
10863
10864         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
10865         file.
10866         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
10867         multiarch strncasecmp for PPC32.
10868         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
10869         New file.
10870         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
10871         multiarch strcasecmp_l for PPC32.
10872         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
10873         multiarch objects.
10874         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10875         (__libc_ifunc_impl_list): Likewise.
10876
10877         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
10878         file.
10879         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
10880         file.
10881         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
10882         multiarch strncmp for PPC32.
10883         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
10884         multiarch objects.
10885         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10886         (__libc_ifunc_impl_list): Likewise.
10887
10888         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
10889         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
10890         file.
10891         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
10892         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
10893         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
10894         multiarch objects.
10895         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10896         (__libc_ifunc_impl_list): Likewise.
10897
10898         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
10899         file.
10900         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
10901         file.
10902         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
10903         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
10904         multiarch objects.
10905         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10906         (__libc_ifunc_impl_list): Likewise.
10907
10908         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
10909         file.
10910         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
10911         file.
10912         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
10913         multiarch rawmemchr for PPC32.
10914         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
10915         multiarch objects.
10916         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10917         (__libc_ifunc_impl_list): Likewise.
10918
10919         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
10920         file.
10921         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
10922         file.
10923         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
10924         file: memrchr multiarch for PPC32.
10925         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
10926         multiarch objects.
10927         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10928         (__libc_ifunc_impl_list): Likewise.
10929
10930         * string/memchr.c (__memchr): Using macro to redefine symbol name.
10931         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
10932         file.
10933         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
10934         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
10935         multiarch memchr for PPC32.
10936         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
10937         multiarch objects.
10938         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10939         (__libc_ifunc_impl_list): Likewise.
10940
10941         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
10942         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
10943         file.
10944         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
10945         file.
10946         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
10947         file: multiarch mempcpy for PPC32.
10948         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
10949         multiarch objects.
10950         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10951         (__libc_ifunc_impl_list): Likewise.
10952
10953         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
10954         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
10955         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
10956         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
10957         multiarch bzero for PPC32.
10958         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
10959         file.
10960         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
10961         file.
10962         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
10963         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
10964         file: multiarch memset for PPC32.
10965         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
10966         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
10967         memset multiarch objects.
10968         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10969         (__libc_ifunc_impl_list): Likewise.
10970
10971         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
10972         file.
10973         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
10974         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
10975         memcmp for PPC32.
10976         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
10977         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
10978         multiarch objects.
10979         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10980         (__libc_ifunc_impl_list): Likewise.
10981
10982         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
10983         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
10984         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
10985         file.
10986         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
10987         file.
10988         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
10989         file.
10990         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
10991         multiarch memcpy for PPC32.
10992         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
10993         multiarch objects.
10994         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10995         (__libc_ifunc_impl_list): Likewise.
10996
10997         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
10998         support multiarch for POWER/PPC32.
10999         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
11000         Likewise.
11001         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
11002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
11003         Implies file to make multiarch folder appers before the fpu and
11004         default folder for power4 configuration.
11005
11006 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11007
11008         * scripts/bench.pl: Append volatile keyword to type.
11009
11010 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11011
11012         * sysdeps/sh/sotruss-lib.c: New file.
11013         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
11014
11015 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11016
11017         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11018
11019 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
11020
11021         [BZ #6810]
11022         * math/w_tgamma.c: Include <errno.h>.
11023         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
11024         * math/w_tgammaf.c: Include <errno.h>.
11025         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
11026         * math/w_tgammal.c: Include <errno.h>.
11027         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
11028         * math/auto-libm-test-in: Do not allow missing errno on tgamma
11029         underflow.  Add more tgamma tests.
11030         * math/auto-libm-test-out: Regenerated.
11031         * sysdeps/i386/fpu/libm-test-ulps: Update.
11032         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11033
11034         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
11035         sin, sinh, tan, tanh, tgamma, y0 and y1.
11036         * math/auto-libm-test-out: Regenerated.
11037         * math/libm-test.inc (TEST_COND_x86_64): New macro.
11038         (TEST_COND_x86): Likewise.
11039         (M_E2l): Remove macro.
11040         (M_E3l): Likewise.
11041         (M_2_SQRT_PIl): Likewise.
11042         (M_SQRT_PIl): Likewise.
11043         (M_1_DIV_El): Likewise.
11044         (log_test_data): Use AUTO_TESTS_f_f.
11045         (log10_test_data): Likewise.
11046         (log1p_test_data): Likewise.
11047         (log2_test_data): Likewise.
11048         (sin_test_data): Likewise.
11049         (sin_tonearest_test_data): Likewise.
11050         (sin_towardzero_test_data): Likewise.
11051         (sin_downward_test_data): Likewise.
11052         (sin_upward_test_data): Likewise.
11053         (sinh_test_data): Likewise.
11054         (sinh_tonearest_test_data): Likewise.
11055         (sinh_towardzero_test_data): Likewise.
11056         (sinh_downward_test_data): Likewise.
11057         (sinh_upward_test_data): Likewise.
11058         (tan_test_data): Likewise.
11059         (tan_tonearest_test_data): Likewise.
11060         (tan_towardzero_test_data): Likewise.
11061         (tan_downward_test_data): Likewise.
11062         (tan_upward_test_data): Likewise.
11063         (tanh_test_data): Likewise.
11064         (tgamma_test_data): Likewise.
11065         (y0_test_data): Likewise.
11066         (y1_test_data): Likewise.
11067         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
11068         (special_real_inputs): Add pi/4.
11069         * sysdeps/i386/fpu/libm-test-ulps: Update.
11070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11071
11072 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11073
11074         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
11075         "longjmp_target" static probes.
11076         (__longjmp): Rename to __longjmp_symbol.
11077         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11078         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
11079         on which longjmp to generate.
11080         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11081         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
11082         probe.
11083         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11084         (__sigjmp_save): Rename to __sigjmp_save_symbol.
11085         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
11086         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
11087         and __sigjmp_save_symbol based on which sigsetjmp to generated.
11088         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
11089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
11090         __longjmp_symbol based on which __longjmp to generate.
11091         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
11092         probe.
11093         (setjmp): Rename to setjmp_symbol.
11094         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11095         (_setjmp): Rename to _setjmp_symbol.
11096         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11097         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
11098         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
11099         which setjmp to generate.
11100         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
11101         "longjmp_target" static probes.
11102
11103 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
11104
11105         * benchtests/README: Add note about output arguments.
11106         * benchtests/bench-sincos.c: Remove file.
11107         * benchtests/sincos-inputs: New file.
11108         * scripts/bench.pl: Identify output arguments and define
11109         static variables for them.
11110
11111         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
11112
11113         [BZ #15941]
11114         * Makefile (INSTALL): Add install-plain.texi as the primary
11115         dependency.
11116         * manual/install-plain.texi: New file.
11117         * manual/install.texi: Include node directive only for
11118         non-plaintext output.
11119
11120 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
11121
11122         * stdlib/longlong.h: Update from GCC.
11123
11124         [BZ #6807]
11125         [BZ #15901]
11126         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
11127         * math/w_j0f.c (y0f): Likewise.
11128         * math/w_j0l.c (__y0l): Likewise.
11129         * math/w_j1.c (y1): Likewise.
11130         * math/w_j1f.c (y1f): Likewise.
11131         * math/w_j1l.c (__y1l): Likewise
11132         * math/w_jn.c (yn): Likewise.
11133         * math/w_jnf.c (ynf): Likewise.
11134         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
11135         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
11136         value for Bessel function domain errors outside _SVID_ mode.
11137         Adjust sign of return value for yn (negative integer, 0).
11138         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
11139         by zero in return for negative x and set sign appropriately for
11140         negative n.
11141         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
11142         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11143         * math/libm-test.inc (y0_test_data): Add more tests and adjust
11144         expectations in error cases.
11145         (y1_test_data): Likewise.
11146         (yn_test_data): Likewise.
11147         * sysdeps/i386/fpu/libm-test-ulps: Update.
11148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11149
11150 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11151
11152         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
11153         "64" to "64-v1".  Add "64-v2".
11154         (abi-64-options): Rename to ...
11155         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
11156         (abi-64-condition): Rename to ...
11157         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
11158         (abi-64-ld-soname): Rename to ...
11159         (abi-64-v1-ld-soname): ... this.
11160         (abi-64-v2-options): Define.
11161         (abi-64-v2-condition): Likewise.
11162         (abi-64-v2-ld-soname): Likewise.
11163         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
11164         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
11165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
11166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
11167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
11168
11169 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11170             Alan Modra  <amodra@gmail.com>
11171
11172         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
11173         New versions for use with the ELFv2 ABI.
11174         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
11175         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
11176         declaration.
11177         (struct La_ppc64v2_retval): Likewise.
11178         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
11179         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
11180         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
11181         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
11182         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
11183         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11184         Do not save or restore CR.
11185         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
11186         (_dl_profile_resolve): Do no save or restore CR.  Support extended
11187         return values for ELFv2 ABI.  Fix location of FPR return registers.
11188         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
11189         updated values for _CALL_ELF == 2.
11190         (La_regs, La_retval, int_retval): Likewise.
11191
11192 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11193
11194         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
11195         (FRAME_MIN_SIZE_PARM): Likewise.
11196         (FRAME_BACKCHAIN): Likewise.
11197         (FRAME_CR_SAVE): Likewise.
11198         (FRAME_LR_SAVE): Likewise.
11199         (FRAME_TOC_SAVE): Likewise.
11200         (FRAME_PARM_SAVE): Likewise.
11201         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
11202         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
11203         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11204         (call_mcount_parm_offset): New macro.
11205         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
11206         (PROF): Use symbolic stack frame offsets.
11207         (TAIL_CALL_SYSCALL_ERROR): Likewise.
11208         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
11209         Redefine in terms of FRAME_MIN_SIZE.
11210         (_dl_runtime_resolve): Use symbolic stack frame offsets.
11211         (_dl_profile_resolve): Likewise.  Update comment.
11212         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
11213         symbols stack frame offsets.
11214         (__sigsetjmp): Likewise.
11215         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11216         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
11217         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
11218         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
11219
11220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
11221         (FRAME_BACKCHAIN): Remove.
11222         (FRAME_CR_SAVE): Likewise.
11223         (FRAME_LR_SAVE): Likewise.
11224         (FRAME_COMPILER_DW): Likewise.
11225         (FRAME_LINKER_DW): Likewise.
11226         (FRAME_TOC_SAVE): Likewise.
11227         (FRAME_PARM_SAVE): Likewise.
11228         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
11229         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
11230         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
11232         (CHECK_SP): Use symbolic stack frame offsets.
11233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
11234         zone" instead of caller's parameter save area for temp storage.
11235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11236         Likewise.  Also, use symbolic stack frame offsets.
11237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
11238         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
11239         our own stack frame instead of the caller's.
11240         (__socket): Use symbolic stack frame offsets.
11241
11242 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11243             Alan Modra  <amodra@gmail.com>
11244
11245         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
11246         Define.
11247         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
11248         (PPC64_LOCAL_ENTRY_OFFSET): Define.
11249         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
11250         New function.
11251         (elf_machine_fixup_plt): Call it.
11252         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
11253         reloc arguments.
11254         (elf_machine_rela): Update call to elf_machine_plt_conflict.
11255         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11256         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
11257         r2 before calling target.
11258
11259 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11260             Alan Modra  <amodra@gmail.com>
11261
11262         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
11263         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
11264         versions of macros to support ELFv2 ABI.
11265         (LOCALENTRY): New macro.
11266         (ENTRY, EALIGN): Use it.
11267         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
11268         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
11269         fall through into ENTRY entry point.
11270         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
11271         Only define if _CALL_ELF != 2.
11272
11273         (elf_machine_matches_host): Verify ABI version matches.
11274         (RTLD_START): Use LOCALENTRY.
11275         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
11276         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
11277         (PLT_ENTRY_WORDS): New macro.
11278         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
11279         (elf_machine_runtime_setup): Support ELFv2 ABI.
11280         (elf_machine_fixup_plt): Likewise.
11281         (elf_machine_plt_conflict): Likewise.
11282         (resolve_ifunc): Likewise.
11283         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
11284         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11285         Likewise.
11286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11287         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
11288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11289         (makecontext): Support ELFv2 ABI.
11290         * elf/elf.h (EF_PPC64_ABI): Define.
11291
11292 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11293
11294         * sysdeps/powerpc/powerpc64/sysdep.h
11295         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
11296         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
11297         (ENTRY) [ASSEMBLER]: ... but instead here ...
11298         (EALIGN) [ASSEMBLER]: ... and here.
11299         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
11300         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
11301         (ENTRY_2) [!ASSEMBLER]: Use it.
11302         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
11303         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
11304         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11305         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
11306         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
11307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
11308         Use PPC64_LOAD_FUNCPTR.
11309
11310         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
11311
11312 2013-12-04  Alan Modra  <amodra@gmail.com>
11313
11314         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
11315         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
11316         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
11317         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
11318
11319         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
11320         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
11321         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
11322         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
11323         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
11324         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
11325
11326 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11327
11328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11329         (__makecontext): Fix incorrect CFI when backtracing out of
11330         context created via makecontext.
11331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
11332         (__setcontext): Fix incorrect CFI during switch to new context.
11333         (__novec_setcontext): Likewise.
11334
11335 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11336
11337         [BZ #4772]
11338         * time/strptime_l.c (__strptime_internal): Allow modifiers
11339         in strptime.
11340         * time/tst-strptime.c (day_tests): Add testcase.
11341
11342 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11343
11344         * scripts/bench.pl: Skip over blank lines.
11345
11346 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
11347
11348         [BZ #926]
11349         * manual/time.texi (Calendar Time): Clarify what timezone functions
11350         use.
11351
11352 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11353
11354         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11355
11356 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11357
11358         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
11359         implementation.
11360         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
11361         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
11362         * debug/memset_chk.c (__memset_chk): Likewise.
11363         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
11364         * debug/strncpy_chk.c: Likewise.
11365
11366 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11367
11368         [BZ #15268]
11369         [BZ #15425]
11370         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
11371         (__ieee754_exp): For possibly underflowing results, check size of
11372         result and force underflow exception if required.
11373         * math/auto-libm-test-in: Add more tests of exp.
11374         * math/auto-libm-test-out: Regenerated.
11375         * sysdeps/i386/fpu/libm-test-ulps: Update.
11376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11377
11378         [BZ #16283]
11379         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
11380         * math/w_exp2f.c (__exp2f): Likewise.
11381         * math/w_exp2l.c (__exp2l): Likewise.
11382         * math/auto-libm-test-in: Do not allow missing errno on exp2
11383         underflow.
11384         * math/auto-libm-test-out: Regenerated.
11385
11386 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
11387
11388         [BZ #16274]
11389         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
11390         handle filename validation.
11391         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
11392         (do_open): Delete.
11393
11394 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11395
11396         [BZ #6786]
11397         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
11398         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
11399         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
11400         <float.h>.
11401         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
11402         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
11403         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11404         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
11405         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11406         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
11407         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11408         * math/auto-libm-test-in: Don't allow missing errno from erfc.
11409         Add more erfc tests.
11410         * math/auto-libm-test-out: Regenerated.
11411         * sysdeps/i386/fpu/libm-test-ulps: Update.
11412         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11413
11414         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
11415         exp2, expm1, j0 and j1.
11416         * math/auto-libm-test-out: Regenerated.
11417         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
11418         (erfc_test_data): Likewise.
11419         (exp_test_data): Likewise.
11420         (exp_tonearest_test_data): Likewise.
11421         (exp_towardzero_test_data): Likewise.
11422         (exp_downward_test_data): Likewise.
11423         (exp_upward_test_data): Likewise.
11424         (exp10_test_data): Likewise.
11425         (exp2_test_data): Likewise.
11426         (expm1_test_data): Likewise.
11427         (j0_test_data): Likewise.
11428         (j1_test_data): Likewise.
11429         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
11430         (input_flag_type): Add flag_xfail_rounding.
11431         (input_flags): Add xfail-rounding.
11432         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
11433         (output_for_one_input_case): Handle flag_xfail_rounding.
11434         * sysdeps/i386/fpu/libm-test-ulps: Update.
11435         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11436
11437 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
11438
11439         [BZ #16289]
11440         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
11441         division by 0.
11442
11443 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11444
11445         [BZ #16195]
11446         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
11447         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
11448         (STAP_PROBE0): New macro.
11449         (STAP_PROBE1): Likewise.
11450         (STAP_PROBE2): Likewise.
11451         (STAP_PROBE3): Likewise.
11452         (STAP_PROBE4): Likewise.
11453
11454 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
11455
11456         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
11457
11458 2013-12-02  Steve Ellcey  <sellcey@mips.com>
11459
11460         * benchtests/Makefile (bench): Add sqrt.
11461         (LDLIBS-bench-sqrt): New.
11462         * benchtests/sqrt-input: New.
11463
11464 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
11465
11466         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
11467         (GAIH_EAI): Likewise.
11468         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
11469         (gaih_inet): Likewise.
11470         (getaddrinfo): Don't use GAIH_EAI.
11471
11472         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
11473         (struct gaih): Remove definition.
11474
11475 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11476
11477         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
11478         Use HERRNOP directly.
11479
11480 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11481
11482         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11483
11484 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
11485
11486         * math/gen-auto-libm-tests.c (test_functions): Add more
11487         single-argument functions.
11488         (special_fill_pi_2): New function.
11489         (special_fill_minus_pi_2): Likewise.
11490         (special_fill_pi_6): Likewise.
11491         (special_fill_minus_pi_6): Likewise.
11492         (special_fill_pi_3): Likewise.
11493         (special_fill_2pi_3): Likewise.
11494         (special_fill_e): Likewise.
11495         (special_fill_1_e): Likewise.
11496         (special_fill_e_minus_1): Likewise.
11497         (special_real_inputs): Add more special inputs.
11498         (output_for_one_input_case): Do not require ERANGE on underflow to
11499         zero if round-to-nearest result does not underflow to zero, unless
11500         exact results required.
11501         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
11502         atan, atanh, cbrt, cos and cosh.
11503         * math/auto-libm-test-out: Regenerated.
11504         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
11505         (acos_tonearest_test_data): Likewise.
11506         (acos_towardzero_test_data): Likewise.
11507         (acos_downward_test_data): Likewise.
11508         (acos_upward_test_data): Likewise.
11509         (acosh_test_data): Likewise.
11510         (asin_test_data): Likewise.
11511         (asin_tonearest_test_data): Likewise.
11512         (asin_towardzero_test_data): Likewise.
11513         (asin_upward_test_data): Likewise.
11514         (asinh_test_data): Likewise.
11515         (atan_test_data): Likewise.
11516         (atanh_test_data): Likewise.
11517         (cbrt_test_data): Likewise.
11518         (cos_test_data): Likewise.
11519         (cos_tonearest_test_data): Likewise.
11520         (cos_towardzero_test_data): Likewise.
11521         (cos_downward_test_data): Likewise.
11522         (cos_upward_test_data): Likewise.
11523         (cosh_test_data): Likewise.
11524         (cosh_tonearest_test_data): Likewise.
11525         (cosh_towardzero_test_data): Likewise.
11526         (cosh_downward_test_data): Likewise.
11527         (cosh_upward_test_data): Likewise.
11528         * sysdeps/i386/fpu/libm-test-ulps: Update.
11529         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11530
11531 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
11532
11533         [BZ #6787]
11534         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
11535         * math/w_exp10f.c (__exp10f): Likewise.
11536         * math/w_exp10l.c (__exp10l): Likewise.
11537         * math/libm-test.inc (exp10_test_data): Add more tests and expect
11538         errno settings in existing tests.
11539
11540         [BZ #14032]
11541         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
11542         precision control set to double precision.
11543         * sysdeps/i386/fpu/w_sqrt.c: New file.
11544         * math/auto-libm-test-in: Add more tests.
11545         * math/auto-libm-test-out: Update.
11546
11547         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
11548         (sqrt_test_tonearest): New function.
11549         (sqrt_towardzero_test_data): New variable.
11550         (sqrt_test_towardzero): New function.
11551         (sqrt_downward_test_data): New variable.
11552         (sqrt_test_downward): New function.
11553         (sqrt_upward_test_data): New variable.
11554         (sqrt_test_upward): New function.
11555         (main): Call the new functions.
11556
11557         * math/gen-auto-libm-tests.c: New file.
11558         * math/auto-libm-test-in: Likewise.
11559         * math/auto-libm-test-out: New generated file.
11560         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
11561         variables.
11562         (%beautify): Add generated representations of zero.
11563         (top level): Set $auto_input and call parse_auto_input.
11564         (beautify): Remove trailing "f" from hex float constants.
11565         (parse_args): Handle XFAIL_TEST.
11566         (convert_condition): New function.
11567         (or_value): Likewise.
11568         (or_cond_value): Likewise.
11569         (generate_testfile): Handle AUTO_TESTS_* lines.
11570         (parse_auto_input): New function.
11571         * math/libm-test.inc (XFAIL_TEST): New macro.
11572         (ERRNO_UNCHANGED): Update value.
11573         (ERRNO_EDOM): Likewise.
11574         (ERRNO_ERANGE): Likewise.
11575         (IGNORE_RESULT): Likewise.
11576         (TEST_COND_flt_32): New macro.
11577         (TEST_COND_dbl_64): Likewise.
11578         (TEST_COND_ldbl_96_intel): Likewise.
11579         (TEST_COND_ldbl_96_m68k): Likewise.
11580         (TEST_COND_ldbl_128): Likewise.
11581         (TEST_COND_ldbl_128ibm): Likewise.
11582         (TEST_COND_long32): Likewise.
11583         (TEST_COND_long64): Likewise.
11584         (TEST_COND_before_rounding): Likewise.
11585         (TEST_COND_after_rounding): Likewise.
11586         (enable_test): Handle XFAIL_TEST flag.
11587         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
11588         with finite results.
11589         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
11590         auto-libm-test-out.
11591
11592 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11593             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11594
11595         [BZ #16214]
11596         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
11597         __tls_get_addr_internal instead of __tls_get_offset in order to
11598         avoid GOT pointer dependency.  Make rtld export
11599         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
11600         __tls_get_addr since we are a __tls_get_offset platform.
11601         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
11602         GOT pointer being set up before.
11603         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
11604
11605 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
11606
11607         * manual/math.texi (Errors in Math Functions): Document accuracy
11608         goals.
11609
11610         [BZ #15004]
11611         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
11612         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11615         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11616         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11617         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11618         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11619         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11620         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11621         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11622         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11623         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11624         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11625         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11626         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11627
11628         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
11629         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
11630         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
11631         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
11632         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
11633         Likewise.
11634         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
11635         Likewise.
11636         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
11637         Likewise.
11638         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
11639         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11640         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
11641         atomic-feupdateenv and flt-rounds.
11642         * sysdeps/powerpc/nofpu/Versions (libc): Add
11643         __atomic_feholdexcept, __atomic_feclearexcept,
11644         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
11645         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
11646         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
11647         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
11648         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
11649         here.
11650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
11651         Update.
11652
11653         * manual/arith.texi (FP Exceptions): Document that exceptions may
11654         not be raised when matherr is used.
11655         (Math Error Reporting): Document overflow in directed rounding
11656         modes.  Document that errno may not be set when finite values are
11657         returned on overflow.  Document intent to set errno on underflow
11658         only for underflow to zero.
11659
11660         [BZ #16271]
11661         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
11662         round-to-nearest then adjust result for other rounding modes.
11663         * include/fenv.h (fegetround): Use libm_hidden_proto.
11664         * math/fegetround.c (fegetround): Use libm_hidden_def.
11665         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
11666         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
11667         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11668         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
11669         Likewise.
11670         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
11671         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11672         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
11673         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
11674
11675 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11676
11677         [BZ #16077]
11678         * nss/Versions (libnss_files): Add
11679         _nss_files_gethostbyname3_r.
11680         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
11681         New function.
11682         (HOST_DB_LOOKUP): Remove macro.
11683         (_nss_files_gethostbyname_r): Implement function without the
11684         HOST_DB_LOOKUP macro.
11685         (_nss_files_gethostbyname2_r): Likewise.
11686
11687 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
11688
11689         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
11690
11691 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
11692
11693         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
11694         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
11695         warning.
11696
11697 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11698
11699         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
11700         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
11701         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
11702         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
11703         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
11704         __fe_nomask_env_priv and attribute_hidden.
11705         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
11706         (libc_feupdateenv_test_ppc): Likewise.
11707         (libc_feresetround_ppc): Likewise.
11708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11709         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
11710         compat_symbol macro.
11711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11712         (__fe_nomask_env): Likewise.
11713         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
11714
11715 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11716
11717         * string/Makefile: Remove ifunc tests.
11718         * string/test-string.h: Define TEST_IFUNC.
11719         * string/test-bcopy-ifunc.c: Remove.
11720         * string/test-bzero-ifunc.c: Likewise.
11721         * string/test-memccpy-ifunc.c: Likewise.
11722         * string/test-memchr-ifunc.c: Likewise.
11723         * string/test-memcmp-ifunc.c: Likewise.
11724         * string/test-memcpy-ifunc.c: Likewise.
11725         * string/test-memmem-ifunc.c: Likewise.
11726         * string/test-memmove-ifunc.c: Likewise.
11727         * string/test-mempcpy-ifunc.c: Likewise.
11728         * string/test-memrchr-ifunc.c: Likewise.
11729         * string/test-memset-ifunc.c: Likewise.
11730         * string/test-rawmemchr-ifunc.c: Likewise.
11731         * string/test-stpcpy-ifunc.c: Likewise.
11732         * string/test-stpncpy-ifunc.c: Likewise.
11733         * string/test-strcasecmp-ifunc.c: Likewise.
11734         * string/test-strcasestr-ifunc.c: Likewise.
11735         * string/test-strcat-ifunc.c: Likewise.
11736         * string/test-strchr-ifunc.c: Likewise.
11737         * string/test-strchrnul-ifunc.c: Likewise.
11738         * string/test-strcmp-ifunc.c: Likewise.
11739         * string/test-strcpy-ifunc.c: Likewise.
11740         * string/test-strcspn-ifunc.c: Likewise.
11741         * string/test-strlen-ifunc.c: Likewise.
11742         * string/test-strncasecmp-ifunc.c: Likewise.
11743         * string/test-strncat-ifunc.c: Likewise.
11744         * string/test-strncmp-ifunc.c: Likewise.
11745         * string/test-strncpy-ifunc.c: Likewise.
11746         * string/test-strnlen-ifunc.c: Likewise.
11747         * string/test-strpbrk-ifunc.c: Likewise.
11748         * string/test-strrchr-ifunc.c: Likewise.
11749         * string/test-strspn-ifunc.c: Likewise.
11750         * string/test-strstr-ifunc.c: Likewise.
11751
11752 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11753
11754         * benchtests/Makefile: Remove ifunc tests.
11755         * benchtests/bench-string.h: Define TEST_IFUNC.
11756         * benchtests/bench-bcopy-ifunc.c: Remove.
11757         * benchtests/bench-bzero-ifunc.c: Likewise.
11758         * benchtests/bench-memccpy-ifunc.c: Likewise.
11759         * benchtests/bench-memchr-ifunc.c: Likewise.
11760         * benchtests/bench-memcmp-ifunc.c: Likewise.
11761         * benchtests/bench-memcpy-ifunc.c: Likewise.
11762         * benchtests/bench-memmem-ifunc.c: Likewise.
11763         * benchtests/bench-memmove-ifunc.c: Likewise.
11764         * benchtests/bench-mempcpy-ifunc.c: Likewise.
11765         * benchtests/bench-memrchr-ifunc.c: Likewise.
11766         * benchtests/bench-memset-ifunc.c: Likewise.
11767         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
11768         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
11769         * benchtests/bench-stpcpy-ifunc.c: Likewise.
11770         * benchtests/bench-stpncpy-ifunc.c: Likewise.
11771         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
11772         * benchtests/bench-strcasestr-ifunc.c: Likewise.
11773         * benchtests/bench-strcat-ifunc.c: Likewise.
11774         * benchtests/bench-strchr-ifunc.c: Likewise.
11775         * benchtests/bench-strchrnul-ifunc.c: Likewise.
11776         * benchtests/bench-strcmp-ifunc.c: Likewise.
11777         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
11778         * benchtests/bench-strcpy-ifunc.c: Likewise.
11779         * benchtests/bench-strcspn-ifunc.c: Likewise.
11780         * benchtests/bench-strlen-ifunc.c: Likewise.
11781         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
11782         * benchtests/bench-strncat-ifunc.c: Likewise.
11783         * benchtests/bench-strncmp-ifunc.c: Likewise.
11784         * benchtests/bench-strncpy-ifunc.c: Likewise.
11785         * benchtests/bench-strnlen-ifunc.c: Likewise.
11786         * benchtests/bench-strpbrk-ifunc.c: Likewise.
11787         * benchtests/bench-strrchr-ifunc.c: Likewise.
11788         * benchtests/bench-strsep-ifunc.c: Likewise.
11789         * benchtests/bench-strspn-ifunc.c: Likewise.
11790         * benchtests/bench-strstr-ifunc.c: Likewise.
11791
11792 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11793
11794         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
11795
11796 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11797
11798         * resolv/netdb.h: Use __glibc_reserved instead __unused.
11799         * rt/aio.h: Likewise.
11800         * sysdeps/gnu/bits/utmp.h: Likewise.
11801         * sysdeps/gnu/bits/utmpx.h: Likewise.
11802         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11803         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
11804         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
11805         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
11806         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11807         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11808         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
11809         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
11810         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
11811         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11812         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11813         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11814         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
11816         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
11817         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
11818         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11819         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11820         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11821         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11822         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
11823         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
11824         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
11825         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11826         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11827         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11828         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
11829         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11830         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11831         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11832         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11833         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
11834         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
11835         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
11836         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11837         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
11838         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11839         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11840         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11841         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
11842         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
11843         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
11844
11845 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
11846
11847         [BZ #16245]
11848         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
11849         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
11850
11851 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
11852
11853         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
11854         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
11855         Likewise.
11856
11857 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11858
11859         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
11860         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
11861         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
11862         (__fesetround): Remove define.
11863         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
11864         rounding and exceptions handling.
11865         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
11866         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
11867         (__fe_nomask_env): Likewise.
11868         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
11869         __fegetround instead of fegetround.
11870         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
11871         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
11872
11873 2013-11-21  Roland McGrath  <roland@hack.frob.com>
11874
11875         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
11876         it's there.
11877
11878         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
11879
11880 2013-11-21  Meador Inge  <meadori@codesourcery.com>
11881
11882         [BZ #11157]
11883         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
11884         (encrypt_r): Likewise.
11885         * malloc/obstack.h (obstack_free): Likewise.
11886         * posix/unistd.h (encrypt): Likewise.
11887
11888 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
11889
11890         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
11891         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
11892         DL_CALL_DT_FINI() that call the functions directly.
11893         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
11894         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
11895         * elf/dl-fini.c: Likewise.
11896
11897 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
11898
11899         * malloc/hooks.c (memalign_check): Add alignment rounding.
11900         * malloc/malloc.c (_mid_memalign): New function.
11901         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
11902         Implement by calling _mid_memalign.
11903         * manual/probes.texi (Memory Allocation Probes): Remove
11904         memory_valloc_retry and memory_pvalloc_retry.
11905
11906 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11907
11908         * locale/programs/locarchive.c (open_archive): Add const
11909         qualifier to ARCHIVEFNAME and copy default fname to
11910         DEFAULT_FNAME.
11911
11912         [BZ #15601]
11913         * libio/tst-widetext.input: Rename Oriya to Odia.
11914         * locale/iso-639.def: Likewise.
11915
11916         * manual/probes.texi (Mathematical Function Probes): Add
11917         documentation for sin, cos, asin and acos probes.
11918         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
11919         (__sin32): Add slowasin probe.
11920         (__cos32): Add slowacos probe.
11921         (__mpsin): Add slowsin probe.
11922         (__mpcos): Add slowcos probe.
11923
11924 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
11925
11926         [BZ #15483]
11927         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
11928         thread-local __sim_exceptions_thread and global
11929         __sim_exceptions_global.
11930         (__sim_disabled_exceptions): Change to thread-local
11931         __sim_disabled_exceptions_thread and global
11932         __sim_disabled_exceptions_global.
11933         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11934         and global __sim_round_mode_global.
11935         (__simulate_exceptions): Use thread-local floating-point state and
11936         set global state from it as needed.
11937         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
11938         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
11939         __sim_round_mode_thread.
11940         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
11941         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
11942         and global __sim_exceptions_global.
11943         (__sim_disabled_exceptions): Change to thread-local
11944         __sim_disabled_exceptions_thread and global
11945         __sim_disabled_exceptions_global.
11946         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11947         and global __sim_round_mode_global.
11948         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
11949         (SIM_SET_GLOBAL): Likewise.
11950         * sysdeps/powerpc/soft-fp/sfp-machine.h
11951         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
11952         __sim_round_mode_thread.
11953         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
11954         __sim_disabled_exceptions_thread.
11955         (__sim_exceptions): Change to __sim_exceptions_thread.
11956         (__sim_disabled_exceptions): Change to
11957         __sim_disabled_exceptions_thread.
11958         (__sim_round_mode): Change to __sim_round_mode_thread.
11959         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
11960         thread-local floating-point state and set global state from it as
11961         needed.
11962         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
11963         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
11964         (__sim_disabled_exceptions): Remove extern declaration.
11965         (feenableexcept): Use thread-local floating-point state and set
11966         global state from it as needed.
11967         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
11968         extern declaration.
11969         (__sim_disabled_exceptions): Likewise.
11970         (__sim_round_mode): Likewise.
11971         (__fegetenv): Use thread-local floating-point state.
11972         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
11973         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11974         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
11975         floating-point state and set global state from it as needed.
11976         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
11977         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
11978         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
11979         Likewise.
11980         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
11981         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
11982         Likewise.
11983         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
11984         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
11985         Use __sim_round_mode_thread.
11986         * math/test-fenv-tls.c: New file.
11987         * math/Makefile (tests): Add test-fenv-tls.
11988         ($(objpfx)test-fenv-tls): Depend on
11989         $(common-objpfx)nptl/libpthread.so.
11990
11991 2013-11-19  Andreas Schwab  <schwab@suse.de>
11992
11993         * locale/programs/locale.c (show_info): Decode wordarray elements.
11994         * locale/categories.def (LC_MONETARY): Add element for
11995         _NL_MONETARY_CRNCYSTR.
11996         * locale/C-monetary.c (conversion_rate): New variable.
11997         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
11998         element.
11999
12000 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
12001
12002         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
12003         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
12004
12005 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12006
12007         * elf/Makefile (tst-auxv): New test.
12008         * elf/tst-auxv.c: New
12009         * elf/rtld.c (dl_main): Adjust AT_EXECFN
12010
12011 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
12012
12013         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
12014         (hidden_proto): Caller changed.
12015         (hidden_tls_proto): New macro.
12016         (libc_hidden_tls_proto): Likewise.
12017         (rtld_hidden_tls_proto): Likewise.
12018         (libm_hidden_tls_proto): Likewise.
12019         (libresolv_hidden_tls_proto): Likewise.
12020         (librt_hidden_tls_proto): Likewise.
12021         (libdl_hidden_tls_proto): Likewise.
12022         (libnss_files_hidden_tls_proto): Likewise.
12023         (libnsl_hidden_tls_proto): Likewise.
12024         (libnss_nisplus_hidden_tls_proto): Likewise.
12025         (libutil_hidden_tls_proto): Likewise.
12026
12027 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
12028
12029         [BZ #10253]
12030         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
12031         (decompose_rpath): Defer expansion to fillin_rpath.
12032         (_dl_init_paths): Pass linkmap to fillin_rpath.
12033
12034 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12035
12036         * benchtests/Makefile: Add strsep.
12037         * benchtests/bench-strsep.c: New file: strsep benchtest.
12038         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
12039
12040 2013-11-18  Andreas Schwab  <schwab@suse.de>
12041
12042         * locale/programs/locale.c (show_info) [case byte]: Check for
12043         '\377' instead of '\177'.
12044         * locale/C-monetary.c (not_available): Always use "\377".
12045         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
12046         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
12047         detect unavailable sign_posn locale elements.
12048         * locale/localeconv.c (__localeconv): For grouping and
12049         mon_grouping handle "\177" and "\377" like no grouping.
12050         (INT_ELEM): New macro.  Use it to set all numeric members.
12051         * locale/programs/ld-monetary.c (monetary_read)
12052         <tok_mon_grouping>: Normalize single -1 to the empty string.
12053         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
12054         Likewise.
12055
12056 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12057
12058         [BZ #16055]
12059         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
12060         when we match (nil).
12061         * stdio-common/tst-sscanf.c (struct test): Add testcase.
12062
12063 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
12064
12065         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
12066         (NO_TEST_INLINE): Update value.
12067         (ERRNO_UNCHANGED): Likewise.
12068         (ERRNO_EDOM): Likewise.
12069         (ERRNO_ERANGE): Likewise.
12070         (IGNORE_RESULT): Likewise.
12071         (check_float_internal): Check signs of NaN results if
12072         TEST_NAN_SIGN used.
12073         (check_complex): Pass TEST_NAN_SIGN flag through to second
12074         check_float_internal call.
12075         (copysign_test_data): Add tests with quiet NaNs as second
12076         argument.  Use TEST_NAN_SIGN.
12077         (fabs_test_data): Add test of negative quiet NaN argument.  Use
12078         TEST_NAN_SIGN.
12079         (signbit_test_data): Add tests of quiet NaN argument.
12080         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
12081
12082         * math/gen-libm-test.pl (show_exceptions): Take extra argument
12083         $ignore_result.
12084         (parse_args): Handle function results specified as IGNORE.
12085         * math/libm-test.inc (IGNORE_RESULT): New macro.
12086         (check_float_internal): Do not check numerical result if flag
12087         IGNORE_RESULT set.
12088         (check_complex): Pass through IGNORE_RESULT to second
12089         check_float_internal call.
12090         (check_int): Do not check numerical result if flag IGNORE_RESULT
12091         set.
12092         (check_long): Likewise.
12093         (check_bool): Likewise.
12094         (check_longlong): Likewise.
12095         (lrint_test_data): Add tests of infinite and NaN arguments.
12096         (lrint_tonearest_test_data): Likewise.
12097         (lrint_towardzero_test_data): Likewise.
12098         (lrint_downward_test_data): Likewise.
12099         (lrint_upward_test_data): Likewise.
12100         (llrint_test_data): Likewise.
12101         (llrint_tonearest_test_data): Likewise.
12102         (llrint_towardzero_test_data): Likewise.
12103         (llrint_downward_test_data): Likewise.
12104         (llrint_upward_test_data): Likewise.
12105         (lround_test_data): Likewise.
12106         (llround_test_data): Likewise.
12107
12108         * math/libm-test.inc (NO_TEST_INLINE): New macro.
12109         (ERRNO_UNCHANGED): Update value.
12110         (ERRNO_EDOM): Likewise.
12111         (ERRNO_ERANGE): Likewise.
12112         (NO_TEST_INLINE_FLOAT): New macro.
12113         (NO_TEST_INLINE_DOUBLE): Likewise.
12114         (enable_test): New function.
12115         (RUN_TEST_f_f): Check enable_test before running test.
12116         (RUN_TEST_2_f): Likewise.
12117         (RUN_TEST_fff_f): Likewise.
12118         (RUN_TEST_c_f): Likewise.
12119         (RUN_TEST_f_f1): Likewise.
12120         (RUN_TEST_fF_f1): Likewise.
12121         (RUN_TEST_fI_f1): Likewise.
12122         (RUN_TEST_ffI_f1): Likewise.
12123         (RUN_TEST_c_c): Likewise.
12124         (RUN_TEST_cc_c): Likewise.
12125         (RUN_TEST_f_i): Likewise.
12126         (RUN_TEST_f_i_tg): Likewise.
12127         (RUN_TEST_ff_i_tg): Likewise.
12128         (RUN_TEST_f_b): Likewise.
12129         (RUN_TEST_f_b_tg): Likewise.
12130         (RUN_TEST_f_l): Likewise.
12131         (RUN_TEST_f_L): Likewise.
12132         (RUN_TEST_fFF_11): Likewise.
12133         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
12134         conditionals.
12135         (cosh_test_data): Likewise.
12136         (exp_test_data): Likewise.
12137         (expm1_test_data): Likewise.
12138         (hypot_test_data): Likewise.
12139         (pow_test_data): Likewise.
12140         (sinh_test_data): Likewise.
12141         (tanh_test_data): Likewise.
12142         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
12143         flags argument.
12144
12145         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
12146         tests with quiet NaN input and output.
12147         (acosh_test_data): Likewise.
12148         (asin_test_data): Likewise.
12149         (asinh_test_data): Likewise.
12150         (atan_test_data): Likewise.
12151         (atanh_test_data): Likewise.
12152         (atan2_test_data): Likewise.
12153         (cbrt_test_data): Likewise.
12154         (cos_test_data): Likewise.
12155         (cosh_test_data): Likewise.
12156         (erf_test_data): Likewise.
12157         (erfc_test_data): Likewise.
12158         (exp_test_data): Likewise.
12159         (exp10_test_data): Likewise.
12160         (exp2_test_data): Likewise.
12161         (expm1_test_data): Likewise.
12162         (hypot_test_data): Likewise.
12163         (j0_test_data): Likewise.
12164         (j1_test_data): Likewise.
12165         (jn_test_data): Likewise.
12166         (lgamma_test_data): Likewise.
12167         (log_test_data): Likewise.
12168         (log10_test_data): Likewise.
12169         (log1p_test_data): Likewise.
12170         (log2_test_data): Likewise.
12171         (pow_test_data): Likewise.
12172         (scalb_test_data): Likewise.
12173         (sin_test_data): Likewise.
12174         (sincos_test_data): Likewise.
12175         (sinh_test_data): Likewise.
12176         (tan_test_data): Likewise.
12177         (tanh_test_data): Likewise.
12178         (tgamma_test_data): Likewise.
12179         (y0_test_data): Likewise.
12180         (y1_test_data): Likewise.
12181         (yn_test_data): Likewise.
12182
12183         [BZ #16167]
12184         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
12185         argument being NaN and avoid computations with second argument in
12186         that case.
12187         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
12188         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12189         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12190
12191 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
12192
12193         * locale/iso-639.def: Add Chitwani Tharu (the).
12194
12195 2013-11-14  Andreas Schwab  <schwab@suse.de>
12196
12197         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
12198         word instead of empty string.
12199
12200 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12201
12202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12203         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
12204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12205         (__fe_nomask_env): Likewise.
12206
12207 2013-11-13  Steve Ellcey  <sellcey@mips.com>
12208
12209         * benchtests/bench-timing.h: Include time.h.
12210
12211 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
12212
12213         [BZ #15997]
12214         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
12215         to 3.4.0 for x32.
12216         * sysdeps/unix/sysv/linux/configure: Regenerated.
12217
12218 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
12219
12220         [BZ #16151]
12221         * stdlib/strtod_l.c (round_and_return): Do not consider
12222         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
12223         exponent one less than half the least subnormal exponent.
12224         * stdlib/test-strtod-round-data: Add more tests.
12225         * stdlib/tst-strtod-round.c (tests): Regenerated.
12226
12227 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12228
12229         [BZ #14143]
12230         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
12231         (__fe_mask_env): Likewise.
12232         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
12233         libm_hidden_proto and add function prototype.
12234         (__fe_mask_env): Add function prototype.
12235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12236         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
12237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12238         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
12239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12240         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
12241
12242 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12243
12244         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
12245         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
12246
12247 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12248
12249         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
12250         of htab_find_slot().
12251
12252 2013-11-11  David S. Miller  <davem@davemloft.net>
12253
12254         [BZ #16150]
12255         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
12256         symbol in the non-vis3 case in static builds.
12257         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
12258         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
12259         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
12260         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
12261
12262 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12263
12264         [BZ #387]
12265         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
12266         it is empty.
12267
12268 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12269
12270         * benchtests/Makefile: Add bench-strtod.
12271         * benchtests/bench-strtod.c: New file: strtod benchtest
12272
12273 2013-11-11  Andreas Schwab  <schwab@suse.de>
12274
12275         [BZ #16153]
12276         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
12277         terminating NUL in key length.
12278
12279 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12280
12281         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
12282         Add artificial ODP entry for vDSO symbol for PPC64.
12283         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
12284         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
12285
12286 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12287
12288         [BZ #15374]
12289         * nss/getent.c (services_keys): Recognize services starting with digit.
12290
12291 2013-11-06  David S. Miller  <davem@davemloft.net>
12292
12293         [BZ #15985]
12294         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
12295         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
12296
12297 2013-11-06  Will Newton  <will.newton@linaro.org>
12298
12299         * manual/memory.texi (Malloc Examples): Remove register
12300         keyword from examples.
12301
12302 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
12303
12304         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
12305
12306 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
12307
12308         [BZ #6981]
12309         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
12310         depending on [__GCC_IEC_559 > 0].
12311         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
12312         depending on [__GCC_IEC_559_COMPLEX > 0].
12313
12314 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
12315
12316         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
12317         to iso-639.def.
12318
12319 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
12320
12321         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
12322
12323 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
12324
12325         [BZ #16112]
12326         * malloc/malloc (malloc_info): Do not handle first bin as
12327         special case.
12328
12329 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
12330
12331         * locale/iso-639.def: Add Central Nahuatl (nhn).
12332
12333 2013-11-01  Bruno Haible  <bruno@clisp.org>
12334
12335         [BZ #7003]
12336         * manual/math.texi (BSD Random): Specify range upper bound as
12337         in POSIX.
12338
12339 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
12340
12341         * locale/iso-639.def: Add Meadow Mari (mhr).
12342
12343 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
12344
12345         [BZ #14752], [BZ #15763]
12346         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
12347         Validate name.
12348         * rt/tst_shm.c: Add test for escaping directory.
12349
12350 2013-10-31  Andreas Schwab  <schwab@suse.de>
12351
12352         [BZ #15917]
12353         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
12354         followed by 'x' as part of digit sequence.
12355         * stdio-common/tst-sscanf.c (double_tests2): New tests.
12356
12357 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
12358
12359         [BZ #16037]
12360         * configure.ac: allow GNU Make 4.0 and greater.
12361         * configure: Regenerated.
12362
12363 2013-10-30  Will Newton  <will.newton@linaro.org>
12364
12365         [BZ #16038]
12366         * malloc/hooks.c (memalign_check): Limit alignment to the
12367         maximum representable power of two.
12368         * malloc/malloc.c (__libc_memalign): Likewise.
12369         * malloc/tst-memalign.c (do_test): Add test for very
12370         large alignment values.
12371         * malloc/tst-posix_memalign.c (do_test): Likewise.
12372
12373 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12374
12375         [BZ #11087]
12376         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
12377         (munmap_chunk): Likewise.
12378         (mremap_chunk): Likewise.
12379
12380 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12381
12382         [BZ #15799]
12383         * stdlib/div.c (div): Remove obsolete code.
12384         * stdlib/ldiv.c (ldiv): Likewise.
12385         * stdlib/lldiv.c (lldiv): Likewise.
12386
12387 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
12388
12389         [BZ #16071]
12390         * nss/nss_files/files-XXX.c (get_contents_ret): New
12391         enumerator.
12392         (get_contents): New function.
12393         (internal_getent): Use it.  Expand size of LINEBUFLEN.
12394
12395 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
12396
12397         * configure.in: Moved to ...
12398         * configure.ac: ... here. Change reference to configure.in
12399         to configure.ac.
12400         * sysdeps/arm/preconfigure.ac: ... here.
12401         configure.in to configure.ac.
12402         * sysdeps/gnu/configure.in: Moved to ...
12403         * sysdeps/gnu/configure.ac: ... here.
12404         * sysdeps/i386/configure.in: Moved to ...
12405         * sysdeps/i386/configure.ac: ... here.
12406         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
12407         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
12408         * sysdeps/mach/configure.in: Moved to ...
12409         * sysdeps/mach/configure.ac: ... here.
12410         * sysdeps/mach/hurd/configure.in: Moved to ...
12411         * sysdeps/mach/hurd/configure.ac: ... here.
12412         * sysdeps/powerpc/configure.in: Moved to ...
12413         * sysdeps/powerpc/configure.ac: ... here.
12414         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
12415         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
12416         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
12417         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
12418         * sysdeps/s390/s390-32/configure.in: Moved to ...
12419         * sysdeps/s390/s390-32/configure.ac: ... here.
12420         * sysdeps/s390/s390-64/configure.in: Moved to ...
12421         * sysdeps/s390/s390-64/configure.ac: ... here.
12422         * sysdeps/sh/configure.in: Moved to ...
12423         * sysdeps/sh/configure.ac: ... here.
12424         * sysdeps/sparc/configure.in: Moved to ...
12425         * sysdeps/sparc/configure.ac: ... here.
12426         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
12427         * sysdeps/unix/sysv/linux/configure.ac: ... here.
12428         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
12429         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
12430         * sysdeps/x86_64/configure.in: Moved to ...
12431         * sysdeps/x86_64/configure.ac: ... here.
12432         * sysdeps/x86_64/preconfigure.in: Moved to ...
12433         * sysdeps/x86_64/preconfigure.ac: ... here.
12434         * aclocal.m4: Change reference to configure.in to configure.ac.
12435         * config.h.in: Likewise.
12436         * manual/install.texi: Likewise.
12437         * manual/maint.texi: Likewise.
12438         * Makefile: Likewise.
12439         * malloc/Makefile: Likewise.
12440         * nscd/Makefile: Likewise.
12441         * Makeconfig: Change reference to configure.in and
12442         preconfigure.in to configure.ac and preconfigure.ac
12443         respectively.
12444         * INSTALL: Regenerated.
12445         * configure: Likewise.
12446         * sysdeps/gnu/configure: Likewise.
12447         * sysdeps/i386/configure: Likewise.
12448         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
12449         * sysdeps/mach/configure: Likewise.
12450         * sysdeps/mach/hurd/configure: Likewise.
12451         * sysdeps/powerpc/configure: Likewise.
12452         * sysdeps/powerpc/powerpc32/configure: Likewise.
12453         * sysdeps/powerpc/powerpc64/configure: Likewise.
12454         * sysdeps/s390/s390-32/configure: Likewise.
12455         * sysdeps/s390/s390-64/configure: Likewise.
12456         * sysdeps/sh/configure: Likewise.
12457         * sysdeps/sparc/configure: Likewise.
12458         * sysdeps/unix/sysv/linux/configure: Likewise.
12459         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
12460         * sysdeps/x86_64/configure: Likewise.
12461         * sysdeps/x86_64/preconfigure: Likewise.
12462
12463 2013-10-29  Andreas Schwab  <schwab@suse.de>
12464
12465         * stdio-common/Makefile (tst-swscanf-ENV): Define.
12466
12467 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12468
12469         * benchtests/pow-inputs: Add new inputs.
12470
12471         * benchtests/exp-inputs: Add new inputs.
12472
12473         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
12474         conditional check for return value.
12475         (__cos32): Likewise.
12476
12477 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12478
12479         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
12480         to provide a boost for large inputs with word alignment.
12481         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
12482         implementation based on optimized PPC64 strcpy.
12483         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
12484         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
12485         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
12486         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
12487
12488 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12489
12490         [BZ #2801]
12491         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
12492
12493 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12494
12495         [BZ #14876]
12496         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
12497         * time/tst-strptime.c (day_tests): Add testcase.
12498
12499 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12500
12501         [BZ #14029]
12502         * manual/pattern.texi: Acknowledge that fnmatch can fail.
12503
12504 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
12505
12506         [BZ #16074]
12507         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
12508         MAP_FAILED on error.
12509
12510 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12511
12512         [BZ #16072]
12513         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
12514         heap for large requests.
12515
12516 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
12517
12518         [BZ #9954]
12519         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
12520         result if the result has no associated interface.
12521         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
12522         interface for all 127.X.Y.Z addresses.
12523
12524 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
12525
12526         * locale/iso-639.def: Add Ligurian (lij)
12527
12528 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
12529
12530         [BZ #15825]
12531         * sunrpc/rpc_main.c: Document rpcgen -5.
12532
12533 2013-10-19  Michael Stahl  <mstahl@redhat.com>
12534
12535         * elf/rtld.c (do_preload): Print the reason why preloading failed.
12536
12537 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12538
12539         [BZ #10278]
12540         * posix/glob.c: Match only directories when trailing slash is present.
12541         * posix/tst-gnuglob.c (my_opendir): Do not open files.
12542         (main): Add testcase.
12543
12544 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12545
12546         [BZ #15670]
12547         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
12548
12549 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
12550
12551         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
12552         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
12553         AUTH_DES and cindex for FIPS 140-2.
12554         (DES Encryption): Add cindex FIPS 46-3.
12555
12556         * locale/locarchive.h (struct locarhandle): Add fname.
12557         * locale/programs/localedef.c (main): Pass ARGV[remaining]
12558         if an optional argument was specified to --list-archive,
12559         otherwise NULL.
12560         * locale/programs/locarchive.c (show_archive_content): Take new
12561         argument fname and pass it via ah.fname to open_archive.
12562         * locale/programs/localedef.h: Update decl.
12563         (open_archive): If AH->fname is non-null, open that file
12564         rather than the default file name, and don't ignore ENOENT.
12565         (create_archive): Set AH.fname to NULL.
12566         (delete_locales_from_archive): Likewise.
12567         (add_locales_to_archive): Likewise.
12568         * locale/programs/locfile.c (write_all_categories): Likewise.
12569
12570 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
12571             Aldy Hernandez  <aldyh@redhat.com>
12572
12573         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
12574         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
12575         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
12576         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
12577         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
12578         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
12579         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
12580         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
12581         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
12582         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
12583         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
12584         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
12585         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
12586         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
12587         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
12588         Likewise.
12589         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
12590         Likewise.
12591         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
12592         Likewise.
12593         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
12594         Likewise.
12595         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
12596         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
12597         Likewise.
12598         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
12599         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
12600         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
12601         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
12602         Likewise.
12603         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
12604         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
12605         * sysdeps/powerpc/preconfigure: Likewise.
12606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12607         Likewise.
12608         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
12609         Replace contents of file by #include of <fenv_libc.h>.
12610         * sysdeps/powerpc/soft-fp/sfp-machine.h
12611         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
12612         and <sys/prctl.h>.
12613         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
12614         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
12615         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
12616         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
12617         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
12618         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
12619         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
12620         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
12621         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
12622         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
12623         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
12624         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
12625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
12626         Allow copysignl PLT reference to be missing.
12627
12628 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
12629             Joseph Myers  <joseph@codesourcery.com
12630
12631         [BZ #15948]
12632         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
12633         single character.
12634         (add_to_tablewc): Assert sequence of wide characters is nonempty.
12635
12636 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12637
12638         * elf/tst-tls-dlinfo.c: Don't include tls.h.
12639         * elf/tst-tls1.c: Likewise.
12640         * elf/tst-tls10.h: Likewise.
12641         * elf/tst-tls14.c: Likewise.
12642         * elf/tst-tls2.c: Likewise.
12643         * elf/tst-tls3.c: Likewise.
12644         * elf/tst-tls4.c: Likewise.
12645         * elf/tst-tls5.c: Likewise.
12646         * elf/tst-tls6.c: Likewise.
12647         * elf/tst-tls7.c: Likewise.
12648         * elf/tst-tls8.c: Likewise.
12649         * elf/tst-tls9.c: Likewise.
12650         * elf/tst-tlsmod1.c: Likewise.
12651         * elf/tst-tlsmod13.c: Likewise.
12652         * elf/tst-tlsmod13a.c: Likewise.
12653         * elf/tst-tlsmod14a.c: Likewise.
12654         * elf/tst-tlsmod16a.c: Likewise.
12655         * elf/tst-tlsmod16b.c: Likewise.
12656         * elf/tst-tlsmod2.c: Likewise.
12657         * elf/tst-tlsmod3.c: Likewise.
12658         * elf/tst-tlsmod4.c: Likewise.
12659         * elf/tst-tlsmod5.c: Likewise.
12660         * elf/tst-tlsmod6.c: Likewise.
12661
12662 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
12663
12664         [BZ #12486]
12665         * malloc/malloc.c: remove checks for statistics.
12666
12667 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12668
12669         [BZ #15277]
12670         * inet/inet_net.c (inet_network): Detect additional invalid strings.
12671         * inet/tst-network.c: Add testcase.
12672
12673 2013-10-17  Andreas Schwab  <schwab@suse.de>
12674
12675         [BZ #15218]
12676         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
12677         to determine canonical name.
12678
12679 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12680
12681         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
12682         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
12683         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12684         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12685         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12686         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12687         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12688         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12689         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12690         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12691         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12692         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12693         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12694         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12695         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12696         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12697         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12698         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12699         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12700         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12701         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12702         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12703         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12704         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
12705         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
12706         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12707         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12708         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
12709         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12710         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
12711         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12712         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12713         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12714         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12715         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12716         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12717         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12718         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12719         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12720         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12721         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12722         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12723         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12724         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12725         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12726         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12727         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12728         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12729         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12730         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12731         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12732         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12733         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12734         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12735         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12736         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12737         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12738         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12739
12740 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
12741
12742         [BZ #16041]
12743         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
12744         make result into a quiet NaN.
12745
12746 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
12747
12748         * soft-fp/adddf3.c: Fix horizontal whitespace.
12749         * soft-fp/addsf3.c: Likewise.
12750         * soft-fp/addtf3.c: Likewise.
12751         * soft-fp/divdf3.c: Likewise.
12752         * soft-fp/divsf3.c: Likewise.
12753         * soft-fp/divtf3.c: Likewise.
12754         * soft-fp/double.h: Likewise.
12755         * soft-fp/eqdf2.c: Likewise.
12756         * soft-fp/eqsf2.c: Likewise.
12757         * soft-fp/eqtf2.c: Likewise.
12758         * soft-fp/extenddftf2.c: Likewise.
12759         * soft-fp/extended.h: Likewise.
12760         * soft-fp/extendsfdf2.c: Likewise.
12761         * soft-fp/extendsftf2.c: Likewise.
12762         * soft-fp/extendxftf2.c: Likewise.
12763         * soft-fp/fixdfdi.c: Likewise.
12764         * soft-fp/fixdfsi.c: Likewise.
12765         * soft-fp/fixdfti.c: Likewise.
12766         * soft-fp/fixsfdi.c: Likewise.
12767         * soft-fp/fixsfsi.c: Likewise.
12768         * soft-fp/fixsfti.c: Likewise.
12769         * soft-fp/fixtfdi.c: Likewise.
12770         * soft-fp/fixtfsi.c: Likewise.
12771         * soft-fp/fixtfti.c: Likewise.
12772         * soft-fp/fixunsdfdi.c: Likewise.
12773         * soft-fp/fixunsdfsi.c: Likewise.
12774         * soft-fp/fixunsdfti.c: Likewise.
12775         * soft-fp/fixunssfdi.c: Likewise.
12776         * soft-fp/fixunssfsi.c: Likewise.
12777         * soft-fp/fixunssfti.c: Likewise.
12778         * soft-fp/fixunstfdi.c: Likewise.
12779         * soft-fp/fixunstfsi.c: Likewise.
12780         * soft-fp/fixunstfti.c: Likewise.
12781         * soft-fp/floatdidf.c: Likewise.
12782         * soft-fp/floatdisf.c: Likewise.
12783         * soft-fp/floatditf.c: Likewise.
12784         * soft-fp/floatsidf.c: Likewise.
12785         * soft-fp/floatsisf.c: Likewise.
12786         * soft-fp/floatsitf.c: Likewise.
12787         * soft-fp/floattidf.c: Likewise.
12788         * soft-fp/floattisf.c: Likewise.
12789         * soft-fp/floattitf.c: Likewise.
12790         * soft-fp/floatundidf.c: Likewise.
12791         * soft-fp/floatundisf.c: Likewise.
12792         * soft-fp/floatunditf.c: Likewise.
12793         * soft-fp/floatunsidf.c: Likewise.
12794         * soft-fp/floatunsisf.c: Likewise.
12795         * soft-fp/floatunsitf.c: Likewise.
12796         * soft-fp/floatuntidf.c: Likewise.
12797         * soft-fp/floatuntisf.c: Likewise.
12798         * soft-fp/floatuntitf.c: Likewise.
12799         * soft-fp/fmadf4.c: Likewise.
12800         * soft-fp/fmasf4.c: Likewise.
12801         * soft-fp/fmatf4.c: Likewise.
12802         * soft-fp/gedf2.c: Likewise.
12803         * soft-fp/gesf2.c: Likewise.
12804         * soft-fp/getf2.c: Likewise.
12805         * soft-fp/ledf2.c: Likewise.
12806         * soft-fp/lesf2.c: Likewise.
12807         * soft-fp/letf2.c: Likewise.
12808         * soft-fp/muldf3.c: Likewise.
12809         * soft-fp/mulsf3.c: Likewise.
12810         * soft-fp/multf3.c: Likewise.
12811         * soft-fp/negdf2.c: Likewise.
12812         * soft-fp/negsf2.c: Likewise.
12813         * soft-fp/negtf2.c: Likewise.
12814         * soft-fp/op-1.h: Likewise.
12815         * soft-fp/op-2.h: Likewise.
12816         * soft-fp/op-4.h: Likewise.
12817         * soft-fp/op-8.h: Likewise.
12818         * soft-fp/op-common.h: Likewise.
12819         * soft-fp/quad.h: Likewise.
12820         * soft-fp/single.h: Likewise.
12821         * soft-fp/soft-fp.h: Likewise.
12822         * soft-fp/sqrtdf2.c: Likewise.
12823         * soft-fp/sqrtsf2.c: Likewise.
12824         * soft-fp/sqrttf2.c: Likewise.
12825         * soft-fp/subdf3.c: Likewise.
12826         * soft-fp/subsf3.c: Likewise.
12827         * soft-fp/subtf3.c: Likewise.
12828         * soft-fp/truncdfsf2.c: Likewise.
12829         * soft-fp/trunctfdf2.c: Likewise.
12830         * soft-fp/trunctfsf2.c: Likewise.
12831         * soft-fp/trunctfxf2.c: Likewise.
12832         * soft-fp/unorddf2.c: Likewise.
12833         * soft-fp/unordsf2.c: Likewise.
12834         * soft-fp/unordtf2.c: Likewise.
12835
12836 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
12837
12838         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
12839         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
12840
12841 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
12842
12843         * elf/dl-libc.c: Clear initfini list after freeing.
12844
12845 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
12846
12847         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
12848         * soft-fp/addsf3.c: Likewise.
12849         * soft-fp/addtf3.c: Likewise.
12850         * soft-fp/divdf3.c: Likewise.
12851         * soft-fp/divsf3.c: Likewise.
12852         * soft-fp/divtf3.c: Likewise.
12853         * soft-fp/double.h: Likewise.
12854         * soft-fp/eqdf2.c: Likewise.
12855         * soft-fp/eqsf2.c: Likewise.
12856         * soft-fp/eqtf2.c: Likewise.
12857         * soft-fp/extenddftf2.c: Likewise.
12858         * soft-fp/extended.h: Likewise.
12859         * soft-fp/extendsfdf2.c: Likewise.
12860         * soft-fp/extendsftf2.c: Likewise.
12861         * soft-fp/extendxftf2.c: Likewise.
12862         * soft-fp/fixdfdi.c: Likewise.
12863         * soft-fp/fixdfsi.c: Likewise.
12864         * soft-fp/fixdfti.c: Likewise.
12865         * soft-fp/fixsfdi.c: Likewise.
12866         * soft-fp/fixsfsi.c: Likewise.
12867         * soft-fp/fixsfti.c: Likewise.
12868         * soft-fp/fixtfdi.c: Likewise.
12869         * soft-fp/fixtfsi.c: Likewise.
12870         * soft-fp/fixtfti.c: Likewise.
12871         * soft-fp/fixunsdfdi.c: Likewise.
12872         * soft-fp/fixunsdfsi.c: Likewise.
12873         * soft-fp/fixunsdfti.c: Likewise.
12874         * soft-fp/fixunssfdi.c: Likewise.
12875         * soft-fp/fixunssfsi.c: Likewise.
12876         * soft-fp/fixunssfti.c: Likewise.
12877         * soft-fp/fixunstfdi.c: Likewise.
12878         * soft-fp/fixunstfsi.c: Likewise.
12879         * soft-fp/fixunstfti.c: Likewise.
12880         * soft-fp/floatdidf.c: Likewise.
12881         * soft-fp/floatdisf.c: Likewise.
12882         * soft-fp/floatditf.c: Likewise.
12883         * soft-fp/floatsidf.c: Likewise.
12884         * soft-fp/floatsisf.c: Likewise.
12885         * soft-fp/floatsitf.c: Likewise.
12886         * soft-fp/floattidf.c: Likewise.
12887         * soft-fp/floattisf.c: Likewise.
12888         * soft-fp/floattitf.c: Likewise.
12889         * soft-fp/floatundidf.c: Likewise.
12890         * soft-fp/floatundisf.c: Likewise.
12891         * soft-fp/floatunsidf.c: Likewise.
12892         * soft-fp/floatunsisf.c: Likewise.
12893         * soft-fp/floatuntidf.c: Likewise.
12894         * soft-fp/floatuntisf.c: Likewise.
12895         * soft-fp/floatuntitf.c: Likewise.
12896         * soft-fp/fmadf4.c: Likewise.
12897         * soft-fp/fmasf4.c: Likewise.
12898         * soft-fp/fmatf4.c: Likewise.
12899         * soft-fp/gedf2.c: Likewise.
12900         * soft-fp/gesf2.c: Likewise.
12901         * soft-fp/getf2.c: Likewise.
12902         * soft-fp/ledf2.c: Likewise.
12903         * soft-fp/lesf2.c: Likewise.
12904         * soft-fp/letf2.c: Likewise.
12905         * soft-fp/muldf3.c: Likewise.
12906         * soft-fp/mulsf3.c: Likewise.
12907         * soft-fp/multf3.c: Likewise.
12908         * soft-fp/negdf2.c: Likewise.
12909         * soft-fp/negsf2.c: Likewise.
12910         * soft-fp/negtf2.c: Likewise.
12911         * soft-fp/op-1.h: Likewise.
12912         * soft-fp/op-2.h: Likewise.
12913         * soft-fp/op-4.h: Likewise.
12914         * soft-fp/op-8.h: Likewise.
12915         * soft-fp/op-common.h: Likewise.
12916         * soft-fp/quad.h: Likewise.
12917         * soft-fp/single.h: Likewise.
12918         * soft-fp/soft-fp.h: Likewise.
12919         * soft-fp/sqrtdf2.c: Likewise.
12920         * soft-fp/sqrtsf2.c: Likewise.
12921         * soft-fp/sqrttf2.c: Likewise.
12922         * soft-fp/subdf3.c: Likewise.
12923         * soft-fp/subsf3.c: Likewise.
12924         * soft-fp/subtf3.c: Likewise.
12925         * soft-fp/truncdfsf2.c: Likewise.
12926         * soft-fp/trunctfdf2.c: Likewise.
12927         * soft-fp/trunctfsf2.c: Likewise.
12928         * soft-fp/trunctfxf2.c: Likewise.
12929         * soft-fp/unorddf2.c: Likewise.
12930         * soft-fp/unordsf2.c: Likewise.
12931         * soft-fp/unordtf2.c: Likewise.
12932
12933 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
12934
12935         [BZ #15672]
12936         * misc/error.c (error_tail): Fix possible buffer overflow.
12937
12938 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
12939
12940         [BZ #13028]
12941         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
12942         address.
12943
12944 2013-10-14  P. J. McDermott  <pj@pehjota.net>
12945
12946         [BZ #832]
12947         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
12948         testing pipefail option.
12949
12950 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12951
12952         * soft-fp/double.h: Indent preprocessor directives inside #if.
12953         * soft-fp/extended.h: Likewise.
12954         * soft-fp/op-2.h: Likewise.
12955         * soft-fp/op-4.h: Likewise.
12956         * soft-fp/op-common.h: Likewise.
12957         * soft-fp/quad.h: Likewise.
12958         * soft-fp/single.h: Likewise.
12959         * soft-fp/soft-fp.h: Likewise.
12960
12961 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
12962
12963         * iconv/iconv_prog.c: Fix typos.
12964         * stdio-common/psiginfo-data.h: Likewise.
12965
12966 2013-10-12   Reuben Thomas <rrt@sc3d.org>
12967
12968         [BZ #15764]
12969         * locale/setlocale.c: Fix typo.
12970
12971 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12972
12973         [BZ #16036]
12974         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
12975         signaling NaN arguments.
12976         * soft-fp/unordsf2.c (__unordsf2): Likewise.
12977         * soft-fp/unordtf2.c (__unordtf2): Likewise.
12978
12979         [BZ #14910]
12980         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
12981         unordered operands.
12982         * soft-fp/gesf2.c (__gesf2): Likewise.
12983         * soft-fp/getf2.c (__getf2): Likewise.
12984         * soft-fp/ledf2.c (__ledf2): Likewise.
12985         * soft-fp/lesf2.c (__lesf2): Likewise.
12986         * soft-fp/letf2.c (__letf2): Likewise.
12987
12988         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
12989         * soft-fp/eqsf2.c (__eqsf2): Likewise.
12990         * soft-fp/eqtf2.c (__eqtf2): Likewise.
12991         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
12992         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
12993         * soft-fp/fixdfti.c (__fixdfti): Likewise.
12994         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
12995         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
12996         * soft-fp/fixsfti.c (__fixsfti): Likewise.
12997         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
12998         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
12999         * soft-fp/fixtfti.c (__fixtfti): Likewise.
13000         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
13001         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
13002         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
13003         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
13004         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
13005         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
13006         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
13007         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
13008         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
13009         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
13010         * soft-fp/floatdisf.c (__floatdisf): Likewise.
13011         * soft-fp/floatsisf.c (__floatsisf): Likewise.
13012         * soft-fp/floattidf.c (__floattidf): Likewise.
13013         * soft-fp/floattisf.c (__floattisf): Likewise.
13014         * soft-fp/floattitf.c (__floattitf): Likewise.
13015         * soft-fp/floatundidf.c (__floatundidf): Likewise.
13016         * soft-fp/floatundisf.c (__floatundisf): Likewise.
13017         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
13018         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
13019         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
13020         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
13021         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
13022         * soft-fp/gesf2.c (__gesf2): Likewise.
13023         * soft-fp/getf2.c (__getf2): Likewise.
13024         * soft-fp/ledf2.c (__ledf2): Likewise.
13025         * soft-fp/lesf2.c (__lesf2): Likewise.
13026         * soft-fp/letf2.c (__letf2): Likewise.
13027
13028         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
13029         Undefine and redefine.
13030         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
13031         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
13032         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
13033         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
13034         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13035         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
13036         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13037         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
13038         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13039         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
13040         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13041         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
13042         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13043         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
13044         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13045
13046         [BZ #16032]
13047         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
13048         without decrementing exponent if mantissa >= that for the
13049         denominator, not >.
13050         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
13051         denominator, not >.  Decrement exponent in < case instead of
13052         incrementing in >= case.
13053         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
13054         without decrementing exponent if mantissa >= that for the
13055         denominator, not >.
13056
13057         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
13058         computing saturated result for unsigned overflow.
13059
13060 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13061             Jeff Law  <law@redhat.com>
13062
13063         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
13064         (atan2Mp): Add systemtap probe marker.
13065         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
13066         (__ieee754_log): Add systemtap probe marker.
13067         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
13068         (atanMp): Add systemtap probe marker.
13069         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
13070         (tanMp): Add systemtap probe marker.
13071         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
13072         (__slowexp): Add systemtap probe marker.
13073         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
13074         (__slowpow): Add systemtap probe marker.
13075         * manual/probes.texi: Document probes.
13076
13077 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
13078
13079         [BZ #15362]
13080         * libio/fileops.c (_IO_new_file_write): Return count of bytes
13081         written.
13082         (_IO_new_file_xsputn): Don't return EOF if nothing has been
13083         written.
13084         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
13085         written to buffer but not flushed.
13086         * libio/iofwrite_u.c:  Likewise.
13087         * libio/iopadn.c:  Return bytes returned even if EOF was
13088         encountered.
13089         * libio/iowpadn.c:  Likewise.
13090         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
13091         if _IO_padn does not write the whole buffer.
13092         [!COMPILE_WPRINTF] (PAD): Likewise.
13093
13094 2013-10-10  David S. Miller  <davem@davemloft.net>
13095
13096         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
13097         directory block.
13098
13099 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13100
13101         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
13102         instead of FSF address.
13103         * soft-fp/fixdfti.c: Likewise.
13104         * soft-fp/fixsfti.c: Likewise.
13105         * soft-fp/fixtfti.c: Likewise.
13106         * soft-fp/fixunsdfti.c: Likewise.
13107         * soft-fp/fixunssfti.c: Likewise.
13108         * soft-fp/fixunstfti.c: Likewise.
13109         * soft-fp/floattidf.c: Likewise.
13110         * soft-fp/floattisf.c: Likewise.
13111         * soft-fp/floattitf.c: Likewise.
13112         * soft-fp/floatuntidf.c: Likewise.
13113         * soft-fp/floatuntisf.c: Likewise.
13114         * soft-fp/floatuntitf.c: Likewise.
13115         * soft-fp/trunctfxf2.c: Likewise.
13116
13117         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
13118         * soft-fp/fixdfti.c: Likewise.
13119         * soft-fp/fixsfti.c: Likewise.
13120         * soft-fp/fixtfti.c: Likewise.
13121         * soft-fp/fixunsdfti.c: Likewise.
13122         * soft-fp/fixunssfti.c: Likewise.
13123         * soft-fp/fixunstfti.c: Likewise.
13124         * soft-fp/floattidf.c: Likewise.
13125         * soft-fp/floattisf.c: Likewise.
13126         * soft-fp/floattitf.c: Likewise.
13127         * soft-fp/floatuntidf.c: Likewise.
13128         * soft-fp/floatuntisf.c: Likewise.
13129         * soft-fp/floatuntitf.c: Likewise.
13130         * soft-fp/trunctfxf2.c: Likewise.
13131
13132 2013-10-10  David S. Miller  <davem@davemloft.net>
13133
13134         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13135
13136 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
13137
13138         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13139         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
13140         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
13141         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
13142         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
13143         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
13144         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
13145
13146         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
13147         for NaNs before doing comparisons on argument.
13148         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
13149         Likewise.
13150
13151 2013-10-10  Will Newton  <will.newton@linaro.org>
13152
13153         * malloc/hooks.c (memalign_check): Ensure the value of bytes
13154         passed to _int_memalign does not overflow.
13155
13156 2013-10-10  Torvald Riegel  <triegel@redhat.com>
13157
13158         * scripts/bench.pl: Add include-sources directive.
13159         * benchtests/README: Update documentation.
13160
13161 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13162
13163         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
13164         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
13165         instead of FP_INIT_ROUNDMODE.
13166         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
13167         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
13168
13169         [BZ #16034]
13170         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
13171         copy class of input value.
13172         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
13173         not handle exceptions.
13174         * soft-fp/negsf2.c (__negsf2): Likewise.
13175         * soft-fp/negtf2.c (__negtf2): Likewise.
13176         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
13177
13178 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
13179
13180         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
13181         semicolon.  From Linux kernel.
13182
13183 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
13184
13185         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
13186
13187 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
13188
13189         [BZ #156]
13190         * manual/socket.texi: Added statement about buffer
13191         for gethostbyname2_r.
13192
13193 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
13194
13195         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
13196         Use .p2align directive instead, throughout.
13197         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13198         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
13199         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
13200         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13201         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13202         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13203         * sysdeps/x86_64/strchr.S: Likewise.
13204         * sysdeps/x86_64/strrchr.S: Likewise.
13205
13206 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
13207
13208         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
13209
13210         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
13211
13212         * sysdeps/generic/math_private.h (__mpsin1): Remove
13213         declaration.
13214         (__mpcos1): Likewise.
13215         (__mpsin): New argument __range_reduce.
13216         (__mpcos): Likewise.
13217         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13218         (slow): Use __mpsin and __mpcos.
13219         (slow1): Likewise.
13220         (slow2): Likewise.
13221         (sloww): Likewise.
13222         (sloww1): Likewise.
13223         (sloww2): Likewise.
13224         (bsloww): Likewise.
13225         (bsloww1): Likewise.
13226         (bsloww2): Likewise.
13227         (cslow2): Likewise.
13228         (csloww): Likewise.
13229         (csloww1): Likewise.
13230         (csloww2): Likewise.
13231         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
13232         range_reduce.  Merge in __mpsin1.
13233         (__mpcos): Likewise.
13234         (__mpsin1): Remove.
13235         (__mpcos1): Likewise.
13236
13237 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
13238
13239         * locale/loadlocale.c (_nl_intern_locale_data): Use
13240         LOCFILE_ALIGNED_P.
13241         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
13242         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
13243         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
13244         obstack data is appropriately aligned.
13245         (obstack_int32_grow_fast): Likewise.
13246         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
13247         * locale/programs/locfile.c (add_locale_uint32): Likewise.
13248         (add_locale_uint32_array): Likewise.
13249
13250 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
13251
13252         * benchtests/Makefile: Remove ARGLIST and RET variables.
13253         ($(objpfx)bench-%.c): Pass only function name to the script.
13254         * benchtests/README: Update documentation.
13255         * benchtests/acos-inputs: Add new directives.
13256         * benchtests/acosh-inputs: Likewise.
13257         * benchtests/asin-inputs: Likewise.
13258         * benchtests/asinh-inputs: Likewise.
13259         * benchtests/atan-inputs: Likewise.
13260         * benchtests/atanh-inputs: Likewise.
13261         * benchtests/cos-inputs: Likewise.
13262         * benchtests/cosh-inputs: Likewise.
13263         * benchtests/exp-inputs: Likewise.
13264         * benchtests/log-inputs: Likewise.
13265         * benchtests/pow-inputs: Likewise.
13266         * benchtests/rint-inputs: Likewise.
13267         * benchtests/sin-inputs: Likewise.
13268         * benchtests/sinh-inputs: Likewise.
13269         * benchtests/tan-inputs: Likewise.
13270         * benchtests/tanh-inputs: Likewise.
13271         * scripts/bench.pl: Add support for new directives.
13272
13273 2013-10-07  Alan Modra  <amodra@gmail.com>
13274
13275         * README: Fix careless merge.
13276
13277 2013-10-05  Alan Modra  <amodra@gmail.com>
13278
13279         * NEWS: Mention powerpc64le support and bugs fixed.
13280         * README: Both big-endian and little-endian powerpc64 supported.
13281
13282 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13283
13284         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
13285         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
13286         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
13287         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
13288
13289 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
13290
13291         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
13292         match prototype.
13293
13294 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
13295
13296         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
13297         Move -mhard-float appending from
13298         ports/sysdeps/powerpc/powerpc32/Makefile.
13299         [$(with-fp) = yes] (ASFLAGS): Likewise.
13300         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
13301         * sysdeps/powerpc/nofpu: Move directory from
13302         ports/sysdeps/powerpc/nofpu.
13303         * sysdeps/powerpc/soft-fp: Move directory from
13304         ports/sysdeps/powerpc/soft-fp.
13305         * sysdeps/powerpc/powerpc32/405: Move directory from
13306         ports/sysdeps/powerpc/powerpc32/405.
13307         * sysdeps/powerpc/powerpc32/440: Move directory from
13308         ports/sysdeps/powerpc/powerpc32/440.
13309         * sysdeps/powerpc/powerpc32/464: Move directory from
13310         ports/sysdeps/powerpc/powerpc32/464.
13311         * sysdeps/powerpc/powerpc32/476: Move directory from
13312         ports/sysdeps/powerpc/powerpc32/476.
13313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
13314         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
13315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
13316         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
13317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
13318         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
13319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
13320         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
13321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
13322         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
13323         * README: Update for powerpc-*-linux-gnu software floating point
13324         support in libc.
13325
13326         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
13327         case to powerpc/powerpc32*.
13328         * sysdeps/unix/sysv/linux/configure: Regenerated.
13329
13330         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
13331         (_FPU_MASK_OM): Define as 0x04.
13332         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
13333         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
13334         0x00c10080.
13335         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
13336         0x0000003c.
13337         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
13338
13339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
13340         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13341         getcontext_e500.
13342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
13343         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13344         setcontext_e500.
13345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
13346         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
13347         and setcontext_e500.
13348
13349 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
13350
13351         * locale/iso-3166.def: Update iso-1366.def and related occurrences
13352
13353 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13354
13355         * manual/threads.texi (Default Thread Attributes): Fix typo.
13356
13357 2013-10-04  Will Newton  <will.newton@linaro.org>
13358
13359         * malloc/Makefile: Add tst-memalign.
13360         * malloc/tst-memalign.c: New file.
13361
13362         * malloc/tst-posix_memalign.c: Add comments.
13363         (do_test): Add comments and call free on all potentially
13364         allocated pointers. Add space after cast.
13365
13366         * malloc/tst-pvalloc.c: Add comments.
13367         (do_test): Add comments and call free on all potentially
13368         allocated pointers. Remove duplicate check for NULL pointer.
13369         Add space after cast.
13370
13371         * malloc/tst-valloc.c: Add comments.
13372         (do_test): Add comments and call free on all potentially
13373         allocated pointers. Remove duplicate check for NULL pointer.
13374         Add space after cast.
13375
13376 2013-10-04  Alan Modra  <amodra@gmail.com>
13377
13378         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13379         Use stdint types in rather than __attribute__((mode())).
13380         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13381
13382 2013-10-04  Alan Modra  <amodra@gmail.com>
13383
13384         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13385         Correct handling of unaligned relocs for little-endian.
13386         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13387
13388 2013-10-04  Alan Modra  <amodra@gmail.com>
13389
13390         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
13391         * configure: Regenerate.
13392         * nptl/shlib-versions: Powerpc*le starts at 2.18.
13393         * shlib-versions: Likewise.
13394
13395 2013-10-04  Alan Modra  <amodra@gmail.com>
13396
13397         * string/tester.c (test_memrchr): Increment reported test cycle.
13398
13399 2013-10-04  Alan Modra  <amodra@gmail.com>
13400
13401         * string/test-memcpy.c (do_one_test): When reporting errors, print
13402         string address and don't overrun end of string.
13403
13404 2013-10-04  Alan Modra  <amodra@gmail.com>
13405
13406         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
13407         insrdi.  Make better use of reg selection to speed exit slightly.
13408         Schedule entry path a little better.  Remove useless "are we done"
13409         checks on entry to main loop.  Handle wrapping around zero address.
13410         Correct main loop count.  Handle single left-over word from main
13411         loop inline rather than by using loop_small.  Remove extra word
13412         case in loop_small caused by wrong loop count.  Add little-endian
13413         support.
13414         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13415         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
13416         cache hint.
13417         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13418         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
13419         support.  Avoid rlwimi.
13420         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
13421
13422 2013-10-04  Alan Modra  <amodra@gmail.com>
13423
13424         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
13425         insrdi.  Formatting.
13426         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
13427         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
13428         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
13429         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
13430         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
13431         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
13432
13433 2013-10-04  Alan Modra  <amodra@gmail.com>
13434
13435         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
13436         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13437         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
13438         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
13439         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13440         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13441         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13442         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13443         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
13444         use of regs.  Use power7 mtocrf.  Tidy function tails.
13445
13446 2013-10-04  Alan Modra  <amodra@gmail.com>
13447
13448         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
13449         Formatting.  Consistently use rXXX register defines or rN defines.
13450         Use early exit labels that avoid restoring unused non-volatile regs.
13451         Make cr field use more consistent with rWORDn compares.  Rename
13452         regs used as shift registers for unaligned loop, using rN defines
13453         for short lifetime/multiple use regs.
13454         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13455         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
13456         addi 1,1,64 to pop stack frame.  Simplify return value code.
13457         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13458
13459 2013-10-04  Alan Modra  <amodra@gmail.com>
13460
13461         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
13462         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
13463         rather than rlwimi.
13464         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
13465         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
13466         little-endian support.  Correct typos.
13467         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
13468         rather than rlwimi.
13469         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
13470         in loop and entry code to keep "and." results.
13471         (strchr): Add little-endian support.  Comment.  Move cntlzd
13472         earlier in tail.
13473         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
13474
13475 2013-10-04  Alan Modra  <amodra@gmail.com>
13476
13477         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
13478         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
13479         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13480         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
13481
13482 2013-10-04  Alan Modra  <amodra@gmail.com>
13483
13484         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
13485         (rTMP): Define as r11.
13486         (strcmp): Add little-endian support.  Optimise tail.
13487         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
13488         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13489         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13490         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13491         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13492         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13493         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13494
13495 2013-10-04  Alan Modra  <amodra@gmail.com>
13496
13497         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
13498         little-endian support.  Remove unnecessary "are we done" tests.
13499         Handle "s" wrapping around zero and extremely large "size".
13500         Correct main loop count.  Handle single left-over word from main
13501         loop inline rather than by using small_loop.  Correct comments.
13502         Delete "zero" tail, use "end_max" instead.
13503         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
13504
13505 2013-10-04  Alan Modra  <amodra@gmail.com>
13506
13507         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
13508         support.  Don't branch over align.
13509         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
13510         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
13511         support.  Rearrange tmp reg use to suit.  Comment.
13512         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
13513
13514 2013-10-04  Alan Modra  <amodra@gmail.com>
13515
13516         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
13517
13518 2013-10-04  Alan Modra  <amodra@gmail.com>
13519
13520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
13521         conditional form of branch and link when obtaining pc.
13522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
13523
13524 2013-10-04  Alan Modra  <amodra@gmail.com>
13525
13526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
13527         HIWORD/LOWORD.
13528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
13529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
13530
13531 2013-10-04  Alan Modra  <amodra@gmail.com>
13532
13533         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
13534         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
13535         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
13536         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
13537         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
13538         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
13539         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
13540         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
13541         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
13542         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
13543
13544 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13545             Alistair Popple <alistair@ozlabs.au.ibm.com>
13546             Alan Modra <amodra@gmail.com>
13547
13548         [BZ #15723]
13549         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
13550         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
13551         _dl_hwcap access for little-endian.
13552         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
13553         destroy vmx regs when saving unaligned.
13554         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
13555         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
13556         destroy vmx regs when saving unaligned.
13557
13558 2013-10-04  Alan Modra  <amodra@gmail.com>
13559
13560         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
13561         Don't use a union to pack hi/low value.
13562
13563 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13564
13565         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
13566         for little-endian.
13567         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
13568         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
13569         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
13570         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
13571         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
13572
13573 2013-10-04  Alan Modra  <amodra@gmail.com>
13574
13575         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
13576         constants to usual value for .cst8 section, and remove redundant
13577         high address load.
13578         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
13579         constant for 0x1p52.  Load little-endian words of double from
13580         correct stack offsets.
13581
13582 2013-10-04  Alan Modra  <amodra@gmail.com>
13583
13584         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
13585         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
13586         words of double from correct stack offsets.
13587         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
13588         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
13589         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
13590         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
13591         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
13592         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
13593         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
13594         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
13595         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
13596         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
13597         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
13598         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
13599         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13600         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13601         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13602         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
13603         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
13604
13605 2013-10-04  Alan Modra  <amodra@gmail.com>
13606
13607         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
13608         64-bit int/double union.
13609         (_FPU_SETCW): Likewise.
13610         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
13611         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
13612
13613 2013-10-04  Alan Modra  <amodra@gmail.com>
13614
13615         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
13616         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
13617
13618 2013-10-04  Alan Modra  <amodra@gmail.com>
13619
13620         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
13621         use vector int constants.
13622         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
13623
13624 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13625
13626         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
13627         array with long long.
13628         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
13629         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
13630         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
13631         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
13632         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
13633         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
13634         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
13635         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
13636         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
13637         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
13638         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
13639         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
13640         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
13641
13642 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13643
13644         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
13645         (__signbit): Likewise.  Correct for little-endian.
13646         (__signbitl): Call __signbit.
13647         (lrint): Correct for little-endian.
13648         (lrintf): Call lrint.
13649
13650 2013-10-04  Alan Modra  <amodra@gmail.com>
13651
13652         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
13653         union 32-bit int array member with 64-bit int array.
13654         (t515, tm256): Double rather than long double.
13655         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
13656
13657 2013-10-04  Alan Modra  <amodra@gmail.com>
13658
13659         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
13660         Delete.
13661         (IEEE854_LONG_DOUBLE_BIAS): Delete.
13662         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
13663         version of math_ldbl.h.
13664
13665 2013-10-04  Alan Modra  <amodra@gmail.com>
13666
13667         [BZ #15734], [BZ #15735]
13668         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
13669         all uses of ieee875 long double macros and unions.  Simplify test
13670         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
13671         ldbl_extract_mantissa value for ix,iy exponents.  Properly
13672         normalize after ldbl_extract_mantissa, and don't add hidden bit
13673         already handled.  Don't treat low word of ieee854 mantissa like
13674         low word of IBM long double and mask off bit when testing for
13675         zero.
13676         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
13677         all uses of ieee875 long double macros and unions.  Simplify tests
13678         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
13679         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
13680         two1022, instead use their values.  Recognise that tests for large
13681         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
13682         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
13683         Rewrite all uses of ieee875 long double macros and unions.  Simplify
13684         test for 0.0L and nan.  Correct negation.
13685         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
13686         ieee875 long double macros and unions.  Correct output for large
13687         magnitude x.  Correct absolute value calculation.
13688         (__erfcl): Likewise.
13689         * math/libm-test.inc: Add tests for errors discovered in IBM long
13690         double versions of fmodl, remainderl, erfl and erfcl.
13691
13692 2013-10-04  Alan Modra  <amodra@gmail.com>
13693
13694         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
13695         all uses of ieee854 long double macros and unions.  Simplify tests
13696         for long doubles that are fully specified by the high double.
13697         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13698         Likewise.
13699         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
13700         Remove dead code too.
13701         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13702         (__ieee754_ynl): Likewise.
13703         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13704         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
13705         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13706         Remove dead code too.
13707         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
13708         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13709         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
13710         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
13711         Simplify.
13712         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
13713         Simplify.
13714         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
13715         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
13716         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
13717         Comment on variable precision.
13718         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
13719         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13720         Likewise.
13721         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13722         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13723         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13724         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
13725         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
13726
13727 2013-10-04  Alan Modra  <amodra@gmail.com>
13728
13729         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
13730         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
13731         all uses of ieee854 long double macros and unions.
13732         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13733         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13734         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
13735         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
13736         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13737         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13738         Likewise.
13739         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
13740         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13741         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
13742         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13743         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
13744         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
13745         Simplify sign and nan test too.
13746         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
13747         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
13748         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
13749         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
13750         Likewise.
13751         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
13752         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
13753         Likewise.
13754         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13755         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
13756         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
13757         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
13758         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
13759         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
13760
13761 2013-10-04  Alan Modra  <amodra@gmail.com>
13762
13763         * stdio-common/printf_size.c (__printf_size): Don't use
13764         union ieee854_long_double in fpnum union.
13765         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
13766         signbit macro to retrieve sign from long double.
13767         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
13768         retrieve sign from long double.
13769         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
13770         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
13771         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
13772         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13773         * math/test-misc.c (main): Don't use union ieee854_long_double.
13774
13775 2013-10-04  Alan Modra  <amodra@gmail.com>
13776
13777         [BZ #15680]
13778         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
13779         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
13780         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
13781         calculation.  Remove unnecessary test for denormal exponent.
13782         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
13783         Correct handling of denormals.  Avoid undefined shift behaviour.
13784         Correct normalisation of low mantissa when low double is denormal.
13785         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
13786         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
13787         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
13788         Correct normalisation of low mantissa.  Test for overflow of high
13789         mantissa and normalise.
13790         (ldbl_nearbyint): Use more readable constant for two52.
13791         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
13792         (__mpn_construct_long_double): Fix test for overflow of high
13793         mantissa and correct normalisation.  Avoid undefined shift.
13794
13795 2013-10-04  Alan Modra  <amodra@gmail.com>
13796
13797         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13798         (union ibm_extended_long_double): Define as an array of ieee754_double.
13799         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
13800         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
13801         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
13802         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13803         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13804         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
13805         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13806         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13807         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13808         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
13809         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13810
13811 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
13812
13813         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
13814         page size instead of calling getpagesize.
13815
13816         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
13817         (LOCFILE_ALIGN_MASK): Likewise.
13818         (LOCFILE_ALIGN_UP): Likewise.
13819         (LOCFILE_ALIGNED_P): Likewise.
13820         * locale/programs/ld-collate.c (collate_output): Use the new
13821         macros instead of __alignof__ (int32_t).
13822         * locale/weight.h (findidx): Likewise.
13823
13824 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
13825
13826         [BZ #431]
13827         * manual/string.texi: Fix strncat and wcsncat.
13828
13829 2013-10-03  Brooks Moses  <bmoses@google.com>
13830
13831         [BZ #15915]
13832         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
13833         * Makerules: ...here, and adjust associated comments.
13834
13835 2013-10-02  Will Newton  <will.newton@linaro.org>
13836
13837         * malloc/Makefile: Add tst-pvalloc.
13838         * malloc/tst-pvalloc.c: New file.
13839
13840 2013-10-02  Will Newton  <will.newton@linaro.org>
13841
13842         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
13843         improve test coverage.
13844
13845 2013-10-02  Will Newton  <will.newton@linaro.org>
13846
13847         * malloc/Makefile: Add tst-posix_memalign.
13848         * malloc/tst-posix_memalign.c: New file.
13849
13850 2013-10-01  Eric Blake  <eblake@redhat.com>
13851
13852         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
13853         Use __THROWNL rather than __THROW on static functions.
13854
13855 2013-09-30  Petr Machata  <pmachata@redhat.com>
13856
13857         * elf/elf.h (R_AARCH64_ABS16): New macro.
13858         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
13859         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
13860         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
13861         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
13862         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
13863         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
13864         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
13865         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
13866         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
13867         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
13868         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
13869         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
13870         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
13871         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
13872         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
13873         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
13874         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
13875         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
13876         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
13877         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
13878         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
13879         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
13880         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
13881         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
13882         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
13883         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
13884         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
13885         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
13886         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
13887         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
13888         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
13889         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
13890         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
13891         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
13892         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
13893         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
13894         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
13895         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
13896         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
13897         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
13898         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
13899         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
13900         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
13901         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
13902         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
13903         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
13904         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
13905         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
13906         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
13907         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
13908         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
13909         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
13910         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
13911         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
13912         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
13913         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
13914         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
13915         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
13916         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
13917         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
13918         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
13919         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
13920         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
13921         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
13922         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
13923         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
13924         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
13925         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
13926         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
13927         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
13928         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
13929         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
13930         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
13931         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
13932         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
13933         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
13934         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
13935         (R_AARCH64_TLSDESC_LDR): Likewise.
13936         (R_AARCH64_TLSDESC_ADD): Likewise.
13937         (R_AARCH64_TLSDESC_CALL): Likewise.
13938
13939 2013-09-30  Andreas Schwab  <schwab@suse.de>
13940
13941         [BZ #15048]
13942         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
13943         the nss database lookup.
13944         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13945         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13946
13947 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
13948
13949         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
13950
13951 2013-09-28  P. J. McDermott  <pj@pehjota.net>
13952
13953         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
13954         ${Bash-specific parameter/pattern/string} parameter expansion.
13955         * sysdeps/unix/make-syscalls.sh: Likewise.
13956
13957 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13958
13959         * sysdeps/sh/stackguard-macros.h: New file.
13960
13961 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
13962
13963         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
13964         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
13965         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
13966         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
13967         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13968         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
13969
13970 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13971
13972         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
13973         Fix thread ID register.
13974
13975 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
13976
13977         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
13978         [POSIX || UNIX98]: Require rather than permitting all symbols from
13979         <time.h>.
13980         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
13981         element of struct sched_param.
13982         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
13983         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
13984         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
13985         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
13986         constant.
13987
13988 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
13989
13990         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
13991         argument calculation.
13992
13993 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13994
13995         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
13996         Expect macro.
13997         [POSIX] (pthread_attr_t): Do not require type.
13998         [POSIX] (pthread_cond_t): Likewise.
13999         [POSIX] (pthread_condattr_t): Likewise.
14000         [POSIX] (pthread_key_t): Likewise.
14001         [POSIX] (pthread_mutex_t): Likewise.
14002         [POSIX] (pthread_mutexattr_t): Likewise.
14003         [POSIX] (pthread_once_t): Likewise.
14004         [POSIX] (pthread_t): Likewise.
14005         [POSIX-based standards] (pthread_atfork): Expect function.
14006
14007 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14008             Richard Sandiford  <richard@codesourcery.com>
14009
14010         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
14011         (swap_endianness_p): New extern variable.
14012         (set_big_endian): New inline function.
14013         (maybe_swap_uint32): Likewise.
14014         (maybe_swap_uint32_array): Likewise.
14015         (maybe_swap_uint32_obstack): Likewise.
14016         * locale/programs/locfile.c: Include <stdbool.h>.
14017         (swap_endianness_p): New variable.
14018         (add_locale_uint32): Call maybe_swap_uint32.
14019         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
14020         (write_locale_data): Call maybe_swap_uint32_array.
14021         * locale/programs/ld-collate.c (obstack_int32_grow): Call
14022         maybe_swap_uint32.
14023         (obstack_int32_grow_fast): Likewise.
14024         (output_weightwc): Call maybe_swap_uint32_obstack.
14025         (collate_output): Likewise.
14026         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
14027         (OPT_LITTLE_ENDIAN): Likewise.
14028         (options): Add --little-endian and --big-endian options.
14029         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
14030         * locale/programs/locarchive.c: Include "locfile.h".
14031         (GET): New macro.
14032         (SET): Likewise.
14033         (INC): Likewise.
14034         (create_archive): Use the new macros to access fields of
14035         structures directly mapped from or written to locale archives.
14036         (oldlocrecentcmp): Likewise.
14037         (enlarge_archive): Likewise.
14038         (insert_name): Likewise.
14039         (add_alias): Likewise.
14040         (add_locale): Likewise.
14041         (delete_locales_from_archive): Likewise.
14042         (show_archive_content): Likewise.
14043         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
14044         locale data.
14045
14046 2013-09-24  Roland McGrath  <roland@hack.frob.com>
14047
14048         * manual/freemanuals.texi: Updated from (newly) canonical copy at
14049         http://www.gnu.org/doc/freemanuals.texi.
14050         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
14051
14052 2013-09-24  Will Newton  <will.newton@linaro.org>
14053
14054         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
14055         macro.
14056
14057 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
14058
14059         * locale/hashval.h (compute_hashval): Interpret bytes of key as
14060         unsigned char.
14061
14062 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
14063
14064         * manual/threads.texi (POSIX Threads): Fix a typo.
14065
14066 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14067
14068         [BZ #14547]
14069         * string/tst-strcoll-overflow.c: New test case.
14070         * string/Makefile (xtests): Add tst-strcoll-overflow.
14071         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
14072         cache if string sizes may cause integer overflow.
14073
14074         [BZ #14547]
14075         * string/strcoll_l.c (coll_seq): New members rule, idx,
14076         save_idx and back_us.
14077         (get_next_seq_nocache): New function.
14078         (do_compare_nocache): New function.
14079         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
14080         when malloc fails.
14081
14082 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
14083
14084         [BZ #15754]
14085         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
14086         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
14087         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
14088
14089         [BZ #15754]
14090         * elf/Makefile (tests): Add tst-ptrguard1.
14091         (tests-static): Add tst-ptrguard1-static.
14092         (tst-ptrguard1-ARGS): Define.
14093         (tst-ptrguard1-static-ARGS): Define.
14094         * elf/tst-ptrguard1.c: New file.
14095         * elf/tst-ptrguard1-static.c: New file.
14096         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
14097         * sysdeps/i386/stackguard-macros.h: Likewise.
14098         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14099         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14100         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14101         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14102         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14103         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14104
14105 2013-09-23  Hector Marco  <hecmargi@upv.es>
14106             Ismael Ripoll  <iripoll@disca.upv.es>
14107             Carlos O'Donell  <carlos@redhat.com>
14108
14109         [BZ #15754]
14110         * sysdeps/generic/stackguard-macros.h: Define
14111         __pointer_chk_guard_local and POINTER_CHK_GUARD.
14112         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
14113         Define __pointer_chk_guard_local.
14114         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
14115         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
14116
14117 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
14118
14119         [BZ #15859]
14120         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
14121
14122 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
14123
14124         * include/string.h (__ffs): Declare as hidden.
14125         * string/ffs.c (__ffs): Define as hidden.
14126         * sysdeps/i386/ffs.c (__ffs): Likewise.
14127         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14128         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
14129         * sysdeps/s390/ffs.c (__ffs): Likewise.
14130         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
14131
14132 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
14133
14134         * NEWS: Mention malloc probes.
14135
14136         * malloc/arena.c (new_heap): New memory_heap_new probe.
14137         (grow_heap): New memory_heap_more probe.
14138         (shrink_heap): New memory_heap_less probe.
14139         (heap_trim): New memory_heap_free probe.
14140         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
14141         (systrim): New memory_sbrk_less probe.
14142         * manual/probes.texi: Document them.
14143
14144         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
14145         * manual/probes.texi: Document it.
14146
14147         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
14148         (__libc_realloc): Add memory_realloc_retry probe.
14149         (__libc_memalign): Add memory_memalign_retry probe.
14150         (__libc_valloc): Add memory_valloc_retry probe.
14151         (__libc_pvalloc): Add memory_pvalloc_retry probe.
14152         (__libc_calloc): Add memory_calloc_retry probe.
14153         * manual/probes.texi: Document them.
14154
14155         * malloc/arena.c (get_free_list): Add probe
14156         memory_arena_reuse_free_list.
14157         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
14158         and memory_arena_reuse.
14159         (arena_get2) [!PER_THREAD]: Likewise.
14160         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
14161         memory_arena_reuse_realloc.
14162         * manual/probes.texi: Document them.
14163
14164         * malloc/malloc.c (__libc_free): Add
14165         memory_mallopt_free_dyn_thresholds probe.
14166         (__libc_mallopt): Add multiple memory_mallopt probes.
14167         * manual/probes.texi: Document them.
14168
14169         * malloc/malloc.c: Include stap-probe.h.
14170         (__libc_mallopt): Add memory_mallopt probe.
14171         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
14172         * manual/probes.texi: New.
14173         * manual/Makefile (chapters): Add probes.
14174         * manual/threads.texi: Set next node.
14175
14176 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
14177
14178         [BZ #15963, #13985]
14179         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
14180         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
14181         Add `Chinese' to `nan' entry name.
14182
14183 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14184
14185         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
14186         (POLYNOMIAL): Likewise.
14187         (TAYLOR_SINCOS): Likewise.
14188         (TAYLOR_SLOW): Likewise.
14189         (__sin): Use TAYLOR_SINCOS.
14190         (__cos): Likewise.
14191         (slow): Use TAYLOR_SLOW.
14192         (sloww): Likewise.
14193         (bsloww): Likewise.
14194         (csloww): Likewise.
14195
14196 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14197
14198         * stdlib/strtod_l.c: Fix buffer overrun.
14199
14200 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14201
14202         * benchtests/Makefile (bench): Add sincos.
14203         * benchtests/bench-sincos.c: New file.
14204
14205         * math/libm-test.inc (cos_test_data): New test inputs.
14206         (sin_test_data): Likewise.
14207
14208         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
14209         macro.
14210         (__sin): Use it.
14211         (__cos): Likewise.
14212         (slow1): Likewise.
14213         (slow2): Likewise.
14214         (sloww1): Likewise.
14215         (sloww2): Likewise.
14216         (bsloww1): Likewise.
14217         (bsloww2): Likewise.
14218         (cslow2): Likewise.
14219         (csloww1): Likewise.
14220         (csloww2): Likewise.
14221
14222         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
14223         function.
14224         (__sin): Use it.
14225         (__cos): Likewise.
14226
14227         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
14228         gotos.
14229         (__cos): Likewise.
14230
14231 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
14232
14233         * config.h.in (HAVE_MIPS_NAN2008): New macro.
14234         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
14235         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
14236         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
14237         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
14238         * elf/cache.c (print_entry): Handle the new cache flags.
14239
14240 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14241             Aldy Hernandez  <aldyh@redhat.com>
14242
14243         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
14244         Change condition to [_SOFT_FLOAT].
14245         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
14246         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
14247         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
14248         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
14249         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
14250         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
14251         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
14252         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
14253         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
14254         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
14255         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
14256         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
14257         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
14258         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
14259         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
14260         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
14261         declaration.
14262
14263 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14264
14265         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
14266         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14267         (__longjmp): Use LOAD_GP to load saved GPRs.
14268         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
14269         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14270         (__sigsetjmp): Use SAVE_GP to save GPRs.
14271
14272         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
14273         Do not append -msoft-float.
14274         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
14275
14276 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14277
14278         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
14279
14280 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
14281
14282         [BZ #15966]
14283         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
14284         (_FPU_GETCW): Use initial "__" on variable and field names but not
14285         on macro parameter name.
14286         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
14287         parentheses around reference to macro parameter.
14288
14289 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
14290
14291         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
14292         prototype.
14293         (ctype_startup): Use uint32_t in cast and sizeof for
14294         ctype->charnames.
14295
14296 2013-09-11  Jia Liu  <proljc@gmail.com>
14297
14298         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
14299         __daddr_t_defined.
14300         [__FreeBSD__]: Likewise.
14301
14302 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
14303
14304         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14305         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
14306         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
14307         (strchr): Remove __strchr_sse42 ifunc selection.
14308         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
14309         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
14310
14311 2013-09-11  Will Newton  <will.newton@linaro.org>
14312
14313         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
14314         parameter to RES. Remove hardcoded 1000 value.
14315         * benchtests/bench-skeleton.c (main): Pass RES parameter
14316         to TIMING_INIT and multiply result by 1000.
14317
14318 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14319
14320         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14321
14322 2013-09-11  Andreas Schwab  <schwab@suse.de>
14323
14324         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
14325         if not defined.
14326         (O_TMPFILE) [__USE_GNU]: Define.
14327         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
14328         Define.
14329
14330 2013-09-11  Will Newton  <will.newton@linaro.org>
14331
14332         [BZ #15857]
14333         * malloc/malloc.c (__libc_memalign): Check the value of bytes
14334         does not overflow.
14335
14336 2013-09-11  Will Newton  <will.newton@linaro.org>
14337
14338         [BZ #15856]
14339         * malloc/malloc.c (__libc_valloc): Check the value of bytes
14340         does not overflow.
14341
14342 2013-09-11  Will Newton  <will.newton@linaro.org>
14343
14344         [BZ #15855]
14345         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
14346         does not overflow.
14347
14348 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
14349
14350         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
14351         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14352         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14353         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14354         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14355
14356 2013-09-10  Allan McRae  <allan@archlinux.org>
14357
14358         [BZ #15748]
14359         * manual/arith.texi (Parsing of Floats): Clarify
14360         cross-reference.
14361
14362         [BZ #15849]
14363         * manual/install.texi (Running make install): Mention
14364         --enable-pt-chown.
14365         * INSTALL: Regenerated.
14366
14367 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
14368
14369         * csu/init-first.c (_init): Remove the !SHARED condition around
14370         FPU control word initialization.
14371         * elf/dl-support.c (_dl_fpu_control): New variable.
14372         (_dl_aux_init) <AT_FPUCW>: Initialize it.
14373         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
14374         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
14375         * math/test-fpucw-static.c: New file.
14376         * math/test-fpucw-ieee.c: New file.
14377         * math/test-fpucw-ieee-static.c: New file.
14378         * math/Makefile (tests): Add `test-fpucw-ieee' and
14379         `$(tests-static)'.
14380         (tests-static): New variable.
14381         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
14382         dependency to...
14383         [($(build-shared),yes)]
14384         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
14385         ... this.
14386         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
14387         New dependency.
14388
14389 2013-09-09  Allan McRae  <allan@archlinux.org>
14390
14391         [BZ #15939]
14392         * manual/string.texi (Collation Functions): Fix typo in
14393         strcoll example.
14394         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
14395
14396         [BZ #15893]
14397         * stdlib/isomac.c (get_null_defines): Fix memory leak.
14398
14399         [BZ #15892]
14400         * libio/memstream.c (open_memstream): Fix memory leak.
14401         * libio/wmemstream.c (open_wmemstream): Likewise.
14402
14403         [BZ #15895]
14404         * nscd/netgroupcache.c: Fix nesting of ifdefs.
14405
14406 2013-09-09  Will Newton  <will.newton@linaro.org>
14407
14408         * malloc/Makefile: Add tst-realloc to tests.
14409         * malloc/tst-realloc.c: New file.
14410
14411 2013-09-09  Allan McRae  <allan@archlinux.org>
14412
14413         [BZ #15844]
14414         * COPYING: Update from GNU website to fix FSF address.
14415         * COPYING.LIB: Likewise.
14416
14417 2013-09-06  David S. Miller  <davem@davemloft.net>
14418
14419         * po/zh_TW.po: Update Chinese (traditional) translation from
14420         translation project.
14421
14422 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
14423             Joseph Myers  <joseph@codesourcery.com>
14424
14425         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
14426         "localeinfo.h".
14427         (obstack_chunk_alloc): New macro.
14428         (obstack_chunk_free): Likewise.
14429         (record_offset): New function.
14430         (init_locale_data): Likewise.
14431         (align_locale_data): Likewise.
14432         (add_locale_empty): Likewise.
14433         (add_locale_raw_data): Likewise.
14434         (add_locale_raw_obstack): Likewise.
14435         (add_locale_string): Likewise.
14436         (add_locale_wstring): Likewise.
14437         (add_locale_uint32): Likewise.
14438         (add_locale_uint32_array): Likewise.
14439         (add_locale_char): Likewise.
14440         (start_locale_structure): Likewise.
14441         (end_locale_structure): Likewise.
14442         (start_locale_prelude): Likewise.
14443         (end_locale_prelude): Likewise.
14444         (write_locale_data): Take locale_file structure rather than an
14445         iovec.
14446         * locale/programs/locfile.h: Include "obstack.h".
14447         (struct locale_file): Change to store locale file contents instead
14448         of header.
14449         (init_locale_data): New prototype.
14450         (align_locale_data): Likewise.
14451         (add_locale_empty): Likewise.
14452         (add_locale_raw_data): Likewise.
14453         (add_locale_raw_obstack): Likewise.
14454         (add_locale_string): Likewise.
14455         (add_locale_wstring): Likewise.
14456         (add_locale_uint32): Likewise.
14457         (add_locale_uint32_array): Likewise.
14458         (add_locale_char): Likewise.
14459         (start_locale_structure): Likewise.
14460         (end_locale_structure): Likewise.
14461         (start_locale_prelude): Likewise.
14462         (end_locale_prelude): Likewise.
14463         (write_locale_data): Update prototype.
14464         * locale/programs/3level.h (struct TABLE): Remove result field.
14465         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
14466         Use new locale_file interface.
14467         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
14468         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
14469         * locale/programs/ld-address.c (address_output): Use new
14470         locale_file interface.
14471         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
14472         NO_ADD_LOCALE.
14473         (collate_finish): Don't call collseq_table_finalize.
14474         (collate_output): Use new locale_file interface.
14475         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
14476         in file.
14477         (NO_FINALIZE): Change to NO_ADD_LOCALE.
14478         (TABLE): Move defines earlier in file.
14479         (ELEMENT): Likewise.
14480         (DEFAULT): Likewise.
14481         (wctrans_table_add): Move macro and inline function earlier in
14482         file.
14483         (struct wctype_table): Move type earlier in file.
14484         (add_locale_wctype_table): New static prototype.
14485         (struct locale_ctype_t): Use logical types instead of struct iovec
14486         pointers for members.
14487         (ctype_output): Use new locale_file interface.
14488         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
14489         new locale_file interface.
14490         (allocate_arrays): Update for use of new locale_file interface.
14491         * locale/programs/ld-identification.c (identification_output): Use
14492         new locale_file interface.
14493         * locale/programs/ld-measurement.c (measurement_output): Likewise.
14494         * locale/programs/ld-messages.c (messages_output): Likewise.
14495         * locale/programs/ld-monetary.c (monetary_output): Likewise.
14496         * locale/programs/ld-name.c (name_output): Likewise.
14497         * locale/programs/ld-numeric.c (numeric_output): Likewise.
14498         * locale/programs/ld-paper.c (paper_output): Likewise.
14499         * locale/programs/ld-telephone.c (telephone_output): Likewise.
14500         * locale/programs/ld-time.c (time_output): Likewise.
14501
14502 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14503
14504         * benchtests/Makefile: Add memrchr benchmark.
14505         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
14506         benchmark as memrchr.
14507         * benchtests/bench-memrchr-ifunc.c: New file.
14508         * benchtests/bench-memrchr.c: New file.
14509
14510 2013-09-06   Will Newton  <will.newton@linaro.org>
14511
14512         * benchtests/Makefile (string-bench): Add memcpy.
14513
14514 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
14515             Cong Wang  <amwang@redhat.com>
14516
14517         [BZ #15850]
14518         * sysdeps/unix/sysv/linux/bits/in.h
14519         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
14520         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
14521         before __USE_KERNEL_IPV6_DEFS uses.
14522         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
14523         IPPROTO_BEETPH.
14524         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
14525         sockaddr_in6, or ipv6_mreq.
14526
14527 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14528
14529         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
14530         memory access for final bytes in some large inputs.
14531         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
14532
14533 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14534
14535         * string/test-memrchr.c: New file.
14536         * string/test-memrchr-ifunc.c: New file.
14537         * string/Makefile: Add new memrchr testcase.
14538
14539 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
14540
14541         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
14542         fanotify_init returns EPERM.
14543
14544 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14545
14546         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
14547         errors.
14548         (top level): Treat second token from macro or constant entries for
14549         allowed headers as allowed.
14550         * include/complex.h: Condition internal declarations on
14551         [!_ISOMAC].
14552         * include/fenv.h: Condition include of <stdbool.h> and internal
14553         declarations on [!_ISOMAC].
14554
14555 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
14556
14557         [BZ #15923]
14558         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
14559
14560 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14561
14562         * configure.in (--enable-versioning): Remove configure option.
14563         (libc_cv_asm_symver_directive): Remove configure test.
14564         (libc_cv_ld_version_script_option): Likewise.
14565         (VERSIONING): Remove variable and AC_SUBST.
14566         (DO_VERSIONING): Remove AC_DEFINE.
14567         * configure: Regenerated.
14568         * config.h.in (DO_VERSIONING): Remove macro.
14569         * Makerules [$(versioning) = yes]: Change conditionals to
14570         [$(build-shared) = yes].
14571         * config.make.in (versioning): Remove variable.
14572         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
14573         [$(build-shared) = yes].
14574         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
14575         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
14576         * elf/Makefile [$(versioning) = yes]: Change conditionals to
14577         [$(build-shared) = yes].
14578         * extra-lib.mk [$(versioning) = yes]: Likewise.
14579         * hurd/Makefile [$(versioning) = yes]: Likewise.
14580         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
14581         [SHARED].
14582         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
14583         [SHARED].
14584         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14585         [SHARED && !NO_HIDDEN].
14586         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
14587         [SHARED].
14588         [SHARED && DO_VERSIONING]: Likewise..
14589         * libio/Makefile [$(versioning) = yes]: Change conditionals to
14590         [$(build-shared) = yes].
14591         * manual/install.texi (--disable-versioning): Remove
14592         documentation.
14593         * INSTALL: Regenerated.
14594         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
14595         to [SHARED].
14596         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
14597         [$(build-shared) = yes].
14598         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
14599         * sysdeps/i386/i686/multiarch/strstr-c.c
14600         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14601         [SHARED && !NO_HIDDEN].
14602         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
14603         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
14604         * sysdeps/powerpc/powerpc32/dl-machine.c
14605         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
14606         * sysdeps/powerpc/powerpc32/sysdep.h
14607         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
14608         to [SHARED && PIC && !NO_HIDDEN].
14609         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
14610         conditional to [SHARED].
14611
14612 2013-09-04   Will Newton  <will.newton@linaro.org>
14613
14614         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
14615         * benchtests/bench-string.h: Include bench-timing.h instead
14616         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
14617         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
14618         call to HP_TIMING_DIFF_INIT.
14619         * benchtests/bench-memccpy.c: Use bench-timing.h macros
14620         instead of hp-timing.h macros.
14621         * benchtests/bench-memchr.c: Likewise.
14622         * benchtests/bench-memcmp.c: Likewise.
14623         * benchtests/bench-memcpy.c: Likewise.
14624         * benchtests/bench-memmem.c: Likewise.
14625         * benchtests/bench-memmove.c: Likewise.
14626         * benchtests/bench-memset.c: Likewise.
14627         * benchtests/bench-rawmemchr.c: Likewise.
14628         * benchtests/bench-strcasecmp.c: Likewise.
14629         * benchtests/bench-strcasestr.c: Likewise.
14630         * benchtests/bench-strcat.c: Likewise.
14631         * benchtests/bench-strchr.c: Likewise.
14632         * benchtests/bench-strcmp.c: Likewise.
14633         * benchtests/bench-strcpy.c: Likewise.
14634         * benchtests/bench-strcpy_chk.c: Likewise.
14635         * benchtests/bench-strlen.c: Likewise.
14636         * benchtests/bench-strncasecmp.c: Likewise.
14637         * benchtests/bench-strncat.c: Likewise.
14638         * benchtests/bench-strncmp.c: Likewise.
14639         * benchtests/bench-strncpy.c: Likewise.
14640         * benchtests/bench-strnlen.c: Likewise.
14641         * benchtests/bench-strpbrk.c: Likewise.
14642         * benchtests/bench-strrchr.c: Likewise.
14643         * benchtests/bench-strspn.c: Likewise.
14644         * benchtests/bench-strstr.c: Likewise.
14645
14646 2013-09-04  Will Newton  <will.newton@linaro.org>
14647
14648         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
14649
14650 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
14651
14652         [BZ #15427]
14653         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
14654         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
14655         * math/libm-test.inc (lgamma_test_data): Add more tests.
14656         * sysdeps/i386/fpu/libm-test-ulps: Update.
14657         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14658
14659 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
14660
14661         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
14662         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14663         Add ifunc.
14664         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
14665         Add strcmp-sse2-unaligned
14666         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
14667
14668 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14669
14670         * Versions.def (libc): Add GLIBC_2.19.
14671
14672 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14673
14674         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
14675         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
14676
14677 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
14678
14679         [BZ #14155]
14680         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
14681         intermediate calculations in recurrence.
14682         (__ieee754_ynf): Likewise.
14683         * math/libm-test.inc (jn_test_data): Do not allow spurious
14684         underflow exception.  Add more tests.
14685         (yn_test_data): Add more tests.
14686         * sysdeps/i386/fpu/libm-test-ulps: Update.
14687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14688
14689 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
14690
14691         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
14692
14693 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14694
14695         * csu/init-first.c: Fix then/than typos.
14696         * locale/programs/ld-collate.c: Likewise.
14697         * locale/programs/linereader.h: Likewise.
14698         * manual/charset.texi: Likewise.
14699         * manual/filesys.texi: Likewise.
14700         * manual/stdio.texi: Likewise.
14701         * manual/string.texi: Likewise.
14702         * stdlib/fmtmsg.c: Likewise.
14703         * sysdeps/i386/stpncpy.S: Likewise.
14704         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14705         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14706         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14707         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14708
14709 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14710
14711         * elf/dl-open.c: Fix typos.
14712         * iconvdata/gbbig5.c: Likewise.
14713         * iconvdata/iso-2022-jp.c: Likewise.
14714         * iconv/gconv_int.h: Likewise.
14715         * iconv/loop.c: Likewise.
14716         * nis/rpcsvc/nis.h: Likewise.
14717         * resolv/ns_name.c: Likewise.
14718         * stdio-common/vfscanf.c: Likewise.
14719         * streams/stropts.h: Likewise.
14720         * sunrpc/rpc_thread.c: Likewise.
14721         * sysdeps/i386/strpbrk.S: Likewise.
14722         * sysdeps/ieee754/k_standard.c: Likewise.
14723         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14724         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14725         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
14726         * sysdeps/mach/hurd/profil.c: Likewise.
14727         * sysdeps/s390/dl-procinfo.h: Likewise.
14728         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
14729         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
14730         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
14731         * sysdeps/x86_64/dl-trampoline.S: Likewise.
14732         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14733
14734 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
14735
14736         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
14737         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
14738
14739 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
14740
14741         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
14742         aix specific files.
14743         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
14744         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
14745         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
14746         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
14747         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
14748         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
14749         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
14750         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
14751
14752 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14753             Roland McGrath  <roland@hack.frob.com>
14754
14755         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
14756         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14757
14758 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14759
14760         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
14761         __executable_start symbol instead of _start.
14762
14763 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14764
14765         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
14766         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
14767         Move macros to...
14768         * sysdeps/gnu/ldsodefs.h: ... this new file.
14769
14770         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
14771         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
14772         instead of ELFOSABI_LINUX.
14773
14774         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
14775         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
14776         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
14777         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
14778         Likewise.
14779         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
14780         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
14781         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
14782         Likewise.
14783         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14784         (ibm_extended_long_double): Add ieee_nan member.
14785         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
14786         (do_test): New function.
14787
14788         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
14789         TEST_TRUNC.
14790         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
14791         functions, renamed from truncdfsf_test, trunctfsf_test,
14792         trunctfdf_test.
14793         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
14794         functions.
14795         (do_test): Run all these.
14796
14797 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
14798
14799         * argp/argp-help.c: Fix typos.
14800         * argp/argp-parse.c: Likewise.
14801         * debug/backtracesyms.c: Likewise.
14802         * elf/elf.h: Likewise.
14803         * malloc/malloc.c: Likewise.
14804         * nis/nis_print.c: Likewise.
14805         * resolv/res_comp.c: Likewise.
14806         * stdlib/stdlib.h: Likewise.
14807         * sunrpc/clnt_tcp.c: Likewise.
14808         * sunrpc/clnt_udp.c: Likewise.
14809         * sunrpc/clnt_unix.c: Likewise.
14810         * sysdeps/unix/bsd/ptsname.c: Likewise.
14811         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
14812         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
14813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
14814         Likewise.
14815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
14816         Likewise.
14817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
14818         Likewise.
14819         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
14820
14821 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14822
14823         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
14824         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14825
14826 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
14827
14828         [BZ #15897]
14829         * dlfcn/Makefile (tests): Add bug-dl-leaf.
14830         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
14831         ($(objpfx)bug-dl-leaf): New rule.
14832         ($(objpfx)bug-dl-leaf.so): Likewise.
14833         ($(objpfx)bug-dl-leaf.out): Likewise.
14834         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
14835         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
14836         * dlfcn/bug-dl-leaf.c: New test.
14837         * dlfcn/bug-dl-leaf-lib.c: Likewise.
14838         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
14839         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
14840         (dlclose): Likewise.
14841         (dlmopen): Likewise.
14842
14843 2013-08-27  Roland McGrath  <roland@hack.frob.com>
14844
14845         * include/netdb.h [!_ISOMAC]:
14846         Don't include <tls.h>.
14847         (h_errno, __libc_h_errno): Move declaration and macros out of
14848         [_LIBC_REENTRANT].
14849
14850         * include/resolv.h [_RESOLV_H_]:
14851         Don't include <tls.h>.
14852         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
14853         * resolv/res_libc.c: Don't include <tls.h>.
14854         (_res): Use __attribute__ ((nocommon)) in place of
14855         __attribute__ ((section (".bss"))).
14856
14857         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
14858         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
14859
14860         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
14861
14862         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
14863         only under [SIOCGIFCONF && SIOCGIFNETMASK].
14864
14865         * resolv/res_mkquery.c: Include <sys/time.h>.
14866
14867         * inet/ifreq.c: Moved to ...
14868         * sysdeps/unix/ifreq.c: ... here.
14869         * inet/ifreq.c: New file, true stub version.
14870
14871         * socket/sa_len.c: New file.
14872         * socket/Makefile (aux): Add it.
14873         * sysdeps/unix/sysv/linux/Makefile
14874         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
14875         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
14876         and #include <socket/sa_len.c>.
14877         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
14878         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
14879
14880         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
14881         * bits/socket.h: ... here.
14882
14883         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
14884         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
14885         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
14886
14887 2013-08-27  Andreas Schwab  <schwab@suse.de>
14888
14889         [BZ #15736]
14890         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
14891         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
14892         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
14893         * string/test-strcasecmp.c (test_main): Run tests in several
14894         locales.
14895         * string/test-strncasecmp.c (test_main): Likewise.
14896
14897         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
14898         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
14899         to __strcasecmp_nonascii and __strncasecmp_nonascii.
14900         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
14901         (__strncasecmp_ssse3) [PIC]: Likewise.
14902
14903 2013-08-26  Roland McGrath  <roland@hack.frob.com>
14904
14905         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
14906
14907         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
14908         instead of explicitly declaring xdecrypt.
14909         * nis/nss_nis/nis-publickey.c: Likewise.
14910
14911 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14912
14913         [BZ #15890]
14914         * nscd/aicache.c: Include res_hconf.h.
14915         (addhstaiX): Initialize res_hconf.
14916
14917 2013-08-26  Andreas Schwab  <schwab@suse.de>
14918
14919         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
14920         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
14921
14922 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14923
14924         * nscd/aicache.c (addhstaiX): Fix indentation.
14925
14926 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
14927
14928         * configure.ac: Quote $build_pt_chown test.
14929         * configure: Regenerated.
14930
14931 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
14932
14933         [BZ #15532]
14934         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
14935         * math/s_cexpf.c (__cexpf): Likewise.
14936         * math/s_cexpl.c (__cexpl): Likewise.
14937         * math/libm-test.inc (cexp_test_data): Correct expected return
14938         value for NaN + i0.  Add another test.
14939
14940 2013-08-22  David S. Miller  <davem@davemloft.net>
14941
14942         * po/ca.po: Update Catalan translation from translation project.
14943         * po/uk.po: Add Ukrainian translations from translation project.
14944
14945 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
14946
14947         [BZ #15797]
14948         * math/s_fdim.c (__fdim): Check for infinite arguments if result
14949         is infinite, not alongside NaN test.
14950         * math/s_fdimf.c (__fdimf): Likewise.
14951         * math/s_fdiml.c (__fdiml): Likewise.
14952         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
14953         errno is unchanged.
14954
14955 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
14956
14957         * argp/argp-help.c: Fix typos.
14958         * crypt/speeds.c: Likewise.
14959         * csu/check_fds.c: Likewise.
14960         * elf/dl-load.c: Likewise.
14961         * elf/dl-open.c: Likewise.
14962         * elf/reldep3.c: Likewise.
14963         * elf/reldep.c: Likewise.
14964         * elf/sprof.c: Likewise.
14965         * iconv/iconv_charmap.c: Likewise.
14966         * iconv/skeleton.c: Likewise.
14967         * iconv/strtab.c: Likewise.
14968         * io/lockf64.c: Likewise.
14969         * libio/libioP.h: Likewise.
14970         * resolv/gai_notify.c: Likewise.
14971         * resolv/ns_name.c: Likewise.
14972         * resolv/ns_samedomain.c: Likewise.
14973         * resolv/res_send.c: Likewise.
14974         * stdlib/random.c: Likewise.
14975         * sunrpc/rpc/xdr.h: Likewise.
14976         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
14977         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14978         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14979         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14980         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14981         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14982         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14983         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14984         * sysdeps/mach/hurd/check_fds.c: Likewise.
14985         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14986         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
14987         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14988         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14989         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14990         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14991         * sysdeps/pthread/aio_notify.c: Likewise.
14992         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
14993         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
14994         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
14995         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14996         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
14997
14998 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14999
15000         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
15001         version if bit_Slow_SSE4_2 is set.
15002         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15003         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15004
15005 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15006
15007         [BZ #15867]
15008         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
15009         trampoline stack frame information.
15010         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
15011         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
15012         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
15013         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
15014         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
15015         * sysdeps/unix/sysv/linux/powerpc/init-first.c
15016         (_libc_vdso_platform_setup): Initialize the signal trampolines.
15017         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
15018         sa_flags value.
15019         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
15020         interrupting a syscall and set with option SA_SIGINFO.
15021
15022 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15023
15024         [BZ #15531]
15025         * math/s_cproj.c (__cproj): Only return an infinity if one part of
15026         argument is infinite.
15027         * math/s_cprojf.c (__cprojf): Likewise.
15028         * math/s_cprojl.c (__cprojl): Likewise.
15029         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
15030         * math/libm-test.inc (cproj_test_data): Add more tests.
15031
15032         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
15033
15034         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
15035         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
15036         size.  Use __ffs to determine corresponding shift.
15037
15038 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15039             Roland McGrath  <roland@hack.frob.com>
15040
15041         * Makefile (INSTALL): Remove trailing blank lines from output of
15042         makeinfo.
15043
15044 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15045
15046         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
15047         Align 32 bit compat elf_greg to 8 bytes.
15048
15049 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15050
15051         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
15052
15053 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
15054
15055         * string/strcoll_l.c (coll_seq): New structure.
15056         (get_next_seq_cached): New function.
15057         (get_next_seq): New function.
15058         (do_compare): New function.
15059         (STRCOLL): Use GNU style definition.  Simplify implementation
15060         by using get_next_seq, get_next_seq_cached and do_compare.
15061
15062 2013-08-16  Florian Weimer  <fweimer@redhat.com>
15063
15064         [BZ #14699]
15065         CVE-2013-4237
15066         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
15067         member.
15068         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
15069         member.
15070         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
15071         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
15072         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
15073         conditional.
15074         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
15075         GETDENTS_64BIT_ALIGNED.
15076         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15077         * manual/filesys.texi (Reading/Closing Directory): Document
15078         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
15079         strongly.
15080         * manual/conf.texi (Limits for Files): Add portability note to
15081         NAME_MAX, PATH_MAX.
15082         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
15083
15084 2013-08-13  Andreas Schwab  <schwab@suse.de>
15085
15086         [BZ #15749]
15087         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
15088         of fabs.
15089         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
15090         LDBL_MAX_EXP >= 16384]: Add tests for it.
15091
15092 2013-08-12  David S. Miller  <davem@davemloft.net>
15093
15094         * version.h (RELEASE): Set to "development".
15095         (VERSION): Set to "2.18.90".
15096         * NEWS: Add 2.19 section.
15097
15098 2013-08-03  David S. Miller  <davem@davemloft.net>
15099
15100         * po/ko.po: Update Korean translation from translation project.
15101
15102 2013-08-01  David S. Miller  <davem@davemloft.net>
15103
15104         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
15105         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
15106         Bilka.
15107
15108 2013-07-30  David S. Miller  <davem@davemloft.net>
15109
15110         * po/fr.po: Update French translation from translation project.
15111
15112 2013-07-28  David S. Miller  <davem@davemloft.net>
15113
15114         * po/cs.po: Update Czech translation from translation project.
15115
15116         * po/sv.po: Update Swedish translation from translation project.
15117
15118 2013-07-27  David S. Miller  <davem@davemloft.net>
15119
15120         * po/eo.po: Update Esperanto translation from translation project.
15121
15122         * po/vi.po: Update Vietnamese translation from translation project.
15123
15124         * po/de.po: Update German translation from translation project.
15125
15126 2013-07-26  David S. Miller  <davem@davemloft.net>
15127
15128         * po/bg.po: Update Bulgarian translation from translation project.
15129
15130         * po/nl.po: Update Dutch translation from translation project.
15131         * po/pl.po: Update Polish translation from translation project.
15132         * po/ru.po: Update Russian translation from translation project.
15133
15134 2013-07-24  David S. Miller  <davem@davemloft.net>
15135
15136         * po/libc.pot: Update.
15137
15138 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15139
15140         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
15141         variable page size.
15142         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
15143         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
15144         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
15145
15146 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15147
15148         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
15149
15150 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15151             Andreas Schwab  <schwab@suse.de>
15152             Roland McGrath  <roland@hack.frob.com>
15153             Joseph Myers  <joseph@codesourcery.com>
15154             Carlos O'Donell  <carlos@redhat.com>
15155
15156         [BZ #15755]
15157         * config.h.in: Define HAVE_PT_CHOWN.
15158         * config.make.in (build-pt-chown): New variable.
15159         * configure.in (--enable-pt_chown): New configure option.
15160         * configure: Regenerate.
15161         * login/Makefile: Include Makeconfig.  Build pt_chown only if
15162         build-pt-chown is enabled.
15163         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
15164         pt_chown to fix pty ownership.
15165         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
15166         CLOSE_ALL_FDS.
15167         * manual/install.texi (Configuring and compiling): Mention
15168         --enable-pt_chown. Add @findex for grantpt.
15169         * INSTALL: Regenerate.
15170
15171 2013-07-20  David S. Miller  <davem@davemloft.net>
15172
15173         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
15174         difference between 32-bit and 64-bit.
15175
15176 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
15177
15178         [BZ #15711]
15179         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
15180         Avoid system header dependency with -ffreestanding.
15181         ($(objpfx)bits/syscall%d): Likewise.
15182
15183 2013-07-13  David S. Miller  <davem@davemloft.net>
15184
15185         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
15186         underflows from atanl/atan2l due to bug 15319.
15187         (casinh_test_data): Likewise.
15188
15189 2013-07-07  David S. Miller  <davem@davemloft.net>
15190
15191         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
15192
15193 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
15194
15195         * sysdeps/i386/fpu/libm-test-ulps: Update.
15196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15197
15198 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15199
15200         * configure.in (--enable-lock-elision): Fix message text.
15201         * INSTALL: Regenerate.
15202         * configure: Regenerate.
15203
15204 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15205
15206         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15207
15208 2013-07-03  Andreas Jaeger  <aj@suse.de>
15209
15210         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
15211         define.
15212         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
15213         (ptrace_peeksiginfo_args): Add.
15214         (__ptrace_peeksiginfo_flags): Add.
15215         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15216         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15217         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15218
15219 2013-07-03  Allan McRae  <allan@archlinux.org>
15220
15221         * sysdeps/i386/fpu/libm-test-ulps: Update.
15222
15223 2013-07-02  David S. Miller  <davem@davemloft.net>
15224
15225         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15226
15227 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
15228
15229         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15230
15231 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15232
15233         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
15234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15235
15236 2013-07-02  Andi Kleen <ak@linux.intel.com>
15237
15238         * config.h.in (ENABLE_LOCK_ELISION): Add.
15239         * configure.in (--enable-lock-elision): Add option.
15240         * manual/install.texi: Document --enable lock elision.
15241         * configure: Regenerate
15242         * INSTALL: Regenerate.
15243
15244 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
15245
15246         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
15247         SSE4.2 strcasecmp for libc.a.
15248         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
15249
15250 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15251
15252         [BZ #13304]
15253         * soft-fp/op-common.h (_FP_FMA): New macro.
15254         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
15255         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
15256         (_FP_MUL_MEAT_1_imm): ... here.
15257         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
15258         (_FP_MUL_MEAT_1_wide): ... here.
15259         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
15260         (_FP_MUL_MEAT_1_hard): ... here.
15261         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
15262         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
15263         (_FP_MUL_MEAT_2_wide): ... here.
15264         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
15265         (_FP_MUL_MEAT_2_wide_3mul): ... here.
15266         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
15267         (_FP_MUL_MEAT_2_gmp): ... here.
15268         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
15269         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
15270         (_FP_MUL_MEAT_4_wide): ... here.
15271         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
15272         (_FP_MUL_MEAT_4_gmp): ... here.
15273         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
15274         (_FP_WFRACBITS_DW_S): Likewise.
15275         (_FP_WFRACXBITS_DW_S): Likewise.
15276         (_FP_HIGHBIT_DW_S): Likewise.
15277         (FP_FMA_S): Likewise.
15278         (_FP_FRAC_HIGH_DW_S): Likewise.
15279         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
15280         (_FP_WFRACBITS_DW_D): Likewise.
15281         (_FP_WFRACXBITS_DW_D): Likewise.
15282         (_FP_HIGHBIT_DW_D): Likewise.
15283         (FP_FMA_D): Likewise.
15284         (_FP_FRAC_HIGH_DW_D): Likewise.
15285         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
15286         (_FP_WFRACBITS_DW_E): Likewise.
15287         (_FP_WFRACXBITS_DW_E): Likewise.
15288         (_FP_HIGHBIT_DW_E): Likewise.
15289         (FP_FMA_E): Likewise.
15290         (_FP_FRAC_HIGH_DW_E): Likewise.
15291         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
15292         (_FP_WFRACBITS_DW_Q): Likewise.
15293         (_FP_WFRACXBITS_DW_Q): Likewise.
15294         (_FP_HIGHBIT_DW_Q): Likewise.
15295         (FP_FMA_Q): Likewise.
15296         (_FP_FRAC_HIGH_DW_Q): Likewise.
15297         * soft-fp/fmasf4.c: New file.
15298         * soft-fp/fmadf4.c: Likewise.
15299         * soft-fp/fmatf4.c: Likewise.
15300
15301 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15302
15303         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15304         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
15305         Silvermont.
15306         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
15307         macro.
15308         (index_Slow_SSE4_2): Likewise.
15309         (index_Prefer_PMINUB_for_stringop): Likewise.
15310         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
15311         bit_Slow_SSE4_2 is set.
15312         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
15313         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15314
15315 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15316
15317         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
15318         rtld_global._dl_hwcap2.
15319         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
15320         POWER8.
15321         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
15322         POWER8 feature descriptions defined in _dl_hwcap2.
15323         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
15324         string handling for POWER8 feature bits.
15325         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
15326         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
15327         _dl_powerpc_cap_flags.
15328         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
15329         * sysdeps/powerpc/rtld-global-offsets.sym
15330         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
15331         _dl_hwcap2 in the rtld_global_ro structure.
15332
15333 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15334
15335         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
15336         hardware capabilities in support of AT_HWCAP2.
15337         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
15338         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
15339         GLRO(dl_hwcap2).
15340         (_dl_show_auxv): Add support for calling _dl_procinfo to display
15341         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
15342         explicitly the unknown a_type display mechanism is used.
15343         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
15344         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
15345         struct member.
15346         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
15347         to macro prototype for AT_HWCAP2 support.
15348         * sysdeps/i386/dl-procinfo.h: Likewise.
15349         * sysdeps/s390/dl-procinfo.h: Likewise.
15350         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
15351         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
15352         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
15353         return -1 for unknown a_type display fallback.
15354         * sysdeps/sparc/dl-procinfo.h: Likewise.
15355         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
15356         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
15357
15358 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
15359
15360         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
15361         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
15362
15363 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
15364
15365         [BZ #12492]
15366         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
15367         mprotect making __stack_prot writable.
15368
15369 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15370             Joseph Myers  <joseph@codesourcery.com>
15371
15372         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
15373         as being properly aligned.
15374
15375 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
15376
15377         * dlfcn/modstatic5.c: New file.
15378         * dlfcn/tststatic5.c: New file.
15379         * dlfcn/Makefile (tests): Add tststatic5.
15380         (tests-static): Likewise.
15381         (modules-names): Add modstatic5.
15382         (tststatic5-ENV): New variable.
15383         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
15384
15385         [BZ #15022]
15386         * elf/dl-support.c (_dl_main_map): New variable.
15387         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
15388         (_dl_nns, _dl_load_adds): Set to 1.
15389         (_dl_initial_searchlist): Refer to _dl_main_map.
15390         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
15391         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
15392         call to _dl_get_origin.
15393         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
15394         around call_map.
15395         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
15396         * dlfcn/modstatic3.c: New file.
15397         * dlfcn/tststatic3.c: New file.
15398         * dlfcn/tststatic4.c: New file.
15399         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
15400         (tests-static): Likewise.
15401         (modules-names): Add modstatic3.
15402         (tststatic3-ENV, tststatic4-ENV): New variables.
15403         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
15404         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
15405
15406 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
15407
15408         * configure.in (CC): Require GCC version 4.4 or later.
15409         * configure: Regenerated.
15410         * manual/install.texi (Tools for Compilation): Update GCC version
15411         requirement.
15412         * INSTALL: Regenerated.
15413
15414 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15415
15416         [BZ #15674]
15417         * string/test-memcmp.c (check2): New.
15418         (main): Call check2.
15419
15420         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
15421
15422 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
15423
15424         [BZ #15022]
15425         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
15426         over to...
15427         (dl_open_worker) [!SHARED]: ... here.
15428
15429 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15430
15431         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
15432
15433 2013-06-25  Richard Henderson  <rth@redhat.com>
15434
15435         * locale/programs/locarchive.c: Include <libc-internal.h>
15436
15437 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
15438
15439         * manual/texinfo.tex: Update to version 2013-06-21.17, with
15440         trailing whitespace removed.
15441
15442 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15443
15444         [BZ #10283]
15445         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
15446         * locale/programs/locarchive.c: Include libc-mmap.h.
15447         (prepare_address_space): Take two new outputs (the mmap base and len).
15448         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
15449         values.
15450         (create_archive): Declare new mmap base and len values for
15451         prepare_address_space, and store the result in ah.
15452         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
15453         (enlarge_archive): If ah->mmap_base is not NULL, use that and
15454         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15455         Declare new mmap base and len values for
15456         prepare_address_space, and store the result in new_ah.
15457         (open_archive): Declare new mmap base and len values for
15458         prepare_address_space, and store the result in ah.
15459         (close_archive): If ah->mmap_base is not NULL, use that and
15460         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15461         * sysdeps/generic/libc-mmap.h: New file.
15462
15463 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15464
15465         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
15466         (ALIGN_UP): Likewise.
15467         (PTR_ALIGN_DOWN): Likewise.
15468         (PTR_ALIGN_UP): Likewise.
15469
15470 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15471
15472         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
15473         entry mapped to PPC_PLATFORM_POWER8.
15474         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
15475         POWER8.
15476         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
15477         (_dl_string_platform): Add case for exporting platform position for
15478         POWER8.
15479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
15480         search path to sysdeps/powerpc/powerpc32/power8 directory.
15481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
15482         search path to sysdeps/powerpc/powerpc64/power8 directory.
15483         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
15484         power7 directories.
15485         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
15486         power7 directories.
15487
15488 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15489
15490         * INSTALL: Regenerate.
15491
15492         * nscd/connections.c (nscd_init): Fix comment.
15493
15494 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
15495
15496         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
15497
15498         [BZ #15667]
15499         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
15500         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
15501
15502 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15503
15504         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
15505         DL_DST_REQ_STATIC.
15506         (DL_DST_REQ_STATIC): Remove macro.
15507
15508 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
15509
15510         [BZ #7006]
15511         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
15512         with a shift of 0 bits.
15513
15514 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15515
15516         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
15517         $(tststatic-ENV).
15518
15519 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15520
15521         [BZ #15655]
15522         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
15523
15524 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15525
15526         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
15527         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
15528         accepts -fno-tree-loop-distribute-patterns.
15529         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
15530         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
15531         recursive call.
15532         * string/memset.c (memset): Likewise.
15533         * string/test-memmove.c (simple_memmove): Disable loop transformation
15534         to library calls.
15535         * string/test-memset.c (simple_memset): Likewise.
15536         * benchtests/bench-memmove.c (simple_memmove): Likewise.
15537         * benchtests/bench-memset.c (simple_memset): Likewise.
15538         * configure: Regenerated.
15539
15540 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
15541
15542         * math/test-misc.c (main): Ignore fesetround failure when failures
15543         of subsequent rounding tests would be ignored.
15544
15545         [BZ #15654]
15546         * math/fedisblxcpt.c (fedisableexcept): Return 0.
15547         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
15548         * math/fegetenv.c (__fegetenv): Return 0.
15549         * math/fegetexcept.c (fegetexcept): Return 0.
15550         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
15551         FE_TONEAREST.
15552         * math/feholdexcpt.c (feholdexcept): Return 0.
15553         * math/fesetenv.c (__fesetenv): Return 0.
15554         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
15555         argument FE_TONEAREST.
15556         * math/feupdateenv.c (__feupdateenv): Return 0.
15557         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
15558
15559 2013-06-18  Roland McGrath  <roland@hack.frob.com>
15560
15561         * elf/rtld-Rules (rtld-compile-command.S): New variable.
15562         (rtld-compile-command.s, rtld-compile-command.c): New variables.
15563         ($(objpfx)rtld-%.os rules): Use them.
15564
15565 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15566
15567         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
15568         fields.
15569
15570 2013-06-17  Roland McGrath  <roland@hack.frob.com>
15571
15572         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
15573         length of target pattern, then descending length of dependency pattern.
15574         * configure.in (AWK): Require gawk 3.1.2 or newer.
15575         * manual/install.texi (Tools for Compilation): Say that we do.
15576         * configure: Regenerated.
15577
15578         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
15579         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
15580         * scripts/sysd-rules.awk: ... this new script.
15581         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
15582         than a glob-style pattern.
15583
15584 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
15585
15586         * math/test-misc.c (main): Do not treat incorrectly rounded
15587         conversions as failure unless ROUNDING_TESTS passes.
15588
15589 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
15590
15591         [BZ #15631]
15592         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
15593         restore exception state around main square root computation, then
15594         check for inexactness explicitly.
15595
15596         * math/libm-test.inc (fma_test_data): Add another test.
15597
15598 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
15599
15600         * manual/threads.texi (Non-POSIX Extensions): New document
15601         node.  Document pthread_getattr_default_np and
15602         pthread_setattr_default_np.
15603
15604         * Versions.def (libpthread): Add GLIBC_2.18.
15605         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
15606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15607         Likewise.
15608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15609         Likewise.
15610         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15611         Likewise.
15612         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15613         Likewise.
15614         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
15615         Likewise.
15616         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
15617         Likewise.
15618         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
15619         Likewise.
15620         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15621         Likewise.
15622         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
15623         Likewise.
15624
15625 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15626
15627         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15628         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
15629
15630 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15631             H.J. Lu  <hjl.tools@gmail.com>
15632
15633         [BZ #15627]
15634         * sysdeps/x86_64/rtld-memset.c: Remove file.
15635         * sysdeps/x86_64/rtld-memset.S: New file.
15636
15637 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
15638
15639         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
15640         (test_in_one_mode): Take arguments for whether the rounding mode
15641         is supported for each floating-point type.
15642         (do_test): Pass new arguments to test_in_one_mode using
15643         ROUNDING_TESTS.
15644
15645 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15646
15647         * posix/tst-waitid.c (do_test): Distinguish different instances of
15648         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
15649         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
15650         before entering the kernel for waitpid.
15651
15652 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15653
15654         * NEWS: Fix note on clock function precision.  Text by Roland
15655         McGrath.
15656
15657 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15658
15659         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
15660         it into place only when and if the sanity check passes.
15661
15662 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
15663
15664         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
15665         output for whether conversion result is exact.  Take argument
15666         indicating whether type is IBM long double.
15667         (round_for_all): Change need_exact field to ibm_ld.
15668         * stdlib/tst-strtod-round.c (struct exactness): New type.
15669         (struct test): Change bool ld_ok field to struct exactness exact.
15670         (TEST): Update all definitions for change to field.
15671         (tests): Regenerate array contents.
15672         (test_in_one_mode): Take pointer to new field instead of old ld_ok
15673         field value.  Check for IBM long double here.
15674         (do_test): Update calls to test_in_one_mode.
15675
15676 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15677
15678         [BZ #12515]
15679         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
15680         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
15681
15682 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15683
15684         [BZ #15605]
15685         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
15686         generated by the compiler on loop optimizations.
15687         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
15688         general definitions.
15689
15690 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
15691
15692         * math/bug-nextafter.c: Include <math-tests.h>.
15693         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15694         the relevant type.
15695         * math/bug-nexttoward.c: Include <math-tests.h>.
15696         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15697         the relevant type.
15698         * math/test-misc.c: Include <math-tests.h>.
15699         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15700         the relevant type.
15701
15702 2013-06-12  Andreas Jaeger  <aj@suse.de>
15703
15704         * po/ia.po: Update Interlingua translation from translation
15705         project.
15706
15707 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
15708
15709         * include/fenv.h: Include stdbool.h.
15710         (struct rm_ctx): New structure.
15711         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
15712         Define macro.
15713         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
15714         (SET_RESTORE_ROUNDF): Likewise.
15715         (SET_RESTORE_ROUNDL): Likewise.
15716         (SET_RESTORE_ROUND_NOEX): Likewise.
15717         (SET_RESTORE_ROUND_NOEXF): Likewise.
15718         (SET_RESTORE_ROUND_NOEXL): Likewise.
15719         (SET_RESTORE_ROUND_53BIT): Likewise.
15720         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
15721         (libc_feresetround_noexf_ctx): Likewise.
15722         (libc_feresetround_noexl_ctx): Likewise.
15723         (libc_feholdsetround_53bit_ctx): Likewise.
15724         (libc_feresetround_53bit_ctx): Likewise.
15725         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
15726         (libc_feholdexcept_setround_sse_ctx): New function.
15727         (libc_fesetenv_sse_ctx): Likewise.
15728         (libc_feupdateenv_sse_ctx): Likewise.
15729         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
15730         (libc_feholdexcept_setround_387_ctx): Likewise.
15731         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
15732         (libc_feholdsetround_387_prec_ctx): Likewise.
15733         (libc_feholdsetround_387_ctx): Likewise.
15734         (libc_feholdsetround_387_53bit_ctx): Likewise.
15735         (libc_feholdsetround_sse_ctx): Likewise.
15736         (libc_feresetround_sse_ctx): Likewise.
15737         (libc_feresetround_387_ctx): Likewise.
15738         (libc_feupdateenv_387_ctx): Likewise.
15739         (libc_feholdexcept_setroundf_ctx): Define macro.
15740         (libc_fesetenvf_ctx): Likewise.
15741         (libc_feupdateenvf_ctx): Likewise.
15742         (libc_feholdsetroundf_ctx): Likewise.
15743         (libc_feresetroundf_ctx): Likewise.
15744         (libc_feholdexcept_setround_ctx): Likewise.
15745         (libc_fesetenv_ctx): Likewise.
15746         (libc_feupdateenv_ctx): Likewise.
15747         (libc_feholdsetround_ctx): Likewise.
15748         (libc_feresetround_ctx): Likewise.
15749         (libc_feholdexcept_setroundl_ctx): Likewise.
15750         (libc_feupdateenvl_ctx): Likewise.
15751         (libc_feholdsetroundl_ctx): Likewise.
15752         (libc_feresetroundl_ctx): Likewise.
15753         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
15754         (libc_feresetround_53bit_ctx): Likewise.
15755
15756 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15757
15758         * locale/iso-639.def: Convert to UTF-8.
15759
15760 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
15761
15762         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
15763         (EXCEPTION_TESTS_double): Likewise.
15764         (EXCEPTION_TESTS_long_double): Likewise.
15765         (EXCEPTION_TESTS): Likewise.
15766         * math/libm-test.inc (test_exceptions): Only test exceptions if
15767         EXCEPTION_TESTS (FLOAT).
15768
15769 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15770
15771         * benchtests/Makefile (string-bench): Add strcpy_chk and
15772         stpcpy_chk.
15773         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
15774         * benchtests/bench-stpcpy_chk.c: New file.
15775         * benchtests/bench-strcpy_chk-ifunc.c: New file.
15776         * benchtests/bench-strcpy_chk.c: New file.
15777         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
15778         code.
15779         (do_test): Likewise.
15780
15781 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15782
15783         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
15784         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
15785         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
15786         with tabs where appropriate.
15787         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
15788         dl-procinfo.h.
15789         [PPC_PLATFORM_PPC440]: Likewise.
15790         [PPC_PLATFORM_PPC464]: Likewise.
15791         [PPC_PLATFORM_PPC476]: Likewise.
15792         (_dl_string_platform): Add support for detecting ppc405, ppc440,
15793         ppc464, and ppc476 platform strings merging from ports/
15794         dl-procinfo.h.
15795
15796 2013-06-11  Andreas Schwab  <schwab@suse.de>
15797
15798         [BZ #14991]
15799         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
15800         (from_ucs4_idx): Regenerate.
15801         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
15802         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
15803         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
15804         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
15805         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
15806         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
15807         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
15808         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
15809         from FROM_LOOP and TO_LOOP specific macros.
15810         (BODY): Handle combining characters.
15811         * iconvdata/BIG5HKSCS.irreversible: Update.
15812         * iconvdata/BIG5HKSCS.precomposed: New file.
15813         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
15814         characters.
15815         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
15816
15817 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15818
15819         * include/sys/time.h: Fix indentation and add copyright header.
15820
15821         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
15822         (do_test): Likewise.
15823         * string/test-memchr.c (do_one_test): Likewise.
15824         (do_test): Likewise.
15825         * string/test-memcmp.c (do_one_test): Likewise.
15826         (do_test): Likewise.
15827         * string/test-memcpy.c (do_one_test): Likewise.
15828         (do_test): Likewise.
15829         * string/test-memmem.c (do_one_test): Likewise.
15830         (do_test): Likewise.
15831         (do_random_tests): Likewise.
15832         * string/test-memmove.c (do_one_test): Likewise.
15833         (do_test): Likewise.
15834         * string/test-memset.c (do_one_test): Likewise.
15835         (do_test): Likewise.
15836         * string/test-rawmemchr.c (do_one_test): Likewise.
15837         (do_test): Likewise.
15838         * string/test-strcasecmp.c (do_one_test): Likewise.
15839         (do_test): Likewise.
15840         * string/test-strcasestr.c (do_one_test): Likewise.
15841         (do_test): Likewise.
15842         * string/test-strcat.c (do_one_test): Likewise.
15843         (do_test): Likewise.
15844         * string/test-strchr.c (do_one_test): Likewise.
15845         (do_test): Likewise.
15846         * string/test-strcmp.c (do_one_test): Likewise.
15847         (do_test): Likewise.
15848         * string/test-strcpy.c (do_one_test): Likewise.
15849         (do_test): Likewise.
15850         * string/test-string.h: Likewise.
15851         (test_init): Likewise.
15852         * string/test-strlen.c (do_one_test): Likewise.
15853         (do_test): Likewise.
15854         * string/test-strncasecmp.c (do_one_test): Likewise.
15855         (do_test): Likewise.
15856         * string/test-strncat.c (do_one_test): Likewise.
15857         (do_test): Likewise.
15858         * string/test-strncmp.c (do_one_test): Likewise.
15859         (do_test_limit): Likewise.
15860         (do_test): Likewise.
15861         * string/test-strncpy.c (do_one_test): Likewise.
15862         (do_test): Likewise.
15863         * string/test-strnlen.c (do_one_test): Likewise.
15864         (do_test): Likewise.
15865         * string/test-strpbrk.c (do_one_test): Likewise.
15866         (do_test): Likewise.
15867         * string/test-strrchr.c (do_one_test): Likewise.
15868         (do_test): Likewise.
15869         * string/test-strspn.c (do_one_test): Likewise.
15870         (do_test): Likewise.
15871         * string/test-strstr.c (do_one_test): Likewise.
15872         (do_test): Likewise.
15873
15874         * benchtests/Makefile (string-bench): Add string benchmarks.
15875         * benchtests/bench-bcopy-ifunc.c: New file.
15876         * benchtests/bench-bcopy.c: New file.
15877         * benchtests/bench-bzero-ifunc.c: New file.
15878         * benchtests/bench-bzero.c: New file.
15879         * benchtests/bench-memccpy-ifunc.c: New file.
15880         * benchtests/bench-memccpy.c: New file.
15881         * benchtests/bench-memchr-ifunc.c: New file.
15882         * benchtests/bench-memchr.c: New file.
15883         * benchtests/bench-memcmp-ifunc.c: New file.
15884         * benchtests/bench-memcmp.c: New file.
15885         * benchtests/bench-memmem-ifunc.c: New file.
15886         * benchtests/bench-memmem.c: New file.
15887         * benchtests/bench-memmove-ifunc.c: New file.
15888         * benchtests/bench-memmove.c: New file.
15889         * benchtests/bench-mempcpy-ifunc.c: New file.
15890         * benchtests/bench-mempcpy.c: New file.
15891         * benchtests/bench-memset-ifunc.c: New file.
15892         * benchtests/bench-memset.c: New file.
15893         * benchtests/bench-rawmemchr-ifunc.c: New file.
15894         * benchtests/bench-rawmemchr.c: New file.
15895         * benchtests/bench-stpcpy-ifunc.c: New file.
15896         * benchtests/bench-stpcpy.c: New file.
15897         * benchtests/bench-stpncpy-ifunc.c: New file.
15898         * benchtests/bench-stpncpy.c: New file.
15899         * benchtests/bench-strcasecmp-ifunc.c: New file.
15900         * benchtests/bench-strcasecmp.c: New file.
15901         * benchtests/bench-strcasestr-ifunc.c: New file.
15902         * benchtests/bench-strcasestr.c: New file.
15903         * benchtests/bench-strcat-ifunc.c: New file.
15904         * benchtests/bench-strcat.c: New file.
15905         * benchtests/bench-strchr-ifunc.c: New file.
15906         * benchtests/bench-strchr.c: New file.
15907         * benchtests/bench-strchrnul-ifunc.c: New file.
15908         * benchtests/bench-strchrnul.c: New file.
15909         * benchtests/bench-strcmp-ifunc.c: New file.
15910         * benchtests/bench-strcmp.c: New file.
15911         * benchtests/bench-strcpy-ifunc.c: New file.
15912         * benchtests/bench-strcpy.c: New file.
15913         * benchtests/bench-strcspn-ifunc.c: New file.
15914         * benchtests/bench-strcspn.c: New file.
15915         * benchtests/bench-strlen-ifunc.c: New file.
15916         * benchtests/bench-strlen.c: New file.
15917         * benchtests/bench-strncasecmp-ifunc.c: New file.
15918         * benchtests/bench-strncasecmp.c: New file.
15919         * benchtests/bench-strncat-ifunc.c: New file.
15920         * benchtests/bench-strncat.c: New file.
15921         * benchtests/bench-strncmp-ifunc.c: New file.
15922         * benchtests/bench-strncmp.c: New file.
15923         * benchtests/bench-strncpy-ifunc.c: New file.
15924         * benchtests/bench-strncpy.c: New file.
15925         * benchtests/bench-strnlen-ifunc.c: New file.
15926         * benchtests/bench-strnlen.c: New file.
15927         * benchtests/bench-strpbrk-ifunc.c: New file.
15928         * benchtests/bench-strpbrk.c: New file.
15929         * benchtests/bench-strrchr-ifunc.c: New file.
15930         * benchtests/bench-strrchr.c: New file.
15931         * benchtests/bench-strspn-ifunc.c: New file.
15932         * benchtests/bench-strspn.c: New file.
15933         * benchtests/bench-strstr-ifunc.c: New file.
15934         * benchtests/bench-strstr.c: New file.
15935
15936         * benchtests/Makefile: Disable parallel execution of targets.
15937         (string-bench): Add memcpy.
15938         (benchset): New variable to store a list of benchmark sets.
15939         (bench-func): Renamed from bench.
15940         (bench-set): New target.
15941         (bench): Depend on bench-func and bench-set.
15942         * benchtests/README: Add section on benchmark sets.
15943         * benchtests/bench-memcpy-ifunc.c: New file.
15944         * benchtests/bench-memcpy.c: New file.
15945         * benchtests/bench-string.h: New file.
15946
15947 2013-06-11  Andreas Schwab  <schwab@suse.de>
15948
15949         [BZ #15577]
15950         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
15951         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
15952         values in the triple.
15953         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
15954         terminator in the group key.
15955
15956 2013-06-11  Andreas Jaeger  <aj@suse.de>
15957
15958         * po/zh_TW.po: Update Chinese (traditional) translation from
15959         translation project.
15960
15961 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15962
15963         * include/time.h (__clock_gettime): Add libc_hidden_proto.
15964         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
15965         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
15966         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15967         (clock_getcpuclockid): Likewise.
15968         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
15969         Add weak_alias and libc_hidden_def.
15970         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
15971         * rt/clock_gettime.c (clock_gettime): Rename to
15972         __clock_gettime.  Add weak_alias and libc_hidden_def.
15973         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
15974         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
15975         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
15976         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
15977         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
15978         Likewise.
15979         * rt/clock_settime.c (clock_settime): Rename to
15980         __clock_settime.  Add weak_alias and libc_hidden_def.
15981         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
15982
15983 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
15984
15985         * mach/err_boot.sub: Remove trailing whitespace.
15986         * mach/err_ipc.sub: Likewise.
15987         * mach/err_mach.sub: Likewise.
15988
15989         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
15990         (ROUNDING_TESTS_double): Likewise.
15991         (ROUNDING_TESTS_long_double): Likewise.
15992         (ROUNDING_TESTS): Likewise.
15993         * math/libm-test.inc: Include <math-tests.h>.
15994         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
15995         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
15996         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
15997         (IF_ROUND_INIT_FE_UPWARD): Likewise.
15998
15999 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16000
16001         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
16002         of assigning.
16003
16004 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
16005
16006         * sysdeps/gnu/errlist.awk: Do not generate space at end of
16007         otherwise empty TRANS lines.
16008         * sysdeps/gnu/errlist.c: Regenerated.
16009
16010         * catgets/gencat.c (error_print): Use (void) in function
16011         definition.
16012         * crypt/crypt_util.c (__init_des): Likewise.
16013         * crypt/speeds.c (Stop): Likewise.
16014         (main): Likewise.
16015         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
16016         * inet/ruserpass.c (token): Likewise.
16017         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
16018         * intl/localealias.c (extend_alias_table): Likewise.
16019         * intl/plural-exp.c (init_germanic_plural): Likewise.
16020         * libio/fcloseall.c (__fcloseall): Likewise.
16021         * libio/genops.c (_IO_flush_all): Likewise.
16022         (_IO_flush_all_linebuffered): Likewise.
16023         (_IO_cleanup): Likewise.
16024         (_IO_iter_begin): Likewise.
16025         (_IO_iter_end): Likewise.
16026         (_IO_list_lock): Likewise.
16027         (_IO_list_unlock): Likewise.
16028         (_IO_list_resetlock): Likewise.
16029         * libio/getchar.c (getchar): Likewise.
16030         * libio/getchar_u.c (getchar_unlocked): Likewise.
16031         * libio/getwchar.c (getwchar): Likewise.
16032         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
16033         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
16034         * login/getpt.c (__getpt): Likewise.
16035         * login/tst-utmp.c (main): Likewise.
16036         * malloc/hooks.c (__malloc_check_init): Likewise.
16037         * malloc/malloc.c (__malloc_stats): Likewise.
16038         * malloc/mtrace.c (tr_break): Likewise.
16039         (mtrace): Likewise.
16040         (muntrace): Likewise.
16041         * misc/fstab.c (endfsent): Likewise.
16042         * misc/getclktck.c (__getclktck): Likewise.
16043         * misc/getdtsz.c (__getdtablesize): Likewise.
16044         * misc/gethostid.c (gethostid): Likewise.
16045         * misc/getpagesize.c (__getpagesize): Likewise.
16046         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
16047         (__get_nprocs): Likewise.
16048         (__get_phys_pages): Likewise.
16049         (__get_avphys_pages): Likewise.
16050         * misc/getttyent.c (getttyent): Likewise.
16051         (setttyent): Likewise.
16052         (endttyent): Likewise.
16053         * misc/getusershell.c (getusershell): Likewise.
16054         (endusershell): Likewise.
16055         (setusershell): Likewise.
16056         (initshells): Likewise.
16057         * misc/hsearch.c (__hdestroy): Likewise.
16058         * misc/sync.c (sync): Likewise.
16059         * misc/syslog.c (closelog_internal): Likewise.
16060         (closelog): Likewise.
16061         * misc/ttyslot.c (ttyslot): Likewise.
16062         * misc/vhangup.c (vhangup): Likewise.
16063         * posix/fork.c (__fork): Likewise.
16064         * posix/getegid.c (__getegid): Likewise.
16065         * posix/geteuid.c (__geteuid): Likewise.
16066         * posix/getgid.c (__getgid): Likewise.
16067         * posix/getpid.c (__getpid): Likewise.
16068         * posix/getppid.c (__getppid): Likewise.
16069         * posix/getuid.c (__getuid): Likewise.
16070         * posix/pause.c (pause): Likewise.
16071         * posix/setpgrp.c (setpgrp): Likewise.
16072         * posix/setsid.c (__setsid): Likewise.
16073         * posix/test-vfork.c (noop): Likewise.
16074         * resolv/gethnamaddr.c (_endhtent): Likewise.
16075         (_gethtent): Likewise.
16076         (ht_endhostent): Likewise.
16077         (gethostent): Likewise.
16078         (dns_service): Likewise.
16079         * stdlib/drand48.c (drand48): Likewise.
16080         * stdlib/lrand48.c (lrand48): Likewise.
16081         * stdlib/mrand48.c (mrand48): Likewise.
16082         * stdlib/rand.c (rand): Likewise.
16083         * stdlib/random.c (__random): Likewise.
16084         * stdlib/setenv.c (clearenv): Likewise.
16085         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
16086         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
16087         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
16088         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
16089         (__get_nprocs): Likewise.
16090         (__get_phys_pages): Likewise.
16091         (__get_avphys_pages): Likewise.
16092         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
16093         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
16094         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
16095         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
16096         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
16097         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
16098         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
16099         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
16100         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
16101         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
16102         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
16103         * sysdeps/mach/hurd/sync.c (sync): Likewise.
16104         * sysdeps/posix/clock.c (clock): Likewise.
16105         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
16106         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
16107         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
16108         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
16109         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
16110         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
16111         (__get_nprocs_conf): Likewise.
16112         (__get_phys_pages): Likewise.
16113         (__get_avphys_pages): Likewise.
16114         * time/clock.c (clock): Likewise.
16115         * time/tzset.c (__tzname_max): Likewise.
16116
16117 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
16118
16119         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
16120         (__bswap_32): Do not use "register".
16121         * crypt/crypt.c (_ufc_doit_r): Likewise.
16122         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
16123         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
16124         * gmon/gmon.c (__monstartup): Likewise.
16125         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
16126         * hurd/hurdmalloc.c (more_memory): Likewise.
16127         (malloc): Likewise.
16128         (free): Likewise.
16129         (realloc): Likewise.
16130         (malloc_fork_prepare): Likewise.
16131         (malloc_fork_parent): Likewise.
16132         (malloc_fork_child): Likewise.
16133         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
16134         (_svcauth_des): Likewise.
16135         * inet/inet_lnaof.c (inet_lnaof): Likewise.
16136         * inet/inet_net.c (inet_network): Likewise.
16137         * inet/inet_netof.c (inet_netof): Likewise.
16138         * inet/rcmd.c (__validuser2_sa): Likewise.
16139         * io/fts.c (fts_open): Likewise.
16140         (fts_load): Likewise.
16141         (fts_close): Likewise.
16142         (fts_read): Likewise.
16143         (fts_children): Likewise.
16144         (fts_build): Likewise.
16145         (fts_stat): Likewise.
16146         (fts_sort): Likewise.
16147         (fts_alloc): Likewise.
16148         (fts_lfree): Likewise.
16149         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
16150         (_IO_file_xsgetn): Likewise.
16151         (_IO_file_xsgetn_mmap): Likewise.
16152         * libio/iofopncook.c (_IO_cookie_read): Likewise.
16153         (_IO_cookie_write): Likewise.
16154         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
16155         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
16156         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
16157         * malloc/obstack.c (_obstack_begin): Likewise.
16158         (_obstack_begin_1): Likewise.
16159         (_obstack_newchunk): Likewise.
16160         (_obstack_allocated_p): Likewise.
16161         (obstack_free): Likewise.
16162         (_obstack_memory_used): Likewise.
16163         * misc/getttyent.c (getttynam): Likewise.
16164         (getttyent): Likewise.
16165         (skip): Likewise.
16166         (value): Likewise.
16167         * misc/getusershell.c (initshells): Likewise.
16168         * misc/syslog.c (__vsyslog_chk): Likewise.
16169         * misc/ttyslot.c (ttyslot): Likewise.
16170         * nis/nis_hash.c (__nis_hash): Likewise.
16171         * posix/fnmatch_loop.c (FCT): Likewise.
16172         * posix/getconf.c (print_all): Likewise.
16173         (main): Likewise.
16174         * posix/getopt.c (exchange): Likewise.
16175         * posix/glob.c (globfree): Likewise.
16176         (prefix_array): Likewise.
16177         (__glob_pattern_type): Likewise.
16178         * resolv/arpa/nameser.h (NS_GET16): Likewise.
16179         (NS_GET32): Likewise.
16180         (NS_PUT16): Likewise.
16181         (NS_PUT32): Likewise.
16182         * resolv/gethnamaddr.c (getanswer): Likewise.
16183         (gethostbyname2): Likewise.
16184         (gethostbyaddr): Likewise.
16185         (_gethtent): Likewise.
16186         (_gethtbyname2): Likewise.
16187         (_gethtbyaddr): Likewise.
16188         * resolv/ns_print.c (dst_s_get_int16): Likewise.
16189         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
16190         * resolv/res_init.c (__res_vinit): Likewise.
16191         (net_mask): Likewise.
16192         * resolv/res_mkquery.c (outchar): Likewise.
16193         (PRINT): Likewise.
16194         * stdio-common/printf_fp.c (outchar): Likewise.
16195         (PRINT): Likewise.
16196         * stdio-common/printf_fphex.c (outchar): Likewise.
16197         (PRINT): Likewise.
16198         * stdio-common/printf_size.c (outchar): Likewise.
16199         (PRINT): Likewise.
16200         * stdio-common/test_rdwr.c (main): Likewise.
16201         * stdio-common/tfformat.c (matches): Likewise.
16202         * stdio-common/vfprintf.c (outchar): Likewise.
16203         (printf_unknown): Likewise.
16204         (buffered_vfprintf): Likewise.
16205         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
16206         * stdio-common/xbug.c (AppendToBuffer): Likewise.
16207         (ReadFile): Likewise.
16208         * stdlib/qsort.c (SWAP): Likewise.
16209         (_quicksort): Likewise.
16210         * stdlib/setenv.c (__add_to_environ): Likewise.
16211         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
16212         * stdlib/strtol_l.c (__strtol_l): Likewise.
16213         * stdlib/tst-strtod.c (main): Likewise.
16214         * stdlib/tst-strtol.c (main): Likewise.
16215         * stdlib/tst-strtoll.c (main): Likewise.
16216         * string/bits/string2.h (__strcmp_cc): Likewise.
16217         (__strcmp_cg): Likewise.
16218         (__strcspn_c1): Likewise.
16219         (__strcspn_c2): Likewise.
16220         (__strcspn_c3): Likewise.
16221         (__strspn_c1): Likewise.
16222         (__strspn_c2): Likewise.
16223         (__strspn_c3): Likewise.
16224         (__strsep_1c): Likewise.
16225         (__strsep_2c): Likewise.
16226         (__strsep_3c): Likewise.
16227         * string/memccpy.c (__memccpy): Likewise.
16228         * string/stpcpy.c (__stpcpy): Likewise.
16229         * string/strcmp.c (strcmp): Likewise.
16230         * string/strrchr.c (strrchr): Likewise.
16231         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
16232         Likewise.
16233         * sysdeps/mach/hurd/getcwd.c
16234         (_hurd_canonicalize_directory_name_internal): Likewise.
16235         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
16236         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
16237         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
16238         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
16239         Likewise, in both definitions.
16240         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
16241         definitions.
16242         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
16243         64] (__bswap_64): Likewise.
16244         * time/test_time.c (main): Likewise.
16245         * time/tzfile.c (__tzfile_read): Likewise.
16246         (__tzfile_compute): Likewise.
16247         * time/tzset.c (__tzset_parse_tz): Likewise.
16248         (tzset_internal): Likewise.
16249         (compute_change): Likewise.
16250         * wcsmbs/wcscat.c (__wcscat): Likewise.
16251         * wcsmbs/wcschr.c (wcschr): Likewise.
16252         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16253         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16254         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16255         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
16256         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16257         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16258         * wcsmbs/wmemchr.c (wmemchr): Likewise.
16259         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16260         * wcsmbs/wmemset.c (wmemset): Likewise.
16261
16262 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
16263
16264         * scripts/config.guess: Update to version 2013-05-16.
16265         * scripts/config.sub: Update to version 2013-04-24.
16266         * scripts/install-sh: Update to version 2011-11-20.07.
16267         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
16268         * scripts/move-if-change: Update to version 2012-01-06 07:23.
16269
16270 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
16271
16272         * debug/fgetws_u_chk.c: Fix leading whitespaces.
16273         * elf/sln.c: Likewise.
16274         * hurd/hurd/ioctl.h: Likewise.
16275         * hurd/hurdmalloc.c: Likewise.
16276         * hurd/xattr.c: Likewise.
16277         * include/shlib-compat.h: Likewise.
16278         * inet/ruserpass.c: Likewise.
16279         * libio/iofgets_u.c: Likewise.
16280         * libio/iofgetws_u.c: Likewise.
16281         * locale/programs/ld-identification.c: Likewise.
16282         * locale/programs/ld-time.c: Likewise.
16283         * mach/msg-destroy.c: Likewise.
16284         * nss/nss_files/files-netgrp.c: Likewise.
16285         * resolv/res_data.c: Likewise.
16286         * soft-fp/op-1.h: Likewise.
16287         * soft-fp/op-2.h: Likewise.
16288         * soft-fp/op-4.h: Likewise.
16289         * soft-fp/op-common.h: Likewise.
16290         * stdio-common/printf_fphex.c: Likewise.
16291         * stdlib/strtod_l.c: Likewise.
16292         * sunrpc/rpc/clnt.h: Likewise.
16293         * sysdeps/generic/framestate.c: Likewise.
16294         * sysdeps/i386/bsd-_setjmp.S: Likewise.
16295         * sysdeps/i386/bsd-setjmp.S: Likewise.
16296         * sysdeps/i386/__longjmp.S: Likewise.
16297         * sysdeps/i386/setjmp.S: Likewise.
16298         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16299         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16300         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16301         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16302         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16303         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16304         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16305         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16306         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16307         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
16308         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16309         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16310         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16311         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16312         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16313         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16314         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16315         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
16316         * sysdeps/ieee754/support.c: Likewise.
16317         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
16318         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
16319         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
16320         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
16321         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
16322         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
16323         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
16324         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
16325         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
16326         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
16327         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
16328         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
16329         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
16330         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
16331         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
16332         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
16333         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
16335
16336 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
16337
16338         * posix/transbug.c: Remove executable mode.
16339
16340 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
16341
16342         * crypt/speeds.c: Remove trailing whitespace.
16343         * dlfcn/default.c: Likewise.
16344         * elf/ifuncdep2.c: Likewise.
16345         * elf/ifuncmain1.c: Likewise.
16346         * elf/ifuncmain1vis.c: Likewise.
16347         * elf/testobj.h: Likewise.
16348         * elf/tst-stackguard1.c: Likewise.
16349         * gmon/sys/gmon.h: Likewise.
16350         * hurd/hurdmsg.c: Likewise.
16351         * hurd/new-fd.c: Likewise.
16352         * hurd/ports-get.c: Likewise.
16353         * iconvdata/ibm1008_420.c: Likewise.
16354         * inet/tst-getni1.c: Likewise.
16355         * inet/tst-getni2.c: Likewise.
16356         * libio/ioungetc.c: Likewise.
16357         * libio/wfiledoalloc.c: Likewise.
16358         * manual/libm-err-tab.pl: Likewise.
16359         * math/w_dremf.c: Likewise.
16360         * misc/ftruncate.c: Likewise.
16361         * posix/bug-glob2.c: Likewise.
16362         * posix/tst-pcre.c: Likewise.
16363         * posix/wait4.c: Likewise.
16364         * resolv/README: Likewise.
16365         * resolv/res_debug.h: Likewise.
16366         * resolv/tst-inet_ntop.c: Likewise.
16367         * setjmp/bug269-setjmp.c: Likewise.
16368         * soft-fp/extended.h: Likewise.
16369         * soft-fp/op-1.h: Likewise.
16370         * soft-fp/op-2.h: Likewise.
16371         * soft-fp/op-4.h: Likewise.
16372         * soft-fp/op-8.h: Likewise.
16373         * soft-fp/testit.c: Likewise.
16374         * stdio-common/bug16.c: Likewise.
16375         * stdlib/random.c: Likewise.
16376         * sunrpc/rpcsvc/rquota.x: Likewise.
16377         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
16378         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16379         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16380         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16381         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16382         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16383         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16384         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16385         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16386         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16387         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16388         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
16389         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16390         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16391         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16392         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16393         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16394         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16395         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16396         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16397         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16398         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16399         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
16400         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16401         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16402         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16403         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
16404         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16405         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16406         * sysdeps/ieee754/s_lib_version.c: Likewise.
16407         * sysdeps/mach/hurd/check_fds.c: Likewise.
16408         * sysdeps/mach/hurd/getsockname.c: Likewise.
16409         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
16410         * sysdeps/mach/hurd/recvfrom.c: Likewise.
16411         * sysdeps/powerpc/bits/link.h: Likewise.
16412         * sysdeps/powerpc/dl-procinfo.c: Likewise.
16413         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
16414         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
16415         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
16416         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
16417         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16418         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
16419         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
16420         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
16421         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16422         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
16423         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
16424         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
16425         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16426         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16427         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16428         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
16429         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
16430         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16431         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16432         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16433         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
16434         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
16435         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
16436         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
16437         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
16438         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
16439         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16440         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16441         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
16442         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
16443         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
16444         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
16445         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16446         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
16447         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
16448         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
16449         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
16450         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
16451         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
16452         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
16453         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
16454         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
16455         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
16456         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
16457         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
16458         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
16459         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
16460         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
16461         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
16462         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16463         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16464         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
16465         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
16466         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
16467         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
16468         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
16469         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
16470         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
16471         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
16472         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
16473         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
16474         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
16475         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
16476         * sysdeps/powerpc/sysdep.h: Likewise.
16477         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16478         * sysdeps/s390/s390-64/sub_n.S: Likewise.
16479         * sysdeps/sh/dl-trampoline.S: Likewise.
16480         * sysdeps/sh/memset.S: Likewise.
16481         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
16482         * sysdeps/sh/strlen.S: Likewise.
16483         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
16484         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
16485         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
16486         * sysdeps/sparc/sparc32/rem.S: Likewise.
16487         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
16488         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
16489         * sysdeps/sparc/sparc32/strchr.S: Likewise.
16490         * sysdeps/sparc/sparc32/udiv.S: Likewise.
16491         * sysdeps/sparc/sparc32/urem.S: Likewise.
16492         * sysdeps/sparc/sparc64/add_n.S: Likewise.
16493         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
16494         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
16495         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
16496         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
16497         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
16498         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
16499         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
16500         * sysdeps/unix/bsd/times.c: Likewise.
16501         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
16502         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
16503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
16504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
16505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
16506         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
16507         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
16508         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
16509         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
16510         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
16511         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
16512         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
16513         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
16514         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
16515         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
16516         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
16517         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
16518         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
16519         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
16520         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
16521         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
16522         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
16523         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
16524         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
16525         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
16526         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
16527         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
16528         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16529         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
16530         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
16531         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
16532         * sysdeps/x86_64/strcspn.S: Likewise.
16533
16534 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16535
16536         * locale/C-translit.h: Revert #include <stdint.h> because this is a
16537         generated file.  Regenerate properly from gen-translit.pl.
16538         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
16539         locale/C-translit.h.
16540
16541 2013-06-05  Andreas Schwab  <schwab@suse.de>
16542
16543         [BZ #15100]
16544         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
16545         week as 6 instead of -1.
16546         * time/tst-strptime.c (day_tests): Add test case.
16547
16548 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
16549
16550         * sysdeps/generic/math_private.h
16551         (libc_feholdexcept_setround_53bit): Replace with
16552         libc_feholdsetround_53bit.
16553         (libc_feupdateenv_53bit): Replace with
16554         libc_feresetround_53bit.
16555         (SET_RESTORE_ROUND_53BIT): Adjust.
16556
16557 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
16558
16559         * string/test-strchrnul.c: Add copyright header.
16560
16561         * posix/tst-getaddrinfo4.c: Increase test timeout.
16562
16563 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
16564
16565         [BZ #15536]
16566         * math/libm-test.inc (MAX_EXP): Remove
16567         (MIN_EXP): Define.
16568         (ulp): Use MIN_EXP - MANT_DIG.
16569         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
16570
16571 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
16572
16573         * po/be.po: Revert last change.
16574         * po/zh_CN.po: Likewise.
16575         * po/header.pot: Likewise.
16576
16577 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
16578
16579         * Makefile ($(common-objpfx)linkobj/libc.so): Define
16580         link-libc-deps to empty as target-specific variable.
16581         * Makerules (link-libc-args): New variable.
16582         (libc-for-link): Likewise.
16583         (link-libc-deps): Likewise.
16584         (lib%.so): Depend on $(link-libc-deps).  Link with
16585         $(link-libc-args).
16586         (build-module): Link with $(link-libc-args).
16587         (build-module-asneeded): Likewise.
16588         (build-module-helper-objlist): Filter out $(link-libc-deps) from
16589         list of objects.
16590         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
16591         target-specific variable.
16592         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
16593         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
16594         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
16595         libc.
16596         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
16597         libc and ld.so.
16598         ($(objpfx)libpcprofile.so): Likewise.
16599         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
16600         libc_nonshared.a.
16601         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
16602         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
16603         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
16604         $(link-libc-deps).
16605         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
16606         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
16607         * login/Makefile ($(objpfx)libutil.so): Likewise.
16608         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
16609         * math/Makefile ($(objpfx)libm.so): Likewise.
16610         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
16611         $(objpfx)libnsl.so): Define libc-for-link as target-specific
16612         variable instead of depending directly on libc.
16613         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
16614         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
16615         $(link-libc-deps).
16616         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
16617         libc.
16618         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
16619         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
16620         ($(objpfx)libanl.so): Likewise.
16621         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
16622         ld.so.
16623         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
16624         $(link-libc-deps).
16625         * sysdeps/i386/fpu/Makefile: Remove file.
16626         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
16627         ($(objpfx)libm.so): Remove dependency on ld.so.
16628
16629 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
16630
16631         [BZ # 15553]
16632         * nis/yp_xdr.c (XDRMAXNAME): Define.
16633         (XDRMAXRECORD): Define.
16634         (xdr_domainname): Use XDRMAXNAME.
16635         (xdr_mapname): Likewise.
16636         (xdr_peername): Likewise.
16637         (xdr_keydat): Use XDRMAXRECORD.
16638         (xdr_valdat): Likewise.
16639
16640 2013-05-30  Jeff Law  <law@redhat.com>
16641
16642         [BZ #14256]
16643         * manual/errno.texi (ESTALE): Update to account for more than
16644         just NFS file systems.
16645         * sysdeps/gnu/errlist.c: Regenerated.
16646
16647 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
16648
16649         [BZ #15465]
16650         * elf/Makefile (tests): Add tst-null-argv.
16651         (modules-names):  Add tst-null-argv-lib.
16652         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
16653         (tst-null-argv-ENV): Set environment for tst-null-argv.
16654         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
16655         (RTLD_PROGNAME): New macro.
16656         * elf/tst-null-argv.c: New test case.
16657         * elf/tst-null-argv-lib.c: Library for test case.
16658         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
16659         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
16660         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
16661         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
16662         * elf/dl-init.c (call_init): Likewise.
16663         (_dl_init): Likewise.
16664         * elf/dl-load.c (print_search_path): Likewise.
16665         (_dl_map_object): Likewise.
16666         * elf/dl-lookup.c (do_lookup_x): Likewise.
16667         (add_dependency): Likewise.
16668         (_dl_lookup_symbol_x): Likewise.
16669         (_dl_debug_bindings): Likewise.
16670         * elf/dl-open.c (_dl_show_scope): Likewise.
16671         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
16672         * elf/dl-version.c (match_symbol): Likewise.
16673         (_dl_check_map_versions): Likewise.
16674         * elf/rtld.c (dl_main): Likewise.
16675         (print_unresolved): Use RTLD_PROGNAME.
16676         (print_missing_version): Likewise.
16677         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16678         (elf_machine_rela): Likewise.
16679         * sysdeps/powerpc/powerpc32/dl-machine.c
16680         (__process_machine_rela): Likewise.
16681         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16682         Likewise.
16683         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16684         Likewise.
16685         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16686         Likewise.
16687         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16688         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16689         Likewise.
16690         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16691         Likewise.
16692         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16693
16694 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
16695
16696         * po/be.po: Add descriptive title.
16697         * po/zh_CN.po: Likewise.
16698         * po/header.pot: Likewise.
16699
16700 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
16701
16702         * locale/programs/locarchive.c (create_archive): Inlucde fname in
16703         error message.
16704         (enlarge_archive): Likewise.
16705
16706 2013-05-28  Ben North  <ben@redfrontdoor.org>
16707
16708         * manual/arith.texi (frexp): It is the magnitude of the return
16709         value which lies in [0.5, 1), not the return value itself.
16710
16711 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16712
16713         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16714
16715 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
16716
16717         * stdio-common/bug26.c (main): Correct fscanf template.
16718
16719         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
16720         declare _dl_skip_args.
16721
16722         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
16723         Don't declare.
16724
16725         * manual/platform.texi: Add missing @end deftypefun.
16726
16727 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16728
16729         [BZ #15529]
16730         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
16731         bit of mantissa of 2^16382.
16732         * math/libm-test.inc (hypot_test_data): Add more tests.
16733
16734         * math/libm-test.inc: Add drem and pow10 to list of tested
16735         functions.
16736         (pow10_test): New function.
16737         (drem_test): Likewise.
16738         (drem_test_tonearest): Likewise.
16739         (drem_test_towardzero): Likewise.
16740         (drem_test_downward): Likewise.
16741         (drem_test_upward): Likewise.
16742         (main): Call the new functions.
16743
16744         * math/libm-test.inc (finite_test_data): Remove.
16745         (finite_test): Run tests from isfinite_test_data.
16746         (gamma_test_data): Remove.
16747         (gamma_test): Run tests from lgamma_test_data.
16748         * sysdeps/i386/fpu/libm-test-ulps: Update.
16749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16750
16751 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16752
16753         * manual/platform.texi: Add PowerPC PPR function set documentation.
16754         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
16755         implementation.
16756
16757 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
16758
16759         * math/libm-test.inc (MAX_EXP): Define.
16760         (ULPDIFF): Define.
16761         (ulp): New function.
16762         (check_float_internal): Use ULPDIFF.
16763         (cpow_test): Disable failing test.
16764         (check_ulp): Test ulp() implemetnation.
16765         (main): Call check_ulp before starting tests.
16766
16767 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16768
16769         * math/gen-libm-test.pl (generate_testfile): Do not handle
16770         START_DATA and END_DATA.
16771         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
16772         END_DATA.
16773         (acos_tonearest_test_data): Likewise.
16774         (acos_towardzero_test_data): Likewise.
16775         (acos_downward_test_data): Likewise.
16776         (acos_upward_test_data): Likewise.
16777         (acosh_test_data): Likewise.
16778         (asin_test_data): Likewise.
16779         (asin_tonearest_test_data): Likewise.
16780         (asin_towardzero_test_data): Likewise.
16781         (asin_downward_test_data): Likewise.
16782         (asin_upward_test_data): Likewise.
16783         (asinh_test_data): Likewise.
16784         (atan_test_data): Likewise.
16785         (atanh_test_data): Likewise.
16786         (atan2_test_data): Likewise.
16787         (cabs_test_data): Likewise.
16788         (cacos_test_data): Likewise.
16789         (cacosh_test_data): Likewise.
16790         (carg_test_data): Likewise.
16791         (casin_test_data): Likewise.
16792         (casinh_test_data): Likewise.
16793         (catan_test_data): Likewise.
16794         (catanh_test_data): Likewise.
16795         (cbrt_test_data): Likewise.
16796         (ccos_test_data): Likewise.
16797         (ccosh_test_data): Likewise.
16798         (ceil_test_data): Likewise.
16799         (cexp_test_data): Likewise.
16800         (cimag_test_data): Likewise.
16801         (clog_test_data): Likewise.
16802         (clog10_test_data): Likewise.
16803         (conj_test_data): Likewise.
16804         (copysign_test_data): Likewise.
16805         (cos_test_data): Likewise.
16806         (cos_tonearest_test_data): Likewise.
16807         (cos_towardzero_test_data): Likewise.
16808         (cos_downward_test_data): Likewise.
16809         (cos_upward_test_data): Likewise.
16810         (cosh_test_data): Likewise.
16811         (cosh_tonearest_test_data): Likewise.
16812         (cosh_towardzero_test_data): Likewise.
16813         (cosh_downward_test_data): Likewise.
16814         (cosh_upward_test_data): Likewise.
16815         (cpow_test_data): Likewise.
16816         (cproj_test_data): Likewise.
16817         (creal_test_data): Likewise.
16818         (csin_test_data): Likewise.
16819         (csinh_test_data): Likewise.
16820         (csqrt_test_data): Likewise.
16821         (ctan_test_data): Likewise.
16822         (ctan_tonearest_test_data): Likewise.
16823         (ctan_towardzero_test_data): Likewise.
16824         (ctan_downward_test_data): Likewise.
16825         (ctan_upward_test_data): Likewise.
16826         (ctanh_test_data): Likewise.
16827         (ctanh_tonearest_test_data): Likewise.
16828         (ctanh_towardzero_test_data): Likewise.
16829         (ctanh_downward_test_data): Likewise.
16830         (ctanh_upward_test_data): Likewise.
16831         (erf_test_data): Likewise.
16832         (erfc_test_data): Likewise.
16833         (exp_test_data): Likewise.
16834         (exp_tonearest_test_data): Likewise.
16835         (exp_towardzero_test_data): Likewise.
16836         (exp_downward_test_data): Likewise.
16837         (exp_upward_test_data): Likewise.
16838         (exp10_test_data): Likewise.
16839         (exp2_test_data): Likewise.
16840         (expm1_test_data): Likewise.
16841         (fabs_test_data): Likewise.
16842         (fdim_test_data): Likewise.
16843         (finite_test_data): Likewise.
16844         (floor_test_data): Likewise.
16845         (fma_test_data): Likewise.
16846         (fma_towardzero_test_data): Likewise.
16847         (fma_downward_test_data): Likewise.
16848         (fma_upward_test_data): Likewise.
16849         (fmax_test_data): Likewise.
16850         (fmin_test_data): Likewise.
16851         (fmod_test_data): Likewise.
16852         (fpclassify_test_data): Likewise.
16853         (frexp_test_data): Likewise.
16854         (gamma_test_data): Likewise.
16855         (hypot_test_data): Likewise.
16856         (ilogb_test_data): Likewise.
16857         (isfinite_test_data): Likewise.
16858         (isgreater_test_data): Likewise.
16859         (isgreaterequal_test_data): Likewise.
16860         (isinf_test_data): Likewise.
16861         (isless_test_data): Likewise.
16862         (islessequal_test_data): Likewise.
16863         (islessgreater_test_data): Likewise.
16864         (isnan_test_data): Likewise.
16865         (isnormal_test_data): Likewise.
16866         (issignaling_test_data): Likewise.
16867         (isunordered_test_data): Likewise.
16868         (j0_test_data): Likewise.
16869         (j1_test_data): Likewise.
16870         (jn_test_data): Likewise.
16871         (ldexp_test_data): Likewise.
16872         (lgamma_test_data): Likewise.
16873         (lrint_test_data): Likewise.
16874         (lrint_tonearest_test_data): Likewise.
16875         (lrint_towardzero_test_data): Likewise.
16876         (lrint_downward_test_data): Likewise.
16877         (lrint_upward_test_data): Likewise.
16878         (llrint_test_data): Likewise.
16879         (llrint_tonearest_test_data): Likewise.
16880         (llrint_towardzero_test_data): Likewise.
16881         (llrint_downward_test_data): Likewise.
16882         (llrint_upward_test_data): Likewise.
16883         (log_test_data): Likewise.
16884         (log10_test_data): Likewise.
16885         (log1p_test_data): Likewise.
16886         (log2_test_data): Likewise.
16887         (logb_test_data): Likewise.
16888         (logb_downward_test_data): Likewise.
16889         (lround_test_data): Likewise.
16890         (llround_test_data): Likewise.
16891         (modf_test_data): Likewise.
16892         (nearbyint_test_data): Likewise.
16893         (nextafter_test_data): Likewise.
16894         (nexttoward_test_data): Likewise.
16895         (pow_test_data): Likewise.
16896         (pow_tonearest_test_data): Likewise.
16897         (pow_towardzero_test_data): Likewise.
16898         (pow_downward_test_data): Likewise.
16899         (pow_upward_test_data): Likewise.
16900         (remainder_test_data): Likewise.
16901         (remainder_tonearest_test_data): Likewise.
16902         (remainder_towardzero_test_data): Likewise.
16903         (remainder_downward_test_data): Likewise.
16904         (remainder_upward_test_data): Likewise.
16905         (remquo_test_data): Likewise.
16906         (rint_test_data): Likewise.
16907         (rint_tonearest_test_data): Likewise.
16908         (rint_towardzero_test_data): Likewise.
16909         (rint_downward_test_data): Likewise.
16910         (rint_upward_test_data): Likewise.
16911         (round_test_data): Likewise.
16912         (scalb_test_data): Likewise.
16913         (scalbn_test_data): Likewise.
16914         (scalbln_test_data): Likewise.
16915         (signbit_test_data): Likewise.
16916         (sin_test_data): Likewise.
16917         (sin_tonearest_test_data): Likewise.
16918         (sin_towardzero_test_data): Likewise.
16919         (sin_downward_test_data): Likewise.
16920         (sin_upward_test_data): Likewise.
16921         (sincos_test_data): Likewise.
16922         (sinh_test_data): Likewise.
16923         (sinh_tonearest_test_data): Likewise.
16924         (sinh_towardzero_test_data): Likewise.
16925         (sinh_downward_test_data): Likewise.
16926         (sinh_upward_test_data): Likewise.
16927         (sqrt_test_data): Likewise.
16928         (tan_test_data): Likewise.
16929         (tan_tonearest_test_data): Likewise.
16930         (tan_towardzero_test_data): Likewise.
16931         (tan_downward_test_data): Likewise.
16932         (tan_upward_test_data): Likewise.
16933         (tanh_test_data): Likewise.
16934         (tgamma_test_data): Likewise.
16935         (trunc_test_data): Likewise.
16936         (y0_test_data): Likewise.
16937         (y1_test_data): Likewise.
16938         (yn_test_data): Likewise.
16939         (significand_test_data): Likewise.
16940
16941         * math/gen-libm-test.pl (@functions): Remove variable.
16942         (generate_testfile): Don't handle START and END lines.
16943         * math/libm-test.inc (START): New macro.
16944         (END): Likewise.
16945         (END_COMPLEX): Likewise.
16946         (acos_test): Use END macro without arguments.
16947         (acos_test_tonearest): Likewise.
16948         (acos_test_towardzero): Likewise.
16949         (acos_test_downward): Likewise.
16950         (acos_test_upward): Likewise.
16951         (acosh_test): Likewise.
16952         (asin_test): Likewise.
16953         (asin_test_tonearest): Likewise.
16954         (asin_test_towardzero): Likewise.
16955         (asin_test_downward): Likewise.
16956         (asin_test_upward): Likewise.
16957         (asinh_test): Likewise.
16958         (atan_test): Likewise.
16959         (atanh_test): Likewise.
16960         (atan2_test): Likewise.
16961         (cabs_test): Likewise.
16962         (cacos_test): Use END_COMPLEX macro without arguments.
16963         (cacosh_test): Likewise.
16964         (carg_test): Use END macro without arguments.
16965         (casin_test): Use END_COMPLEX macro without arguments.
16966         (casinh_test): Likewise.
16967         (catan_test): Likewise.
16968         (catanh_test): Likewise.
16969         (cbrt_test): Use END macro without arguments.
16970         (ccos_test): Use END_COMPLEX macro without arguments.
16971         (ccosh_test): Likewise.
16972         (ceil_test): Use END macro without arguments.
16973         (cexp_test): Use END_COMPLEX macro without arguments.
16974         (cimag_test): Use END macro without arguments.
16975         (clog_test): Use END_COMPLEX macro without arguments.
16976         (clog10_test): Likewise.
16977         (conj_test): Likewise.
16978         (copysign_test): Use END macro without arguments.
16979         (cos_test): Likewise.
16980         (cos_test_tonearest): Likewise.
16981         (cos_test_towardzero): Likewise.
16982         (cos_test_downward): Likewise.
16983         (cos_test_upward): Likewise.
16984         (cosh_test): Likewise.
16985         (cosh_test_tonearest): Likewise.
16986         (cosh_test_towardzero): Likewise.
16987         (cosh_test_downward): Likewise.
16988         (cosh_test_upward): Likewise.
16989         (cpow_test): Use END_COMPLEX macro without arguments.
16990         (cproj_test): Likewise.
16991         (creal_test): Use END macro without arguments.
16992         (csin_test): Use END_COMPLEX macro without arguments.
16993         (csinh_test): Likewise.
16994         (csqrt_test): Likewise.
16995         (ctan_test): Likewise.
16996         (ctan_test_tonearest): Likewise.
16997         (ctan_test_towardzero): Likewise.
16998         (ctan_test_downward): Likewise.
16999         (ctan_test_upward): Likewise.
17000         (ctanh_test): Likewise.
17001         (ctanh_test_tonearest): Likewise.
17002         (ctanh_test_towardzero): Likewise.
17003         (ctanh_test_downward): Likewise.
17004         (ctanh_test_upward): Likewise.
17005         (erf_test): Use END macro without arguments.
17006         (erfc_test): Likewise.
17007         (exp_test): Likewise.
17008         (exp_test_tonearest): Likewise.
17009         (exp_test_towardzero): Likewise.
17010         (exp_test_downward): Likewise.
17011         (exp_test_upward): Likewise.
17012         (exp10_test): Likewise.
17013         (exp2_test): Likewise.
17014         (expm1_test): Likewise.
17015         (fabs_test): Likewise.
17016         (fdim_test): Likewise.
17017         (finite_test): Likewise.
17018         (floor_test): Likewise.
17019         (fma_test): Likewise.
17020         (fma_test_towardzero): Likewise.
17021         (fma_test_downward): Likewise.
17022         (fma_test_upward): Likewise.
17023         (fmax_test): Likewise.
17024         (fmin_test): Likewise.
17025         (fmod_test): Likewise.
17026         (fpclassify_test): Likewise.
17027         (frexp_test): Likewise.
17028         (gamma_test): Likewise.
17029         (hypot_test): Likewise.
17030         (ilogb_test): Likewise.
17031         (isfinite_test): Likewise.
17032         (isgreater_test): Likewise.
17033         (isgreaterequal_test): Likewise.
17034         (isinf_test): Likewise.
17035         (isless_test): Likewise.
17036         (islessequal_test): Likewise.
17037         (islessgreater_test): Likewise.
17038         (isnan_test): Likewise.
17039         (isnormal_test): Likewise.
17040         (issignaling_test): Likewise.
17041         (isunordered_test): Likewise.
17042         (j0_test): Likewise.
17043         (j1_test): Likewise.
17044         (jn_test): Likewise.
17045         (ldexp_test): Likewise.
17046         (lgamma_test): Likewise.
17047         (lrint_test): Likewise.
17048         (lrint_test_tonearest): Likewise.
17049         (lrint_test_towardzero): Likewise.
17050         (lrint_test_downward): Likewise.
17051         (lrint_test_upward): Likewise.
17052         (llrint_test): Likewise.
17053         (llrint_test_tonearest): Likewise.
17054         (llrint_test_towardzero): Likewise.
17055         (llrint_test_downward): Likewise.
17056         (llrint_test_upward): Likewise.
17057         (log_test): Likewise.
17058         (log10_test): Likewise.
17059         (log1p_test): Likewise.
17060         (log2_test): Likewise.
17061         (logb_test): Likewise.
17062         (logb_test_downward): Likewise.
17063         (lround_test): Likewise.
17064         (llround_test): Likewise.
17065         (modf_test): Likewise.
17066         (nearbyint_test): Likewise.
17067         (nextafter_test): Likewise.
17068         (nexttoward_test): Likewise.
17069         (pow_test): Likewise.
17070         (pow_test_tonearest): Likewise.
17071         (pow_test_towardzero): Likewise.
17072         (pow_test_downward): Likewise.
17073         (pow_test_upward): Likewise.
17074         (remainder_test): Likewise.
17075         (remainder_test_tonearest): Likewise.
17076         (remainder_test_towardzero): Likewise.
17077         (remainder_test_downward): Likewise.
17078         (remainder_test_upward): Likewise.
17079         (remquo_test): Likewise.
17080         (rint_test): Likewise.
17081         (rint_test_tonearest): Likewise.
17082         (rint_test_towardzero): Likewise.
17083         (rint_test_downward): Likewise.
17084         (rint_test_upward): Likewise.
17085         (round_test): Likewise.
17086         (scalb_test): Likewise.
17087         (scalbn_test): Likewise.
17088         (scalbln_test): Likewise.
17089         (signbit_test): Likewise.
17090         (sin_test): Likewise.
17091         (sin_test_tonearest): Likewise.
17092         (sin_test_towardzero): Likewise.
17093         (sin_test_downward): Likewise.
17094         (sin_test_upward): Likewise.
17095         (sincos_test): Likewise.
17096         (sinh_test): Likewise.
17097         (sinh_test_tonearest): Likewise.
17098         (sinh_test_towardzero): Likewise.
17099         (sinh_test_downward): Likewise.
17100         (sinh_test_upward): Likewise.
17101         (sqrt_test): Likewise.
17102         (tan_test): Likewise.
17103         (tan_test_tonearest): Likewise.
17104         (tan_test_towardzero): Likewise.
17105         (tan_test_downward): Likewise.
17106         (tan_test_upward): Likewise.
17107         (tanh_test): Likewise.
17108         (tgamma_test): Likewise.
17109         (trunc_test): Likewise.
17110         (y0_test): Likewise.
17111         (y1_test): Likewise.
17112         (yn_test): Likewise.
17113         (significand_test): Likewise.
17114
17115 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
17116
17117         [BZ #15381]
17118         * libio/genops.c (_IO_no_init): Initialize wide struct info.
17119
17120 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17121
17122         [BZ #14894]
17123         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
17124         __ppc_mdoio and __ppc_mdoom.
17125         * manual/platform.texi: Document new functions __ppc_yield,
17126         __ppc_mdoio and __ppc_mdoom.
17127
17128 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
17129
17130         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
17131         (main): Mention "tls" pseudo-hwcap is legacy.
17132         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
17133
17134 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17135
17136         * math/gen-libm-test.pl (parse_args): Output only string of
17137         arguments as text for test name, not full call or descriptions of
17138         tests for extra outputs.
17139         (generate_testfile): Do not pass function name to parse_args.
17140         Generate this_func variable from START.
17141         * math/libm-test.inc (struct test_f_f_data): Rename test_name
17142         field to arg_str.
17143         (struct test_ff_f_data): Likewise.
17144         (test_ff_f_data_nexttoward): Likewise.
17145         (struct test_fi_f_data): Likewise.
17146         (struct test_fl_f_data): Likewise.
17147         (struct test_if_f_data): Likewise.
17148         (struct test_fff_f_data): Likewise.
17149         (struct test_c_f_data): Likewise.
17150         (struct test_f_f1_data): Likewise.  Remove field extra_name.
17151         (struct test_fF_f1_data): Likewise.
17152         (struct test_ffI_f1_data): Likewise.
17153         (struct test_c_c_data): Rename test_name field to arg_str.
17154         (struct test_cc_c_data): Likewise.
17155         (struct test_f_i_data): Likewise.
17156         (struct test_ff_i_data): Likewise.
17157         (struct test_f_l_data): Likewise.
17158         (struct test_f_L_data): Likewise.
17159         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
17160         and extra2_name.
17161         (COMMON_TEST_SETUP): New macro.
17162         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
17163         (COMMON_TEST_CLEANUP): Likewise.
17164         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
17165         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
17166         macros.
17167         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
17168         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
17169         macros.
17170         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
17171         (RUN_TEST_fff_f): Take argument string.  Call new setup and
17172         cleanup macros.
17173         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
17174         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
17175         macros.
17176         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
17177         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
17178         macros.
17179         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17180         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
17181         cleanup macros.
17182         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17183         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
17184         cleanup macros.
17185         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17186         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
17187         cleanup macros.
17188         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17189         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
17190         macros.
17191         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
17192         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
17193         macros.
17194         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
17195         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
17196         macros.
17197         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
17198         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
17199         cleanup macros.
17200         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
17201         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
17202         cleanup macros.
17203         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
17204         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
17205         macros.
17206         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
17207         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
17208         cleanup macros.
17209         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
17210         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
17211         macros.
17212         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
17213         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
17214         macros.
17215         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
17216         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
17217         cleanup macros.
17218         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
17219
17220 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
17221
17222         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
17223         to _sifields.sigfault.
17224         (si_addr_lsb): Define new macro.
17225         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17226         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17227         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
17228
17229 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
17230
17231         [BZ #15441]
17232         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
17233         returns -1.
17234         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
17235         null return -1.
17236         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
17237         loading the domain.
17238
17239 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17240
17241         * math/gen-libm-test.pl (parse_args): Do not include expected
17242         result in test name.
17243         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
17244         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17245         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17246         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17247         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17249
17250 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17251
17252         * benchtests/Makefile: Sort function entries.
17253
17254         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
17255         tanh, asinh, acosh, atanh.
17256         * benchtests/acos-inputs: New file.
17257         * benchtests/acosh-inputs: New file.
17258         * benchtests/asin-inputs: New file.
17259         * benchtests/asinh-inputs: New file.
17260         * benchtests/atanh-inputs: New file.
17261         * benchtests/cosh-inputs: New file.
17262         * benchtests/log-inputs: New file.
17263         * benchtests/sinh-inputs: New file.
17264         * benchtests/tanh-inputs: New file.
17265
17266 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
17267
17268         [BZ #15339]
17269         * posix/tst-getaddrinfo4.c: New test.
17270         * posix/Makefile (tests): Add it.
17271
17272 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17273
17274         [BZ #15339]
17275         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
17276         when no services were used.
17277         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
17278         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
17279
17280 2013-05-21  Andreas Schwab  <schwab@suse.de>
17281
17282         [BZ #15014]
17283         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
17284         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
17285         successful.
17286         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
17287         redundant variable declarations and reallocation of buffer when
17288         parsing as IPv6 address.  Always set NSS status when called from
17289         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
17290         buffer too small.  Correct computation of needed size.
17291         * nss/Makefile (tests): Add test-digits-dots.
17292         * nss/test-digits-dots.c: New test.
17293
17294 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17295
17296         * benchtests/Makefile: Remove instructions for adding
17297         benchmark tests.
17298         * benchtests/README: New file to explain how to execute and
17299         enhance the benchmark tests.
17300
17301 2013-05-21  Andreas Schwab  <schwab@suse.de>
17302
17303         [BZ #15493]
17304         * setjmp/Makefile (tests): Add tst-sigsetjmp.
17305         * setjmp/tst-sigsetjmp.c: New test.
17306
17307 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17308
17309         * sysdeps/x86_64/memset.S (memset): New implementation.
17310         (__bzero): Likewise.
17311         (__memset_tail): New function.
17312
17313 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17314
17315         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
17316         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
17317         __memcpy_sse2_unaligned ifunc selection.
17318         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
17319         Add memcpy-sse2-unaligned.S.
17320         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
17321         Add: __memcpy_sse2_unaligned.
17322
17323 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
17324
17325         [BZ #15490]
17326         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
17327         math_force_eval before restoring floating-point envrionment.
17328         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
17329         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
17330         Likewise.
17331         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
17332         <math_private.h>.
17333         (__nearbyintl): Use math_force_eval before restoring
17334         floating-point environment.
17335         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
17336
17337         * math/gen-libm-test.pl (special_functions): Remove.
17338         (parse_args): Don't handle TEST_extra.  Handle functions with no
17339         return value.
17340         * math/libm-test.inc (struct test_sincos_data): Replace with
17341         struct test_fFF_11_data.
17342         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
17343         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
17344         (sincos_test_data): Change element type to struct
17345         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
17346         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
17347         RUN_TEST_LOOP_sincos.
17348         * math/README.libm-test: Don't mention special handling of
17349         individual functions.
17350         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
17351         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17352         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17353         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17354         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17355         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17356
17357         * math/gen-libm-test.pl (get_variable): Remove function.
17358         (parse_args): Don't show pointer parameters to call in test
17359         names.  Use "extra output N" in test names for extra outputs
17360         rather than naming variables.
17361
17362 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
17363
17364         [BZ #15488]
17365         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
17366         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
17367         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
17368         double tests.
17369         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
17370         disable.
17371         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
17372         check_long_double.
17373
17374         * math/gen-libm-test.pl (@tests): Remove variable.
17375         ($count): Likewise.
17376         (new_test): Remove function.
17377         (show_exceptions): New function.
17378         (special_functions): Use show_exceptions instead of new_test.
17379         (parse_args): Likewise.
17380         (generate_testfile): Pass only function name in generated call to
17381         print_max_error or print_complex_max_error.
17382         (get_ulps): Do not handle complex tests specially.
17383         (output_test): Rename to ...
17384         (get_all_ulps_for_test): ... this.  Return a string rather than
17385         printing to a file.  Require ulps to be present.
17386         (output_ulps): Generate arrays rather than #defines.
17387         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
17388         (struct ulp_data): New type.
17389         (BUILD_COMPLEX_ULP): Remove macro.
17390         (compare_ulp_data): New function.
17391         (find_ulps): Likewise.
17392         (find_test_ulps): Likewise.
17393         (find_function_ulps): Likewise.
17394         (find_complex_function_ulps): Likewise.
17395         (print_max_error): Determine allowed ulps using
17396         find_function_ulps.
17397         (print_complex_max_error): Determine allowed ulps using
17398         find_complex_function_ulps.
17399         (check_float_internal): Determine max ulps using find_test_ulps.
17400         (check_float): Do not take max_ulp parameter.  Update call to
17401         check_float_internal.
17402         (check_complex): Likewise.
17403         (check_int): Do not take max_ulp parameter.
17404         (check_long): Likewise.
17405         (check_bool): Likewise.
17406         (check_longlong): Likewise.
17407         (struct test_f_f_data): Remove max_ulp field.
17408         (struct test_ff_f_data): Likewise.
17409         (struct test_ff_f_data_nexttoward): Likewise.
17410         (struct test_fi_f_data): Likewise.
17411         (struct test_fl_f_data): Likewise.
17412         (struct test_if_f_data): Likewise.
17413         (struct test_fff_f_data): Likewise.
17414         (struct test_c_f_data): Likewise.
17415         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
17416         (struct test_fF_f1_data): Likewise.
17417         (struct test_ffI_f1_data): Likewise.
17418         (struct test_c_c_data): Remove max_ulp field.
17419         (struct test_cc_c_data): Likewise.
17420         (struct test_f_i_data): Likewise.
17421         (struct test_ff_i_data): Likewise.
17422         (struct test_f_l_data): Likewise.
17423         (struct test_f_L_data): Likewise.
17424         (struct test_sincos_data): Likewise.
17425         (RUN_TEST_f_f): Do not handle ulps.
17426         (RUN_TEST_LOOP_f_f): Likewise.
17427         (RUN_TEST_2_f): Likewise.
17428         (RUN_TEST_LOOP_2_f): Likewise.
17429         (RUN_TEST_fff_f): Likewise.
17430         (RUN_TEST_LOOP_fff_f): Likewise.
17431         (RUN_TEST_c_f): Likewise.
17432         (RUN_TEST_LOOP_c_f): Likewise.
17433         (RUN_TEST_f_f1): Likewise.
17434         (RUN_TEST_LOOP_f_f1): Likewise.
17435         (RUN_TEST_fF_f1): Likewise.
17436         (RUN_TEST_LOOP_fF_f1): Likewise.
17437         (RUN_TEST_fI_f1): Likewise.
17438         (RUN_TEST_LOOP_fI_f1): Likewise.
17439         (RUN_TEST_ffI_f1): Likewise.
17440         (RUN_TEST_LOOP_ffI_f1): Likewise.
17441         (RUN_TEST_c_c): Likewise.
17442         (RUN_TEST_LOOP_c_c): Likewise.
17443         (RUN_TEST_cc_c): Likewise.
17444         (RUN_TEST_LOOP_cc_c): Likewise.
17445         (RUN_TEST_f_i): Likewise.
17446         (RUN_TEST_LOOP_f_i): Likewise.
17447         (RUN_TEST_f_i_tg): Likewise.
17448         (RUN_TEST_LOOP_f_i_tg): Likewise.
17449         (RUN_TEST_ff_i_tg): Likewise.
17450         (RUN_TEST_LOOP_ff_i_tg): Likewise.
17451         (RUN_TEST_f_b): Likewise.
17452         (RUN_TEST_LOOP_f_b): Likewise.
17453         (RUN_TEST_f_b_tg): Likewise.
17454         (RUN_TEST_LOOP_f_b_tg): Likewise.
17455         (RUN_TEST_f_l): Likewise.
17456         (RUN_TEST_LOOP_f_l): Likewise.
17457         (RUN_TEST_f_L): Likewise.
17458         (RUN_TEST_LOOP_f_L): Likewise.
17459         (RUN_TEST_sincos): Likewise.
17460         (RUN_TEST_LOOP_sincos): Likewise.
17461
17462 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
17463
17464         [BZ #15480]
17465         [BZ #15485]
17466         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
17467         main case of finite arguments, set rounding mode to FE_TONEAREST
17468         and discard exceptions.
17469         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
17470         exceptions.
17471         (remainder_tonearest_test_data): New variable.
17472         (remainder_test_tonearest): New function.
17473         (remainder_towardzero_test_data): New variable.
17474         (remainder_test_towardzero): New function.
17475         (remainder_downward_test_data): New variable.
17476         (remainder_test_downward): New function.
17477         (remainder_upward_test_data): New variable.
17478         (remainder_test_upward): New function.
17479         (main): Call the new test functions.
17480
17481         * math/libm-test.inc (struct test_f_f1_data): Remove field
17482         extra_init.
17483         (struct test_fF_f1_data): Likewise.
17484         (struct test_ffI_f1_data): Likewise.
17485         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
17486         based on value of EXTRA_EXPECTED.
17487         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17488         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
17489         EXTRA_VAR based on value of EXTRA_EXPECTED.
17490         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17491         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
17492         EXTRA_VAR based on value of EXTRA_EXPECTED.
17493         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17494         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
17495         EXTRA_VAR based on value of EXTRA_EXPECTED.
17496         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17497         * math/gen-libm-test.pl (parse_args): Don't output initializers
17498         for extra output values.
17499
17500         * math/libm-test.inc (check_int): Expect result to be exactly
17501         equal to expected value and do not handle ulps.
17502         (check_long): Likewise.
17503         (check_longlong): Likewise.
17504
17505         * math/libm-test.inc (ceil_test_data): Test for "inexact"
17506         exceptions.
17507         (cimag_test_data): Likewise.
17508         (conj_test_data): Likewise.
17509         (copysign_test_data): Likewise.
17510         (cproj_test_data): Likewise.
17511         (creal_test_data): Likewise.
17512         (fabs_test_data): Likewise.
17513         (fdim_test_data): Likewise.
17514         (finite_test_data): Likewise.
17515         (floor_test_data): Likewise.
17516         (fmax_test_data): Likewise.
17517         (fmin_test_data): Likewise.
17518         (fmod_test_data): Likewise.
17519         (fpclassify_test_data): Likewise.
17520         (frexp_test_data): Likewise.
17521         (ilogb_test_data): Likewise.
17522         (isfinite_test_data): Likewise.
17523         (isgreater_test_data): Likewise.
17524         (isgreaterequal_test_data): Likewise.
17525         (isinf_test_data): Likewise.
17526         (isless_test_data): Likewise.
17527         (islessequal_test_data): Likewise.
17528         (islessgreater_test_data): Likewise.
17529         (isnan_test_data): Likewise.
17530         (isnormal_test_data): Likewise.
17531         (issignaling_test_data): Likewise.
17532         (isunordered_test_data): Likewise.
17533         (ldexp_test_data): Likewise.
17534         (lrint_test_data): Likewise.
17535         (lrint_test_data) [TEST_FLOAT]: Disable one test.
17536         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
17537         (lrint_tonearest_test_data): Test for "inexact" exceptions.
17538         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17539         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
17540         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17541         test input.
17542         (lrint_towardzero_test_data): Test for "inexact" exceptions.
17543         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17544         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
17545         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
17546         that test input.
17547         (lrint_downward_test_data): Test for "inexact" exceptions.
17548         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17549         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
17550         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17551         test input.
17552         (lrint_upward_test_data): Test for "inexact" exceptions.
17553         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
17554         test input.
17555         (llrint_test_data): Test for "inexact" exceptions.
17556         (llrint_test_data) [TEST_FLOAT]: Disable one test.
17557         (llrint_tonearest_test_data): Test for "inexact" exceptions.
17558         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17559         (llrint_towardzero_test_data): Test for "inexact" exceptions.
17560         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17561         (llrint_downward_test_data): Test for "inexact" exceptions.
17562         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17563         (llrint_upward_test_data): Test for "inexact" exceptions.
17564         (logb_test_data): Likewise.
17565         (logb_downward_test_data): Likewise.
17566         (nextafter_test_data): Likewise.
17567         (nexttoward_test_data): Likewise.
17568         (remainder_test_data): Likewise.
17569         (remquo_test_data): Likewise.
17570         (scalbn_test_data): Likewise.
17571         (scalbln_test_data): Likewise.
17572         (signbit_test_data): Likewise.
17573         (sqrt_test_data): Likewise.
17574         (significand_test_data): Likewise.
17575
17576 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
17577
17578         [BZ #15424]
17579         * benchtests/bench-modf.c (struct args): Mark arg0 as
17580         volatile.
17581         * scripts/bench.pl: Mark members of struct args as volatile.
17582
17583 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17584
17585         [BZ # 15497]
17586         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
17587         negative infinity on POWER6 or lower.
17588         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
17589
17590 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
17591
17592         [BZ #15442]
17593         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
17594         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
17595         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
17596         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
17597         (_FP_SETQNAN): New macro.
17598         (_FP_SETQNAN_SEMIRAW): Likewise.
17599         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
17600         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
17601         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
17602         (FP_EXTEND): Use _FP_FRAC_SNANP.
17603         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
17604         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
17605         into account.
17606         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17607         New macro.
17608         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17609         Likewise.
17610
17611 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17612
17613         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
17614         with DIVIDE_BY_ZERO_EXCEPTION.
17615         (gamma_test_data): Likewise.
17616         (lgamma_test_data): Likewise.
17617         (log_test_data): Likewise.
17618         (log10_test_data): Likewise.
17619         (log2_test_data): Likewise.
17620         (tgamma_test_data): Likewise.
17621
17622         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
17623         (acos_test_tonearest): Likewise.
17624         (acos_test_towardzero): Likewise.
17625         (acos_test_downward): Likewise.
17626         (acos_test_upward): Likewise.
17627         (acosh_test): Likewise.
17628         (asin_test): Likewise.
17629         (asin_test_tonearest): Likewise.
17630         (asin_test_towardzero): Likewise.
17631         (asin_test_downward): Likewise.
17632         (asin_test_upward): Likewise.
17633         (asinh_test): Likewise.
17634         (atan_test): Likewise.
17635         (atanh_test): Likewise.
17636         (atan2_test): Likewise.
17637         (cabs_test): Likewise.
17638         (cacos_test): Likewise.
17639         (cacosh_test): Likewise.
17640         (casin_test): Likewise.
17641         (casinh_test): Likewise.
17642         (catan_test): Likewise.
17643         (catanh_test): Likewise.
17644         (cbrt_test): Likewise.
17645         (ccos_test): Likewise.
17646         (ccosh_test): Likewise.
17647         (cexp_test): Likewise.
17648         (clog_test): Likewise.
17649         (clog10_test): Likewise.
17650         (cos_test): Likewise.
17651         (cos_test_tonearest): Likewise.
17652         (cos_test_towardzero): Likewise.
17653         (cos_test_downward): Likewise.
17654         (cos_test_upward): Likewise.
17655         (cosh_test): Likewise.
17656         (cosh_test_tonearest): Likewise.
17657         (cosh_test_towardzero): Likewise.
17658         (cosh_test_downward): Likewise.
17659         (cosh_test_upward): Likewise.
17660         (cpow_test): Likewise.
17661         (csin_test): Likewise.
17662         (csinh_test): Likewise.
17663         (csqrt_test): Likewise.
17664         (ctan_test): Likewise.
17665         (ctan_test_tonearest): Likewise.
17666         (ctan_test_towardzero): Likewise.
17667         (ctan_test_downward): Likewise.
17668         (ctan_test_upward): Likewise.
17669         (ctanh_test): Likewise.
17670         (ctanh_test_tonearest): Likewise.
17671         (ctanh_test_towardzero): Likewise.
17672         (ctanh_test_downward): Likewise.
17673         (ctanh_test_upward): Likewise.
17674         (erf_test): Likewise.
17675         (erfc_test): Likewise.
17676         (exp_test): Likewise.
17677         (exp_test_tonearest): Likewise.
17678         (exp_test_towardzero): Likewise.
17679         (exp_test_downward): Likewise.
17680         (exp_test_upward): Likewise.
17681         (exp10_test): Likewise.
17682         (exp2_test): Likewise.
17683         (expm1_test): Likewise.
17684         (fmod_test): Likewise.
17685         (gamma_test): Likewise.
17686         (hypot_test): Likewise.
17687         (j0_test): Likewise.
17688         (j1_test): Likewise.
17689         (jn_test): Likewise.
17690         (lgamma_test): Likewise.
17691         (log_test): Likewise.
17692         (log10_test): Likewise.
17693         (log1p_test): Likewise.
17694         (log2_test): Likewise.
17695         (logb_test_downward): Likewise.
17696         (pow_test): Likewise.
17697         (pow_test_tonearest): Likewise.
17698         (pow_test_towardzero): Likewise.
17699         (pow_test_downward): Likewise.
17700         (pow_test_upward): Likewise.
17701         (remainder_test): Likewise.
17702         (remquo_test): Likewise.
17703         (sin_test): Likewise.
17704         (sin_test_tonearest): Likewise.
17705         (sin_test_towardzero): Likewise.
17706         (sin_test_downward): Likewise.
17707         (sin_test_upward): Likewise.
17708         (sincos_test): Likewise.
17709         (sinh_test): Likewise.
17710         (sinh_test_tonearest): Likewise.
17711         (sinh_test_towardzero): Likewise.
17712         (sinh_test_downward): Likewise.
17713         (sinh_test_upward): Likewise.
17714         (sqrt_test): Likewise.
17715         (tan_test): Likewise.
17716         (tan_test_tonearest): Likewise.
17717         (tan_test_towardzero): Likewise.
17718         (tan_test_downward): Likewise.
17719         (tan_test_upward): Likewise.
17720         (tanh_test): Likewise.
17721         (tgamma_test): Likewise.
17722         (y0_test): Likewise.
17723         (y1_test): Likewise.
17724         (yn_test): Likewise.
17725
17726         * math/gen-libm-test.pl (adjust_arg): Remove function.
17727         (special_function): Remove argument $in_func.  Only handle
17728         generating output for tables of tests, not inside functions.
17729         (parse_args): Likewise.
17730         (generate_testfile): Remove variable $in_func.  Update call to
17731         parse_args.
17732         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
17733         (MINUS_ZERO_INIT): Rename macro to minus_zero.
17734         (PLUS_INFTY_INIT): Rename macro to plus_infty.
17735         (MINUS_INFTY_INIT): Rename macro to minus_infty.
17736         (QNAN_VALUE_INIT): Rename macro to qnan_value.
17737         (MAX_VALUE_INIT): Rename macro to max_value.
17738         (MIN_VALUE_INIT): Rename macro to min_value.
17739         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
17740         (plus_zero): Remove variable.
17741         (minus_zero): Likewise.
17742         (plus_infty): Likewise.
17743         (minus_infty): Likewise.
17744         (qnan_value): Likewise.
17745         (max_value): Likewise.
17746         (min_value): Likewise.
17747         (min_subnorm_value): Likewise.
17748
17749 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17750
17751         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
17752         uint64_t or uint32_t usage.
17753         * crypt/sha256-block.c: Likewise.
17754         * crypt/sha256-crypt.c: Likewise.
17755         * crypt/sha256.c: Likewise.
17756         * crypt/sha512-block.c: Likewise.
17757         * crypt/sha512-crypt.c: Likewise.
17758         * crypt/sha512.c: Likewise.
17759         * debug/backtrace-tst.c: Likewise.
17760         * debug/pcprofiledump.c: Likewise.
17761         * elf/cache.c: Likewise.
17762         * elf/dl-cache.c: Likewise.
17763         * elf/dl-misc.c: Likewise.
17764         * elf/dl-profile.c: Likewise.
17765         * elf/dl-support.c: Likewise.
17766         * elf/ldconfig.c: Likewise.
17767         * elf/sprof.c: Likewise.
17768         * iconv/dummy-repertoire.c: Likewise.
17769         * iconv/iconv_charmap.c: Likewise.
17770         * iconv/skeleton.c: Likewise.
17771         * iconvdata/8bit-generic.c: Likewise.
17772         * iconvdata/cp737.h: Likewise.
17773         * iconvdata/cp775.h: Likewise.
17774         * iconvdata/ibm1008.h: Likewise.
17775         * iconvdata/ibm1025.h: Likewise.
17776         * iconvdata/ibm1046.h: Likewise.
17777         * iconvdata/ibm1097.h: Likewise.
17778         * iconvdata/ibm1112.h: Likewise.
17779         * iconvdata/ibm1122.h: Likewise.
17780         * iconvdata/ibm1123.h: Likewise.
17781         * iconvdata/ibm1124.h: Likewise.
17782         * iconvdata/ibm1129.h: Likewise.
17783         * iconvdata/ibm1130.h: Likewise.
17784         * iconvdata/ibm1132.h: Likewise.
17785         * iconvdata/ibm1133.h: Likewise.
17786         * iconvdata/ibm1137.h: Likewise.
17787         * iconvdata/ibm1140.h: Likewise.
17788         * iconvdata/ibm1141.h: Likewise.
17789         * iconvdata/ibm1142.h: Likewise.
17790         * iconvdata/ibm1143.h: Likewise.
17791         * iconvdata/ibm1144.h: Likewise.
17792         * iconvdata/ibm1145.h: Likewise.
17793         * iconvdata/ibm1146.h: Likewise.
17794         * iconvdata/ibm1147.h: Likewise.
17795         * iconvdata/ibm1148.h: Likewise.
17796         * iconvdata/ibm1149.h: Likewise.
17797         * iconvdata/ibm1153.h: Likewise.
17798         * iconvdata/ibm1154.h: Likewise.
17799         * iconvdata/ibm1155.h: Likewise.
17800         * iconvdata/ibm1156.h: Likewise.
17801         * iconvdata/ibm1157.h: Likewise.
17802         * iconvdata/ibm1158.h: Likewise.
17803         * iconvdata/ibm1160.h: Likewise.
17804         * iconvdata/ibm1161.h: Likewise.
17805         * iconvdata/ibm1162.h: Likewise.
17806         * iconvdata/ibm1163.h: Likewise.
17807         * iconvdata/ibm1164.h: Likewise.
17808         * iconvdata/ibm1166.h: Likewise.
17809         * iconvdata/ibm1167.h: Likewise.
17810         * iconvdata/ibm12712.h: Likewise.
17811         * iconvdata/ibm1390.h: Likewise.
17812         * iconvdata/ibm1399.h: Likewise.
17813         * iconvdata/ibm16804.h: Likewise.
17814         * iconvdata/ibm4517.h: Likewise.
17815         * iconvdata/ibm4899.h: Likewise.
17816         * iconvdata/ibm4909.h: Likewise.
17817         * iconvdata/ibm4971.h: Likewise.
17818         * iconvdata/ibm5347.h: Likewise.
17819         * iconvdata/ibm803.h: Likewise.
17820         * iconvdata/ibm856.h: Likewise.
17821         * iconvdata/ibm901.h: Likewise.
17822         * iconvdata/ibm902.h: Likewise.
17823         * iconvdata/ibm9030.h: Likewise.
17824         * iconvdata/ibm9066.h: Likewise.
17825         * iconvdata/ibm921.h: Likewise.
17826         * iconvdata/ibm922.h: Likewise.
17827         * iconvdata/ibm9448.h: Likewise.
17828         * iconvdata/isiri-3342.h: Likewise.
17829         * iconvdata/jis0201.h: Likewise.
17830         * include/link.h: Likewise.
17831         * include/netdb.h: Likewise.
17832         * inet/check_native.c: Likewise.
17833         * inet/check_pf.c: Likewise.
17834         * inet/getipv4sourcefilter.c: Likewise.
17835         * inet/getnameinfo.c: Likewise.
17836         * inet/getsourcefilter.c: Likewise.
17837         * inet/htonl.c: Likewise.
17838         * inet/setipv4sourcefilter.c: Likewise.
17839         * inet/setsourcefilter.c: Likewise.
17840         * inet/test-inet6_opt.c: Likewise.
17841         * inet/tst-network.c: Likewise.
17842         * locale/C-collate.c: Likewise.
17843         * locale/C-ctype.c: Likewise.
17844         * locale/C-time.c: Likewise.
17845         * locale/C-translit.h: Likewise.
17846         * locale/loadarchive.c: Likewise.
17847         * locale/programs/3level.h: Likewise.
17848         * locale/programs/charmap.c: Likewise.
17849         * locale/programs/charmap.h: Likewise.
17850         * locale/programs/ld-address.c: Likewise.
17851         * locale/programs/ld-collate.c: Likewise.
17852         * locale/programs/ld-ctype.c: Likewise.
17853         * locale/programs/ld-identification.c: Likewise.
17854         * locale/programs/ld-measurement.c: Likewise.
17855         * locale/programs/ld-messages.c: Likewise.
17856         * locale/programs/ld-monetary.c: Likewise.
17857         * locale/programs/ld-name.c: Likewise.
17858         * locale/programs/ld-numeric.c: Likewise.
17859         * locale/programs/ld-paper.c: Likewise.
17860         * locale/programs/ld-telephone.c: Likewise.
17861         * locale/programs/ld-time.c: Likewise.
17862         * locale/programs/linereader.c: Likewise.
17863         * locale/programs/locale.c: Likewise.
17864         * locale/programs/locarchive.c: Likewise.
17865         * locale/programs/locfile.h: Likewise.
17866         * locale/programs/repertoire.c: Likewise.
17867         * locale/programs/simple-hash.c: Likewise.
17868         * locale/programs/simple-hash.h: Likewise.
17869         * malloc/memusage.c: Likewise.
17870         * malloc/memusagestat.c: Likewise.
17871         * nis/nis_defaults.c: Likewise.
17872         * nis/nis_hash.c: Likewise.
17873         * nis/nis_print.c: Likewise.
17874         * nis/nis_xdr.c: Likewise.
17875         * nscd/connections.c: Likewise.
17876         * nscd/hstcache.c: Likewise.
17877         * nscd/nscd_gethst_r.c: Likewise.
17878         * nscd/nscd_getserv_r.c: Likewise.
17879         * nscd/nscd_helper.c: Likewise.
17880         * nscd/servicescache.c: Likewise.
17881         * nss/makedb.c: Likewise.
17882         * nss/nss_db/db-XXX.c: Likewise.
17883         * nss/nss_db/db-initgroups.c: Likewise.
17884         * nss/nss_db/db-netgrp.c: Likewise.
17885         * nss/nss_files/files-network.c: Likewise.
17886         * nss/nss_files/files-parse.c: Likewise.
17887         * posix/bug-regex5.c: Likewise.
17888         * posix/fnmatch_loop.c: Likewise.
17889         * posix/regcomp.c: Likewise.
17890         * posix/regexec.c: Likewise.
17891         * posix/tst-rfc3484-2.c: Likewise.
17892         * posix/tst-rfc3484-3.c: Likewise.
17893         * posix/tst-rfc3484.c: Likewise.
17894         * resolv/nss_dns/dns-canon.c: Likewise.
17895         * resolv/nss_dns/dns-network.c: Likewise.
17896         * resolv/res_init.c: Likewise.
17897         * resolv/res_mkquery.c: Likewise.
17898         * resolv/tst-aton.c: Likewise.
17899         * stdlib/cxa_atexit.c: Likewise.
17900         * stdlib/cxa_finalize.c: Likewise.
17901         * stdlib/gen-fpioconst.c: Likewise.
17902         * stdlib/strtol_l.c: Likewise.
17903         * string/tst-endian.c: Likewise.
17904         * sunrpc/auth_des.c: Likewise.
17905         * sunrpc/clnt_udp.c: Likewise.
17906         * sunrpc/rtime.c: Likewise.
17907         * sunrpc/svcauth_des.c: Likewise.
17908         * sunrpc/xdr.c: Likewise.
17909         * sunrpc/xdr_intXX_t.c: Likewise.
17910         * sunrpc/xdr_rec.c: Likewise.
17911         * sysdeps/generic/ldconfig.h: Likewise.
17912         * sysdeps/generic/ldsodefs.h: Likewise.
17913         * sysdeps/generic/memusage.h: Likewise.
17914         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17915         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
17916         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
17917         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17918         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17919         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17920         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17921         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17922         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17923         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17924         * sysdeps/posix/getaddrinfo.c: Likewise.
17925         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17926         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17927         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17928         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17929         * sysdeps/powerpc/test-gettimebase.c: Likewise.
17930         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
17931         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
17932         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
17933         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
17934         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
17935         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17936         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17937         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
17938         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
17939         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
17940         * sysdeps/x86_64/dl-tls.h: Likewise.
17941         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
17942         * time/alt_digit.c: Likewise.
17943         * time/era.c: Likewise.
17944         * wcsmbs/tst-c16c32-1.c: Likewise.
17945
17946 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17947
17948         * math/libm-test.inc (struct test_sincos_data): New type.
17949         (RUN_TEST_LOOP_sincos): New macro.
17950         (sincos_test_data): New variable.
17951         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
17952
17953 2013-05-16  Richard Henderson  <rth@redhat.com>
17954
17955         * math/atest-exp2.c (LIMB64): New macro.
17956         (CONSTSZ): New macro.
17957         (mp_exp1, mp_exp_m1, mp_log2): New variables.
17958         (hexdig): Move ...
17959         (print_mpn_fp): ... to function scope.
17960         (read_mpn_hex): Remove.
17961         (get_log2): Remove.
17962         (exp2_mpn): Use mp_log2.
17963         (main): Use mp_exp1.
17964
17965 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17966
17967         * math/libm-test.inc: Remove comment about not testing "inexact"
17968         exceptions.
17969         (INEXACT_EXCEPTION): New macro.
17970         (NO_INEXACT_EXCEPTION): Likewise.
17971         (INVALID_EXCEPTION_OK): Update value.
17972         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17973         (OVERFLOW_EXCEPTION_OK): Likewise.
17974         (UNDERFLOW_EXCEPTION_OK): Likewise.
17975         (IGNORE_ZERO_INF_SIGN): Likewise.
17976         (ERRNO_UNCHANGED): Likewise.
17977         (ERRNO_EDOM): Likewise.
17978         (ERRNO_ERANGE): Likewise.
17979         (test_exceptions): Handle testing "inexact" exceptions.
17980         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
17981         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
17982         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
17983         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
17984         INEXACT_EXCEPTION.
17985         (rint_towardzero_test_data): Likewise.
17986         (rint_downward_test_data): Likewise.
17987         (rint_upward_test_data): Likewise.
17988
17989         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
17990         with OVERFLOW_EXCEPTION.
17991         (exp10_test_data): Likewise.
17992         (exp2_test_data): Likewise.
17993         (expm1_test_data): Likewise.
17994         (lgamma_test_data): Likewise.
17995         (pow_test_data): Likewise.
17996         (tgamma_test_data): Likewise.
17997         (yn_test_data): Remove duplicate test of overflow.
17998
17999         * math/libm-test.inc (struct test_cc_c_data): New type.
18000         (RUN_TEST_LOOP_cc_c): New macro.
18001         (cpow_test_data): New variable.
18002         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
18003
18004         * math/libm-test.inc (struct test_f_L_data): New type.
18005         (RUN_TEST_LOOP_f_L): New macro.
18006         (llrint_test_data): New variable.
18007         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
18008         (llrint_tonearest_test_data): New variable.
18009         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
18010         (llrint_towardzero_test_data): New variable.
18011         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
18012         (llrint_downward_test_data): New variable.
18013         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
18014         (llrint_upward_test_data): New variable.
18015         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
18016         (llround_test_data): New variable.
18017         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
18018
18019 2013-05-13  Peter Collingbourne  <pcc@google.com>
18020
18021         * math/atest-exp2.c (get_log2): Remove const attribute.
18022
18023 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18024
18025         * math/libm-test.inc (struct test_f_l_data): New type.
18026         (RUN_TEST_LOOP_f_l): New macro.
18027         (lrint_test_data): New variable.
18028         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
18029         (lrint_tonearest_test_data): New variable.
18030         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
18031         (lrint_towardzero_test_data): New variable.
18032         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
18033         (lrint_downward_test_data): New variable.
18034         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
18035         (lrint_upward_test_data): New variable.
18036         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
18037         (lround_test_data): New variable.
18038         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
18039
18040 2013-05-15  Peter Collingbourne  <pcc@google.com>
18041
18042         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
18043         (EXTRACT_WORDS64) Use where appropriate.
18044         (INSERT_WORDS64) Likewise.
18045
18046         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
18047         constraints with x constraints.
18048         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
18049
18050         * malloc/obstack.c (_obstack_compat): Add initializer.
18051
18052 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
18053
18054         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
18055         si_trapno and add si_addr_lsb to _sifields.sigfault.
18056         (si_trapno): Remove macro.
18057         (si_addr_lsb): Define new macro.
18058         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
18059
18060 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18061
18062         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
18063         instead of TEST_f_l.
18064         (llrint_test_tonearest): Likewise.
18065         (llrint_test_towardzero): Likewise.
18066         (llrint_test_downward): Likewise.
18067         (llrint_test_upward): Likewise.
18068         (llround_test): Likewise.
18069
18070         * math/libm-test.inc (struct test_f_i_data): Add comment.
18071         (RUN_TEST_LOOP_f_b): New macro.
18072         (RUN_TEST_LOOP_f_b_tg): Likewise.
18073         (finite_test_data): New variable.
18074         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
18075         (isfinite_test_data): New variable.
18076         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18077         (isinf_test_data): New variable.
18078         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18079         (isnan_test_data): New variable.
18080         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18081         (isnormal_test_data): New variable.
18082         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18083         (issignaling_test_data): New variable.
18084         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18085         (signbit_test_data): New variable.
18086         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18087
18088         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
18089         with INVALID_EXCEPTION.
18090         (acosh_test_data): Likewise.
18091         (asin_test_data): Likewise.
18092         (atanh_test_data): Likewise.
18093         (fmod_test_data): Likewise.
18094         (log_test_data): Likewise.
18095         (log10_test_data): Likewise.
18096         (log2_test_data): Likewise.
18097         (pow_test_data): Likewise.
18098         (sqrt_test_data): Likewise.
18099         (y0_test_data): Likewise.
18100         (y1_test_data): Likewise.
18101         (yn_test_data): Likewise.
18102
18103         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
18104         function contents.
18105
18106         * math/libm-test.inc (struct test_ff_i_data): New type.
18107         (RUN_TEST_LOOP_ff_i_tg): New macro.
18108         (isgreater_test_data): New variable.
18109         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18110         (isgreaterequal_test_data): New variable.
18111         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18112         (isless_test_data): New variable.
18113         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18114         (islessequal_test_data): New variable.
18115         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18116         (islessgreater_test_data): New variable.
18117         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18118         (isunordered_test_data): New variable.
18119         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18120
18121 2013-05-14  David S. Miller  <davem@davemloft.net>
18122
18123         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18124
18125 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
18126
18127         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
18128
18129         * math/libm-test.inc (struct test_fF_f1_data): Change type of
18130         extra_test to int.
18131         (struct test_f_i_data): Change type of max_ulp to int.
18132
18133         * math/libm-test.inc (test_ffI_f1_data): New type.
18134         (RUN_TEST_LOOP_ffI_f1): New macro.
18135         (remquo_test_data): New variable.
18136         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
18137
18138         * setjmp/tst-setjmp-fp.c: New file.
18139         * setjmp/Makefile (tests): Add tst-setjmp-fp.
18140         (link-libm): New variable.
18141         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
18142
18143         * math/libm-test.inc (struct test_f_i_data): New type.
18144         (RUN_TEST_LOOP_f_i): New macro.
18145         (RUN_TEST_LOOP_f_i_tg): Likewise.
18146         (fpclassify_test_data): New variable.
18147         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
18148         (ilogb_test_data): New variable.
18149         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
18150
18151         * math/libm-test.inc (scalbln_test): Correct function name in END
18152         call.
18153
18154         * math/libm-test.inc (struct test_f_f1_data): Add comment.
18155         (RUN_TEST_LOOP_fI_f1): New macro.
18156         (frexp_test_data): New variable.
18157         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
18158
18159         * math/libm-test.inc (struct test_fF_f1_data): New type.
18160         (RUN_TEST_LOOP_fF_f1): New macro.
18161         (modf_test_data): New variable.
18162         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
18163
18164         * math/libm-test.inc (struct test_f_f1_data): New type.
18165         (RUN_TEST_LOOP_f_f1): New macro.
18166         (gamma_test_data): New variable.
18167         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18168         (lgamma_test_data): New variable.
18169         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18170
18171 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
18172
18173         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
18174         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
18175         (main): Comment "tls" pseudo-hwcap.
18176
18177 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
18178
18179         * math/libm-test.inc (struct test_fl_f_data): New type.
18180         (RUN_TEST_LOOP_fl_f): New variable.
18181         (scalbln_test_data): New variable.
18182         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
18183
18184         * math/libm-test.inc (struct test_fi_f_data): New type.
18185         (RUN_TEST_LOOP_fi_f): New macro.
18186         (ldexp_test_data): New variable.
18187         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
18188         (scalbn_test_data): New variable.
18189         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
18190
18191         * math/libm-test.inc (struct test_c_f_data): New type.
18192         (RUN_TEST_LOOP_c_f): New macro.
18193         (cabs_test_data): New variable.
18194         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
18195         (carg_test_data): New variable.
18196         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
18197         (cimag_test_data): New variable.
18198         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
18199         (creal_test_data): New variable.
18200         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
18201
18202         * math/libm-test.inc (struct test_if_f_data): New type.
18203         (RUN_TEST_LOOP_if_f): New macro.
18204         (jn_test_data): New variable.
18205         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
18206         (yn_test_data): New variable.
18207         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
18208
18209         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
18210
18211 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18212
18213         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
18214         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
18215
18216 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
18217
18218         * benchtests/Makefile (CPPFLAGS-nonlib): Add
18219         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
18220         (bench-deps): Add bench-timing.h.
18221         * benchtests-bench-skeleton.c: Include bench-timing.h.
18222         (main): Use TIMING_* macros instead of clock_gettime.
18223         * benchtests/bench-timing.h: New file.
18224
18225         [BZ #14582]
18226         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
18227         Renamed from _LIB_VERSION.
18228         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
18229
18230 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
18231
18232         * math/libm-test.inc (struct test_fff_f_data): New type.
18233         (RUN_TEST_LOOP_fff_f): New macro.
18234         (fma_test_data): New variable.
18235         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
18236         (fma_towardzero_test_data): New variable.
18237         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
18238         (fma_downward_test_data): New variable.
18239         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
18240         (fma_upward_test_data): New variable.
18241         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
18242
18243         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
18244         (struct test_c_c_data): New type.
18245         (RUN_TEST_LOOP_c_c): New macro.
18246         (cacos_test_data): New variable.
18247         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
18248         (cacosh_test_data): New variable.
18249         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
18250         (casin_test_data): New variable.
18251         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
18252         (casinh_test_data): New variable.
18253         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
18254         (catan_test_data): New variable.
18255         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
18256         (catanh_test_data): New variable.
18257         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
18258         (ccos_test_data): New variable.
18259         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
18260         (ccosh_test_data): New variable.
18261         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
18262         (cexp_test_data): New variable.
18263         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
18264         (clog_test_data): New variable.
18265         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
18266         (clog10_test_data): New variable.
18267         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
18268         (conj_test_data): New variable.
18269         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
18270         (cproj_test_data): New variable.
18271         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
18272         (csin_test_data): New variable.
18273         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
18274         (csinh_test_data): New variable.
18275         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
18276         (csqrt_test_data): New variable.
18277         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
18278         (ctan_test_data): New variable.
18279         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
18280         (ctan_tonearest_test_data): New variable.
18281         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18282         (ctan_towardzero_test_data): New variable.
18283         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18284         (ctan_downward_test_data): New variable.
18285         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18286         (ctan_upward_test_data): New variable.
18287         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18288         (ctanh_test_data): New variable.
18289         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
18290         (ctanh_tonearest_test_data): New variable.
18291         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18292         (ctanh_towardzero_test_data): New variable.
18293         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18294         (ctanh_downward_test_data): New variable.
18295         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18296         (ctanh_upward_test_data): New variable.
18297         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18298         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
18299         of BUILD_COMPLEX.
18300
18301         * math/libm-test.inc (struct test_ff_f_data): New type.
18302         (struct test_ff_f_data_nexttoward): Likewise.
18303         (RUN_TEST_LOOP_2_f): New macro.
18304         (RUN_TEST_LOOP_ff_f): Likewise.
18305         (atan2_test_data): New variable.
18306         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
18307         (copysign_test_data): New variable.
18308         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
18309         (fdim_test_data): New variable.
18310         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
18311         (fmax_test_data): New variable.
18312         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
18313         (fmin_test_data): New variable.
18314         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
18315         (fmod_test_data): New variable.
18316         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
18317         (hypot_test_data): New variable.
18318         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
18319         (nextafter_test_data): New variable.
18320         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
18321         (nexttoward_test_data): New variable.
18322         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
18323         (pow_test_data): New variable.
18324         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
18325         (pow_tonearest_test_data): New variable.
18326         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
18327         (pow_towardzero_test_data): New variable.
18328         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
18329         (pow_downward_test_data): New variable.
18330         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
18331         (pow_upward_test_data): New variable.
18332         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
18333         (remainder_test_data): New variable.
18334         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
18335         (scalb_test_data): New variable.
18336         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
18337         * sysdeps/i386/fpu/libm-test-ulps: Update.
18338
18339 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
18340
18341         * math/libm-test.inc (fma_test): Use max_value instead of local
18342         variable fltmax.
18343         (nextafter_test): Likewise.
18344
18345         * math/libm-test.inc (acos_towardzero_test_data): New variable.
18346         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18347         (acos_downward_test_data): New variable.
18348         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18349         (acos_upward_test_data): New variable.
18350         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18351         (acosh_test_data): New variable.
18352         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
18353         (asin_test_data): New variable.
18354         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
18355         (asin_tonearest_test_data): New variable.
18356         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18357         (asin_towardzero_test_data): New variable.
18358         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18359         (asin_downward_test_data): New variable.
18360         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18361         (asin_upward_test_data): New variable.
18362         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18363         (asinh_test_data): New variable.
18364         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
18365         (atan_test_data): New variable.
18366         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
18367         (atanh_test_data): New variable.
18368         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
18369         (cbrt_test_data): New variable.
18370         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
18371         (ceil_test_data): New variable.
18372         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
18373         (cos_test_data): New variable.
18374         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
18375         (cos_tonearest_test_data): New variable.
18376         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18377         (cos_towardzero_test_data): New variable.
18378         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18379         (cos_downward_test_data): New variable.
18380         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18381         (cos_upward_test_data): New variable.
18382         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18383         (cosh_test_data): New variable.
18384         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
18385         (cosh_tonearest_test_data): New variable.
18386         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18387         (cosh_towardzero_test_data): New variable.
18388         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18389         (cosh_downward_test_data): New variable.
18390         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18391         (cosh_upward_test_data): New variable.
18392         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18393         (erf_test_data): New variable.
18394         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
18395         (erfc_test_data): New variable.
18396         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
18397         (exp_test_data): New variable.
18398         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
18399         (exp_tonearest_test_data): New variable.
18400         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18401         (exp_towardzero_test_data): New variable.
18402         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18403         (exp_downward_test_data): New variable.
18404         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18405         (exp_upward_test_data): New variable.
18406         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18407         (exp10_test_data): New variable.
18408         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
18409         (exp2_test_data): New variable.
18410         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
18411         (expm1_test_data): New variable.
18412         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
18413         (fabs_test_data): New variable.
18414         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
18415         (floor_test_data): New variable.
18416         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
18417         (j0_test_data): New variable.
18418         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
18419         (j1_test_data): New variable.
18420         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
18421         (log_test_data): New variable.
18422         (log_test): Run tests with RUN_TEST_LOOP_f_f.
18423         (log10_test_data): New variable.
18424         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
18425         (log1p_test_data): New variable.
18426         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
18427         (log2_test_data): New variable.
18428         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
18429         (logb_test_data): New variable.
18430         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
18431         (logb_downward_test_data): New variable.
18432         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18433         (nearbyint_test_data): New variable.
18434         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
18435         (rint_test_data): New variable.
18436         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
18437         (rint_tonearest_test_data): New variable.
18438         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18439         (rint_towardzero_test_data): New variable.
18440         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18441         (rint_downward_test_data): New variable.
18442         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18443         (rint_upward_test_data): New variable.
18444         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18445         (round_test_data): New variable.
18446         (round_test): Run tests with RUN_TEST_LOOP_f_f.
18447         (sin_test_data): New variable.
18448         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
18449         (sin_tonearest_test_data): New variable.
18450         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18451         (sin_towardzero_test_data): New variable.
18452         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18453         (sin_downward_test_data): New variable.
18454         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18455         (sin_upward_test_data): New variable.
18456         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18457         (sinh_test_data): New variable.
18458         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
18459         (sinh_tonearest_test_data): New variable.
18460         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18461         (sinh_towardzero_test_data): New variable.
18462         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18463         (sinh_downward_test_data): New variable.
18464         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18465         (sinh_upward_test_data): New variable.
18466         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18467         (sqrt_test_data): New variable.
18468         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
18469         (tan_test_data): New variable.
18470         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
18471         (tan_tonearest_test_data): New variable.
18472         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18473         (tan_towardzero_test_data): New variable.
18474         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18475         (tan_downward_test_data): New variable.
18476         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18477         (tan_upward_test_data): New variable.
18478         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18479         (tanh_test_data): New variable.
18480         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
18481         (tgamma_test_data): New variable.
18482         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
18483         (trunc_test_data): New variable.
18484         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
18485         (y0_test_data): New variable.
18486         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
18487         (y1_test_data): New variable.
18488         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
18489         (significand_test_data): New variable.
18490         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
18491
18492 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
18493
18494         [BZ #12387]
18495         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
18496
18497 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18498
18499         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
18500
18501 2013-05-10  Andreas Jaeger  <aj@suse.de>
18502
18503         [BZ #15448]
18504         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
18505         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
18506
18507 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18508
18509         * math/gen-libm-test.pl (adjust_arg): New function.
18510         (special_functions): Handle generating output in both functions
18511         and arrays.
18512         (parse_args): Likewise.
18513         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
18514         $in_func argument to parse_args.
18515         * math/libm-test.inc (struct test_f_f_data): New type.
18516         (IF_ROUND_INIT_): New macro.
18517         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
18518         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
18519         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
18520         (IF_ROUND_INIT_FE_UPWARD): Likewise.
18521         (ROUND_RESTORE_): Likewise.
18522         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
18523         (ROUND_RESTORE_FE_TONEAREST): Likewise.
18524         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
18525         (ROUND_RESTORE_FE_UPWARD): Likewise.
18526         (RUN_TEST_LOOP_f_f): New macro.
18527         (acos_test_data): New variable.
18528         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
18529         (acos_tonearest_test_data): New variable.
18530         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18531
18532 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18533
18534         * benchtests/bench-skeleton.c (startup): Fix coding style.
18535
18536 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18537
18538         [BZ #6809]
18539         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
18540         negative infinity argument.
18541         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
18542         negative infinity argument.
18543         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
18544         negative infinity argument.
18545         * math/libm-test.inc (tgamma_test): Expect errno to be set for
18546         domain errors.
18547
18548 2013-05-10  Florian Weimer  <fweimer@redhat.com>
18549
18550         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
18551         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
18552         * iconv/iconv_prog.c (main): Likewise.
18553         * locale/programs/charmap-dir.c (charmap_readdir)
18554         (fopen_uncompressed): Likewise.
18555         * locale/programs/locfile.c (siblings_uncached)
18556         (write_locale_data): Use lstat64 instead of lstat.
18557         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
18558         stat.
18559
18560 2013-05-10  Andreas Jaeger  <aj@suse.de>
18561
18562         [BZ #15395]
18563         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
18564         localization.
18565         Include <locale.h>.
18566
18567 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
18568
18569         * elf/dl-close.c (_dl_close_worker): Add comments.
18570
18571 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
18572
18573         [BZ #15359]
18574         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
18575         high part of pi/2.
18576         (__ieee754_rem_pio2l): Update comments.
18577
18578         [BZ #15429]
18579         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
18580         high part of pi/2.
18581         (__ieee754_rem_pio2l): Update comments.
18582
18583         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
18584         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
18585
18586         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
18587         M_PI_4l.
18588
18589         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
18590         (M_PI_34_LOG10El): Likewise.
18591         (M_PI2_LOG10El): Likewise.
18592         (M_PI4_LOG10El): Likewise.
18593         (M_PI_LOG10El): Likewise.
18594
18595 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18596
18597         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18598
18599 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
18600
18601         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
18602         (MINUS_ZERO_INIT): Likewise.
18603         (PLUS_INFTY_INIT): Likewise.
18604         (MINUS_INFTY_INIT): Likewise.
18605         (QNAN_VALUE_INIT): Likewise.
18606         (MAX_VALUE_INIT): Likewise.
18607         (MIN_VALUE_INIT): Likewise.
18608         (MIN_SUBNORM_VALUE_INIT): Likewise.
18609         (plus_zero): Initialize with PLUS_ZERO_INIT.
18610         (minus_zero): Initialize with MINUS_ZERO_INIT.
18611         (plus_infty): Initialize with PLUS_INFTY_INIT.
18612         (minus_infty): Initialize with MINUS_INFTY_INIT.
18613         (qnan_value): Initialize with QNAN_VALUE_INIT.
18614         (max_value): Initialize with MAX_VALUE_INIT.
18615         (min_value): Initialize with MIN_VALUE_INIT.
18616         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
18617
18618         * math/libm-test.inc (RUN_TEST_if_f): New macro.
18619         (jn_test): Use TEST_if_f instead of TEST_ff_f.
18620         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
18621         (yn_test): Use TEST_if_f instead of TEST_ff_f.
18622
18623         * math/libm-test.inc (RUN_TEST_f_f): New macro.
18624         (RUN_TEST_2_f): Likewise.
18625         (RUN_TEST_ff_f): Likewise.
18626         (RUN_TEST_fi_f): Likewise.
18627         (RUN_TEST_fl_f): Likewise.
18628         (RUN_TEST_fff_f): Likewise.
18629         (RUN_TEST_c_f): Likewise.
18630         (RUN_TEST_f_f1): Likewise.
18631         (RUN_TEST_fF_f1): Likewise.
18632         (RUN_TEST_fI_f1): Likewise.
18633         (RUN_TEST_ffI_f1): Likewise.
18634         (RUN_TEST_c_c): Likewise.
18635         (RUN_TEST_cc_c): Likewise.
18636         (RUN_TEST_f_i): Likewise.
18637         (RUN_TEST_f_i_tg): Likewise.
18638         (RUN_TEST_ff_i_tg): Likewise.
18639         (RUN_TEST_f_b): Likewise.
18640         (RUN_TEST_f_b_tg): Likewise.
18641         (RUN_TEST_f_l): Likewise.
18642         (RUN_TEST_f_L): Likewise.
18643         (RUN_TEST_sincos): Likewise.
18644         * math/gen-libm-test.pl (new_test): Take new argument to indicate
18645         whether to show exceptions.  Do not include ");\n" in return
18646         value.
18647         (special_functions): Output call to RUN_TEST_sincos instead of
18648         check_float calls.  Update calls to new_test.
18649         (parse_args): Output call to single RUN_TEST_* macro instead of
18650         check_* calls and other assignments.  Update calls to new_test.
18651
18652         [BZ #2546]
18653         [BZ #2560]
18654         [BZ #5159]
18655         [BZ #15426]
18656         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
18657         input to result for tgamma overflow.
18658         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
18659         (gamma_coeff): New variable.
18660         (NCOEFF): New macro.
18661         (gamma_positive): New function.
18662         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
18663         underflow here.  Use gamma_positive instead of exp (lgamma) for
18664         other arguments.
18665         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
18666         (gamma_coeff): New variable.
18667         (NCOEFF): New macro.
18668         (gammaf_positive): New function.
18669         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
18670         underflow here.  Use gamma_positive instead of exp (lgamma) for
18671         other arguments.
18672         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
18673         (gamma_coeff): New variable.
18674         (NCOEFF): New macro.
18675         (gammal_positive): New function.
18676         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
18677         underflow here.  Use gamma_positive instead of exp (lgamma) for
18678         other arguments.
18679         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
18680         (gamma_coeff): New variable.
18681         (NCOEFF): New macro.
18682         (gammal_positive): New function.
18683         (__ieee754_gammal_r): Handle positive infinity, overflow and
18684         underflow here.  Handle NaN the same as positive infinity.  Remove
18685         check x < 0xffffffff for negative integers.  Use gamma_positive
18686         instead of exp (lgamma) for other arguments.
18687         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
18688         (gamma_coeff): New variable.
18689         (NCOEFF): New macro.
18690         (gammal_positive): New function.
18691         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
18692         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18693         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
18694         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
18695         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18696         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
18697         * sysdeps/generic/math_private.h (__gamma_productf): New
18698         prototype.
18699         (__gamma_product): Likewise.
18700         (__gamma_productl): Likewise.
18701         * math/Makefile (libm-calls): Add gamma_product.
18702         * math/libm-test.inc (tgamma_test): Add more tests.
18703         * sysdeps/i386/fpu/libm-test-ulps: Update.
18704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18705
18706 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
18707
18708         * benchtests/bench-skeleton.c (main): Preheat CPU.
18709
18710 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
18711
18712         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
18713
18714 2013-05-07  Roland McGrath  <roland@hack.frob.com>
18715
18716         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
18717         and _dl_skip_args_internal.
18718
18719 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
18720
18721         * manual/message.texi (Message Translation): Talk about users.
18722         Message to key mapping impacts design.
18723
18724 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18725
18726         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
18727
18728         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
18729
18730         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
18731         * sysdeps/wordsize-64/glob64.c: ... here.
18732
18733         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
18734         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
18735         New macros.
18736
18737         * debug/getlogin_r_chk.c: Moved to ...
18738         * login/getlogin_r_chk.c: ... here.
18739         * debug/Makefile (routines): Move getlogin_r_chk to ...
18740         * login/Makefile (routines): ... here.
18741         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
18742         * login/Versions (libc: GLIBC_2.4): ... here.
18743
18744         * io/poll.c (__poll): Renamed from poll.
18745         Add libc_hidden_def.
18746         (poll): Define as weak alias.
18747
18748         * debug/ptsname_r_chk.c: Moved to ...
18749         * login/ptsname_r_chk.c: ... here.
18750         * debug/Makefile (routines): Move ptsname_r_chk to ...
18751         * login/Makefile (routines): ... here.
18752         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
18753         * login/Versions (libc: GLIBC_2.4): ... here.
18754
18755         * posix/getlogin.c: Moved to ...
18756         * login/getlogin.c: ... here.
18757         * posix/getlogin_r.c: Moved to ...
18758         * login/getlogin_r.c: ... here.
18759         * posix/getlogin_r.c: Moved to ...
18760         * login/getlogin_r.c: ... here.
18761         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
18762         * login/Makefile (routines): ... here.
18763         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
18764         * login/Versions (libc: GLIBC_2.0): ... here.
18765
18766         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
18767         (setrlimit): Define as weak alias.
18768
18769         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
18770         Call __ names for open, ftruncate, and close.
18771         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
18772         (truncate): Define as weak alias.
18773
18774 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
18775
18776         * math/gen-libm-test.pl (parse_args): Initialize x before each
18777         test of frexp, modf and remquo.
18778
18779         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
18780         test signgam value.
18781
18782 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18783
18784         [BZ #15418]
18785         [BZ #15419]
18786         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
18787         internal tests.
18788         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18789
18790 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18791
18792         * elf/dl-writev.h: New file.
18793         * elf/dl-misc.c: Include it.
18794         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
18795         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
18796
18797 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
18798
18799         * math/libm-test.inc (noXFails): Remove variable.
18800         (noXPasses): Likewise.
18801         (BUILD_COMPLEX_INT): Remove macro.
18802         (print_screen): Remove xfail argument.
18803         (print_screen_max_error): Likewise.
18804         (update_stats): Likewise.
18805         (print_max_error): Likewise.  Update calls to other affected
18806         functions.
18807         (print_complex_max_error): Likewise.
18808         (test_single_exception): Update calls to print_screen.
18809         (test_single_errno): Likewise.
18810         (check_float_internal): Remove xfail argument.  Update calls to
18811         other affected functions.
18812         (check_float): Likewise.
18813         (check_complex): Likewise.
18814         (check_int): Likewise.
18815         (check_long): Likewise.
18816         (check_bool): Likewise.
18817         (check_longlong): Likewise.
18818         (main): Don't print noXFails and noXPasses.
18819         * math/gen-libm-test.pl (top level): Don't mention expected
18820         failure handling in comment.
18821         (new_test): Don't handle expected failures.
18822         (parse_args): Don't mention expected failure handling in comment.
18823         (generate_testfile): Don't handle expected failures.
18824         (parse_ulps): Likewise.
18825         (print_ulps_file): Likewise.
18826         (get_failure): Remove function.
18827         (output_test): Don't handle expected failures.
18828         * make/README.libm-test: Don't mention expected failure handling.
18829
18830         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
18831         (minus_zero): Likewise.
18832         (plus_infty): Likewise.
18833         (minus_infty): Likewise.
18834         (qnan_value): Likewise.
18835         (max_value): Likewise.
18836         (min_value): Likewise.
18837         (min_subnorm_value): Likewise.
18838         (initialize): Do not initialize those variables dynamically.
18839
18840 2013-05-03  Roland McGrath  <roland@hack.frob.com>
18841
18842         * io/open.c (__open_2): Moved to ...
18843         * io/open_2.c: ... this new file.
18844         * io/open64.c (__open64_2): Moved to ...
18845         * io/open64_2.c: ... this new file.
18846         * io/openat.c (__openat_2): Moved to ...
18847         * io/openat_2.c: ... this new file.
18848         * io/openat64.c (__openat64_2): Moved to ...
18849         * io/openat64_2.c: ... this new file.
18850         * io/Makefile (routines): Add them.
18851         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
18852         * sysdeps/unix/sysv/linux/open_2.c: File removed.
18853         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
18854         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
18855         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
18856         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
18857         (__openat64): Add hidden_ver.
18858         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
18859         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
18860
18861         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
18862         Separately conditionalize setting of GLRO(dl_sysinfo) so
18863         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
18864         as well, but the actual setting is only under [NEED_DL_SYSINFO].
18865
18866 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18867
18868         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
18869         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
18870         definition.
18871         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
18872         * sysdeps/unix/sysv/linux/powerpc/init-first.c
18873         (_libc_vdso_platform_setup): Add __vdso_time initialization.
18874         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
18875         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
18876
18877 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
18878
18879         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
18880         test signgam value.
18881
18882         * math/libm-test.inc (hypot_test): Do not use
18883         IGNORE_ZERO_INF_SIGN.
18884
18885 2013-05-03  Andreas Jaeger  <aj@suse.de>
18886
18887         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
18888         Linux 3.9.
18889         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
18890         (PF_MAX): Adjust for VSOCK change.
18891
18892 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18893
18894         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18895
18896 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
18897
18898         [BZ #15264]
18899         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
18900         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
18901         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
18902
18903 2013-05-02  David S. Miller  <davem@davemloft.net>
18904
18905         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18906
18907 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
18908
18909         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
18910
18911 2013-05-01  Roland McGrath  <roland@hack.frob.com>
18912
18913         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
18914
18915 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
18916
18917         [BZ #14952]
18918         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
18919         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18920         Use __attribute__ ((__gnu_inline__)).
18921         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18922         Don't use __attribute__ ((__gnu_inline__)).
18923
18924 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
18925
18926         [BZ #15423]
18927         * math/s_catan.c (__catan): Handle small real or imaginary part of
18928         input specially to avoid spurious underflow.
18929         * math/s_catanf.c (__catanf): Likewise.
18930         * math/s_catanh.c (__catanh): Likewise.
18931         * math/s_catanhf.c (__catanhf): Likewise.
18932         * math/s_catanhl.c (__catanhl): Likewise.
18933         * math/s_catanl.c (__catanl): Likewise.
18934         * math/libm-test.inc (catan_test): Add more tests.
18935         (catanh_test): Likewise.
18936         * sysdeps/i386/fpu/libm-test-ulps: Update.
18937         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18938
18939 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18940
18941         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18942
18943 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
18944
18945         [BZ #15416]
18946         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
18947         accurately for denominator in atan2.
18948         * math/s_catanf.c (__catanf): Likewise.
18949         * math/s_catanh.c (__catanh): Likewise.
18950         * math/s_catanhf.c (__catanhf): Likewise.
18951         * math/s_catanhl.c (__catanhl): Likewise.
18952         * math/s_catanl.c (__catanl): Likewise.
18953         * math/libm-test.inc (catan_test): Add more tests.
18954         (catanh_test): Likewise.
18955         * sysdeps/i386/fpu/libm-test-ulps: Update.
18956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18957
18958 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18959
18960         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
18961
18962         * benchtests/Makefile (bench): Remove slow benchmarks.
18963         * benchtests/atan-inputs: Add slow benchmark inputs.
18964         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
18965         (BENCH_FUNC): Accept variant offset.
18966         (VARIANT): Define.
18967         * benchtests/bench-skeleton.c (main): Run benchmark for each
18968         variant.
18969         * benchtests/cos-inputs: Add slow benchmark inputs.
18970         * benchtests/exp-inputs: Likewise.
18971         * benchtests/pow-inputs: Likewise.
18972         * benchtests/sin-inputs: Likewise.
18973         * benchtests/slowatan-inputs: Remove.
18974         * benchtests/slowatan.c: Remove.
18975         * benchtests/slowcos-inputs: Remove.
18976         * benchtests/slowcos.c: Remove.
18977         * benchtests/slowexp-inputs: Remove.
18978         * benchtests/slowexp.c: Remove.
18979         * benchtests/slowpow-inputs: Remove.
18980         * benchtests/slowpow.c: Remove.
18981         * benchtests/slowsin-inputs: Remove.
18982         * benchtests/slowsin.c: Remove.
18983         * benchtests/slowtan-inputs: Remove.
18984         * benchtests/slowtan.c: Remove.
18985         * benchtests/tan-inputs: Add slow benchmark inputs.
18986         * scripts/bench.pl: Parse comments and directives.
18987
18988         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
18989         in CPPFLAGS.
18990         ($(objpfx)bench-%.c): Remove *-ITER.
18991         * benchtests/bench-modf.c: Remove definition of ITER.
18992         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
18993         (main): Loop for DURATION seconds instead of fixed number of
18994         iterations.
18995         * scripts/bench.pl: Don't expect iterations in parameters.
18996
18997 2013-04-29  Roland McGrath  <roland@hack.frob.com>
18998
18999         * io/fchdir.c (__fchdir): Renamed from fchdir.
19000         (fchdir): Define as weak alias.
19001
19002 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19003
19004         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
19005         (ERRNO_EDOM): Likewise.
19006         (ERRNO_ERANGE): Likewise.
19007         (noErrnoTests): New variable.
19008         (init_max_error): Set errno to 0.
19009         (test_single_errno): New function.
19010         (test_errno): Likewise.
19011         (check_float_internal): Call test_errno.  Set errno to 0.
19012         (check_complex): Refer to errno tests in comment.
19013         (check_int): Call test_errno.  Set errno to 0.
19014         (check_long): Likewise.
19015         (check_bool): Likewise.
19016         (check_longlong): Likewise.
19017         (cos_test): Use ERRNO_* flags for errno tests instead of
19018         check_int.
19019         (expm1_test): Likewise.
19020         (fmod_test): Likewise.
19021         (ilogb_test): Likewise.
19022         (lgamma_test): Likewise.
19023         (pow_test): Likewise.
19024         (remainder_test): Likewise.
19025         (sin_test): Likewise.
19026         (tan_test): Likewise.
19027         (yn_test): Likewise.
19028         (initialize): Set errno to 0.
19029         (main): Print number of errno tests.
19030         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
19031
19032 2013-04-29  Andreas Jaeger  <aj@suse.de>
19033
19034         [BZ #15084]
19035         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
19036         and RES_USEVC.
19037
19038         [BZ #15085]
19039         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
19040         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
19041         unimplemented.
19042
19043         [BZ #15380]
19044         * stdlib/random.c (__initstate): Return NULL if
19045         __initstate fails.
19046
19047         [BZ #15086]
19048         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
19049         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
19050         RES_SNGLKUPREOP.
19051
19052 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19053
19054         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19055
19056 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19057
19058         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
19059         of individual tests.
19060         (casin_test): Likewise.
19061         (casinh_test): Likewise.
19062
19063 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
19064
19065         [BZ #15409]
19066         * math/s_catan.c (__catan): Handle arguments with large real or
19067         imaginary part separately without squaring.
19068         * math/s_catanf.c (__catanf): Likewise.
19069         * math/s_catanh.c (__catanh): Likewise.
19070         * math/s_catanhf.c (__catanhf): Likewise.
19071         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19072         and redefine.
19073         (__catanhl): Handle arguments with large real or imaginary part
19074         separately without squaring.
19075         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19076         and redefine.
19077         (__catanl): Handle arguments with large real or imaginary part
19078         separately without squaring.
19079         * math/libm-test.inc (catan_test): Add more tests.
19080         (catanh_test): Likewise.
19081         * sysdeps/i386/fpu/libm-test-ulps: Update.
19082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19083
19084 2013-04-27  Andreas Jaeger  <aj@suse.de>
19085
19086         [BZ #15007]
19087         * stdlib/stdlib.h: Update guards for qecvt.
19088         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
19089         <stdlib.h>.
19090
19091 2013-04-27  Allan McRae  <allan@archlinux.org>
19092
19093         * sysdeps/i386/fpu/libm-test-ulps: Update.
19094
19095 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
19096
19097         [BZ #15406]
19098         * math/s_catan.c: Include <float.h>.
19099         (__catan): Ensure underflow exception occurs for underflowed
19100         result.
19101         * math/s_catanf.c: Include <float.h>.
19102         (__catanf): Ensure underflow exception occurs for underflowed
19103         result.
19104         * math/s_catanh.c: Include <float.h>.
19105         (__catanh): Ensure underflow exception occurs for underflowed
19106         result.
19107         * math/s_catanhf.c: Include <float.h>.
19108         (__catanhf): Ensure underflow exception occurs for underflowed
19109         result.
19110         * math/s_catanhl.c: Include <float.h>.
19111         (__catanhl): Ensure underflow exception occurs for underflowed
19112         result.
19113         * math/s_catanl.c: Include <float.h>.
19114         (__catanl): Ensure underflow exception occurs for underflowed
19115         result.
19116         * math/libm-test.inc (catan_test): Add more tests.
19117         (catanh_test): Likewise.
19118
19119         [BZ #15405]
19120         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
19121         underflowed result.
19122         * math/s_ccoshf.c (__ccoshf): Likewise.
19123         * math/s_ccoshl.c (__ccoshl): Likewise.
19124         * math/s_csin.c (__csin): Likewise.
19125         * math/s_csinf.c (__csinf): Likewise.
19126         * math/s_csinh.c (__csinh): Likewise.
19127         * math/s_csinhf.c (__csinhf): Likewise.
19128         * math/s_csinhl.c (__csinhl): Likewise.
19129         * math/s_csinl.c (__csinl): Likewise.
19130         * math/libm-test.inc (ccos_test): Add more tests.
19131         (ccosh_test): Likewise.
19132         (csin_test): Likewise.
19133         (csinh_test): Likewise.
19134
19135 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19136
19137         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
19138         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
19139         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
19140         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
19141         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
19142         powerpc/power5+/fpu folders.
19143         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
19144
19145
19146 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19147
19148         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19149
19150 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
19151
19152         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
19153         additions to variable.
19154         [$(config-machine) = x86_64] (modules-names): Likewise.
19155         ($(objpfx)tst-audit3): Remove dependency.
19156         ($(objpfx)tst-audit3.out): Likewise.
19157         ($(objpfx)tst-audit4): Likewise.
19158         ($(objpfx)tst-audit4.out): Likewise.
19159         ($(objpfx)tst-audit5): Likewise.
19160         ($(objpfx)tst-audit5.out): Likewise.
19161         ($(objpfx)tst-audit6): Likewise.
19162         ($(objpfx)tst-audit6.out): Likewise.
19163         ($(objpfx)tst-audit7): Likewise.
19164         ($(objpfx)tst-audit7.out): Likewise.
19165         (tst-audit3-ENV): Remove variable.
19166         (tst-audit4-ENV): Likewise.
19167         (tst-audit5-ENV): Likewise.
19168         (tst-audit6-ENV): Likewise.
19169         (tst-audit7-ENV): Likewise.
19170         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
19171         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
19172         addition to variable.
19173         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
19174         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
19175         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
19176         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
19177         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
19178         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
19179         tst-audit3, tst-audit4 and tst-audit5.
19180         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
19181         tst-audit6 and tst-audit7.
19182         [$(subdir) = elf] (modules-names): Add audit modules for those
19183         tests.
19184         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
19185         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
19186         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
19187         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
19188         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
19189         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
19190         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
19191         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
19192         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
19193         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
19194         [$(subdir) = elf] (tst-audit3-ENV): New variable.
19195         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
19196         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
19197         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
19198         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
19199         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
19200         Likewise.
19201         [$(subdir) = elf && $(config-cflags-avx) = yes]
19202         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
19203         [$(subdir) = elf && $(config-cflags-avx) = yes]
19204         (CFLAGS-tst-auditmod4a.c): Likewise.
19205         [$(subdir) = elf && $(config-cflags-avx) = yes]
19206         (CFLAGS-tst-auditmod4b.c): Likewise.
19207         [$(subdir) = elf && $(config-cflags-avx) = yes]
19208         (CFLAGS-tst-auditmod6b.c): Likewise.
19209         [$(subdir) = elf && $(config-cflags-avx) = yes]
19210         (CFLAGS-tst-auditmod6c.c): Likewise.
19211         [$(subdir) = elf && $(config-cflags-avx) = yes]
19212         (CFLAGS-tst-auditmod7b.c): Likewise.
19213         * elf/tst-audit3.c: Move to ...
19214         * sysdeps/x86_64/tst-audit3.c: ... here.
19215         * elf/tst-audit4.c: Move to ...
19216         * sysdeps/x86_64/tst-audit4.c: ... here.
19217         * elf/tst-audit5.c: Move to ...
19218         * sysdeps/x86_64/tst-audit5.c: ... here.
19219         * elf/tst-audit6.c: Move to ...
19220         * sysdeps/x86_64/tst-audit6.c: ... here.
19221         * elf/tst-audit7.c: Move to ...
19222         * sysdeps/x86_64/tst-audit7.c: ... here.
19223         * elf/tst-auditmod3a.c: Move to ...
19224         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
19225         * elf/tst-auditmod3b.c: Move to ...
19226         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
19227         * elf/tst-auditmod4a.c: Move to ...
19228         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
19229         * elf/tst-auditmod4b.c: Move to ...
19230         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
19231         * elf/tst-auditmod5a.c: Move to ...
19232         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
19233         * elf/tst-auditmod5b.c: Move to ...
19234         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
19235         * elf/tst-auditmod6a.c: Move to ...
19236         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
19237         * elf/tst-auditmod6b.c: Move to ...
19238         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
19239         * elf/tst-auditmod6c.c: Move to ...
19240         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
19241         * elf/tst-auditmod7a.c: Move to ...
19242         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
19243         * elf/tst-auditmod7b.c: Move to ...
19244         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
19245
19246 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
19247
19248         [BZ #15366]
19249         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
19250         define unconditionally.
19251         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
19252         define unconditionally.
19253         (INT8_C, INT16_C, etc.): Likewise.
19254
19255 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
19256
19257         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
19258         __ehdr_start with hidden visibility.
19259
19260         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
19261
19262 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
19263
19264         * math/libm-test.inc (cos_test): Use accurate hex constants.
19265         (sincost_test): Likewise.
19266
19267 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
19268
19269         * math/libm-test.inc (catan_test): Add more tests.
19270         (catanh_test): Likewise.
19271
19272         * math/s_catanf.c (__catanf): Use suffixed floating-point
19273         constants.
19274         * math/s_catanhf.c (__catanhf): Likewise.
19275         * math/s_catanhl.c (__catanhl): Likewise.
19276         * math/s_catanl.c (__catanl): Likewise.
19277
19278         [BZ #15394]
19279         * math/s_catan.c (__catan): Calculate imaginary part of result
19280         with log1p not log unless computing log of number close to 0.
19281         * math/s_catanf.c (__catanf): Likewise.
19282         * math/s_catanl.c (__catanl): Likewise.
19283         * math/s_catanh.c (__catanh): Calculate real part of result with
19284         log1p not log unless computing log of number close to 0.
19285         * math/s_catanhf.c (__catanhf): Likewise.
19286         * math/s_catanhl.c (__catanhl): Likewise.
19287         * math/libm-test.inc (catan_test): Add more tests.
19288         (catanh_test): Likewise.
19289         * sysdeps/i386/fpu/libm-test-ulps: Update.
19290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19291
19292 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19293
19294         * benchtests/Makefile: Mention files in which fast and slow
19295         paths of math functions are implemented.
19296
19297 2013-04-23  Roland McGrath  <roland@hack.frob.com>
19298
19299         * sysdeps/posix/timespec_get.c: New file.
19300
19301 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19302
19303         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
19304         POWER.
19305         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
19306         for POWER.
19307         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
19308         powerpc/power5/fpu folders.
19309         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
19310         * benchtests/Makefile: Add modf testcase.
19311         * benchtests/bench-modf.c: New file: Benchmark test for mo
19312
19313 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
19314
19315         [BZ #14888]
19316         * time/Makefile (tests): Add tst-strptime-whitespace.
19317         * time/strptime_l.c (get_number): Use ISSPACE.
19318         (__strptime_internal): Likewise.
19319         * time/tst-strptime-whitespace.c: New test case.
19320
19321 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
19322
19323         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
19324         member.
19325         (_nss_files_init): Set it here.
19326
19327 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
19328
19329         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
19330         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
19331         unsigned.
19332
19333 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
19334
19335         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
19336
19337 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
19338
19339         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
19340         size just once.
19341
19342 2013-04-21  David S. Miller  <davem@davemloft.net>
19343
19344         * po/ru.po: Update Russion translation from translation project.
19345
19346 2013-04-17  Adam Conrad  <adconrad@0c3.net>
19347
19348         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
19349         and setfsgid.
19350
19351 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
19352
19353         * configure.in: Remove i386 configure warning. Remove i386 case.
19354         * configure: Regenerate.
19355         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
19356         Add example to error message.
19357         * sysdeps/i386/configure: Regenerate.
19358
19359 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
19360
19361         * benchtests/Makefile (bench): Add cos, tan, slowcos and
19362         slowtan.
19363         * benchtests/cos-inputs: New file.
19364         * benchtests/slowcos-inputs: New file.
19365         * benchtests/slowcos.c: New file.
19366         * benchtests/slowtan-inputs: New file.
19367         * benchtests/slowtan.c: New file.
19368         * benchtests/tan-inputs: New file.
19369
19370 2013-04-16  Roland McGrath  <roland@hack.frob.com>
19371
19372         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
19373         considered kosher.
19374
19375 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
19376
19377         * benchtests/Makefile: Include cppflags-iterator.mk to add
19378         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
19379
19380         * Makefile.in (bench-clean): New target.
19381         * benchtests/Makefile (bench-clean): Likewise.
19382
19383 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
19384
19385         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
19386
19387 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
19388
19389         * stdio-common/tstdiomisc.c: Fix coding-style violation.
19390
19391 2013-04-15  Andreas Schwab  <schwab@suse.de>
19392
19393         * nscd/grpcache.c (cache_addgr): Properly check for short write.
19394         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19395         * nscd/pwdcache.c (cache_addpw): Likewise.
19396         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
19397         more than recsize.
19398
19399 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19400
19401         * benchtests/Makefile (bench): Write all output to
19402         bench-out.tmp together.
19403
19404 2013-04-15  Andreas Schwab  <schwab@suse.de>
19405
19406         * nscd/nscd.c (main): Don't fork again after closing files.
19407
19408 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19409
19410         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
19411
19412         * benchtests/Rules (bench-deps): Collect dependencies into a
19413         single variable.  Add Makefile to dependencies.
19414         ($(objpfx)bench-%.c): Depend on bench-deps.
19415
19416 2013-04-12  Roland McGrath  <roland@hack.frob.com>
19417             Xavier Roche  <roche+kml2@exalead.com>
19418
19419         [BZ #15361]
19420         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
19421         just that it's a file descriptor.
19422         * manual/llio.texi (Synchronizing AIO Operations): Update description
19423         for EBADF error from aio_fsync.
19424
19425 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
19426
19427         * Rules (bench): Move target definition...
19428         * benchtests/Makefile: ... here.
19429
19430 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
19431
19432         * math/libm-test.inc (cos_test): Fix PI/2 test.
19433         (sincos_test): Likewise.
19434         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
19435         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19436
19437 2013-04-11  Andreas Schwab  <schwab@suse.de>
19438
19439         [BZ #13988]
19440         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
19441         accept exponent character only when digits were seen.
19442         * stdio-common/Makefile (tests): Add bug26.
19443         * stdio-common/bug26.c: New file.
19444
19445         [BZ #14293]
19446         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
19447         non-freeable.
19448
19449 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
19450
19451         * Makeconfig (rtld-prefix): Define built linker prefix.
19452         * Rules (run-bench): Use it.
19453         * math/Makefile (run-regen-ulps): Likewise.
19454
19455         * Rules (bench): Remove eval.
19456
19457 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19458             Roland McGrath  <roland@hack.frob.com>
19459             Ondrej Bilka  <neleai@seznam.cz>
19460
19461         [BZ #15346]
19462         * time/getdate.c: Include ctype.h and alloca.h.
19463         (__getdate_r): Trim leading and trailing spaces of input.
19464         * time/tst-getdate.c (tests): Add tests with leading and
19465         trailing spaces.
19466
19467 2013-04-08  Roland McGrath  <roland@hack.frob.com>
19468
19469         [BZ #14280]
19470         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
19471         when computing value.
19472
19473 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19474
19475         * math/README.libm-test (How can I generate "libm-test-ulps"?):
19476         Use testrun.sh to run libm tests.
19477
19478         [BZ #15309]
19479         * elf/dl-open.c (dl_open_worker): memset all of seen array.
19480
19481 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
19482
19483         [BZ #15264]
19484         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
19485
19486 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19487
19488         * Makefile.in (regen-ulps): New target.
19489         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
19490         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
19491         [ifneq (no,$(PERL)] (regen-ulps): New target.
19492         [ifeq (no,$(PERL)] (regen-ulps): New target.
19493         * math/libm-test.inc (ulps_file_name): Define.
19494         (output_dir): New variable.
19495         (options): Add "output-dir" option.
19496         (parse_opt): Handle 'o' case.
19497         (main): If output_dir is non-NULL use it as a prefix
19498         otherwise use "".
19499         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
19500
19501 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19502
19503         [BZ #10060, #10062]
19504         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
19505         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
19506         fail configure if __sync_val_compare_and_swap is not inlined.
19507         * sysdeps/i386/configure: Regenerate.
19508         * configure.in: Build for i686 when configured for i386.
19509         * configure: Regenerate.
19510         * README: Remove i386 reference.
19511
19512 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19513
19514         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
19515         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19516
19517 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
19518
19519         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
19520         (lmsnanval): New variables.
19521         (F): Add conversion tests.
19522         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
19523         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
19524
19525         * stdio-common/tstdiomisc.c (F): Properly collect individual
19526         tests' results.
19527
19528         [BZ #14686, #15336]
19529         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
19530         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
19531         Instead, use input NaN values or generate a qNaN by arithmetic
19532         operation.  Also fix bugs to comply with the standard.
19533         * math/libm-test.inc (remainder_test): Add more tests.
19534
19535         [BZ #15335, #15342]
19536         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
19537         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
19538         input NaN values or generate a qNaN by arithmetic operation.
19539
19540         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
19541         unreachable code.
19542
19543         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
19544         definitions.
19545
19546 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
19547
19548         [BZ #14478]
19549         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
19550         underflowed result.
19551         * math/s_cexpf.c (__cexpf): Likewise.
19552         * math/s_cexpl.c (__cexpl): Likewise.
19553         * math/libm-test.inc (cexp_test): Add more tests.
19554
19555 2013-04-03  Andreas Schwab  <schwab@suse.de>
19556
19557         [BZ #15330]
19558         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
19559         order arrays from heap if bigger than alloca cutoff.
19560
19561 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
19562
19563         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
19564         (SNAN_TESTS_double): Refer to GCC PR56831.
19565         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
19566         GCC PR56828.
19567
19568 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
19569
19570         * Rules (bench): Move bench.out after the run is complete.
19571
19572         * Rules (bench): Echo currently running benchmark.
19573
19574         * benchtests/Makefile (bench): Add atan and slowatan.
19575         * benchtests/atan-inputs: New file.
19576         * benchtests/slowatan-inputs: New file.
19577         * benchtests/slowatan.c: New file.
19578
19579         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
19580         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
19581         its value.
19582
19583         [BZ #15305]
19584         * sysdeps/unix/sysv/linux/kernel-features.h
19585         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
19586         __ASSUME_XFS_RESTRICTED_CHOWN.
19587         * sysdeps/unix/sysv/linux/pathconf.c
19588         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
19589         Save and restore errno.
19590
19591 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
19592
19593         [BZ #15327]
19594         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
19595         arguments using __kernel_casinh.
19596         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
19597         arguments using __kernel_casinhf.
19598         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
19599         arguments using __kernel_casinhl.
19600         * math/libm-test.inc (cacosh_test): Add more tests.
19601         * sysdeps/i386/fpu/libm-test-ulps: Update.
19602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19603
19604 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
19605
19606         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
19607         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
19608
19609         * bench/Makefile (bench): Add sin and slowsin.
19610         * benchtests/sin-inputs: New file.
19611         * benchtests/slowsin-inputs: New file.
19612         * benchtests/slowsin.c: New file.
19613
19614         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
19615         (bench): Add slowexp and slowpow.
19616         (exp-ITER): Increase iterations.
19617         (pow-ITER): Likewise.
19618         * benchtests/exp-inputs: Change input.
19619         * benchtests/pow-inputs: Likewise.
19620         * benchtests/slowexp-inputs: New file.
19621         * benchtests/slowexp.c: New file.
19622         * benchtests/slowpow-inputs: New file.
19623         * benchtests/slowpow.c: New file.
19624
19625 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19626
19627         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
19628         instructions.
19629         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19630         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
19631         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
19632         * benchtests/Makefile: Add rint benchtest.
19633         * benchtests/rint-inputs: Input for rint benchtest.
19634
19635 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
19636
19637         * Versions.def (libm): Add GLIBC_2.18.
19638         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
19639         hidden libm prototypes.
19640         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
19641         * math/Makefile (libm-calls): Add s_issignaling.
19642         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
19643         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
19644         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
19645         declaration.
19646         * math/math.h [__USE_GNU] (issignaling): New macro.
19647         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
19648         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
19649         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
19650         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
19651         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
19652         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
19653         * manual/arith.texi (issignaling): New section.
19654         * manual/libm-err-tab.pl (@all_functions): Update comment.
19655         * math/gen-libm-test.pl (parse_args): Apply special handling for
19656         issignaling.
19657         * math/libm-test.inc (print_float, issignaling_test): New
19658         functions.
19659         (check_float_internal): Add issignaling checks.
19660         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
19661         default definition.
19662         * sysdeps/powerpc/math-tests.h: New file.
19663         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
19664         tests.
19665         * math/test-snan.c (TEST_FUNC): Likewise.
19666
19667 2013-03-30  David S. Miller  <davem@davemloft.net>
19668
19669         * po/de.po: Update from translation team.
19670
19671 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
19672
19673         [BZ #10357]
19674         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19675         imaginary part less than 1.0 and real part less than 0.5
19676         specially.
19677         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19678         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19679         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
19680         (cacos_test): Add more tests.
19681         (casin_test): Likewise.
19682         (casinh_test): Likewise.
19683         * sysdeps/i386/fpu/libm-test-ulps: Update.
19684         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19685
19686 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19687
19688         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
19689         ONE with its value.
19690
19691         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
19692         (__pow_mp): Replace ONE and MONE with their values.
19693         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19694         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
19695         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19696         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
19697         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19698         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19699
19700         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
19701
19702         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
19703         (__pow_mp): Replace ZERO and MZERO with their values.
19704         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19705         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19706         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19707         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
19708         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19709         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
19710         (__sqr): Likewise.
19711
19712         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
19713
19714         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
19715
19716 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19717
19718         * include/stdlib.h [!SHARED] (__call_tls_dtors):
19719         Declare with __attribute__ ((weak)).
19720         * stdlib/exit.c (__libc_atexit) [!SHARED]:
19721         Call __call_tls_dtors only if it's not NULL.
19722
19723 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19724
19725         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
19726         didn't do it already, then set _dl_phdr and _dl_phnum based on the
19727         magic __ehdr_start linker symbol if it's defined.
19728         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
19729         them up here if it was already done.
19730
19731         * elf/dl-support.c (_dl_phdr): Make pointer to const.
19732         (_dl_aux_init): Use const in cast when setting it.
19733         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
19734         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
19735         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
19736
19737         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
19738         Declare them here.
19739         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
19740         * csu/libc-tls.c: Nor here.
19741         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
19742
19743         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
19744         (__libc_message): Never call vsyslog.
19745
19746 2013-03-28  Alan Modra  <amodra@gmail.com>
19747
19748         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
19749         Define as empty.
19750         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
19751         Likewise.
19752
19753 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19754
19755         [BZ #15214]
19756         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
19757         underflow.
19758         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19759
19760 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19761
19762         [BZ #15304]
19763         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
19764         Don't add gid passed as argument.
19765
19766         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
19767
19768 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
19769
19770         [BZ #15307]
19771         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19772         imaginary part between 1.0 and 1.5 and real part less than 0.5
19773         specially.
19774         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19775         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19776         * math/libm-test.inc (cacos_test): Add more tests.
19777         (casin_test): Likewise.
19778         (casinh_test): Likewise.
19779         * sysdeps/i386/fpu/libm-test-ulps: Update.
19780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19781
19782 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19783
19784         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
19785         constants.
19786         (norm): Likewise.
19787         (denorm): Likewise.
19788         (__dbl_mp): Likewise.
19789         (add_magnitudes): Likewise.
19790         (sub_magnitudes): Likewise.
19791         (__add): Likewise.
19792         (__sub): Likewise.
19793         (__mul): Likewise.
19794         (__sqr): Likewise.
19795         (__inv): Likewise.
19796         (__dvd): Likewise.
19797
19798         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
19799         commented code.
19800         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
19801         (__dubcos): Likewise.
19802         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
19803         (__ieee754_acos): Likewise.
19804         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19805         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
19806         (__exp1): Likewise.
19807         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19808         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19809         (log1): Likewise.
19810         (my_log2): Likewise.
19811         (checkint): Likewise.
19812         * sysdeps/ieee754/dbl-64/e_remainder.c
19813         (__ieee754_remainder): Likewise.
19814         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19815         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
19816         (bsloww): Likewise.
19817         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19818
19819         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19820         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
19821         MANTISSA_STORE_T to store computations on mantissa.  Use
19822         macros for rounding and division.
19823         (denorm): Likewise.
19824         (__dbl_mp): Likewise.
19825         (add_magnitudes): Likewise.
19826         (sub_magnitudes): Likewise.
19827         (__mul): Likewise.
19828         (__sqr): Likewise.
19829         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19830         powers of two in terms of TWOPOW macro.
19831         (mp_no): Make type of mantissa as MANTISSA_T.
19832         [!RADIXI]: Define RADIXI.
19833         [!TWO52]: Define TWO52.
19834         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19835
19836 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19837
19838         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
19839         llroundl symbol when building for PPC32.
19840
19841 2013-03-24  Mark H Weaver  <mhw@netris.org>
19842
19843         * manual/arith.texi (Normalization Functions): Fix prototypes for
19844         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
19845
19846 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19847
19848         [BZ #13889]
19849         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
19850         high value to check if expl overflow.
19851         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
19852         to check for underflow and overflow.
19853         * math/libm-test.inc: Add exp test.
19854
19855 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
19856
19857         [BZ #11120]
19858         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
19859         with NOT_IN_libc.
19860
19861 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19862
19863         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
19864         symbol.
19865
19866 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19867
19868         * math/gen-libm-test.pl (parse_args, special_functions): Properly
19869         wrap blocks consisting of several statements.
19870
19871         * sysdeps/generic/math-tests.h: New file.
19872         * sysdeps/i386/fpu/math-tests.h: Likewise.
19873         * math/test-snan.c: Include it.
19874         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
19875
19876 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19877
19878         [BZ #15285]
19879         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
19880         (__ieee754_j0l): Do not improve calculations using cos of twice
19881         input for inputs above LDBL_MAX / 2.0L.
19882         (__ieee754_y0l): Likewise.
19883         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
19884         (__ieee754_j1l): Do not improve calculations using cos of twice
19885         input for inputs above LDBL_MAX / 2.0L.
19886         (__ieee754_y1l): Likewise.
19887         * math/libm-test.inc (j0_test): Add another test.
19888         (j1_test): Likewise.
19889         (y0_test): Likewise.
19890         (y1_test): Likewise.
19891         * sysdeps/i386/fpu/libm-test-ulps: Update.
19892
19893 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19894
19895         * Rules ($(objpfx)bench-%.c): Include code from a C source
19896         file.
19897
19898 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19899
19900         [BZ #15287]
19901         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19902         imaginary part 1.0 and real part less than 0.5 specially.
19903         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19904         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19905         * math/libm-test.inc (cacos_test): Add more tests.
19906         (casin_test): Likewise.
19907         (casinh_test): Likewise.
19908         * sysdeps/i386/fpu/libm-test-ulps: Update.
19909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19910
19911 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19912
19913         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
19914         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
19915
19916 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
19917
19918         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
19919         * config.make.in (config-cflags-sse4): Remove variable.
19920         (config-cflags-avx): Likewise.
19921         (config-cflags-sse2avx): Likewise.
19922         (config-cflags-novzeroupper): Likewise.
19923         (config-asflags-i686): Likewise.
19924         (have-mfma4): Likewise.
19925         (have-as-vis3): Likewise.
19926         (MIG): Likewise.
19927         * configure.in (MIG): Do not AC_SUBST.
19928         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
19929         (libc_cv_cc_sse4): Do not AC_SUBST.
19930         (libc_cv_cc_avx): Likewise.
19931         (libc_cv_cc_sse2avx): Likewise.
19932         (libc_cv_cc_novzeroupper): Likewise.
19933         (libc_cv_cc_fma4): Likewise.
19934         (libc_cv_as_i686): Likewise.
19935         (libc_cv_sparc_as_vis3): Likewise.
19936         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
19937         LIBC_CONFIG_VAR.
19938         (config-asflags-i686): Likewise.
19939         (config-cflags-avx): Likewise.
19940         (config-cflags-sse2avx): Likewise.
19941         (have-mfma4): Likewise.
19942         (config-cflags-novzeroupper): Likewise.
19943         * sysdeps/mach/configure.in (MIG): Likewise.
19944         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
19945         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
19946         LIBC_CONFIG_VAR.
19947         (config-cflags-avx): Likewise.
19948         (config-cflags-sse2avx): Likewise.
19949         (have-mfma4): Likewise.
19950         (config-cflags-novzeroupper): Likewise.
19951         * configure: Regenerated.
19952         * sysdeps/i386/configure: Likewise.
19953         * sysdeps/mach/configure: Likewise.
19954         * sysdeps/sparc/configure: Likewise.
19955         * sysdeps/x86_64/configure: Likewise.
19956
19957 2013-03-20  Roland McGrath  <roland@hack.frob.com>
19958
19959         [BZ #14812]
19960         * locale/programs/localedef.c (options): Put N_ translation marker
19961         on argument names, not just descriptions.
19962
19963 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
19964
19965         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
19966
19967 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
19968
19969         [BZ #14176]
19970         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
19971
19972 2013-03-19  Roland McGrath  <roland@hack.frob.com>
19973
19974         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
19975         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
19976         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
19977         [!BEFORE_ABORT] (before_abort): New function.
19978         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
19979         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
19980         (writev_for_fatal): New function.
19981         (WRITEV_FOR_FATAL): New macro; call that.
19982         (backtrace_and_maps): New function.
19983         (BEFORE_ABORT): New macro; call that.
19984         (struct str_list): Type removed.
19985         (__libc_message, __libc_fatal): Functions removed.
19986         Include <sysdeps/posix/libc_fatal.c> instead.
19987
19988 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
19989
19990         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
19991         constants.
19992         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
19993         double constants.
19994
19995 2013-03-19  Andreas Schwab  <schwab@suse.de>
19996
19997         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
19998         * sysdeps/gnu/configure: Regenerate.
19999
20000         * configure.in: Substitute libc_cv_rtlddir.
20001         * configure: Regenerate.
20002         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
20003         * Makeconfig (rtlddir, inst_rtlddir): New variables.
20004         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
20005         * elf/Makefile (install-others, CFLAGS-interp.c)
20006         (ldso_install, common-ldd-rewrite): Likewise.
20007         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
20008         $(inst_slibdir)/$(rtld-installed-name).
20009         * scripts/rellns-sh: Add -p option.
20010         * Makerules (make-shlib-link): Use rellns-sh to get relative name
20011         for source.
20012
20013 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20014
20015         * manual/nptl.texi: Renamed to ...
20016         * manual/threads.texi: ... this.
20017         * manual/Makefile (chapters): Update.
20018
20019 2013-03-18  Roland McGrath  <roland@hack.frob.com>
20020
20021         [BZ #14812]
20022         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
20023         on argument names, not just descriptions.
20024         * malloc/memusagestat.c (options): Likewise.
20025         * nss/getent.c (options): Likewise.
20026
20027 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
20028
20029         [BZ #14812]
20030         * iconv/iconv_prog.c (options): Put N_ translation marker
20031         on argument names, not just descriptions.
20032         * iconv/iconvconfig.c (options): Likewise.
20033
20034 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
20035
20036         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
20037         implementation which is faster on all x86_64 architectures.
20038         Tested on AMD, Intel Nehalem, SNB, IVB.
20039         * sysdeps/x86_64/strnlen.S: Likewise.
20040
20041         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
20042         Remove all multiarch strlen and strnlen versions.
20043         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
20044         Remove strlen and strnlen related parts.
20045
20046         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
20047         Inline strlen part.
20048         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
20049
20050         * sysdeps/x86_64/multiarch/strlen.S: Remove.
20051         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
20052         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
20053         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
20054         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
20055         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
20056
20057 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
20058
20059         * manual/memory.texi (Malloc Tunable Parameters):
20060         Sort parameters alphabetically. Add comments for missing entries.
20061
20062 2013-03-17  David S. Miller  <davem@davemloft.net>
20063
20064         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20065
20066 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
20067
20068         [BZ #15283]
20069         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
20070         for arguments at most half maximum finite value.
20071         * math/libm-test.inc (j0_test): Add more tests.
20072         (j1_test): Likewise.
20073         (y0_test): Likewise.
20074         (y1_test): Likewise.
20075         * sysdeps/i386/fpu/libm-test-ulps: Update.
20076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20077
20078         [BZ #14155]
20079         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
20080         1 / x and functions P and Q for arguments above 0x1p256L.
20081         (__ieee754_y0l): Likewise.
20082         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20083         (__ieee754_y1l): Likewise.
20084         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
20085         (j1_test): Likewise.
20086         (y0_test): Likewise.
20087         (y1_test): Likewise.
20088
20089 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
20090
20091         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
20092         variable.
20093
20094 2013-03-15  Roland McGrath  <roland@hack.frob.com>
20095
20096         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
20097         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
20098         zero since it's initialized to EXEC_PAGESIZE.
20099
20100         * sysdeps/unix/sysv/linux/ldsodefs.h
20101         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
20102         * sysdeps/generic/ldsodefs.h: ... here.
20103
20104 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
20105
20106         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
20107
20108         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
20109         math/test-snan.c.
20110         * math/test-snan.c: Renamed from
20111         sysdeps/powerpc/fpu/test-powerpc-snan.c.
20112         * math/Makefile (tests): Add test-snan.
20113         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
20114         test-powerpc-snan.
20115
20116         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
20117         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
20118         functions.
20119         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
20120         __builtin_nan family of functions.
20121         * math/libm-test.inc (initialize): Initialize qnan_value with
20122         __builtin_nan family of functions.
20123         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
20124         Remove variables.
20125         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
20126         Remove functions.
20127         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
20128         storage class.  Initialize qNaN_var and sNaN_var with
20129         __builtin_nan and __builtin_nans families of functions,
20130         respectively.
20131
20132         * math/libm-test.inc (acosh_test): Also test with qNaN input.
20133         (sqrt_test): Remove duplicate test with qNaN input.
20134         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
20135         (round_test, signbit_test, significand_test): Note missing +/-Inf
20136         as well as qNaN tests.
20137
20138         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
20139         qNaN_var.  Fix a few strings, too.
20140         * math/libm-test.inc (nan_value): Rename to qnan_value.
20141         * math/gen-libm-test.pl (%beautify): Adjust to that.
20142         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
20143         * math/test-misc.c (main): Likewise.
20144         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
20145         to __qnan_bytes, and __qnan_union, respectively.
20146         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
20147         Likewise.
20148         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
20149         and lqnanval, respectively.
20150         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
20151         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
20152         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
20153         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
20154
20155         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
20156         * math/test-misc.c (main) [__x86_64__]: Enable test for long
20157         doubles.
20158
20159         * math/test-misc.c (main): Fix copy'n'pastos.
20160         * misc/tst-efgcvt.c (special): Likewise.
20161
20162         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
20163         Remove declarations.
20164
20165 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20166
20167         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
20168         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
20169         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
20170         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
20171
20172 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20173
20174         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
20175         macro to return vdso values correctly in IFUNC implementations.
20176         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
20177         Optimization by using IFUNC.
20178
20179 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20180             Richard Henderson  <rth@redhat.com>
20181             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20182
20183         * Makefile.in (bench): New target.
20184         * NEWS: Mention the benchmark framework.
20185         * Rules (bench): Likewise.
20186         (binaries-bench): Generate binaries for functions to
20187         benchmark.
20188         * benchtests/Makefile: New makefile for benchmark tests.
20189         * benchtests/bench-skeleton.c: New skeleton file for benchmark
20190         programs.
20191         * benchtests/exp-inputs: New input file for EXP function.
20192         * benchtests/pow-inputs: New input file for POW function.
20193         * scripts/bench.pl: New script to generate source files for
20194         benchmark programs.
20195
20196 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20197
20198         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20199         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
20200         computations on mantissa.  Use macros for rounding and
20201         division.
20202         (denorm): Likewise.
20203         (__dbl_mp): Likewise.
20204         (add_magnitudes): Likewise.
20205         (sub_magnitudes): Likewise.
20206         (__mul): Likewise.
20207         (__sqr): Likewise.
20208         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20209         powers of two in terms of TWOPOW macro.
20210         (mp_no): Make type of mantissa as MANTISSA_T.
20211         [!RADIXI]: Define RADIXI.
20212         [!TWO52]: Define TWO52.
20213         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20214
20215         * manual/nptl.texi (cindex): Modify threads to pthreads.
20216
20217 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
20218
20219         * sysdeps/x86_64/preconfigure: Regenerated.
20220
20221 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
20222
20223         [BZ #14155]
20224         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
20225         0x1p28 and above.
20226         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
20227         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
20228         0x1p28 and above.
20229         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
20230         * math/libm-test.inc (j0_test): Do not allow one spurious
20231         underflow exception.
20232         (y1_test): Likewise.
20233
20234 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20235
20236         * manual/Makefile (chapters): Add nptl.
20237         * manual/debug.texi (Debugging Support): Add link to Threads
20238         chapter.
20239         * manual/nptl.texi: New file.
20240
20241         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
20242
20243 2013-03-14  Petr Baudis  <pasky@ucw.cz>
20244
20245         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
20246         for non-NULL pointer before the memory validity test. Pointed
20247         out by Holger Brunck <holger.brunck@keymile.com>.
20248
20249 2013-03-13  Andreas Schwab  <schwab@suse.de>
20250
20251         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
20252         instead of .os.
20253
20254 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
20255
20256         * timezone/zic.c: Update from tzcode 2013b.
20257
20258 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
20259
20260         * manual/install.texi (Configuring and compiling):
20261         Mention i686 and i586.
20262         * INSTALL: Regenerate.
20263
20264 2013-03-12  Roland McGrath  <roland@hack.frob.com>
20265
20266         * sysdeps/init_array/elf-init.c: New file.
20267         * csu/elf-init.c
20268         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
20269         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
20270
20271         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
20272         __gmon_start__ as global, but as static with a .preinit_array pointer.
20273         * sysdeps/init_array/gmon-start.c: New file.  Use that.
20274         * sysdeps/init_array/crti.S: New file, empty except for comments.
20275         * sysdeps/init_array/crtn.S: Likewise.
20276
20277 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
20278
20279         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
20280         definining bcopy.
20281         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20282         Remove Prefer_SSE_for_memop.
20283         * sysdeps/x86_64/multiarch/init-arch.h: Remove
20284         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
20285         HAS_PREFER_SSE_FOR_MEMOP.
20286         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
20287         memset-x86-64.
20288         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
20289         Remove bzero, memset ifunc support.
20290         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
20291         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
20292         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20293         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20294
20295 2013-03-11  Andreas Schwab  <schwab@suse.de>
20296
20297         [BZ #15234]
20298         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
20299         by SHLIB_COMPAT.
20300         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
20301         (GLIBC_2.16): Remove pthread_atfork.
20302
20303 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20304
20305         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
20306         (ptestcases.h): Likewise.
20307
20308 2013-03-08  Roland McGrath  <roland@hack.frob.com>
20309
20310         * Makeconfig ($(common-objpfx)config.status): Depend on
20311         sysdeps/*/preconfigure{,.in} too.
20312
20313 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
20314
20315         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
20316         (__free_hook): Use void * instead of __malloc_ptr_t.
20317         (__malloc_hook): Likewise.
20318         (__realloc_hook): Likewise.
20319         (__memalign_hook): Likewise.
20320         (__after_morecore_hook): Likewise.
20321         * malloc/arena.c (save_malloc_hook): Likewise.
20322         (save_free_hook): Likewise.
20323         * malloc/hooks.c (malloc_hook_ini): Likewise.
20324         (realloc_hook_ini): Likewise.
20325         (memalign_hook_ini): Likewise.
20326         * malloc/malloc.c (malloc_hook_ini): Likewise.
20327         (realloc_hook_ini): Likewise.
20328         (memalign_hook_ini): Likewise.
20329         (__free_hook): Likewise.
20330         (__malloc_hook): Likewise.
20331         (__realloc_hook): Likewise.
20332         (__memalign_hook): Likewise.
20333         (__libc_malloc): Likewise.
20334         (__libc_free): Likewise.
20335         (__libc_realloc): Likewise.
20336         (__libc_memalign): Likewise.
20337         (__libc_valloc): Likewise.
20338         (__libc_pvalloc): Likewise.
20339         (__libc_calloc): Likewise.
20340         (__posix_memalign): Likewise.
20341         * malloc/morecore.c (__sbrk): Likewise.
20342         (__default_morecore): Likewise.
20343
20344         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
20345
20346         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
20347         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
20348         __malloc_ptrdiff_t.
20349
20350         * malloc/malloc.h (__malloc_size_t): Remove macro.
20351         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
20352         __malloc_size_t.
20353         (old_memalign_hook): Likewise.
20354         (old_realloc_hook): Likewise.
20355         (struct hdr): Likewise.
20356         (flood): Likewise.
20357         (mallochook): Likewise.
20358         (memalignhook): Likewise.
20359         (reallochook): Likewise.
20360         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
20361         (tr_old_realloc_hook): Likewise.
20362         (tr_old_memalign_hook): Likewise.
20363         (tr_mallochook): Likewise.
20364         (tr_reallochook): Likewise.
20365         (tr_memalignhook): Likewise.
20366
20367 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20368
20369         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
20370         default_ldbl_pack and using as default implementation.
20371         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
20372         implementation.
20373         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
20374         redundant definition.
20375         (ldbl_insert_mantissa): Likewise.
20376         (ldbl_canonicalize): Likewise.
20377         (ldbl_nearbyint): Likewise.
20378         (ldbl_pack): Rename to ldbl_pack_ppc.
20379         (ldbl_unpack): Rename to ldbl_unpack_ppc.
20380         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
20381         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
20382
20383 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
20384
20385         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
20386         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
20387         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
20388         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
20389         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
20390         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
20391         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
20392         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
20393
20394 2013-03-07  Andreas Jaeger  <aj@suse.de>
20395
20396         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20397         bits/mman-linux.h.
20398
20399 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
20400
20401         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
20402         Include mpa.h and declare __MPEXP.
20403         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
20404         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20405         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20406         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
20407         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20408         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20409         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
20410
20411         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
20412         (__slowpow): Use long double EXPL and LOGL functions to
20413         compute POW.
20414         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20415         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20416         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
20417         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20418         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20419         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
20420
20421         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
20422         intermediate variable to calculate exponent.
20423         (__sqr): Likewise.
20424         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20425         Likewise.
20426         (__sqr): Likewise.
20427
20428         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
20429         [!NO__SQR]: Define __sqr.
20430         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
20431         and NO__SQR.  Remove all code except __mul and __sqr.  Include
20432         sysdeps/ieee754/dbl-64/mpa.c.
20433         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20434
20435         [BZ #12723]
20436         * posix/Makefile (tests): Add tst-pathconf.
20437         * posix/tst-pathconf.c: New test case.
20438         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
20439         _PC_PIPE_BUF.
20440         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
20441
20442 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
20443
20444         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
20445
20446 2013-03-06  Andreas Jaeger  <aj@suse.de>
20447
20448         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
20449         definition via __MAP_ANONYMOUS.
20450
20451         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
20452         it's not part of Linux headers.
20453
20454         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
20455         (MAP_HUGE_MASK): Define.
20456
20457         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20458         Define.
20459         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20460         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20461         Define.
20462         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20463         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20464         Define.
20465         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20466         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
20467         Define.
20468         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20469
20470         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
20471         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
20472         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
20473         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
20474         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
20475         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
20476
20477         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20478         Handle f2fs.
20479
20480         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20481         Handle f2fs and efivarfs.
20482
20483         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
20484         f2fs.
20485
20486         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
20487         (EFIVARFS_MAGIC): Add.
20488         (F2FS_LINK_MAX): Add.
20489
20490 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20491
20492         * stdio-common/vfprintf.c: Replace __builtin_expect with
20493         __glibc_unlikely.
20494
20495 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
20496
20497         [BZ #13550]
20498         * sysdeps/generic/bp-sym.h: Remove file.
20499         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
20500         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
20501         <bp-sym.h> and <bp-asm.h>.
20502         (__longjmp): Don't use BP_SYM.
20503         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
20504         and <bp-asm.h>.
20505         (memcpy): Don't use BP_SYM.
20506         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
20507         <bp-sym.h> and <bp-asm.h>.
20508         (memcpy): Don't use BP_SYM.
20509         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
20510         <bp-asm.h>.
20511         (memcpy): Don't use BP_SYM.
20512         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
20513         <bp-asm.h>.
20514         (memset): Don't use BP_SYM.
20515         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20516         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20517         (__bzero): Don't use BP_SYM.
20518         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20519         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20520         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
20521         <bp-sym.h> and <bp-asm.h>.
20522         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20523         pointers.
20524         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
20525         <bp-sym.h> and <bp-asm.h>.
20526         (memcpy): Don't use BP_SYM.
20527         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
20528         <bp-sym.h> and <bp-asm.h>.
20529         (memset): Don't use BP_SYM.
20530         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20531         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20532         (__bzero): Don't use BP_SYM.
20533         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20534         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20535         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
20536         <bp-sym.h> and <bp-asm.h>.
20537         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20538         pointers.
20539         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
20540         <bp-sym.h> and <bp-asm.h>.
20541         (memcpy): Don't use BP_SYM.
20542         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
20543         <bp-sym.h> and <bp-asm.h>.
20544         (memset): Don't use BP_SYM.
20545         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20546         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20547         (__bzero): Don't use BP_SYM.
20548         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20549         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20550         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
20551         <bp-sym.h> and <bp-asm.h>.
20552         (__memchr): Don't use BP_SYM.
20553         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
20554         <bp-sym.h> and <bp-asm.h>.
20555         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20556         pointers.
20557         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
20558         <bp-sym.h> and <bp-asm.h>.
20559         (memcpy): Don't use BP_SYM.
20560         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
20561         <bp-sym.h> and <bp-asm.h>.
20562         (__mempcpy): Don't use BP_SYM.
20563         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
20564         <bp-sym.h> and <bp-asm.h>.
20565         (__memrchr): Don't use BP_SYM.
20566         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
20567         <bp-sym.h> and <bp-asm.h>.
20568         (memset): Don't use BP_SYM.
20569         (__bzero): Likewise.
20570         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
20571         <bp-sym.h> and <bp-asm.h>.
20572         (__rawmemchr): Don't use BP_SYM.
20573         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
20574         <bp-sym.h> and <bp-asm.h>.
20575         (__STRCMP): Don't use BP_SYM.
20576         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
20577         <bp-sym.h> and <bp-asm.h>.
20578         (strchr): Don't use BP_SYM.
20579         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
20580         <bp-sym.h> and <bp-asm.h>.
20581         (__strchrnul): Don't use BP_SYM.
20582         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
20583         <bp-sym.h> and <bp-asm.h>.
20584         (strlen): Don't use BP_SYM.
20585         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
20586         <bp-sym.h> and <bp-asm.h>.
20587         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20588         pointers.
20589         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
20590         <bp-sym.h> and <bp-asm.h>.
20591         (__strnlen): Don't use BP_SYM.
20592         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
20593         <bp-sym.h> and <bp-asm.h>.
20594         (__GI__setjmp): Don't use BP_SYM.
20595         (_setjmp): Likewise.
20596         (__sigsetjmp): Likewise.
20597         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
20598         (L(start_addresses)): Don't use BP_SYM.
20599         (_start): Likewise.
20600         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
20601         <bp-asm.h>.
20602         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
20603         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
20604         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20605         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20606         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
20607         <bp-asm.h>.
20608         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
20609         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
20610         about bounded pointers.
20611         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20612         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20613         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
20614         <bp-asm.h>.
20615         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20616         about bounded pointers.  Remove GKM FIXME comments.
20617         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20618         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
20619         <bp-asm.h>.
20620         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
20621         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
20622         Remove GKM FIXME comments.
20623         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20624         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20625         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
20626         <bp-asm.h>.
20627         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20628         about bounded pointers.  Remove GKM FIXME comment.
20629         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
20630         and <bp-asm.h>.
20631         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20632         pointers.
20633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
20634         <bp-sym.h> and <bp-asm.h>.
20635         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
20637         <bp-sym.h> and <bp-asm.h>.
20638         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20639         comment.
20640
20641 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20642
20643         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
20644         call free(NULL).
20645
20646 2013-03-05  David S. Miller  <davem@davemloft.net>
20647
20648         * po/es.po: Update from translation team.
20649
20650 2013-03-05  Andreas Jaeger  <aj@suse.de>
20651
20652         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
20653         <bits/mman-linux.h>.
20654         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20655         is fine.
20656         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
20657         <bits/mman-linux.h> to end of file.
20658         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20659         is fine.
20660         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
20661         <bits/mman-linux.h> to end of file.
20662         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20663         is fine.
20664         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
20665         <bits/mman-linux.h> to end of file.
20666
20667         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
20668         (MCL_CURRENT, MCL_FUTURE): Define here.
20669
20670 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20671
20672         [BZ #15232]
20673         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
20674         attribute_hidden.
20675         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
20676
20677 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20678
20679         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
20680         fourth parameter needed for rt_sigprocmask syscall.
20681         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
20682         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
20683         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20684         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
20685         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
20686         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
20687
20688 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
20689
20690         [BZ #13550]
20691         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
20692         comment about bounded pointers.
20693         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
20694         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
20695
20696 2013-03-04  Andreas Jaeger  <aj@suse.de>
20697
20698         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
20699         common definitions.
20700
20701         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
20702         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
20703         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
20704         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20705         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20706         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20707
20708 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20709
20710         [BZ #15055]
20711         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20712         __ieee754_sqrl instead of __sqrl.
20713
20714 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
20715
20716         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
20717         * sysdeps/powerpc/fpu_control.h: ... here.
20718         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
20719         * sysdeps/powerpc/bits/fenvinline.h: ... here.
20720         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
20721         * sysdeps/powerpc/bits/mathinline.h: ... here.
20722
20723 2013-03-01  Roland McGrath  <roland@hack.frob.com>
20724
20725         * elf/dl-hwcaps.c (_dl_important_hwcaps):
20726         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
20727         to just [NEED_DL_SYSINFO_DSO].
20728         * elf/dl-support.c: Likewise.
20729         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
20730         * elf/rtld.c (dl_main): Likewise.
20731         * elf/setup-vdso.h (setup_vdso): Likewise.
20732         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
20733         * sysdeps/unix/sysv/linux/dl-sysdep.c
20734         (_dl_discover_osversion): Likewise.
20735
20736 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
20737
20738         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
20739         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20740
20741 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20742
20743         * NEWS: Mention libm performance improvements and non-x86 PI
20744         futex support.
20745
20746         * csu/libc-start.c (__pthread_initialize_minimal): Change
20747         function arguments.
20748         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20749
20750 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
20751
20752         [BZ #13550]
20753         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
20754         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
20755         <bp-sym.h> and <bp-asm.h>.
20756         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20757         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
20758         and <bp-asm.h>.
20759         (memcpy): Don't use BP_SYM.
20760         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
20761         <bp-asm.h>.
20762         (__mpn_add_n): Don't use BP_SYM.
20763         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
20764         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
20765         and <bp-asm.h>.
20766         (__mpn_addmul_1): Don't use BP_SYM.
20767         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20768         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
20769         <bp-sym.h>.
20770         (_setjmp): Don't use BP_SYM.
20771         (__novmx_setjmp): Likewise.
20772         (__GI__setjmp): Likewise.
20773         (__vmx_setjmp): Likewise.
20774         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
20775         <bp-sym.h>.
20776         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
20777         (__bzero): Don't use BP_SYM.
20778         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20779         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20780         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
20781         <bp-sym.h> and <bp-asm.h>.
20782         (memcpy): Don't use BP_SYM.
20783         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
20784         <bp-sym.h> and <bp-asm.h>.
20785         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20786         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
20787         <bp-sym.h> and <bp-asm.h>.
20788         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20789         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
20790         <bp-asm.h>.
20791         (__mpn_lshift): Don't use BP_SYM.
20792         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20793         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
20794         <bp-asm.h>.
20795         (memset): Don't use BP_SYM.
20796         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20797         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20798         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
20799         <bp-asm.h>.
20800         (__mpn_mul_1): Don't use BP_SYM.
20801         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20802         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
20803         <bp-sym.h> and <bp-asm.h>.
20804         (memcmp): Don't use BP_SYM.
20805         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
20806         <bp-sym.h> and <bp-asm.h>.
20807         (memcpy): Don't use BP_SYM.
20808         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
20809         <bp-sym.h> and <bp-asm.h>.
20810         (memset): Don't use BP_SYM.
20811         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
20812         <bp-sym.h> and <bp-asm.h>.
20813         (strncmp): Don't use BP_SYM.
20814         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
20815         <bp-sym.h> and <bp-asm.h>.
20816         (memcpy): Don't use BP_SYM.
20817         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
20818         <bp-sym.h> and <bp-asm.h>.
20819         (memset): Don't use BP_SYM.
20820         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
20821         <bp-sym.h> and <bp-asm.h>.
20822         (__memchr): Don't use BP_SYM.
20823         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
20824         <bp-sym.h> and <bp-asm.h>.
20825         (memcmp): Don't use BP_SYM.
20826         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
20827         <bp-sym.h> and <bp-asm.h>.
20828         (memcpy): Don't use BP_SYM.
20829         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
20830         <bp-sym.h> and <bp-asm.h>.
20831         (__mempcpy): Don't use BP_SYM.
20832         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
20833         <bp-sym.h> and <bp-asm.h>.
20834         (__memrchr): Don't use BP_SYM.
20835         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
20836         <bp-sym.h> and <bp-asm.h>.
20837         (memset): Don't use BP_SYM.
20838         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
20839         <bp-sym.h> and <bp-asm.h>.
20840         (__rawmemchr): Don't use BP_SYM.
20841         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
20842         <bp-sym.h> and <bp-asm.h>.
20843         (__STRCMP): Don't use BP_SYM.
20844         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
20845         <bp-sym.h> and <bp-asm.h>.
20846         (strchr): Don't use BP_SYM.
20847         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
20848         <bp-sym.h> and <bp-asm.h>.
20849         (__strchrnul): Don't use BP_SYM.
20850         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
20851         <bp-sym.h> and <bp-asm.h>.
20852         (strlen): Don't use BP_SYM.
20853         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
20854         <bp-sym.h> and <bp-asm.h>.
20855         (strncmp): Don't use BP_SYM.
20856         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
20857         <bp-sym.h> and <bp-asm.h>.
20858         (__strnlen): Don't use BP_SYM.
20859         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
20860         <bp-asm.h>.
20861         (__mpn_rshift): Don't use BP_SYM.
20862         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20863         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
20864         <bp-sym.h> and <bp-asm.h>.
20865         (__sigsetjmp): Don't use BP_SYM.
20866         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
20867         (L(start_addresses)): Don't use BP_SYM.
20868         (_start): Likewise.
20869         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
20870         <bp-asm.h>.
20871         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
20872         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20873         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20874         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
20875         <bp-asm.h>.
20876         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
20877         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20878         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20879         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
20880         <bp-asm.h>.
20881         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20882         comments.
20883         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20884         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
20885         <bp-asm.h>.
20886         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
20887         FIXME comments.
20888         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20889         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20890         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
20891         <bp-asm.h>.
20892         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20893         comment.
20894         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
20895         and <bp-asm.h>.
20896         (strncmp): Don't use BP_SYM,
20897         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
20898         <bp-asm.h>.
20899         (__mpn_sub_n): Don't use BP_SYM.
20900         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20901         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
20902         and <bp-asm.h>.
20903         (__mpn_submul_1): Don't use BP_SYM.
20904         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
20906         <bp-sym.h> and <bp-asm.h>.
20907         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
20909         <bp-sym.h> and <bp-asm.h>.
20910         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20911         comment.
20912
20913 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20914
20915         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
20916         Use ZK to minimize writes to Z.
20917         (sub_magnitudes): Simplify code a bit.
20918         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
20919         Use ZK to minimize writes to Z.
20920         (sub_magnitudes): Simplify code a bit.
20921
20922 2013-02-27  Roland McGrath  <roland@hack.frob.com>
20923
20924         * csu/gmon-start.c: Add special exception to license text.
20925
20926 2013-02-27  Richard Henderson  <rth@redhat.com>
20927
20928         * scripts/config.guess: Update from config.git.
20929         * scripts/config.sub: Likewise.
20930
20931 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
20932
20933         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
20934
20935         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
20936
20937         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
20938
20939         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
20940
20941         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
20942
20943 2013-02-26  Roland McGrath  <roland@hack.frob.com>
20944
20945         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
20946         [$(build-shared = yes].
20947
20948 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20949
20950         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
20951         (__mul): Reduce iterations for calculating mantissa.
20952
20953         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
20954         MPTWO.
20955         (__mpranred): Likewise.
20956
20957         [BZ #15160]
20958         * malloc/memusagestat.c (main): Draw graphs for heap and stack
20959         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
20960
20961 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20962
20963         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
20964         Define __attribute__.
20965
20966 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20967
20968         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
20969         unused.
20970         * posix/regex_internal.h (__attribute): Remove.
20971         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
20972         (re_string_context_at): Likewise.
20973         (bitset_not): Use __attribute__ and mark function as possibly
20974         unused.
20975         (bitset_merge): Likewise.
20976         (bitset_mask): Likewise.
20977         (re_string_char_size_at): Likewise.
20978         (re_string_wchar_at): Likewise.
20979         (re_string_elem_size_at): Likewise.
20980
20981 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
20982
20983         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
20984         code.
20985         (cc32): Likewise.
20986
20987         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
20988         (__acr): Likewise.
20989         (__cpy): Likewise.
20990         (norm): Likewise.
20991         (denorm): Likewise.
20992         (__dbl_mp): Likewise.
20993         (add_magnitudes): Likewise.
20994         (sub_magnitudes): Likewise.
20995         (__mul): Likewise.
20996         (__inv): Likewise.
20997
20998         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
20999         style.
21000
21001         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
21002         style.
21003
21004         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
21005         code.
21006
21007         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
21008         up changes with default code.
21009         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
21010         Likewise.
21011
21012 2013-02-24  Allan McRae  <allan@archlinux.org>
21013
21014         * manual/socket.texi (The Internet Namespace): Order menu items
21015         to match that in the file.
21016
21017         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
21018         node listing of the info page menu.
21019
21020 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
21021
21022         [BZ #13550]
21023         * sysdeps/i386/bp-asm.h: Remove file.
21024         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21025         (PARMS): Do not use macros from bp-asm.h.
21026         (S1): Likewise.
21027         (S2): Likewise.
21028         (SIZE): Likewise.
21029         (__mpn_add_n): Do not use BP_SYM
21030         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
21031         "bp-asm.h".
21032         (PARMS): Do not use macros from bp-asm.h.
21033         (S1): Likewise.
21034         (SIZE): Likewise.
21035         (__mpn_addmul_1): Do not use BP_SYM
21036         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
21037         "bp-asm.h".
21038         (PARMS): Do not use macros from bp-asm.h.
21039         (SIGMSK): Likewise.
21040         (_setjmp): Likewise.  Do not use BP_SYM.
21041         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
21042         "bp-asm.h".
21043         (PARMS): Do not use macros from bp-asm.h.
21044         (SIGMSK): Likewise.
21045         (setjmp): Likewise.  Do not use BP_SYM.
21046         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
21047         "bp-asm.h".
21048         (PARMS): Do not use macros from bp-asm.h.
21049         (__frexp): Do not use BP_SYM.
21050         (frexp): Likewise.
21051         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
21052         "bp-asm.h".
21053         (PARMS): Do not use macros from bp-asm.h.
21054         (__frexpf): Do not use BP_SYM.
21055         (frexpf): Likewise.
21056         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
21057         "bp-asm.h".
21058         (PARMS): Do not use macros from bp-asm.h.
21059         (__frexpl): Do not use BP_SYM.
21060         (frexpl): Likewise.
21061         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
21062         "bp-asm.h".
21063         (PARMS): Do not use macros from bp-asm.h.
21064         (__remquo): Do not use BP_SYM.
21065         (remquo): Likewise.
21066         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
21067         "bp-asm.h".
21068         (PARMS): Do not use macros from bp-asm.h.
21069         (__remquof): Do not use BP_SYM.
21070         (remquof): Likewise.
21071         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
21072         "bp-asm.h".
21073         (PARMS): Do not use macros from bp-asm.h.
21074         (__remquol): Do not use BP_SYM.
21075         (remquol): Likewise.
21076         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
21077         "bp-asm.h".
21078         (PARMS): Do not use macros from bp-asm.h.
21079         (DEST): Likewise.
21080         (SRC): Likewise.
21081         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
21082         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
21083         "bp-asm.h".
21084         (PARMS): Do not use macros from bp-asm.h.
21085         (strlen): Do not use BP_SYM.
21086         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
21087         "bp-asm.h".
21088         (PARMS): Do not use macros from bp-asm.h.
21089         (S1): Likewise.
21090         (S2): Likewise.
21091         (SIZE): Likewise.
21092         (__mpn_add_n): Do not use BP_SYM.
21093         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
21094         "bp-asm.h".
21095         (PARMS): Do not use macros from bp-asm.h.
21096         (S1): Likewise.
21097         (SIZE): Likewise.
21098         (__mpn_addmul_1): Do not use BP_SYM.
21099         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
21100         weak_alias.
21101         (bzero): Likewise.
21102         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
21103         "bp-asm.h".
21104         (PARMS): Do not use macros from bp-asm.h.
21105         (S): Likewise.
21106         (SIZE): Likewise.
21107         (__mpn_lshift): Do not use BP_SYM.
21108         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
21109         "bp-asm.h".
21110         (PARMS): Do not use macros from bp-asm.h.
21111         (DEST): Likewise.
21112         (SRC): Likewise.
21113         (LEN): Likewise.
21114         (memcpy): Likewise.  Do not use BP_SYM.
21115         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
21116         libc_hidden_def and weak_alias.
21117         (mempcpy): Do not use BP_SYM in weak_alias.
21118         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
21119         "bp-asm.h".
21120         (PARMS): Do not use macros from bp-asm.h.
21121         (DEST): Likewise.
21122         (LEN): Likewise.
21123         [!BZERO_P] (CHR): Likewise.
21124         (memset): Likewise.  Do not use BP_SYM.
21125         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
21126         "bp-asm.h".
21127         (PARMS): Do not use macros from bp-asm.h.
21128         (S1): Likewise.
21129         (SIZE): Likewise.
21130         (__mpn_mul_1): Do not use BP_SYM.
21131         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
21132         "bp-asm.h".
21133         (PARMS): Do not use macros from bp-asm.h.
21134         (S): Likewise.
21135         (SIZE): Likewise.
21136         (__mpn_rshift): Do not use BP_SYM.
21137         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
21138         "bp-asm.h".
21139         (PARMS): Do not use macros from bp-asm.h.
21140         (STR): Likewise.
21141         (CHR): Likewise.
21142         (strchr): Likewise.  Do not use BP_SYM.
21143         (index): Do not use BP_SYM in weak_alias.
21144         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
21145         "bp-asm.h".
21146         (PARMS): Do not use macros from bp-asm.h.
21147         (DEST): Likewise.
21148         (SRC): Likewise.
21149         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
21150         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
21151         "bp-asm.h".
21152         (PARMS): Do not use macros from bp-asm.h.
21153         (strlen): Do not use BP_SYM.
21154         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
21155         "bp-asm.h".
21156         (PARMS): Do not use macros from bp-asm.h.
21157         (S1): Likewise.
21158         (S2): Likewise.
21159         (SIZE): Likewise.
21160         (__mpn_sub_n): Do not use BP_SYM.
21161         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
21162         "bp-asm.h".
21163         (PARMS): Do not use macros from bp-asm.h.
21164         (S1): Likewise.
21165         (SIZE): Likewise.
21166         (__mpn_submul_1): Do not use BP_SYM.
21167         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
21168         "bp-asm.h".
21169         (PARMS): Do not use macros from bp-asm.h.
21170         (S1): Likewise.
21171         (S2): Likewise.
21172         (SIZE): Likewise.
21173         (__mpn_add_n): Do not use BP_SYM.
21174         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
21175         weak_alias.
21176         (bzero): Likewise.
21177         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
21178         "bp-asm.h".
21179         (PARMS): Do not use macros from bp-asm.h.
21180         (BLK2): Likewise.
21181         (LEN): Likewise.
21182         (memcmp): Do not use BP_SYM.
21183         (bcmp): Do not use BP_SYM in weak_alias.
21184         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
21185         "bp-asm.h".
21186         (PARMS): Do not use macros from bp-asm.h.
21187         (DEST): Likewise.
21188         (SRC): Likewise.
21189         (LEN): Likewise.
21190         (memcpy): Likewise.  Do not use BP_SYM.
21191         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
21192         "bp-asm.h".
21193         (PARMS): Do not use macros from bp-asm.h.
21194         (DEST): Likewise.
21195         (SRC): Likewise.
21196         (LEN): Likewise.
21197         (memmove): Likewise.  Do not use BP_SYM.
21198         * sysdeps/i386/i686/mempcpy.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         (SRC): Likewise.
21203         (LEN): Likewise.
21204         (__mempcpy): Likewise.  Do not use BP_SYM.
21205         (mempcpy): Do not use BP_SYM in weak_alias.
21206         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
21207         "bp-asm.h".
21208         (PARMS): Do not use macros from bp-asm.h.
21209         (DEST): Likewise.
21210         (LEN): Likewise.
21211         [!BZERO_P] (CHR): Likewise.
21212         (memset): Likewise.  Do not use BP_SYM.
21213         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
21214         "bp-asm.h".
21215         (PARMS): Do not use macros from bp-asm.h.
21216         (STR2): Likewise.
21217         (strcmp): Do not use BP_SYM.
21218         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
21219         "bp-asm.h".
21220         (PARMS): Do not use macros from bp-asm.h.
21221         (STR): Likewise.
21222         (DELIM): Likewise.
21223         [USE_AS_STRTOK_R] (SAVE): Likewise.
21224         (FUNCTION): Likewise.  Do not use BP_SYM.
21225         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
21226         aliases.
21227         (strtok_r): Likewise.
21228         (__GI___strtok_r): Likewise.
21229         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21230         (PARMS): Do not use macros from bp-asm.h.
21231         (S): Likewise.
21232         (SIZE): Likewise.
21233         (__mpn_lshift): Do not use BP_SYM.
21234         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21235         (PARMS): Do not use macros from bp-asm.h.
21236         (STR): Likewise.
21237         (CHR): Likewise.
21238         (__memchr): Do not use BP_SYM.
21239         (memchr): Do not use BP_SYM in weak_alias.
21240         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21241         (PARMS): Do not use macros from bp-asm.h.
21242         (BLK2): Likewise.
21243         (LEN): Likewise.
21244         (memcmp): Do not use BP_SYM.
21245         (bcmp): Do not use BP_SYM in weak_alias.
21246         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
21247         (PARMS): Do not use macros from bp-asm.h.
21248         (S1): Likewise.
21249         (SIZE): Likewise.
21250         (__mpn_mul_1): Do not use BP_SYM.
21251         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
21252         "bp-asm.h".
21253         (PARMS): Do not use macros from bp-asm.h.
21254         (STR): Likewise.
21255         (CHR): Likewise.
21256         (__rawmemchr): Do not use BP_SYM.
21257         (rawmemchr): Do not use BP_SYM in weak_alias.
21258         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21259         (PARMS): Do not use macros from bp-asm.h.
21260         (S): Likewise.
21261         (SIZE): Likewise.
21262         (__mpn_rshift): Do not use BP_SYM.
21263         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21264         (PARMS): Do not use macros from bp-asm.h.
21265         (SIGMSK): Likewise.
21266         (__sigsetjmp): Likewise.  Do not use BP_SYM.
21267         * sysdeps/i386/start.S: Do not include "bp-sym.h".
21268         (_start): Do not use BP_SYM.
21269         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
21270         (PARMS): Do not use macros from bp-asm.h.
21271         (DEST): Likewise.
21272         (SRC): Likewise.
21273         (__stpcpy): Likewise.  Do not use BP_SYM.
21274         (stpcpy): Do not use BP_SYM in weak_alias.
21275         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
21276         "bp-asm.h".
21277         (PARMS): Do not use macros from bp-asm.h.
21278         (DEST): Likewise.
21279         (SRC): Likewise.
21280         (LEN): Likewise.
21281         (__stpncpy): Likewise.  Do not use BP_SYM.
21282         (stpncpy): Do not use BP_SYM in weak_alias.
21283         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21284         (PARMS): Do not use macros from bp-asm.h.
21285         (STR): Likewise.
21286         (CHR): Likewise.
21287         (strchr): Likewise.  Do not use BP_SYM.
21288         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
21289         "bp-asm.h".
21290         (PARMS): Do not use macros from bp-asm.h.
21291         (STR): Likewise.
21292         (CHR): Likewise.
21293         (__strchrnul): Likewise.  Do not use BP_SYM.
21294         (strchrnul): Do not use BP_SYM in weak_alias.
21295         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
21296         "bp-asm.h".
21297         (PARMS): Do not use macros from bp-asm.h.
21298         (STOP): Likewise.
21299         (strcspn): Do not use BP_SYM.
21300         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
21301         "bp-asm.h".
21302         (PARMS): Do not use macros from bp-asm.h.
21303         (STR): Likewise.
21304         (STOP): Likewise.
21305         (strpbrk): Likewise.  Do not use BP_SYM.
21306         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
21307         "bp-asm.h".
21308         (PARMS): Do not use macros from bp-asm.h.
21309         (STR): Likewise.
21310         (CHR): Likewise.
21311         (strrchr): Likewise.  Do not use BP_SYM.
21312         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
21313         (PARMS): Do not use macros from bp-asm.h.
21314         (SKIP): Likewise.
21315         (strspn): Do not use BP_SYM.
21316         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
21317         (PARMS): Do not use macros from bp-asm.h.
21318         (STR): Likewise.
21319         (DELIM): Likewise.
21320         (SAVE): Likewise.
21321         (FUNCTION): Likewise.  Do not use BP_SYM.
21322         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
21323         aliases.
21324         (strtok_r): Likewise.
21325         (__GI___strtok_r): Likewise.
21326         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21327         (PARMS): Do not use macros from bp-asm.h.
21328         (S1): Likewise.
21329         (S2): Likewise.
21330         (SIZE): Likewise.
21331         (__mpn_sub_n): Do not use BP_SYM.
21332         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
21333         "bp-asm.h".
21334         (PARMS): Do not use macros from bp-asm.h.
21335         (S1): Likewise.
21336         (SIZE): Likewise.
21337         (__mpn_submul_1): Do not use BP_SYM.
21338         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
21339         <bp-sym.h>.
21340         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
21341         and <bp-asm.h>.
21342         (PARMS): Do not use macros from bp-asm.h.
21343         (FLAGS): Likewise.
21344         (PTID): Likewise.
21345         (TLS): Likewise.
21346         (CTID): Likewise.
21347         (__clone): Do not use BP_SYM.
21348         (clone): Do not use BP_SYM in weak_alias.
21349         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
21350         and <bp-asm.h>.
21351         (PARMS): Do not use macros from bp-asm.h.
21352         (LEN): Likewise.
21353         (__mmap64): Do not use BP_SYM.
21354         (mmap64): Do not use BP_SYM in weak_alias.
21355         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
21356         <bp-sym.h> and <bp-asm.h>.
21357         (PARMS): Do not use macros from bp-asm.h.
21358         (__posix_fadvise64_l64): Do not use BP_SYM.
21359         * sysdeps/unix/sysv/linux/i386/semtimedop.S
21360         (PARMS): Do not use macros from bp-asm.h.
21361         (NSOPS): Likewise.
21362         (semtimedop): Do not use BP_SYM.
21363         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
21364         and <bp-asm.h>.
21365
21366 2013-02-21  Allan McRae  <allan@archlinux.org>
21367
21368         * manual/message.texi (Charset conversion in gettext):
21369         Move @end statement to beginning of line.
21370
21371 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21372
21373         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
21374         static.
21375         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
21376         Likewise.
21377
21378         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
21379         (denorm): Likewise.
21380         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
21381         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
21382
21383 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21384
21385         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
21386         tail-call to the resolved function if pltexit isn't needed.
21387
21388 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21389
21390         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
21391         or Y being zero as being unlikely.
21392         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21393         Likewise.
21394
21395 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
21396
21397         * manual/nss.texi (System Databases and Name Service Switch):
21398         Remove frobnicate @pxref.
21399
21400 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21401
21402         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21403         __attribute__ ((unused)) to __attribute__ ((__unused__)).
21404
21405 2013-02-20  Petr Machata  <pmachata@redhat.com>
21406
21407         * elf/elf.h (R_ARM_TARGET1): New macro.
21408         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
21409         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
21410         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
21411         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
21412         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
21413         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
21414         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
21415         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
21416         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
21417         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
21418         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
21419         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
21420         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
21421         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
21422         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
21423         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
21424         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
21425         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
21426         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
21427         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
21428         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
21429         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
21430         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
21431         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
21432         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
21433         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
21434         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
21435         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
21436         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
21437         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
21438         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
21439         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
21440         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
21441         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
21442         (R_ARM_THM_GOT_BREL12): Likewise.
21443         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
21444         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
21445         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
21446         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
21447         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
21448         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
21449         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
21450         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
21451         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
21452
21453 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21454
21455         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21456         __attribute_used__ to __attribute__ ((unused)).
21457
21458 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
21459
21460         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
21461         powerpc mpa.c.
21462         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
21463         comment formatting.
21464         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
21465
21466 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
21467
21468         [BZ #13550]
21469         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
21470         Remove macro.
21471         (ENTER): Remove both macro definitions.
21472         (LEAVE): Likewise.
21473         (CHECK_BOUNDS_LOW): Likewise.
21474         (CHECK_BOUNDS_HIGH): Likewise.
21475         (CHECK_BOUNDS_BOTH): Likewise.
21476         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
21477         (RETURN_BOUNDED_POINTER): Likewise.
21478         (RETURN_NULL_BOUNDED_POINTER): Likewise.
21479         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
21480         (POP_ERRNO_LOCATION_RETURN): Likewise.
21481         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
21482         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21483         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
21484         macros.
21485         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21486         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
21487         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
21488         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
21489         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
21490         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
21491         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
21492         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
21493         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
21494         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
21495         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
21496         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
21497         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21498         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
21499         removed macros.
21500         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21501         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
21502         macros.
21503         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21504         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
21505         * sysdeps/i386/i586/memset.S (memset): Likewise.
21506         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
21507         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21508         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
21509         macros.
21510         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21511         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
21512         Change uses of L(2) to L(out).
21513         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
21514         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
21515         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
21516         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21517         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
21518         removed macros.
21519         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21520         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
21521         macros.
21522         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21523         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
21524         (RETURN): Do not use macro LEAVE.
21525         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
21526         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
21527         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
21528         * sysdeps/i386/i686/memset.S (memset): Likewise.
21529         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
21530         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
21531         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21532         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
21533         Likewise.
21534         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21535         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
21536         L(1_2) and L(1_3) into L(1).
21537         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21538         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
21539         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21540         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
21541         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21542         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
21543         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
21544         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21545         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
21546         macros.
21547         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
21548         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21549         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
21550         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
21551         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
21552         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21553         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
21554         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
21555         * sysdeps/i386/strcspn.S (strcspn): Likewise.
21556         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
21557         * sysdeps/i386/strrchr.S (strrchr): Likewise.
21558         * sysdeps/i386/strspn.S (strspn): Likewise.
21559         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
21560         conditional code.
21561         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21562         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
21563         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21564         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
21565         L(1_3) into L(1_1).
21566         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
21567         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21568         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
21569         macros.
21570         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21571
21572 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
21573
21574         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
21575         macro.
21576
21577 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21578
21579         * math/atest-exp.c (exp_mpn): Remove ROUND.
21580         * math/atest-exp2.c (exp_mpn): Likewise.
21581         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
21582
21583         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
21584         * stdlib/tst-tls-atexit-lib.c: Likewise.
21585         * stdlib/tst-tls-atexit.c: Likewise.
21586
21587 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21588
21589         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
21590         and __attribute_alloc_size__.
21591
21592 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21593
21594         * include/programs/xmalloc.h: Change __attribute_alloc_size to
21595         __attribute_alloc_size__.
21596         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
21597         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
21598
21599 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21600
21601         * include/programs/xmalloc.h: New file.
21602         * catgets/gencat.c: Include it.
21603         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
21604         * elf/pldd.c: Likewise.
21605         * iconv/iconv_charmap.c: Likewise.
21606         * iconv/iconvconfig.c: Likewise.
21607         * iconv/strtab.c: Likewise.
21608         * locale/programs/locale.c: Likewise.
21609         * locale/programs/localedef.h: Likewise.
21610         * locale/programs/simple-hash.c: Likewise.
21611         * nscd/nscd.h: Likewise.
21612         * nss/makedb.c: Likewise.
21613         * sysdeps/generic/ldconfig.h: Likewise.
21614
21615 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21616
21617         * Versions.def: Add GLIBC_2.18.
21618         * include/link.h (struct link_map): New member l_tls_dtor_count.
21619         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
21620         (__call_tls_dtors): Likewise.
21621         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
21622         __cxa_thread_atexit_impl.
21623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21624         Likewise.
21625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21626         Likewise.
21627         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
21628         Likewise.
21629         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
21630         Likewise.
21631         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21632         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
21633         Likewise.
21634         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
21635         Likewise.
21636         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21637         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
21638         Likewise.
21639         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
21640         (tests): Add test case tst-tls-atexit.
21641         (modules-names): Add shared library for tst-tls-atexit.
21642         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
21643         (GLIBC_PRIVATE): Add __call_tls_dtors.
21644         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
21645         for libstdc++.
21646         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
21647         * stdlib/tst-tls-atexit.c: New test case.
21648         * stdlib/tst-tls-atexit-lib.c: New test case.
21649
21650         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
21651
21652         * elf/Versions (ld): Add _dl_find_dso_for_object.
21653         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
21654         * elf/dl-open.c (_dl_find_dso_for_object): New function.
21655         (dl_open_worker): Use _dl_find_dso_for_object.
21656         * elf/dl-sym.c (do_sym): Likewise.
21657         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
21658
21659 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21660
21661         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
21662         Syntactic changes only.
21663         (_dl_runtime_profile): Do a tail-call to the resolved function.
21664
21665 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
21666
21667         [BZ #13550]
21668         * sysdeps/x86_64/bp-asm.h: Remove file.
21669         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
21670         <bp-sym.h> and <bp-asm.h>.
21671         (__clone): Do not use BP_SYM.
21672         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
21673         <bp-sym.h> and <bp-asm.h>.
21674         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21675         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
21676         "bp-asm.h".
21677         (_setjmp): Do not use BP_SYM.
21678         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
21679         "bp-asm.h".
21680         (setjmp): Do not use BP_SYM.
21681         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
21682         libc_hidden_def.
21683         (mempcpy): Do not use BP_SYM in weak_alias.
21684         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
21685         "bp-asm.h".
21686         (strchr): Do not use BP_SYM.
21687         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
21688         "bp-asm.h".
21689         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
21690         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
21691         (_start): Do not use BP_SYM.
21692         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
21693         "bp-asm.h".
21694         (strcat): Do not use BP_SYM.
21695         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
21696         "bp-asm.h".
21697         (STRCMP): Do not use BP_SYM.
21698         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
21699         "bp-asm.h".
21700         (STRCPY): Do not use BP_SYM.
21701         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
21702         "bp-asm.h".
21703         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
21704         "bp-asm.h".
21705         (FUNCTION): Do not use BP_SYM.
21706         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
21707         weak_alias.
21708         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
21709
21710 2013-02-17  Andreas Jaeger  <aj@suse.de>
21711
21712         * time/Versions: Sort entries.
21713         * string/Versions: Likewise.
21714         * resolv/Versions: Likewise.
21715         * posix/Versions: Likewise.
21716         * iconv/Versions: Likewise.
21717         * elf/Versions: Likewise.
21718         * wcsmbs/Versions: Likewise.
21719
21720 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21721
21722         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
21723         loop termination condition.
21724
21725         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
21726         variable to calculate EZ.
21727         (__sqr): Likewise.
21728
21729         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
21730         the lower precision input.
21731
21732 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
21733
21734         [BZ #13550]
21735         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
21736         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
21737         (run-via-rtld-prefix): Do not handle %-bp tests.
21738         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
21739         (all-object-suffixes): Remove .ob.
21740         (bppfx): Remove variable.
21741         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
21742         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
21743         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
21744         [$(build-bounded) = yes] (libtype.ob): Likewise.
21745         * Makerules (elide-routines.ob): Remove variable.
21746         (do-tests-clean): Do not handle *-bp.out.
21747         (common-mostlyclean): Do not handle *-bp and *-bp.out.
21748         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
21749         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
21750         (tests): Do not include $(tests-bp.out).
21751         (xtests): Do not include $(xtests-bp.out).
21752         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
21753         [$(build-bounded) = yes] ($(addprefix
21754         $(objpfx),$(binaries-bounded))): Remove rule.
21755         ($(objpfx)%-bp.out): Remove rule.
21756         * config.make.in (build-bounded): Remove variable.
21757         * crypt/Makefile [$(build-bounded) = yes]
21758         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
21759         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
21760         append to variable.
21761         [$(build-bounded) = yes] (install-lib): Likewise.
21762         [$(build-bounded) = yes] (generated): Likewise.
21763         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
21764         Remove rule.
21765         * intl/Makefile [$(build-bounded) = yes]
21766         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
21767         * math/Makefile [$(build-bounded) = yes]
21768         ($(tests:%=$(objpfx)%-bp): Likewise.
21769         * misc/Makefile [$(build-bounded) = yes]
21770         ($(objpfx)tst-tsearch-bp): Likewise.
21771         * nptl/Makeconfig (bounded-thread-library): Remove variable.
21772         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
21773         Remove dependency.
21774         * string/Makefile (o-objects.ob): Remove variable.
21775         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
21776         (CFLAGS-.ob): Remove variable.
21777         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
21778         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
21779         both definitions of variable.
21780         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
21781         (ASFLAGS-.ob): Remove variable.
21782
21783 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
21784
21785         [BZ #13550]
21786         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
21787         Remove __BOUNDED_POINTERS__ from condition.
21788         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
21789         * string/bits/string2.h [!__NO_STRING_INLINES &&
21790         !__BOUNDED_POINTERS__]: Likewise.
21791         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
21792         Likewise.
21793         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
21794         Remove conditional code.
21795         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
21796         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
21797         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
21798         condition.
21799
21800         [BZ #13550]
21801         * csu/libc-start.c: Do not include <bp-sym.h>.
21802         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
21803         * elf/dl-open.c: Do not include <bp-sym.h>.
21804         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
21805         * math/fegetenv.c: Do not include <bp-sym.h>.
21806         (fegetenv): Do not use BP_SYM in versioned symbols.
21807         * nptl/sysdeps/pthread/bits/libc-lockP.h
21808         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
21809         <bp-sym.h>.
21810         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21811         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
21812         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21813         (__pthread_mutex_destroy): Likewise.
21814         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21815         (__pthread_mutex_lock): Likewise.
21816         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21817         (__pthread_mutex_trylock): Likewise.
21818         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21819         (__pthread_mutex_unlock): Likewise.
21820         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21821         (__pthread_mutexattr_init): Likewise.
21822         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21823         (__pthread_mutexattr_destroy): Likewise.
21824         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21825         (__pthread_mutexattr_settype): Likewise.
21826         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21827         (__pthread_rwlock_init): Likewise.
21828         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21829         (__pthread_rwlock_destroy): Likewise.
21830         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21831         (__pthread_rwlock_rdlock): Likewise.
21832         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21833         (__pthread_rwlock_tryrdlock): Likewise.
21834         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21835         (__pthread_rwlock_wrlock): Likewise.
21836         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21837         (__pthread_rwlock_trywrlock): Likewise.
21838         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21839         (__pthread_rwlock_unlock): Likewise.
21840         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21841         (__pthread_key_create): Likewise.
21842         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21843         (__pthread_setspecific): Likewise.
21844         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21845         (__pthread_getspecific): Likewise.
21846         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
21847         Likewise.
21848         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21849         (_pthread_cleanup_push_defer): Likewise.
21850         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21851         (_pthread_cleanup_pop_restore): Likewise.
21852         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21853         (pthread_setcancelstate): Likewise.
21854         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
21855         <bp-sym.h>.
21856         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
21857         (memchr): Do not use BP_SYM in weak_alias.
21858         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
21859         (fegetenv): Do not use BP_SYM in versioned symbols.
21860         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
21861         (fesetenv): Do not use BP_SYM in versioned symbols.
21862         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21863         (feupdateenv): Do not use BP_SYM in versioned symbols.
21864         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21865         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21866         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
21867         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
21868         (open64): Do not use BP_SYM in weak_alias.
21869         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
21870         (fegetenv): Do not use BP_SYM in versioned symbols.
21871         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
21872         (fesetenv): Do not use BP_SYM in versioned symbols.
21873         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21874         (feupdateenv): Do not use BP_SYM in versioned symbols.
21875         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
21876         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
21877         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
21878         (feraiseexcept): Do not use BP_SYM in versioned symbols.
21879         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21880         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21881         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
21882         <bp-sym.h>.
21883         (__libc_start_main): Do not use BP_SYM.
21884
21885 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21886
21887         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
21888         redundant return line.
21889         (norm): Likewise.
21890         (denorm): Likewise.
21891         (dbl_mp): Likewise.
21892         (sub_magnitudes): Likewise.
21893         (__add): Likewise.
21894         (__sub): Likewise.
21895         (__mul): Likewise.
21896         (__inv): Likewise.
21897         (__dvd): Likewise.
21898         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
21899         (norm): Likewise.
21900         (denorm): Likewise.
21901         (dbl_mp): Likewise.
21902         (sub_magnitudes): Likewise.
21903         (__add): Likewise.
21904         (__sub): Likewise.
21905         (__mul): Likewise.
21906         (__inv): Likewise.
21907         (__dvd): Likewise.
21908
21909         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
21910         instead of __mul.
21911         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21912         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
21913         (cc32): Likewise.
21914
21915         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
21916         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
21917         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
21918         of __mul for squares.
21919         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
21920         function
21921         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
21922         Likewise.
21923         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
21924         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21925
21926 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
21927
21928         [BZ #13550]
21929         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
21930         code.
21931         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
21932         prototype or function definition.  Rename ubp_* variables and
21933         parameters.  Remove argv definitions conditional on
21934         [__BOUNDED_POINTERS__].
21935         * debug/backtrace.c (__backtrace): Do not use __unbounded.
21936         * elf/dl-runtime.c (_dl_fixup): Likewise.
21937         * include/set-hooks.h (RUN_HOOK): Likewise.
21938         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
21939         definition.
21940         * string/strcpy.c (strcpy): Do not use __unbounded.
21941         * sysdeps/generic/frame.h (struct layout): Likewise.
21942         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
21943         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
21944         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
21945         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
21946         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
21947         (__backtrace): Likewise.
21948         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
21949         use __ptrvalue.
21950         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
21951         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
21952         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
21953         Likewise.
21954         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
21955         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
21956         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21957         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21958         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
21959         Do not use __unbounded.
21960         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
21961         Rename __unboundedrlimits parameter to rlimits in prototype.
21962         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
21963         Do not use __unbounded.
21964         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
21965         not use __ptrvalue.
21966         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21967         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
21968         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
21969         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
21970         __ptrvalue or __unbounded.
21971         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
21972         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
21973         use __unbounded.
21974         (__new_msgctl): Do not use __ptrvalue.
21975         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
21976         __unbounded.
21977         (__libc_msgrcv): Do not use __ptrvalue.
21978         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
21979         startup_info): Do not use __unbounded.
21980         (__libc_start_main): Likewise.  Rename ubp_* variables and
21981         parameters.  Remove argv definitions conditional on
21982         [__BOUNDED_POINTERS__].
21983         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
21984         __ptrvalue.
21985         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
21986         use __unbounded.
21987         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
21988         or __ptrvalue.
21989         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
21990         use __unbounded.
21991         (__new_shmctl): Do not use __ptrvalue.
21992         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
21993         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
21994         Likewise.
21995         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
21996         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
21997         (__libc_sigaction): Likewise.
21998         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
21999         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
22000         Likewise.
22001         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22002
22003 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
22004
22005         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
22006
22007         * string/mempcpy.c: Implement by calling memcpy.
22008
22009 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
22010
22011         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
22012
22013         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
22014         evaluation.
22015
22016         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
22017         values in the mantissa.
22018
22019         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
22020         minimize writes to Z.
22021         (sub_magnitudes): Simplify code a bit.
22022
22023 2013-02-12  Roland McGrath  <roland@hack.frob.com>
22024
22025         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
22026         from the message.  The linker prefixes all warnings with that already.
22027
22028 2013-02-12  Andreas Schwab  <schwab@suse.de>
22029
22030         [BZ #15078]
22031         * posix/regexec.c (extend_buffers): Add parameter min_len.
22032         (check_matching): Pass minimum needed length.
22033         (clean_state_log_if_needed): Likewise.
22034         (get_subexp): Likewise.
22035         * posix/Makefile (tests): Add bug-regex34.
22036         (bug-regex34-ENV): Define.
22037         * posix/bug-regex34.c: New file.
22038
22039         [BZ #11561]
22040         * posix/regcomp.c (parse_bracket_exp): When looking up collating
22041         elements compare against the byte sequence of it, not its name.
22042         * posix/Makefile (tests): Add bug-regex35.
22043         (bug-regex35-ENV): Define.
22044         * posix/bug-regex35.c: New file.
22045
22046 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22047
22048         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
22049         comment.
22050         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
22051         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
22052         (CHECK_EOL): Add undef.
22053
22054 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
22055
22056         * bits/stdlib-bsearch.h: New file.
22057         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
22058         * stdlib/stdlib.h: Likewise.
22059
22060 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22061
22062         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
22063         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
22064         declaration.
22065         * manual/search.texi (Array Search Function): Add missing const in
22066         lfind prototype.
22067         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
22068         declaration to use rlim_t.
22069         (Basic Scheduling Functions): Remove erroneous const from
22070         sched_getparam prototype.  Remove erroneous * from
22071         sched_get_priority_max and sched_get_priority_min prototypes.
22072         (Resource Usage): Fix summary @comment on vtimes to refer to
22073         sys/vtimes.h rather than vtimes.h.
22074         Add missing *s in vtimes prototype.
22075         (Limits on Resources): Fix ulimit prototype to return long int.
22076         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
22077         prototypes to use long int rather than double.
22078         (BSD Random): Fix initstate and setstate to use char *, not void *.
22079         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
22080         prototype to make second argument 'struct aiocb64 *const[]'.
22081         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
22082         (Status of AIO Operations): Remove erroneous const in aio_return and
22083         aio_return64 prototypes.
22084         (Synchronizing I/O): Fix sync prototype to return void.
22085         * manual/startup.texi (Suboptions): Remove an erroneous const in
22086         getsubopt prototype.
22087         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
22088         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
22089         use size_t rather than int.
22090         (Scanning All Users): Likewise for getpwent_r.
22091         (Setting Groups): Add missing const to setgroups prototype.
22092         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
22093         * manual/socket.texi (Host Names): Fix gethostbyaddr and
22094         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
22095         'const void *' rather than 'const char *'.
22096         (Host Address Functions): Likewise for inet_ntop.
22097         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
22098         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
22099         ssize_t for return value.
22100         (Sending Data): Likewise for send, sendto, sendmsg.
22101         (Socket Option Functions): Add a missing const in setsockopt prototype.
22102         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
22103         use wchar_t for the argument.
22104         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
22105         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
22106         take no arguments.
22107         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
22108         double/float/long double for second argument.
22109         Fix return types of significand, significandf, significandl.
22110         * manual/filesys.texi (Setting Permissions): Use mode_t for second
22111         argument in fchmod prototype.
22112         (File Owner): Use uid_t and gid_t in fchown prototype.
22113         (File Times): Add const to utimes, futimes, and lutimes prototypes.
22114         (Making Special Files): Use mode_t and dev_t in mknod prototype.
22115         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
22116         use 'const struct dirent **' as argument types to CMP function pointer
22117         argument.
22118         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
22119         (File Times): Fix summary magic @comment for struct utimbuf and utime
22120         to refer to utime.h, not time.h.
22121         * manual/string.texi (Argz Functions): Add missing const in
22122         argz_extract and argz_next prototypes.
22123         (Finding Tokens in a String): Likewise for basename.
22124         (String/Array Comparison): Fix typo in wcscasecmp prototype.
22125         (Copying and Concatenation): Fix typo in wmemmove prototype.
22126         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
22127         (Signal Stack): Remove erroneous const in sigstack prototype.
22128         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
22129         prototype.
22130         (Simple Calendar Time): Likewise for stime.
22131         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
22132         prototype.
22133         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
22134         say sys/sysctl.h instead.
22135         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
22136         and vsyslog prototypes.
22137
22138 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22139
22140         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
22141         Remove.
22142
22143 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22144
22145         * misc/sys/mman.h: Fix typo in mremap comment.
22146
22147 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22148
22149         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
22150         the '\0' terminator.
22151
22152 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22153
22154         [BZ #13550]
22155         * debug/segfault.c: Don't include <bp-checks.h>.
22156         * sysdeps/generic/bp-checks.h: Remove file.
22157         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
22158         (__GETDENTS): Don't use CHECK_N.
22159         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
22160         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
22161         (__getgroups): Don't use CHECK_N.
22162         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
22163         (setgroups): Don't use CHECK_N.
22164         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
22165         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
22166         (__libc_msgrcv): Don't use CHECK_N.
22167         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
22168         (__libc_msgsnd): Don't use CHECK_N.
22169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
22170         <bp-checks.h>.
22171         (__libc_pread): Don't use CHECK_N.
22172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
22173         include <bp-checks.h>.
22174         (__libc_pread64): Don't use CHECK_N.
22175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
22176         include <bp-checks.h>.
22177         (__libc_pwrite): Don't use CHECK_N.
22178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
22179         include <bp-checks.h>.
22180         (__libc_pwrite64): Don't use CHECK_N.
22181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
22182         <bp-checks.h>.
22183         (__libc_pread): Don't use CHECK_N.
22184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
22185         include <bp-checks.h>.
22186         (__libc_pread64): Don't use CHECK_N.
22187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
22188         include <bp-checks.h>.
22189         (__libc_pwrite): Don't use CHECK_N.
22190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
22191         include <bp-checks.h>.
22192         (__libc_pwrite64): Don't use CHECK_N.
22193         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
22194         (do_pread): Don't use CHECK_N.
22195         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
22196         (do_pread64): Don't use CHECK_N.
22197         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
22198         (do_pwrite): Don't use CHECK_N.
22199         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
22200         (do_pwrite64): Don't use CHECK_N.
22201         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
22202         (__libc_readv): Don't use CHECK_N.
22203         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
22204         (semop): Don't use CHECK_N.
22205         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
22206         <bp-checks.h>.
22207         (semtimedop): Don't use CHECK_N.
22208         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
22209         (__libc_pread): Don't use CHECK_N.
22210         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
22211         <bp-checks.h>.
22212         (__libc_pread64): Don't use CHECK_N.
22213         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
22214         <bp-checks.h>.
22215         (__libc_pwrite): Don't use CHECK_N.
22216         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
22217         <bp-checks.h>.
22218         (__libc_pwrite64): Don't use CHECK_N.
22219         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
22220         <bp-checks.h>.
22221         (__libc_msgrcv): Don't use CHECK_N.
22222         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
22223         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
22224         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
22225         (__libc_writev): Don't use CHECK_N.
22226
22227 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22228
22229         * string/strcpy.c: Removed unused variable.
22230
22231         * Makeconfig (+sysdep-includes): Define with := rather than =.
22232         Use an existing include/ subdir of each sysdeps dir before it.
22233
22234 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22235
22236         * nscd/connection.c (register_traced_file): Comment function.
22237         [HAVE_INOTIFY] (union __inev): Define.
22238         [HAVE_INOTIFY] (inotify_check_files): New function.
22239         [HAVE_INOTIFY] (clear_db_cache): Likewise.
22240         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
22241         clear_db_cache.
22242         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
22243
22244 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22245
22246         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
22247         loaded if not already and that a failure is permanent.
22248
22249 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22250
22251         [BZ #15006]
22252         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
22253         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
22254
22255 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22256
22257         [BZ #13550]
22258         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
22259         (CHECK_1_NULL_OK): Likewise.
22260         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
22261         (__fxstat): Do not use CHECK_1.
22262         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
22263         <bp-checks.h>.
22264         (___fxstat64): Do not use CHECK_1.
22265         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
22266         <bp-checks.h>.
22267         (__fxstatat): Do not use CHECK_1.
22268         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
22269         <bp-checks.h>.
22270         (__fxstatat64): Do not use CHECK_1.
22271         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
22272         <bp-checks.h>.
22273         (__fxstat): Do not use CHECK_1.
22274         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
22275         <bp-checks.h>.
22276         (__fxstatat): Do not use CHECK_1.
22277         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22278         <bp-checks.h>.
22279         (__getresgid): Do not use CHECK_1.
22280         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22281         <bp-checks.h>.
22282         (__getresuid): Do not use CHECK_1.
22283         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
22284         <bp-checks.h>.
22285         (__lxstat): Do not use CHECK_1.
22286         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22287         <bp-checks.h>.
22288         (__old_msgctl): Do not use CHECK_1.
22289         (__new_msgctl): Likewise.
22290         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
22291         <bp-checks.h>.
22292         (__new_setrlimit): Do not use CHECK_1.
22293         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22294         <bp-checks.h>.
22295         (__old_shmctl): Do not use CHECK_1.
22296         (__new_shmctl): Likewise.
22297         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
22298         <bp-checks.h>.
22299         (__xstat): Do not use CHECK_1.
22300         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
22301         (__lxstat): Do not use CHECK_1.
22302         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
22303         <bp-checks.h>.
22304         (___lxstat64): Do not use CHECK_1.
22305         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
22306         (__old_msgctl): Do not use CHECK_1.
22307         (__new_msgctl): Likewise.
22308         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
22309         <bp-checks.h>.
22310         (__gettimeofday): Do not use CHECK_1.
22311         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
22312         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
22313         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
22314         <bp-checks.h>.
22315         (__gettimeofday): Do not use CHECK_1.
22316         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
22317         (__old_shmctl): Do not use CHECK_1_NULL_OK.
22318         (__new_shmctl): Do not use CHECK_1.
22319         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
22320         <bp-checks.h>.
22321         (do_sigtimedwait): Do not use CHECK_1.
22322         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
22323         <bp-checks.h>.
22324         (do_sigwaitinfo): Do not use CHECK_1.
22325         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
22326         <bp-checks.h>.
22327         (msgctl): Do not use CHECK_1.
22328         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
22329         <bp-checks.h>.
22330         (shmctl): Do not use CHECK_1.
22331         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
22332         (ustat): Do not use CHECK_1.
22333         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
22334         <bp-checks.h>.
22335         (__fxstat): Do not use CHECK_1.
22336         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
22337         <bp-checks.h>.
22338         (__fxstatat): Do not use CHECK_1.
22339         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
22340         <bp-checks.h>.
22341         (__lxstat): Do not use CHECK_1.
22342         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
22343         <bp-checks.h>.
22344         (__xstat): Do not use CHECK_1.
22345         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
22346         (__xstat): Do not use CHECK_1.
22347         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
22348         (___xstat64): Do not use CHECK_1.
22349
22350         [BZ #13550]
22351         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
22352         definitions.
22353         (CHECK_BOUNDS_HIGH): Likewise.
22354         * string/strcpy.c: Do not include <bp-checks.h>.
22355         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
22356
22357 2013-02-07  Roland McGrath  <roland@hack.frob.com>
22358
22359         * nscd/nscd-client.h (__nscd_drop_map_ref):
22360         Add __attribute__ ((unused)).
22361         * nis/nss-nisplus.h (niserr2nss): Likewise.
22362
22363         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
22364         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
22365
22366         * csu/libc-tls.c (init_static_tls, init_slotinfo):
22367         Remove inline keyword.
22368         * include/rounding-mode.h (round_away): Likewise.
22369         * libio/wfileops.c (adjust_wide_data): Likewise.
22370         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
22371         (__m128i_strloadu_tolower): Likewise.
22372         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
22373         (__m128i_strloadu_tolower): Likewise.
22374         * time/mktime.c (ydhms_diff): Likewise.
22375         * locale/elem-hash.h (elem_hash): Likewise.
22376         * locale/setlocale.c (setdata): Likewise.
22377         * posix/regex_internal.h (re_string_char_size_at): Likewise.
22378         (re_string_wchar_at): Likewise.
22379         (bitset_not, bitset_merge, bitset_mask): Likewise.
22380         [!(__GNUC__ > 3)] (inline): Remove macro.
22381         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
22382         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
22383         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22384         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22385         * string/memcmp.c (memcmp_bytes): Likewise.
22386         * locale/programs/locarchive.c (compute_hashval): Likewise.
22387         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
22388         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
22389         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
22390         * nss/getent.c (print_rpc, print_protocols): Likewise.
22391         (print_passwd, print_group, print_aliases): Likewise.
22392         * nis/nss-nisplus.h (niserr2nss): Likewise.
22393         * nscd/connections.c (restart_p): Likewise.
22394         Change return type to bool.
22395
22396 2013-02-05  Roland McGrath  <roland@hack.frob.com>
22397
22398         * Makeconfig (all-Depend-files): Add existing
22399         $(sorted-subdirs:=/Depend) files.
22400         (all-subdirs): Remove nss.
22401         * sysdeps/unix/inet/Subdirs: Add it here instead.
22402         * hesiod/Depend: New file.
22403
22404         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
22405         instead of calling alloca.
22406
22407         * io/lseek.c (__lseek): Rename to __libc_lseek.
22408         Define __lseek as an alias.
22409
22410         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
22411
22412 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
22413
22414         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
22415         else clause and remove check for non-standard endianness.
22416
22417 2013-02-04  David S. Miller  <davem@davemloft.net>
22418
22419         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22420
22421 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
22422
22423         [BZ #13550]
22424         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
22425         (__ubp_memchr): Remove prototype.
22426         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
22427         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22428         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
22429         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22430         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
22431         Remove alias.
22432         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
22433         (__ubp_memchr): Likewise.
22434         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
22435         (__ubp_memchr): Likewise.
22436         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
22437         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
22438         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
22439         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
22440         CHECK_STRING.
22441         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
22442         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
22443         (__getcwd): Do not use CHECK_STRING.
22444         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22445         <bp-checks.h>.
22446         (__real_chown): Do not use CHECK_STRING.
22447         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
22448         <bp-checks.h>.
22449         (fchownat): Do not use CHECK_STRING.
22450         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
22451         CHECK_STRING.
22452         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22453         <bp-checks.h>.
22454         (__lchown): Do not use CHECK_STRING.
22455         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22456         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22457         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22458         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
22459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22460         include <bp-checks.h>.
22461         (truncate64): Do not use CHECK_STRING.
22462         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22463         <bp-checks.h>.
22464         (__real_chown): Do not use CHECK_STRING.
22465         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22466         <bp-checks.h>.
22467         (__lchown): Do not use CHECK_STRING.
22468         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22469         <bp-checks.h>.
22470         (__chown): Do not use CHECK_STRING.
22471         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
22472         <bp-checks.h>.
22473         (truncate64): Do not use CHECK_STRING.
22474         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
22475         Likewise.
22476         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
22477         (__xmknod): Do not use CHECK_STRING.
22478         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
22479         <bp-checks.h>.
22480         (__xmknodat): Do not use CHECK_STRING.
22481         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22482         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
22483
22484 2013-02-04  Andreas Schwab  <schwab@suse.de>
22485
22486         [BZ #14142]
22487         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
22488         * include/netdb.h: Likewise for h_errno.
22489         * elf/tst-stackguard1.c: Include <tls.h>.
22490
22491 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
22492
22493         * elf/link.h (struct link_map): Extend the l_addr comment.
22494         * include/link.h (struct link_map): Likewise.
22495
22496 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
22497
22498         [BZ #13550]
22499         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
22500         (BOUNDED_1): Remove macro.
22501         * debug/backtrace.c: Don't include <bp-checks.h>.
22502         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
22503         (__backtrace): Likewise.
22504         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
22505         <bp-checks.h>.
22506         (__backtrace): Don't use BOUNDED_1.
22507         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
22508         <bp-checks.h>.
22509         (__backtrace): Don't use BOUNDED_1.
22510         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
22511         (__backtrace): Don't use BOUNDED_1.
22512         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
22513         (shmat): Don't use BOUNDED_N.
22514
22515 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
22516
22517         [BZ #13550]
22518         * sysdeps/generic/bp-start.h: Remove file.
22519         * csu/libc-start.c: Don't include <bp-start.h>.
22520         (LIBC_START_MAIN): Set up __environ directly instead of using
22521         INIT_ARGV_and_ENVIRON.
22522         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
22523         <bp-start.h>.
22524
22525         [BZ #13550]
22526         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
22527         definitions.
22528         (CHECK_FCNTL): Likewise.
22529         (CHECK_N_PAGES): Likewise.
22530
22531         [BZ #13550]
22532         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
22533         definitions.
22534         (CHECK_SIGSET_NULL_OK): Likewise.
22535         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
22536         <bp-checks.h>.
22537         (sigpending): Don't use CHECK_SIGSET.
22538         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
22539         <bp-checks.h>.
22540         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22541         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
22542         <bp-checks.h>.
22543         (do_sigsuspend): Don't use CHECK_SIGSET.
22544         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
22545         use CHECK_SIGSET.
22546         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
22547         (do_sigwait): Don't use CHECK_SIGSET.
22548         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
22549         use CHECK_SIGSET.
22550         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
22551         include <bp-checks.h>.
22552         (sigpending): Don't use CHECK_SIGSET.
22553         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
22554         include <bp-checks.h>.
22555         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22556         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
22557         <bp-checks.h>.
22558         (sigpending): Don't use CHECK_SIGSET.
22559         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
22560         <bp-checks.h>.
22561         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22562
22563         [BZ #13550]
22564         * sysdeps/generic/bp-semctl.h: Remove file.
22565         * sysdeps/unix/sysv/linux/i386/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/semctl.c: Don't include <bp-checks.h>
22570         and <bp-semctl.h>.
22571         (__old_semctl): Don't use CHECK_SEMCTL.
22572         (__new_semctl): Likewise.
22573         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
22574         <bp-checks.h> and <bp-semctl.h>.
22575         (__old_semctl): Don't use CHECK_SEMCTL.
22576         (__new_semctl): Likewise.
22577         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
22578         <bp-checks.h> and <bp-semctl.h>.
22579         (semctl): Don't use CHECK_SEMCTL.
22580
22581         [BZ #13550]
22582         * Makerules (elide-bp-thunks): Remove variable.
22583         (elide-routines.oS): Don't use $(elide-bp-thunks).
22584         (elide-routines.os): Likewise.
22585         (elide-routines.o): Likewise.
22586         (elide-routines.op): Likewise.
22587         (elide-routines.og): Likewise.
22588         (objects): Don't use $(bp-thunks).
22589         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
22590         include.
22591         (common-generated): Do not add s-proto-bp.d.
22592         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
22593         (int): Likewise.
22594         (typ): Likewise.
22595         Do not generate makefile rules for bounded-pointer thunks.
22596         * sysdeps/generic/bp-thunks.h: Remove file.
22597         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
22598         * sysdeps/unix/s-proto-bp.S: Likewise.
22599
22600         [BZ #15062]
22601         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
22602         parts of result separately when argument is not close to line from
22603         -i to i and one part of argument is small.
22604         * math/k_casinhf.c (__kernel_casinhf): Likewise.
22605         * math/k_casinhl.c (__kernel_casinhl): Likewise.
22606         * math/libm-test.inc (cacos_test): Add more tests.
22607         (casin_test): Likewise.
22608         (casinh_test): Likewise.
22609         * sysdeps/i386/fpu/libm-test-ulps: Update.
22610         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22611
22612 2013-01-31  David S. Miller  <davem@davemloft.net>
22613
22614         * po/de.po: Update from translation team.
22615
22616 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
22617
22618         * time/tzfile.c: Include stdint.h for SIZE_MAX.
22619
22620 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
22621
22622         * configure.in (_AC_PROG_CC_C89): New definition.
22623         * configure: Regenerate.
22624
22625         * configure.in (AC_PROG_CPP): New definition.
22626         * configure: Regenerate.
22627
22628 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22629
22630         * debug/tst-backtrace.h: New file.
22631         * debug/tst-backtrace2.c: Include tst-backtrace.h.
22632         (ret): Remove variable.
22633         (x): Likewise.
22634         (FAIL): Remove macro.
22635         (NO_INLINE): Likewise.
22636         (fn1): Use match function instead of strstr.
22637         * debug/tst-backtrace3.c: Include tst-backtrace.h.
22638         (ret): Remove variable.
22639         (x): Likewise.
22640         (FAIL): Remove macro.
22641         (NO_INLINE): Likewise.
22642         (fn): Use match function instead of strstr.
22643         * debug/tst-backtrace4.c: Include tst-backtrace.h.
22644         (ret): Remove variable.
22645         (x): Likewise.
22646         (FAIL): Remove macro.
22647         (NO_INLINE): Likewise.
22648         (handle_signal): Use match function instead of strstr.
22649         * debug/tst-backtrace5.c: Include tst-backtrace.h.
22650         (ret): Remove variable.
22651         (x): Likewise.
22652         (FAIL): Remove macro.
22653         (NO_INLINE): Likewise.
22654         (handle_signal): Use match function instead of strstr.
22655
22656 2013-01-23  Roland McGrath  <roland@hack.frob.com>
22657
22658         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
22659
22660 2013-01-23  David S. Miller  <davem@davemloft.net>
22661
22662         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
22663         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
22664         argument of CAS if possible.
22665         * sysdeps/sparc/sparc64/bits/atomic.h
22666         (__arch_compare_and_exchange_val_32_acq): Likewise.
22667         (__arch_compare_and_exchange_val_64_acq): Likewise.
22668
22669 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
22670
22671         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
22672         * sysdeps/posix/ulimit.c: ... this.
22673         Include <limits.h>.
22674         * sysdeps/unix/bsd/ulimit.c: Remove file.
22675
22676 2013-01-23  Adam Conrad  <adconrad@0c3.net>
22677
22678         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
22679         (LDFLAGS-tst-array5): Likewise.
22680
22681 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22682
22683         [BZ #15036]
22684         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
22685         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
22686         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
22687         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
22688
22689 2013-01-21  David S. Miller  <davem@davemloft.net>
22690
22691         * sysdeps/sparc/backtrace.c: New file.
22692         * sysdeps/sparc/sparc32/backtrace.h: New file.
22693         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
22694         * sysdeps/sparc/sparc64/backtrace.h: New file.
22695         * sysdeps/sparc/sparc64/backtrace.c: Delete.
22696         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
22697         -funwind-tables.
22698
22699 2013-01-21  Andreas Schwab  <schwab@suse.de>
22700
22701         [BZ #15020]
22702         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
22703         closed its stdout.
22704
22705 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
22706
22707         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
22708         "mpa2.h".
22709         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22710
22711 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
22712             Mark Mitchell  <mark@codesourcery.com>
22713             Tom de Vries  <tom@codesourcery.com>
22714             Paul Pluzhnikov  <ppluzhnikov@google.com>
22715
22716         * debug/tst-backtrace2.c: New file.
22717         * debug/tst-backtrace3.c: Likewise.
22718         * debug/tst-backtrace4.c: Likewise.
22719         * debug/tst-backtrace5.c: Likewise.
22720         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
22721         (CFLAGS-tst-backtrace3.c): Likewise.
22722         (CFLAGS-tst-backtrace4.c): Likewise.
22723         (CFLAGS-tst-backtrace5.c): Likewise.
22724         (LDFLAGS-tst-backtrace2): Likewise.
22725         (LDFLAGS-tst-backtrace3): Likewise.
22726         (LDFLAGS-tst-backtrace4): Likewise.
22727         (LDFLAGS-tst-backtrace5): Likewise.
22728         (tests): Add new tests tst-backtrace2, tst-backtrace3,
22729         tst-backtrace4 and tst-backtrace5.
22730
22731 2013-01-18  Anton Blanchard  <anton@samba.org>
22732             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22733
22734         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
22735         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
22736         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
22737         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
22738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22739         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
22740         "+r" and remove output regs list as redundant.  Add explicit inline
22741         asm to specify register of return val to work around compiler codegen
22742         bug.  Remove (int) cast on return value.  Add return type parameter to
22743         use in macro so that this macro does not truncate return value for
22744         64-bit values.
22745         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
22746         pass to INTERNAL_VSYSCALL_NCS.
22747         (INLINE_VSYSCALL): Add 'long int' as return type to
22748         INTERNAL_VSYSCALL_NCS macro invocation.
22749         (INTERNAL_VSYSCALL): Add 'long int' as return type to
22750         INTERNAL_VSYSCALL_NCS macro invocation.
22751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22752
22753 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22754
22755         [BZ #14496]
22756         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
22757         Fix application of SIMD FP exception mask.
22758
22759         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
22760         mp_no from a power of two.
22761         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
22762         __mpexp_twomm1.  Use __pow_mp.
22763
22764         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
22765         multiplication.
22766
22767 2013-01-17  David S. Miller  <davem@davemloft.net>
22768
22769         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22770
22771 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22772
22773         [BZ #15023]
22774         * include/complex.h: Condition contents on [!_COMPLEX_H].
22775         (__kernel_casinhf): New prototype.
22776         (__kernel_casinh): Likewise.
22777         (__kernel_casinhl): Likewise.
22778         * math/Makefile (libm_calls): Add k_casinh.
22779         * math/k_casinh.c: New file.
22780         * math/k_casinhf.c: Likewise.
22781         * math/k_casinhl.c: Likewise.
22782         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
22783         finite nonzero arguments.
22784         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
22785         finite nonzero arguments.
22786         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
22787         finite nonzero arguments.
22788         * math/s_casinh.c: Do not include <float.h>.
22789         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
22790         * math/s_casinhf.c: Do not include <float.h>.
22791         (__casinhf): Move code for finite nonzero arguments to
22792         k_casinhf.c.
22793         * math/s_casinhl.c: Do not include <float.h>.
22794         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
22795         redefine.
22796         (__casinhl): Move code for finite nonzero arguments to
22797         k_casinhl.c.
22798         * math/libm-test.inc (cacos_test): Add more tests.
22799         * sysdeps/i386/fpu/libm-test-ulps: Update.
22800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22801
22802 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
22803
22804         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
22805         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
22806         [!HAVE_MREMAP]: Remove [defined linux] case.
22807         * malloc/arena.c: Do not include <malloc-sysdep.h>.
22808
22809 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
22810
22811         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
22812
22813 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22814
22815         * elf/elf.h (R_386_SIZE32): New relocation.
22816         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
22817         R_386_SIZE32.
22818         (elf_machine_rela): Likewise.
22819         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
22820         R_X86_64_SIZE64 and R_X86_64_SIZE32.
22821
22822 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22823
22824         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
22825         (FP_FAST_FMA): Do not define.
22826         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
22827         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
22828         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
22829         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
22830         !_SOFT_FLOAT]: Likewise.
22831         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
22832         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
22833         value.
22834         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
22835         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
22836         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
22837         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
22838         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
22839         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
22840         file.
22841
22842 2013-01-16  Andreas Schwab  <schwab@suse.de>
22843
22844         [BZ #14327]
22845         * include/stdlib.h (__mktemp): Add declaration.
22846         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
22847         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
22848
22849 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22850
22851         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
22852         definitions.
22853         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22854         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
22855         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
22856         definitions here.
22857         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
22858         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
22859         definitions.
22860         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
22861         and ONE.
22862         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
22863         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
22864         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
22865         definitions.
22866         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
22867         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
22868         definitions.
22869         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22870
22871         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
22872
22873 2013-01-15  David S. Miller  <davem@davemloft.net>
22874
22875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22876         trunc{,f} to libm-sysdep_routes.
22877         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
22879         file.
22880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
22881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
22882         file.
22883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
22884         file.
22885         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
22886         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
22887         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
22888         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
22889         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
22890         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
22891         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
22892         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
22893
22894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22895         nearbyint{,f} to libm-sysdep_routes.
22896         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
22898         New file.
22899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
22900         file.
22901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
22902         New file.
22903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
22904         file.
22905         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
22906         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
22907         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
22908         file.
22909         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
22910         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
22911         file.
22912         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
22913         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
22914         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
22915
22916         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
22917         libc_feholdexcept and libc_fesetenv.
22918
22919 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
22920
22921         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
22922
22923 2013-01-14  David S. Miller  <davem@davemloft.net>
22924
22925         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
22926         (SPARC_ASM_VIS2_IFUNC): Likewise.
22927         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
22928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
22929         use of 'siam' instruction.
22930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
22931         Likewise.
22932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
22933         Likewise.
22934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
22935         Likewise.
22936         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
22937         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
22938         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
22939         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
22940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
22941         file.
22942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
22943         file.
22944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
22945         file.
22946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
22947         file.
22948         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
22949         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
22950         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
22951         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
22952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
22953         new VIS2 routines.
22954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
22955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
22957         Likewise.
22958         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
22959         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
22960         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
22961         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
22962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
22963         routines to libm-sysdep_routines.
22964         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22965
22966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22967         fdim/fdimf to libm-sysdep_routines.
22968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
22969         file.
22970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
22971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
22972         file.
22973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
22974         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
22975         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
22976         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
22977         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
22978         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
22979         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
22980
22981 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22982
22983         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
22984         to optimize copies.
22985
22986         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
22987         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22988         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22989
22990         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
22991         local variable MPTWO.
22992         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
22993         Likewise.
22994
22995 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22996
22997         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
22998         GLOB_NOESCAPE.
22999
23000 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23001
23002         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
23003
23004 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23005
23006         * manual/pattern.texi (glob_t): Document gl_flags.
23007         (glob64_t): Likewise.
23008
23009 2013-01-11  David S. Miller  <davem@davemloft.net>
23010
23011         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
23012         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
23013         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
23014         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
23015         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
23016         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
23017         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
23018         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
23019         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
23020         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
23021         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
23022         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
23023         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
23024
23025         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23026         sparc V9 rather than using V8 code.
23027         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23028         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23029
23030         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
23031         Move to...
23032         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
23033         Here.
23034
23035 2013-01-11  Roland McGrath  <roland@hack.frob.com>
23036
23037         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
23038         not in the main loop.
23039         * configure: Regenerated.
23040
23041 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
23042
23043         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
23044         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
23045         to just #else.
23046         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
23047         [!__GLIBC_HAVE_LONG_LONG] case.
23048         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
23049         condition to just #else.
23050         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
23051         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
23052         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
23053         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
23054         unconditional.
23055         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
23056         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23057         #elif condition to just #else.
23058         * sysdeps/unix/sysv/linux/sys/sysmacros.h
23059         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
23060         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23061         #elif condition to just #else.
23062
23063 2013-01-11  Steve Ellcey  <sellcey@mips.com>
23064
23065         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
23066         (EF_MIPS_ARCH_64): Fix value.
23067         (EF_MIPS_ARCH_32R2): New.
23068         (EF_MIPS_ARCH_64R2): New.
23069
23070 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
23071
23072         * Makeconfig (+link-pie-before-libc): New.
23073         (+link-pie-after-libc): Likewise.
23074         (+link-pie-tests): Likewise.
23075         (+link-pie): Rewritten.
23076         (link-before-libc): Remove $(config-LDFLAGS).
23077         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
23078         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
23079         (config-LDFLAGS): Renamed to ...
23080         (rtld-LDFLAGS): This.
23081         (rtld-tests-LDFLAGS): New macro.
23082         (link-libc-rpath-link): Likewise.
23083         (link-libc-tests-rpath-link): Likewise.
23084         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
23085         (link-libc): Prepand $(link-libc-rpath-link).
23086         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
23087         (test-program-prefix): New macro.
23088         (test-via-rtld-prefix): Likewise.
23089         (test-program-cmd): Likewise.
23090         (host-test-program-cmd): Likewise.
23091         * Makefile ($(common-objpfx)testrun.sh): Replace
23092         $(run-program-prefix) with $(test-program-prefix).
23093         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
23094         $(rtld-LDFLAGS).
23095         ($(common-objpfx)shlib.lds): Likewise.
23096         (build-module-helper): Likewise.
23097         ($(common-objpfx)format.lds): Likewise.
23098         * Rules (binaries-pie-tests): New.
23099         (binaries-pie-notests): Likewise.
23100         (binaries-pie): Rewritten.
23101         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
23102         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
23103         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
23104         (make-test-out): Replace $(host-built-program-cmd) with
23105         $(host-test-program-cmd).
23106         * config.make.in (build-hardcoded-path-in-tests): New variable.
23107         * configure.in (--enable-hardcoded-path-in-tests): New configure
23108         option.
23109         (hardcoded_path_in_tests): New AC_SUBST.
23110         * configure: Regenerated.
23111         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
23112         $(built-program-cmd) with $(test-program-cmd).
23113         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
23114         (test_program_cmd): This.
23115         * elf/Makefile ($(objpfx)order.out): Run test with
23116         $(test-program-prefix).
23117         ($(objpfx)order2.out): Likewise.
23118         ($(objpfx)tst-initorder.out): Likewise.
23119         ($(objpfx)tst-initorder2.out): Likewise.
23120         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
23121         $(test-program-cmd).
23122         ($(objpfx)tst-array1-static.out): Likewise.
23123         ($(objpfx)tst-array2.out): Likewise.
23124         ($(objpfx)tst-array3.out): Likewise.
23125         ($(objpfx)tst-array4.out): Likewise.
23126         ($(objpfx)tst-array5.out): Likewise.
23127         ($(objpfx)tst-array5-static.out): Likewise.
23128         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
23129         $(test-program-cmd).
23130         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
23131         $(run-program-prefix) with $(test-program-prefix).
23132         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
23133         (test_program_prefix): This.
23134         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
23135         $(run-program-prefix) with $(test-program-prefix).
23136         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
23137         (test_program_prefix): This.
23138         * iconvdata/tst-tables.sh: Likewise.
23139         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
23140         $(run-program-prefix) with $(test-program-prefix).
23141         ($(objpfx)tst-translit.out): Likewise.
23142         ($(objpfx)tst-gettext2.out): Likewise.
23143         ($(objpfx)tst-gettext4.out): Likewise.
23144         ($(objpfx)tst-gettext6.out): Likewise.
23145         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
23146         (test_program_prefix): This.
23147         * intl/tst-gettext2.sh: Likewise.
23148         * intl/tst-gettext4.sh  Likewise.
23149         * intl/tst-gettext6.sh: Likewise.
23150         * intl/tst-translit.sh: Likewise.
23151         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
23152         with $(test-program-cmd).
23153         * libio/Makefile ($(objpfx)test-freopen.out): Replace
23154         $(run-program-prefix) with $(test-program-prefix).
23155         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
23156         (test_program_prefix): This.
23157         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
23158         $(run-program-prefix) with $(test-program-prefix).
23159         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
23160         (test_program_prefix): This.
23161         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
23162         * posix/Makefile ($(objpfx)globtest.out): Replace
23163         $(run-via-rtld-prefix) and $(test-wrapper) with
23164         $(test-program-prefix) and $(test-via-rtld-prefix).
23165         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
23166         $(test-program-prefix).
23167         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
23168         $(host-test-program-cmd).
23169         (tst-spawn-ARGS): Likewise.
23170         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
23171         $(test-program-prefix).
23172         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
23173         (test_via_rtld_prefix): This.
23174         (test_wrapper): Renamed to ...
23175         (test_program_prefix): This.
23176         (run_program_prefix): Replaced by test_program_prefix.
23177         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
23178         (test_program_prefix): This.
23179         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
23180         with $(host-test-program-cmd).
23181         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
23182         $(run-program-prefix) with $(test-program-prefix).
23183         ($(objpfx)tst-printf.out): Likewise.
23184         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
23185         $(test-program-cmd).
23186         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
23187         (test_program_prefix): This.
23188         * stdio-common/tst-unbputc.sh: Likewise.
23189         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
23190         $(run-program-prefix) with $(test-program-prefix).
23191         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
23192         (test_program_prefix): This.
23193         * string/Makefile ($(objpfx)tst-svc.out):  Replace
23194         $(built-program-cmd) with $(test-program-cmd).
23195
23196 2013-01-11  Andreas Jaeger  <aj@suse.de>
23197
23198         [BZ #15003]
23199         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
23200         value. Sync with Linux 3.7.
23201
23202 2013-01-10  David S. Miller  <davem@davemloft.net>
23203
23204         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
23205         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23206         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23207
23208 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23209
23210         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
23211         never set.
23212         * configure: Regenerated.
23213
23214 2013-01-10  David S. Miller  <davem@davemloft.net>
23215
23216         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23217         sparc V9 rather than using V8 code.
23218         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23219         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23220
23221 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23222
23223         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
23224         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
23225         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
23226         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
23227         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
23228         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
23229         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
23230         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
23231         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
23232         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
23233         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
23234         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
23235         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
23236         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
23237         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
23238         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
23239         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
23240         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
23241         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
23242         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
23243         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
23244         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
23245         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
23246         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
23247         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
23248         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
23249         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
23250
23251 2013-01-10  David S. Miller  <davem@davemloft.net>
23252
23253         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23254
23255 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23256
23257         * posix/Makefile (tests-static): New variable.
23258         (tests): Add $(tests-static).
23259         (tst-exec-static-ARGS): New variable.
23260         (tst-spawn-static-ARGS): Likewise.
23261         * posix/tst-exec-static.c: New file.
23262         * posix/tst-spawn-static.c: Likewise.
23263         * posix/tst-exec.c: Support run directly.
23264         * posix/tst-spawn.c: Likewise.
23265
23266 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
23267
23268         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
23269         long.
23270         * math/bits/mathcalls.h (llrint): Likewise.
23271         (llround): Likewise.
23272         * stdlib/stdlib.h (struct drand48_data): Likewise.
23273         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
23274         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
23275         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
23276         Likewise.
23277         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
23278         Likewise.
23279         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
23280         (elf_greg_t): Likewise.
23281         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
23282         (__jmp_buf): Likewise.
23283         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
23284         definitions.
23285         (llrint): Likewise, for all definitions.
23286         (llrintl): Likewise.
23287
23288         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
23289         Remove [__GNUC__] condition.
23290         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
23291         condition to just [__USE_ISOC99].
23292         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
23293
23294 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23295
23296         [BZ #14200]
23297         * sysdeps/unix/sysv/linux/x86/bits/environments.h
23298         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
23299         defined.
23300         (_POSIX_V6_ILP32_OFF32): Likewise.
23301         (_XBS5_ILP32_OFF32): Likewise.
23302         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
23303         (__ILP32_OFFBIG_LDFLAGS): Likewise.
23304
23305 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23306
23307         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
23308
23309         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
23310         doubles __mpexp_twomm1.  Adjust usage.
23311         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
23312         Remove.
23313
23314 2013-01-10  Andreas Schwab  <schwab@suse.de>
23315
23316         [BZ #14964]
23317         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
23318         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
23319
23320 2013-01-09  David S. Miller  <davem@davemloft.net>
23321
23322         [BZ #15003]
23323         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
23324         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
23325         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
23326         (TCP_FASTOPEN): Define.
23327         (tcp_repair_opt): New structure.
23328         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
23329         enum values.
23330         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
23331         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
23332         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
23333         (tcp_cookie_transactions): New structure.
23334
23335 2013-01-09  Anton Blanchard  <anton@samba.org>
23336
23337         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
23338         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
23339         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
23340         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
23341
23342 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
23343
23344         * include/features.h (__USE_ANSI): Remove.
23345
23346 2013-01-09  Roland McGrath  <roland@hack.frob.com>
23347
23348         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
23349
23350         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
23351
23352 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
23353
23354         * sysdeps/s390/fpu/libm-test-ulps: Update.
23355
23356         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23357
23358         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
23359         (__acr): Likewise.
23360         (__cpy): Likewise.
23361         (norm): Likewise.
23362         (denorm): Likewise.
23363         (__mp_dbl): Likewise.
23364         (__dbl_mp): Likewise.
23365         (add_magnitudes): Likewise.
23366         (sub_magnitudes): Likewise.
23367         (__add): Likewise.
23368         (__sub): Likewise.
23369         (__mul): Likewise.
23370         (__inv): Likewise.
23371         (__dvd): Likewise.
23372         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
23373         (__acr): Likewise.
23374         (__cpy): Likewise.
23375         (norm): Likewise.
23376         (denorm): Likewise.
23377         (__mp_dbl): Likewise.
23378         (__dbl_mp): Likewise.
23379         (add_magnitudes): Likewise.
23380         (sub_magnitudes): Likewise.
23381         (__add): Likewise.
23382         (__sub): Likewise.
23383         (__mul): Likewise.
23384         (__inv): Likewise.
23385         (__dvd): Likewise.
23386         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
23387         (__acr): Likewise.
23388         (__cpy): Likewise.
23389         (norm): Likewise.
23390         (denorm): Likewise.
23391         (__mp_dbl): Likewise.
23392         (__dbl_mp): Likewise.
23393         (add_magnitudes): Likewise.
23394         (sub_magnitudes): Likewise.
23395         (__add): Likewise.
23396         (__sub): Likewise.
23397         (__mul): Likewise.
23398         (__inv): Likewise.
23399         (__dvd): Likewise.
23400
23401 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
23402
23403         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
23404         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
23405         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
23406         2 && __USE_EXTERN_INLINES]: Likewise.
23407
23408 2013-01-08  Andreas Jaeger  <aj@suse.de>
23409
23410         [BZ# 14985]
23411         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
23412         Remove.
23413         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23414         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23415
23416 2013-01-07  Anton Blanchard  <anton@samba.org>
23417
23418         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
23419         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
23420         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
23421         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
23422         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
23423         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23424         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
23425         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23426         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23427         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23428         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23429         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23430         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23431         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
23432         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
23433         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23434         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23435         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
23436         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
23437         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
23438         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
23439         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
23440         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
23441         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
23442         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
23443         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
23444         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23445         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
23446         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
23447         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23448         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
23449         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23450         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23451         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
23452         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
23453         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
23454         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
23455         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
23456         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
23457         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
23458         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
23459         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23460         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
23461
23462 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
23463
23464         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
23465         (__MALLOC_PMT): Likewise.
23466         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
23467         [__GNUC__], only on [_LIBC].
23468         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23469         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
23470         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23471         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
23472         forward declaration.
23473         (realloc_hook_ini): Likewise.
23474         (memalign_hook_ini): Likewise.
23475         (__libc_memalign): Do not use __MALLOC_PMT in variable
23476         declaration.
23477         (__libc_valloc): Likewise.
23478         (__libc_pvalloc): Likewise.
23479         (__libc_calloc): Likewise.
23480         (__posix_memalign): Likewise.
23481
23482         [BZ #14996]
23483         * math/s_casinh.c: Include <float.h>.
23484         (__casinh): Do not do computation with squaring and square root
23485         for large arguments.
23486         * math/s_casinhf.c: Include <float.h>.
23487         (__casinhf): Do not do computation with squaring and square root
23488         for large arguments.
23489         * math/s_casinhl.c: Include <float.h>.
23490         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
23491         (__casinhl): Do not do computation with squaring and square root
23492         for large arguments.
23493         * math/libm-test.inc (casin_test): Add more tests.
23494         (casinh_test): Likewise.
23495         * sysdeps/i386/fpu/libm-test-ulps: Update.
23496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23497
23498 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23499
23500         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
23501         (__x86_64_raw_data_cache_size): Likewise.
23502         (__x86_64_data_cache_size_half): Likewise.
23503         (__x86_64_raw_data_cache_size_half): Likewise.
23504         (__x86_64_shared_cache_size): Likewise.
23505         (__x86_64_raw_shared_cache_size): Likewise.
23506         (__x86_64_shared_cache_size_half): Likewise.
23507         (__x86_64_raw_shared_cache_size_half): Likewise.
23508         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
23509         to ...
23510         (__x86_data_cache_size): This.
23511         (__x86_64_raw_data_cache_size): Renamed to ...
23512         (__x86_raw_data_cache_size): This.
23513         (__x86_64_data_cache_size_half): Renamed to ...
23514         (__x86_data_cache_size_half): This.
23515         (__x86_64_raw_data_cache_size_half): Renamed to ...
23516         (__x86_raw_data_cache_size_half): This.
23517         (__x86_64_shared_cache_size): Renamed to ...
23518         (__x86_shared_cache_size): This.
23519         (__x86_64_raw_shared_cache_size): Renamed to ...
23520         (__x86_raw_shared_cache_size): This.
23521         (__x86_64_shared_cache_size_half): Renamed to ...
23522         (__x86_shared_cache_size_half): This.
23523         (__x86_64_raw_shared_cache_size_half): Renamed to ...
23524         (__x86_raw_shared_cache_size_half): This.
23525         * sysdeps/x86_64/memcpy.S: Updated.
23526         * sysdeps/x86_64/memset.S: Likewise.
23527         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23528         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23529         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23530
23531 2013-01-04  David S. Miller  <davem@davemloft.net>
23532
23533         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23534
23535 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
23536
23537         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
23538         1 to avoid redefinition warning.
23539         (__USE_GNU): Don't define.
23540         (init_signaling_nan): Protoize.
23541
23542         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23543
23544 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23545
23546         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
23547         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
23548         (__cpymn): Likewise.
23549         (norm): Remove commented code.
23550         (denorm): Likewise.
23551         (__mp_dbl): Likewise.
23552         (__inv): Likewise.
23553         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
23554         (__cpymn): Likewise.
23555         (norm): Remove commented code.
23556         (denorm): Likewise.
23557         (__mp_dbl): Likewise.
23558         (__inv): Likewise.
23559
23560         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
23561         mp_no value for 1.0 and 2.0.
23562         (norm): Use RADIXI instead of radixi.d.
23563         (denorm): Likewise.
23564         (__mul): Use 0.0 instead of zero.d.
23565         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
23566         mp_no value for 1.0 and 2.0.
23567         (norm): Use RADIXI instead of radixi.d.
23568         (denorm): Likewise.
23569         (__mul): Use 0.0 instead of zero.d.
23570
23571 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
23572
23573         [BZ #14994]
23574         * math/s_casinh.c (__casinh): Reduce finite argument to first
23575         quadrant then set signs of results at the end.
23576         * math/s_casinhf.c (__casinhf): Likewise.
23577         * math/s_casinhl.c (__casinhl): Likewise.
23578         * math/libm-test.inc (casin_test): Add more tests.
23579         (casinh_test): Likewise.
23580         * sysdeps/i386/fpu/libm-test-ulps: Update.
23581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23582
23583 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23584
23585         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
23586
23587         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
23588
23589         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
23590         declarations.
23591         (denorm): Likewise.
23592         (__mp_dbl): Likewise.
23593         (__inv): Likewise.
23594
23595         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
23596         and adjust the header comment.
23597
23598         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
23599         variable name from declaration.
23600
23601 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23602
23603         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23604         Initialize COMMON_CPUID_INDEX_7 element.
23605         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
23606         (CPUID_RTM): Likewise.
23607         (HAS_RTM): Likewise.
23608         (COMMON_CPUID_INDEX_7): New enum.
23609
23610 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
23611
23612         [BZ #14981]
23613         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
23614         size is zero, record memory as freed.
23615
23616 2013-01-03  Andreas Jaeger  <aj@suse.de>
23617
23618         * po/ia.po: Add new Interlingua translation.
23619
23620 2012-01-03  Allan McRae  <allan@archlinux.org>
23621
23622         * locale/programs/localedef.c: Fix description of '--posix' flag.
23623
23624 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
23625
23626         * NEWS: Update dates in second copyright notice.
23627         * README: Update copyright dates in example.
23628         * manual/libc.texinfo: Update copyright dates.
23629         * scripts/test-installation.pl: Update copyright date in --version
23630         output.
23631
23632         * hurd/ctty-input.c: Fix copyright notice formatting.
23633         * hurd/ctty-output.c: Likewise.
23634         * hurd/dtable.c: Likewise.
23635         * hurd/hurd-raise.c: Likewise.
23636         * hurd/hurdprio.c: Likewise.
23637         * hurd/msgportdemux.c: Likewise.
23638         * misc/sys/file.h: Likewise.
23639         * misc/sys/ioctl.h: Likewise.
23640         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
23641         * sysdeps/mach/hurd/chdir.c: Likewise.
23642         * sysdeps/mach/hurd/fchdir.c: Likewise.
23643         * sysdeps/mach/hurd/rename.c: Likewise.
23644         * sysdeps/mach/hurd/rmdir.c: Likewise.
23645         * sysdeps/mach/hurd/seekdir.c: Likewise.
23646         * sysdeps/mach/hurd/setsid.c: Likewise.
23647         * sysdeps/posix/wait3.c: Likewise.
23648
23649         * All files with FSF copyright notices: Update copyright dates
23650         using scripts/update-copyrights.
23651         * intl/plural.c: Regenerated.
23652         * locale/programs/charmap-kw.h: Likewise.
23653         * locale/programs/locfile-kw.h: Likewise.
23654
23655 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
23656
23657         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
23658         four values.
23659
23660         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
23661         calculation loop and add branch prediction.
23662
23663         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
23664         check access beyond bounds of m1np.
23665
23666         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23667         MPTWO.
23668         (__inv): Remove local variable MPTWO to use the global
23669         constant.
23670         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
23671         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23672         variable MPTWO.
23673         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
23674         MP3HALFS static const.
23675
23676 2013-01-01  David S. Miller  <davem@davemloft.net>
23677
23678         * po/ca.po: Update from translation team.
23679
23680 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
23681
23682         * scripts/update-copyrights: New file.
23683         * Makeconfig: Reformat copyright notice.
23684         * ctype/ctype.h: Likewise.
23685         * debug/swprintf_chk.c: Likewise.
23686         * elf/dl-cache.c: Likewise.
23687         * elf/dl-debug.c: Likewise.
23688         * elf/dl-object.c: Likewise.
23689         * grp/initgroups.c: Likewise.
23690         * hurd/Makefile: Likewise.
23691         * hurd/hurd/signal.h: Likewise.
23692         * hurd/hurdfault.c: Likewise.
23693         * hurd/hurdioctl.c: Likewise.
23694         * hurd/hurdlookup.c: Likewise.
23695         * hurd/intr-msg.c: Likewise.
23696         * iconv/gconv_open.c: Likewise.
23697         * libio/swprintf.c: Likewise.
23698         * locale/lc-ctype.c: Likewise.
23699         * locale/nl_langinfo.c: Likewise.
23700         * mach/Machrules: Likewise.
23701         * mach/Makefile: Likewise.
23702         * malloc/obstack.h: Likewise.
23703         * manual/Makefile: Likewise.
23704         * manual/tsort.awk: Likewise.
23705         * misc/bits/stab.def: Likewise.
23706         * nis/nis_print_group_entry.c: Likewise.
23707         * nis/nis_table.c: Likewise.
23708         * nis/nss_compat/compat-pwd.c: Likewise.
23709         * nis/nss_compat/compat-spwd.c: Likewise.
23710         * po/Makefile: Likewise.
23711         * posix/fnmatch.c: Likewise.
23712         * posix/regex.h: Likewise.
23713         * resolv/Makefile: Likewise.
23714         * resolv/nss_dns/dns-network.c: Likewise.
23715         * resolv/res_hconf.c: Likewise.
23716         * scripts/gen-sorted.awk: Likewise.
23717         * soft-fp/soft-fp.h: Likewise.
23718         * stdio-common/printf.h: Likewise.
23719         * stdlib/monetary.h: Likewise.
23720         * stdlib/random.c: Likewise.
23721         * stdlib/random_r.c: Likewise.
23722         * sysdeps/generic/Makefile: Likewise.
23723         * sysdeps/gnu/Makefile: Likewise.
23724         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23725         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23726         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23727         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23728         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23729         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23730         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23731         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23732         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23733         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23734         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23735         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23736         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23737         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23738         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
23739         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23740         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23741         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23742         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23743         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23744         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23745         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23746         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23747         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
23748         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
23749         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23750         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
23751         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
23752         * sysdeps/mach/hurd/errnos.awk: Likewise.
23753         * sysdeps/mach/hurd/fork.c: Likewise.
23754         * sysdeps/mach/hurd/getcwd.c: Likewise.
23755         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
23756         * sysdeps/mach/hurd/mmap.c: Likewise.
23757         * sysdeps/mach/hurd/utimes.c: Likewise.
23758         * sysdeps/mach/hurd/xmknod.c: Likewise.
23759         * sysdeps/posix/profil.c: Likewise.
23760         * sysdeps/posix/readdir_r.c: Likewise.
23761         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23762         * sysdeps/powerpc/bits/setjmp.h: Likewise.
23763         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
23764         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23765         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23766         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23767         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23768         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
23769         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23770         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23771         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23772         * sysdeps/pthread/lio_listio.c: Likewise.
23773         * sysdeps/sparc/dl-procinfo.h: Likewise.
23774         * sysdeps/unix/i386/sysdep.S: Likewise.
23775         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
23776         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
23777         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
23778         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
23779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23780         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
23781         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
23782         * sysdeps/unix/sysv/linux/speed.c: Likewise.
23783         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
23784         * sysdeps/wordsize-32/divdi3.c: Likewise.
23785         * time/sys/time.h: Likewise.
23786         * wcsmbs/Makefile: Likewise.
23787
23788 2013-01-01  David S. Miller  <davem@davemloft.net>
23789
23790         * po/fr.po: Update from translation team.
23791
23792         * catgets/gencat.c: Update copyright year.
23793         * csu/version.c: Likewise.
23794         * debug/catchsegv.sh: Likewise.
23795         * debug/pcprofiledump.c: Likewise.
23796         * debug/xtrace.sh: Likewise.
23797         * elf/ldconfig.c: Likewise.
23798         * elf/ldd.bash.in: Likewise.
23799         * elf/pldd.c: Likewise.
23800         * elf/sotruss.ksh: Likewise.
23801         * elf/sprof.c: Likewise.
23802         * iconv/iconv_prog.c: Likewise.
23803         * iconv/iconvconfig.c: Likewise.
23804         * locale/programs/locale.c: Likewise.
23805         * locale/programs/localedef.c: Likewise.
23806         * login/programs/pt_chown.c: Likewise.
23807         * malloc/memusage.sh: Likewise.
23808         * malloc/memusagestat.c: Likewise.
23809         * malloc/mtrace.pl: Likewise.
23810         * nscd/nscd.c: Likewise.
23811         * nss/getent.c: Likewise.
23812         * nss/makedb.c: Likewise.
23813         * posix/getconf.c: Likewise.
23814
23815 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23816
23817         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
23818         numbers.
23819
23820 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
23821
23822         * math/bits/mathcalls.h (modf): Use __nonnull.
23823
23824 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
23825
23826         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
23827         (split): Use macro CN instead of the bare value.
23828         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
23829         could be used.
23830         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
23831         instead of the bare value.
23832         (power1): Likewise.
23833
23834 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23835
23836         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
23837         __ATAN_TWOM.
23838         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23839
23840         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
23841         their values.
23842         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23843         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
23844         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
23845         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23846
23847 2012-12-28  Andreas Jaeger  <aj@suse.de>
23848
23849         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
23850         values are from Linux 3.7.
23851
23852         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
23853         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
23854
23855 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23856
23857         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
23858         TRUE case.
23859
23860         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
23861         (norm): Likewise.
23862         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
23863         variables with preprocessor constants.
23864         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23865         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23866         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23867
23868 2012-12-27  Bruno Haible  <bruno@clisp.org>
23869
23870         [BZ #14317]
23871         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
23872         only if needed.
23873
23874 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23875
23876         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
23877         and use variable directly.
23878         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
23879
23880         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23881         MPONE.
23882         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
23883         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23884         variable MPONE.
23885         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
23886         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
23887         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
23888         include directive.  Remove local variable MPONE.
23889         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
23890         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
23891         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23892
23893 2012-12-25  David S. Miller  <davem@davemloft.net>
23894
23895         * version.h (RELEASE): Set to "development".
23896         (VERSION): Set to "2.17.90".
23897         * NEWS: Add 2.18 section.
23898
23899 2012-12-21  David S. Miller  <davem@davemloft.net>
23900
23901         * po/hr.po: Update from translation team.
23902
23903 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23904
23905         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
23906
23907 2012-12-19  Steve Ellcey  <sellcey@mips.com>
23908
23909         * NEWS:  Mention new memcpy for MIPS.
23910
23911 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23912
23913         * manual/contrib.texi (Contributors): Spelling correction.
23914
23915 2012-12-15  David S. Miller  <davem@davemloft.net>
23916
23917         * po/ru.po: Update from translation team.
23918
23919 2012-12-13  David S. Miller  <davem@davemloft.net>
23920
23921         * NEWS: Mention IFUNC testsuite enhancements.
23922
23923         * po/pl.po: Update from translation team.
23924         * po/bg.po: Likewise.
23925
23926         * manual/contrib.texi (Contributors): Update entries for Hongjiu
23927         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
23928
23929 2012-12-11  David S. Miller  <davem@davemloft.net>
23930
23931         * po/sv.po: Update from translation team.
23932
23933         * po/vi.po: Update from translation team.
23934
23935         * po/cs.po: Update from translation team.
23936
23937         * po/de.po: Update from translation team.
23938         * po/eo.po: Likewise.
23939         * po/nl.po: Likewise.
23940
23941 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
23942
23943         [BZ #14246]
23944         * manual/argp.texi (Argp Helper Functions): Move node to follow
23945         Argp Parsing State.
23946
23947         [BZ #14872]
23948         * manual/conf.texi (Limits on File System Capacity): Mention if
23949         terminating null is included in the max size.
23950
23951 2012-12-10  Andreas Jaeger  <aj@suse.de>
23952
23953         * po/cs.po: Update from translation team.
23954
23955 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
23956
23957         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
23958         void pointer and cast to uintptr_t.
23959         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
23960         path.
23961         * sysdeps/s390/s390-64/memcpy.S: Likewise.
23962         * sysdeps/s390/s390-64/memset.S: Likewise.
23963
23964 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
23965
23966         [BZ #14833]
23967         * menual/message.texi (Message Translation): Fix typos.
23968         (Helper programs for gettext): Likewise.
23969
23970 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
23971
23972         [BZ #14898]
23973         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
23974         Change to -1.
23975
23976 2012-12-07  David S. Miller  <davem@davemloft.net>
23977
23978         * po/libc.pot: Update.
23979
23980 2012-12-07  Richard Henderson  <rth@redhat.com>
23981
23982         [BZ #10114]
23983         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
23984         normal/normal case to before the switch.
23985         (_FP_DIV): Likewise.
23986
23987 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
23988             Mike Frysinger  <vapier@gentoo.org>
23989
23990         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
23991         check for __NR_fadvise64_64.
23992
23993 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
23994
23995         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
23996         0, not just to plain "0" as a statement.
23997         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
23998         with cw.
23999
24000 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
24001
24002         * NEWS: Use sourceware.org in Bugzilla URL.
24003
24004 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
24005
24006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24007         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24008
24009         * stdio-common/tst-put-error.c (do_test): Add newline to the
24010         padded test to ensure flush.
24011
24012 2012-12-05  Jeff Law  <law@redhat.com>
24013
24014         * sunrpc/etc.rpc (fedfs_admin): Add entry.
24015
24016 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
24017
24018         * README: Don't refer to ports add-on as distributed separately.
24019         Mention AArch64 in list of systems supported in the ports add-on.
24020
24021         * LICENSES: Add more non-FSF copyright and license notices.
24022
24023         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
24024         ((unused)).
24025
24026         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
24027
24028         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
24029         10000 as width of padded output.
24030
24031 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24032
24033         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
24034
24035         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
24036         variable LX with __attribute__ ((unused)).
24037         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
24038         Likewise.
24039         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
24040         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24041         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
24042         with __attribute__ ((unused)).
24043
24044 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
24045
24046         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
24047
24048 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24049
24050         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
24051         (CFLAGS-nldbl-acos.c): New variable.
24052         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
24053         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
24054         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
24055         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
24056         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
24057         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
24058         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
24059         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
24060         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
24061         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
24062         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
24063         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
24064         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
24065         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
24066         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
24067         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
24068         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
24069         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
24070         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
24071         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
24072         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
24073         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
24074         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
24075         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
24076         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
24077         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
24078         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
24079         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
24080         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
24081         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
24082         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
24083         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
24084         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
24085         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
24086         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
24087         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
24088         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
24089         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
24090         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
24091         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
24092         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
24093         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
24094         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
24095         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
24096         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
24097         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
24098         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
24099         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
24100         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
24101         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
24102         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
24103         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
24104         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
24105         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
24106         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
24107         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
24108         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
24109         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
24110         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
24111         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
24112         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
24113         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
24114         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
24115         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
24116         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
24117         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
24118         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
24119         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
24120         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
24121         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
24122         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
24123         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
24124         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
24125         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
24126         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
24127         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
24128         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
24129         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
24130         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
24131         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
24132         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
24133         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
24134         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
24135         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
24136         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
24137         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
24138         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
24139         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
24140         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
24141         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
24142         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
24143         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
24144         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
24145         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
24146         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
24147         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
24148         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
24149
24150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24151         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24152
24153         [BZ #14914]
24154         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
24155         whole low double instead of just low 47 bits when splitting values
24156         into two parts.
24157
24158 2012-12-03  Allan McRae  <allan@archlinux.org>
24159
24160         * manual/stdio.texi (Predefined Printf Handlers): Remove
24161         @hsep and @vsep usage.
24162
24163 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
24164
24165         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
24166         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
24167
24168 2012-12-03  Jeff Law  <law@redhat.com>
24169
24170         * time/sys/time.h (settimeofday): Do not mark TV argument
24171         as __nonnull.
24172
24173 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
24174
24175         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
24176         when currently writing and seek to current position when not.
24177         * libio/Makefile (tests): Remove bug-fclose1.
24178         * libio/bug-fclose1.c: Delete.
24179
24180 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
24181
24182         * manual/arith.texi (feenableexcept): Fix typo.
24183         (fedisableexcept): Likewise.
24184
24185 2012-11-30  Roland McGrath  <roland@hack.frob.com>
24186
24187         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
24188         second, differently-typed declaration, rather than a cast.
24189
24190 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
24191
24192         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
24193         * include/rpc/svc.h: ... here.
24194
24195 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
24196
24197         [BZ #13013]
24198         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
24199         depending n and resplen2 to catch cases where answer
24200         equals answerp2.
24201
24202 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
24203
24204         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
24205         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
24206
24207 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
24208
24209         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
24210
24211 2012-11-29  Roland McGrath  <roland@hack.frob.com>
24212
24213         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
24214
24215 2012-11-28  Jeff Law  <law@redhat.com>
24216
24217         [BZ #13761]
24218         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
24219         dataset_temporary.  Track alloca usage into alloca_used.
24220         If dataset is large allocate and release it via malloc/free.
24221
24222 2012-06-04  Florian Weimer  <fweimer@redhat.com>
24223
24224         [BZ #14197]
24225         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
24226
24227 2012-11-28  David S. Miller  <davem@davemloft.net>
24228
24229         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24230
24231 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24232
24233         [BZ #14803]
24234         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
24235         of pi/2 rounded to nearest to 64 bits.
24236         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
24237         nearest to 64 bits.
24238         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
24239         bits.
24240
24241 2012-11-28  Jeff Law <law@redhat.com>
24242             Martin Osvald <mosvald@redhat.com>
24243
24244         [BZ #14889]
24245         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
24246         * sunrpc/svc.c: Include time.h.
24247         (__svc_accept_failed): New function.
24248         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
24249         any reason other than EINTR, call __svc_accept_failed.
24250         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
24251         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
24252
24253 2012-11-28  Andreas Schwab  <schwab@suse.de>
24254
24255         * scripts/abilist.awk: Also handle indirect functions in .opd
24256         section.
24257
24258 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24259
24260         [BZ #13881]
24261         * sysdeps/x86/fpu/powl_helper.c: New file.
24262         * sysdeps/x86/fpu/Makefile: Likewise.
24263         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
24264         (p3): New object.
24265         (__ieee754_powl): Use __powl_helper for finite arguments except
24266         integer exponents below 8.
24267         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
24268         (p3): New object.
24269         (__ieee754_powl): Use __powl_helper for finite arguments except
24270         integer exponents below 8.
24271         * math/libm-test.inc (pow_test): Add more tests and enable some
24272         previously disabled tests.
24273         * sysdeps/i386/fpu/libm-test-ulps: Update.
24274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24275
24276 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24277             Carlos O'Donell  <carlos_odonell@mentor.com>
24278
24279         * nss/makedb.c (is_prime): Assert that input is odd and greater
24280         than 4.  Note that fact in a comment too.
24281         (next_prime): Add 4 to input.
24282
24283 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24284
24285         [BZ #11741]
24286         * libio/Makefile (tests): Add test case tst-fwrite-error.
24287         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
24288         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
24289         * libio/tst-fwrite-error.c: New test case.
24290
24291 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
24292
24293         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
24294         before casting to void *.
24295         * include/libc-internal.h (__pointer_type): New macro.
24296         (__integer_if_pointer_type_sub): Likewise.
24297         (__integer_if_pointer_type): Likewise.
24298         (cast_to_integer): Likewise.
24299         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
24300         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
24301         before casting to atomic64_t.
24302         (atomic_exchange_acq): Likewise.
24303         (__arch_exchange_and_add_body): Likewise.
24304         (__arch_add_body): Likewise.
24305         (atomic_add_negative): Likewise.
24306         (atomic_add_zero): Likewise.
24307
24308 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
24309
24310         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
24311         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
24312         (add_fdes): Likewise.
24313         (linear_search_fdes): Likewise.
24314         (binary_search_unencoded_fdes): Likewise.
24315
24316 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
24317
24318         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
24319
24320 2012-11-24  Adam Conrad  <adconrad@0c3.net>
24321
24322         * configure.in: Autodetect C++ header directories.
24323         * configure: Regenerated.
24324
24325 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
24326
24327         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
24328
24329 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
24330
24331         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24332
24333 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
24334
24335         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
24336         LDBL_MANT_DIG == 106]: Disable some tests.
24337         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24338         Likewise.
24339         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24340         Likewise.
24341
24342         [BZ #14871]
24343         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
24344         input for small inputs.  Return +/- pi/2 for large inputs.
24345         * math/libm-test.inc (atan_test): Add more tests.
24346
24347         * sysdeps/generic/unwind-dw2-fde-glibc.c
24348         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
24349         __attribute__ ((unused)).
24350
24351         [BZ #14645]
24352         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
24353         x * y if x and y are nonzero and z is zero.
24354
24355         [BZ #14811]
24356         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
24357         nonzero exponents with absolute value below 0x1p-117 to +/-
24358         0x1p-117.
24359
24360         [BZ #14869]
24361         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
24362         up arguments below 2**-450, not just those below 2**-500.
24363         * math/libm-test.inc (hypot_test): Add another test.
24364
24365         [BZ #14868]
24366         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24367         Return a+b for ratio over 2**120, not 2**60.
24368         * math/libm-test.inc (hypot_test): Add another test.
24369
24370         * math/libm-test.inc (clog_test): Use
24371         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
24372         (clog10_test): Likewise.
24373
24374         [BZ #6778]
24375         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
24376
24377 2012-11-22  Andreas Schwab  <schwab@suse.de>
24378
24379         * sysdeps/i386/fpu/libm-test-ulps: Update.
24380
24381 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
24382
24383         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
24384         printf output with newline.
24385
24386 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
24387
24388         [BZ #14865]
24389         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
24390         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
24391         -z nodlopen, -z initfirst and -z execstack support.
24392         * configure: Regenerated.
24393
24394         * elf/elf.h (DF_1_NODIRECT): New macro.
24395         (DF_1_IGNMULDEF): Likewise.
24396         (DF_1_NOKSYMS): Likewise.
24397         (DF_1_NOHDR): Likewise.
24398         (DF_1_EDITED): Likewise.
24399         (DF_1_NORELOC): Likewise.
24400         (DF_1_SYMINTPOSE): Likewise.
24401         (DF_1_GLOBAUDIT): Likewise.
24402         (DF_1_SINGLETON): Likewise.
24403         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
24404         DT_1_SUPPORTED_MASK bits.
24405         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
24406
24407 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
24408
24409         * sysdeps/unix/make-syscalls.sh: Document prefixes.
24410
24411 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
24412
24413         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
24414         macro.
24415
24416         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
24417         (sendmmsg): Move declarations...
24418         * socket/sys/socket.h: ... here.
24419         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
24420         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
24421         include it from...
24422         * socket/recvmmsg.c: ... this new file.
24423         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
24424         (sendmmsg): Rename to __sendmmsg, create weak alias and make
24425         definition of __sendmmsg hidden.
24426         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
24427         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
24428         Move ENOSYS stub into and include it from...
24429         * socket/sendmmsg.c: ... this new file.
24430         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
24431         (sysdep_routines): Move recvmmsg and sendmmsg...
24432         * socket/Makefile (routines): ... here.
24433         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
24434         (GLIBC_PRIVATE): Add __sendmmsg.
24435         * include/sys/socket.h (__sendmmsg): Add declarations.
24436         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
24437         sendmmsg.
24438
24439 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
24440
24441         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
24442         variable I1 with __attribute__ ((unused)).
24443         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
24444
24445 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24446
24447         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
24448         DUMMY variables with __attribute__ ((unused)).
24449
24450         * bits/byteswap.h: Include <bits/types.h>.
24451         (__bswap_64): Use __uint64_t instead of unsigned long long int.
24452
24453 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24454
24455         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
24456         string_t.  Do not manually set errno.
24457         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
24458         length with __strnlen.  Make sure to both set errno and return it on
24459         failure.
24460
24461 2012-11-19  David S. Miller  <davem@davemloft.net>
24462
24463         With help from Joseph Myers.
24464         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
24465         very large arguments properly.
24466         * math/libm-test.inc (atan_test): New tests.
24467         (atan2_test): New tests.
24468         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24469         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24470
24471 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24472
24473         [BZ #14856]
24474         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
24475         Define to 3.
24476
24477         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
24478         [POSIX] (EADDRNOTAVAIL): Likewise.
24479         [POSIX] (EAFNOSUPPORT): Likewise.
24480         [POSIX] (EALREADY): Likewise.
24481         [POSIX] (ECONNABORTED): Likewise.
24482         [POSIX] (ECONNREFUSED): Likewise.
24483         [POSIX] (ECONNRESET): Likewise.
24484         [POSIX] (EDESTADDRREQ): Likewise.
24485         [POSIX] (EDQUOT): Likewise.
24486         [POSIX] (EHOSTUNREACH): Likewise.
24487         [POSIX] (EIDRM): Likewise.
24488         [POSIX] (EISCONN): Likewise.
24489         [POSIX] (ELOOP): Likewise.
24490         [POSIX] (EMULTIHOP): Likewise.
24491         [POSIX] (ENETDOWN): Likewise.
24492         [POSIX] (ENETUNREACH): Likewise.
24493         [POSIX] (ENOBUFS): Likewise.
24494         [POSIX] (ENODATA): Likewise.
24495         [POSIX] (ENOLINK): Likewise.
24496         [POSIX] (ENOMSG): Likewise.
24497         [POSIX] (ENOPROTOOPT): Likewise.
24498         [POSIX] (ENOSR): Likewise.
24499         [POSIX] (ENOSTR): Likewise.
24500         [POSIX] (ENOTCONN): Likewise.
24501         [POSIX] (ENOTSOCK): Likewise.
24502         [POSIX] (EOPNOTSUPP): Likewise.
24503         [POSIX] (EOVERFLOW): Likewise.
24504         [POSIX] (EPROTO): Likewise.
24505         [POSIX] (EPROTONOSUPPORT): Likewise.
24506         [POSIX] (EPROTOTYPE): Likewise.
24507         [POSIX] (ESTALE): Likewise.
24508         [POSIX] (ETIME): Likewise.
24509         [POSIX] (ETXTBSY): Likewise.
24510         [POSIX] (EWOULDBLOCK): Likewise.
24511         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
24512         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
24513         [POSIX] (SEEK_CUR): Likewise.
24514         [POSIX] (SEEK_END): Likewise.
24515         [POSIX || UNIX98] (mode_t): Do not require.
24516         [POSIX] (off_t): Likewise.
24517         [POSIX] (pid_t): Likewise.
24518         [POSIX] (sys/stat.h): Do not allow header.
24519         [POSIX] (unistd.h): Likewise.
24520         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
24521         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
24522         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
24523         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
24524         require.
24525         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
24526         sigevent): Specify elements.
24527         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
24528         entry.
24529         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
24530         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
24531
24532         * conform/data/cpio.h-data [POSIX]: Disable whole file.
24533         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
24534         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
24535         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
24536         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
24537         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
24538         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
24539         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
24540         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
24541         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
24542         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
24543         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
24544         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
24545         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
24546         Likewise.
24547         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
24548         Likewise.
24549         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
24550         Likewise.
24551         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
24552         Likewise.
24553         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
24554         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
24555         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
24556         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
24557         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
24558         Specify lower bound on value.
24559         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
24560         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
24561         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
24562         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
24563         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
24564         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
24565         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
24566         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
24567         value.
24568         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
24569         as optional.
24570         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
24571         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
24572         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
24573         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
24574         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
24575         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
24576         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
24577         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
24578         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
24579         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
24580         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
24581         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
24582         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
24583         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
24584         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
24585         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
24586         entry.
24587         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
24588         optional.
24589         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
24590         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
24591         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
24592         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
24593         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
24594         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
24595         Likewise.
24596         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
24597         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
24598         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
24599         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
24600         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
24601         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
24602         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
24603         as optional.
24604         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
24605         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
24606         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
24607         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
24608         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
24609         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
24610         specify as optional.
24611         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
24612         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
24613         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
24614         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
24615         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
24616         [XPG3] (NL_LANGMAX): Likewise.
24617         [POSIX || XPG3] (NL_MSGMAX): Likewise.
24618         [POSIX || XPG3] (NL_NMAX): Likewise.
24619         [POSIX || XPG3] (NL_SETMAX): Likewise.
24620         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
24621         [XPG3] (NZERO): Likewise.
24622         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
24623         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
24624         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
24625         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
24626         (REG_ERANGE): Expect.
24627         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
24628         optional-constant.
24629         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
24630         Use (void) in prototype.
24631         [POSIX] (*_t): Allow.
24632         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
24633         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
24634         (WRDE_BADVAL): Expect.
24635
24636         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
24637         expect.
24638         [XPG3 || XPG4] (O_RSYNC): Likewise.
24639         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
24640         Likewise.
24641         [XPG3 || XPG4] (pthread_sigmask): Likewise.
24642         [XPG3 || XPG4] (sigqueue): Likewise.
24643         [XPG3 || XPG4] (sigtimedwait): Likewise.
24644         [XPG3 || XPG4] (sigwaitinfo): Likewise.
24645         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
24646         [XPG3 || XPG4] (vsnprintf): Likewise.
24647         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
24648         Likewise.
24649         [XPG3 || XPG4] (blksize_t): Likewise.
24650         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
24651         Likewise.
24652         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
24653         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
24654         [XPG3 || XPG4] (struct itimerspec): Likewise.
24655         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
24656         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
24657         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
24658         [XPG3 || XPG4] (clockid_t): Likewise.
24659         [XPG3 || XPG4] (timer_t): Likewise.
24660         [XPG3 || XPG4] (clock_getres): Likewise.
24661         [XPG3 || XPG4] (clock_gettime): Likewise.
24662         [XPG3 || XPG4] (clock_settime): Likewise.
24663         [XPG3 || XPG4] (nanosleep): Likewise.
24664         [XPG3 || XPG4] (timer_create): Likewise.
24665         [XPG3 || XPG4] (timer_delete): Likewise.
24666         [XPG3 || XPG4] (timer_gettime): Likewise.
24667         [XPG3 || XPG4] (timer_getoverrun): Likewise.
24668         [XPG3 || XPG4] (timer_settime): Likewise.
24669         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
24670         [XPG3 || XPG4] (getlogin_r): Likewise.
24671         [XPG3 || XPG4] (pread): Likewise.
24672         [XPG3 || XPG4] (pthread_atfork): Likewise.
24673         [XPG3 || XPG4] (pwrite): Likewise.
24674
24675         [BZ #14835]
24676         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
24677         <bits/siginfo.h>.
24678
24679 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24680
24681         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
24682         finalizing MALLSTREAM.
24683
24684         * sysdeps/mach/hurd/syncfs.c: New file.
24685
24686 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24687
24688         [BZ #14719]
24689         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
24690         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
24691         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
24692         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
24693         (_nss_dns_gethostbyname4_r): Likewise.
24694         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
24695         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
24696
24697 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
24698
24699         [BZ #13763]
24700         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
24701
24702 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
24703
24704         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
24705         * elf/cache.c (print_entry): Print ",AArch64" for
24706         FLAG_AARCH64_LIB64
24707
24708         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
24709         * elf/cache.c (print_entry): Print ",hard-float" for
24710         FLAG_ARM_LIBHF.
24711
24712 2012-11-18  David S. Miller  <davem@davemloft.net>
24713
24714         With help from Joseph Myers.
24715         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
24716         cutoff to 2**-13.
24717         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
24718         cutoff to 2**-25.
24719         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
24720         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
24721         small.
24722         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
24723         * math/libm-test.inc (y0_test): New tests.
24724         (y1_test): New tests.
24725         * sysdeps/i386/fpu/libm-test-ulps: Update.
24726         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24727         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24728
24729 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
24730
24731         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
24732         64-bit targets.
24733         * configure: Regenerated.
24734
24735 2012-11-17  David S. Miller  <davem@davemloft.net>
24736
24737         [BZ #14811]
24738         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
24739         nonzero exponents with absolute value below 0x1p-128 to +/-
24740         0x1p-128.
24741
24742 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
24743
24744         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
24745
24746         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
24747
24748         * posix/getconf-speclist.c: New file.
24749         * posix/posix-envs.def: Likewise.
24750         * posix/confstr.c (START_ENV_GROUP): New macro.
24751         (END_ENV_GROUP): Likewise.
24752         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24753         (KNOWN_PRESENT_ENV_STRING): Likewise.
24754         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24755         (UNKNOWN_ENVIRONMENT): Likewise.
24756         (confstr): Include posix-envs.def instead of handling
24757         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
24758         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
24759         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
24760         (END_ENV_GROUP): Likewise.
24761         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24762         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24763         (UNKNOWN_ENVIRONMENT): Likewise.
24764         (__sysconf): Include posix-envs.def instead of handling associated
24765         cases directly here.
24766         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
24767         preprocessing getconf-speclist.c rather than running getconf or
24768         generating empty file.
24769
24770 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
24771
24772         * scripts/check-local-headers.sh: Ignore 'mach' headers.
24773
24774 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
24775
24776         [BZ #14672]
24777         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
24778
24779 2012-11-16  David S. Miller  <davem@davemloft.net>
24780
24781         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
24782         smaller than LDBL_EPSILON/2.0L, just return xm1.
24783
24784 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
24785
24786         * elf/tst-array1.c (init): Set constructor priority to 1000.
24787         (fini): Set destructor priority to 1000.
24788         * elf/tst-array2dep.c: Likewise.
24789
24790 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24791
24792         [BZ #11741]
24793         * libio/fileops.c (_IO_new_file_write): Correctly return error.
24794         (_IO_new_file_xsputn): Also return EOF if none of the input
24795         data was written when overflow failed.
24796         * libio/iopadn.c (_IO_padn): Likewise.
24797         * libio/iowpadn.c (_IO_wpadn): Likewise.
24798         * stdio-common/tst-put-error.c: Add copyright notice.
24799         (do_test): Add case for printing padded string.
24800         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
24801         _IO_padn returned error.
24802         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
24803         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
24804         return EOF.
24805
24806 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24807
24808         * libio/libioP.h: Add comment note that the references to C++
24809         bits are now obsolete.
24810
24811 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24812
24813         * math/libm-test.inc (check_complex): Use asprintf.
24814
24815 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
24816
24817         * debug/pcprofiledump.c (print_version): Update copyright year.
24818         * malloc/memusagestat.c (print_version): Likewise.
24819
24820 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
24821
24822         [BZ #14831]
24823         * elf/Makefile (tests): Add tst-audit8.
24824         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
24825         ($(objpfx)tst-audit8.out): New target.
24826         (tst-audit8-ENV): New variable.
24827         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
24828         audit if l_reloc_result is NULL.
24829         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
24830         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
24831         * elf/tst-audit8.c: New file.
24832
24833 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24834
24835         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
24836         * misc/Makefile (CFLAGS-select.c): Define.
24837         * posix/Makefile (CFLAGS-pause.c): Define.
24838
24839 2012-11-13  David S. Miller  <davem@davemloft.net>
24840
24841         * crypt/Makefile: Move test targets after toplevel Rules
24842         inclusion.  Grab any necessary sysdep routines when linking.
24843         * crypt/md5.c (md5_process_block): Remove define, we will always
24844         name it __md5_process_block.
24845         (md5_finish_ctx): Update md5_process_block call.
24846         (md5_stream): Likewise.
24847         (md5_process_bytes): Likewise.
24848         (md5_process_block): Rename to __md5_process_block and move to ...
24849         * crypt/md5-block.c: ... here.
24850         * crypt/sha256.c (sha256_process_block): Move to ...
24851         * crypt/sha256-block.c: ... here.
24852         * crypt/sha512.c (sha512_process_block): Move to ...
24853         * crypt/sha512-block.c: ... here.
24854         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
24855         path.
24856         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
24857         * sysdeps/sparc/sparc64/multiarch/Makefile
24858         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
24859         crypt subdir.
24860         (localedef-aux): Add md5 crypto assembler when in locale subdir.
24861         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
24862         multiarch changes.
24863         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
24864         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
24865         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
24866         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
24867         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
24868         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
24869         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
24870         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
24871         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
24872         file.
24873         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
24874         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
24875         file.
24876         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
24877
24878 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
24879
24880         * timezone/tzselect.ksh: Update from tzcode git revision
24881         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
24882         * timezone/zdump.c: Likewise.
24883         * timezone/zic.c: Likewise.
24884         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
24885         in TZVERSION setting, not $(PKGVERSION).
24886         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
24887         REPORT_BUGS_TO settings.
24888
24889         [BZ #14838]
24890         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
24891         macro.
24892
24893 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24894
24895         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
24896         detection to immediately after _FP_ROUND().
24897         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
24898         bits are 0.
24899
24900 2012-11-11  David S. Miller  <davem@davemloft.net>
24901
24902         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
24903         inttypes.h
24904         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
24905         __close rather than their public counterparts.
24906
24907 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
24908
24909         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
24910         file.
24911         [UNIX98] (sem_timedwait): Do not expect.
24912         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
24913         [XPG4 || UNIX98] (sockatmark): Do not expect.
24914         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
24915         (clock_getcpuclockid): Do not expect.
24916         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
24917         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
24918         Do not expect.
24919         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
24920         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
24921         [UNIX98] (vwscanf): Likewise.
24922         [UNIX98] (vswscanf): Likewise.
24923
24924 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
24925
24926         * timezone/version.h: Remove file.
24927         * timezone/README: Do not refer to version.h.
24928         * timezone/Makefile ($(objpfx)zic.o): New dependency on
24929         $(objpfx)version.h.
24930         ($(objpfx)zdump.o): Likewise.
24931         ($(objpfx)version.h): New target.
24932
24933         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
24934         2012i.
24935         * timezone/README: Don't mention modification to tzselect.ksh.
24936         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
24937         work on unmodified tzselect.ksh.  Substitute version numbers in
24938         tzselect.ksh.
24939
24940         * Makefile (format-me): Remove.
24941         (INSTALL): Adjust indentation.  Use commands directly instead of
24942         using $(format-me).
24943
24944         * aclocal.m4 (ACX_PKGVERSION): New macro.
24945         (ACX_BUGURL): Likewise.
24946         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
24947         (PKGVERSION): New AC_DEFINE_UNQUOTED.
24948         (REPORT_BUGS_TO): Likewise.
24949         * configure: Regenerated.
24950         * config.h.in (PKGVERSION): New macro.
24951         (REPORT_BUGS_TO): Likewise.
24952         * config.make.in (PKGVERSION): New variable.
24953         (PKGVERSION_TEXI): Likewise.
24954         (REPORT_BUGS_TO): Likewise.
24955         (REPORT_BUGS_TEXI): Likewise.
24956         * Makefile (format-me): Use -I$(common-objpfx)manual.
24957         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
24958         ($(common-objpfx)manual/%): New target.
24959         (manual/%): Remove target.
24960         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
24961         (print_version): Use PKGVERSION.
24962         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
24963         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
24964         and REPORT_BUGS_TO.
24965         ($(objpfx)xtrace): Likewise.
24966         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
24967         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
24968         (print_version): Use PKGVERSION.
24969         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
24970         (do_version): Use PKGVERSION.
24971         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
24972         REPORT_BUGS_TO.
24973         (common-ldd-rewrite): Likewise.
24974         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
24975         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
24976         (print_version): Use PKGVERSION.
24977         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
24978         * elf/pldd.c (argp_program_bug_address): Remove variable.
24979         (more_help): New function.
24980         (argp): Use more_help.
24981         (print_version): Use PKGVERSION.
24982         * elf/sln.c (main): Use PKGVERSION.
24983         (usage): Use REPORT_BUGS_TO.
24984         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
24985         (top level): Use PKGVERSION.
24986         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
24987         (print_version): Use PKGVERSION.
24988         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
24989         (print_version): Use PKGVERSION.
24990         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
24991         (print_version): Use PKGVERSION.
24992         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
24993         (print_version): Use PKGVERSION.
24994         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
24995         (print_version): Use PKGVERSION.
24996         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
24997         (print_version): Use PKGVERSION.
24998         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
24999         and BUGURL.
25000         ($(objpfx)memusage): Likewise.
25001         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
25002         (do_version): Use PKGVERSION.
25003         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
25004         (print_version): Use PKGVERSION.
25005         * malloc/mtrace.pl ($PACKAGE): Remove variable.
25006         ($PKGVERSION): New variable.
25007         ($REPORT_BUGS_TO): Likewise.
25008         (usage): Use $REPORT_BUGS_TO.
25009         (top level): Use $PKGVERSION.
25010         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
25011         ($(objpfx)pkgvers.texi): New rule.
25012         ($(objpfx)stamp-pkgvers): Likewise.
25013         * manual/install.texi: Include pkgvers.texi.
25014         (--with-pkgversion): Document new configure option.
25015         (--with-bugurl): Likewise.
25016         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
25017         than necessarily for this particular distribution.  Use
25018         REPORT_BUGS_TO for where to report bugs.
25019         * INSTALL: Regenerated.
25020         * manual/libc.texinfo: Include pkgvers.texi.
25021         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
25022         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
25023         (print_version): Use PKGVERSION.
25024         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
25025         (print_version): Use PKGVERSION.
25026         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
25027         (print_version): Use PKGVERSION.
25028         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
25029         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
25030         macro.
25031         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
25032         (print_version): Use PKGVERSION.
25033         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
25034         (print_version): Use PKGVERSION.
25035         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
25036         and PKGVERSION.
25037
25038         * timezone/checktab.awk: Update from tzcode 2012i.
25039         * timezone/ialloc.c: Likewise.
25040         * timezone/private.h: Likewise.
25041         * timezone/scheck.c: Likewise.
25042         * timezone/tzfile.h: Likewise.
25043         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
25044         (TZVERSION): Hardcode tzcode version number.
25045         * timezone/zdump.c: Update from tzcode 2012i.
25046         * timezone/zic.c: Likewise.
25047         * timezone/version.h: New file.
25048         * timezone/README: Describe version.h.  Update upstream location.
25049
25050         [BZ #14824]
25051         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
25052         (mktemp): Enable declaration.
25053         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
25054         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
25055         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
25056         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
25057         Likewise.
25058         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
25059         Likewise.
25060         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
25061         Likewise.
25062         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
25063         Likewise.
25064         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
25065         Likewise.
25066         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
25067         Likewise.
25068
25069         [BZ #14821]
25070         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
25071         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
25072         for copies of such integer values.
25073         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
25074         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
25075
25076 2012-11-09  Andreas Jaeger  <aj@suse.de>
25077
25078         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
25079         definitions and declarations that are provided by
25080         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
25081
25082 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25083
25084         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
25085         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
25086         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
25087         definition.
25088
25089 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25090
25091         * elf/elf.h: Update comment before AArch64 relocations.
25092
25093 2012-11-07  David S. Miller  <davem@davemloft.net>
25094
25095         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
25096         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
25097         (__start_context): Declare.
25098         (__makecontext_ret): Delete.
25099         (__makecontext): Hook up __start_context instead of
25100         __makecontext_ret.
25101         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
25102         (sysdep_routines): Add __start_context when in stdlib.
25103
25104 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25105
25106         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
25107         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
25108         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
25109         hardcoded "nm".
25110         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
25111         (READELF): New variable.  Use it instead of hardcoded "readelf".
25112
25113 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25114
25115         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
25116         * sysdeps/x86/Makefile: Here.
25117         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
25118         * sysdeps/x86/tst-xmmymm.sh: This.
25119
25120 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25121
25122         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
25123         expectations.
25124         [UNIX98] (pthread_barrier_t): Do not expect.
25125         [UNIX98] (pthread_barrierattr_t): Likewise.
25126         [UNIX98] (pthread_spinlock_t): Likewise.
25127         [UNIX98] (pthread_barrier_destroy): Likewise.
25128         [UNIX98] (pthread_barrier_init): Likewise.
25129         [UNIX98] (pthread_barrier_wait): Likewise.
25130         [UNIX98] (pthread_barrierattr_destroy): Likewise.
25131         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
25132         [UNIX98] (pthread_barrierattr_init): Likewise.
25133         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
25134         [UNIX98] (pthread_getcpuclockid): Likewise.
25135         [UNIX98] (pthread_mutex_timedlock): Likewise.
25136         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
25137         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
25138         [UNIX98] (pthread_sigmask): Likewise.
25139         [UNIX98] (pthread_spin_destroy): Likewise.
25140         [UNIX98] (pthread_spin_init): Likewise.
25141         [UNIX98] (pthread_spin_lock): Likewise.
25142         [UNIX98] (pthread_spin_trylock): Likewise.
25143         [UNIX98] (pthread_spin_unlock): Likewise.
25144         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
25145         Do not expect.
25146         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
25147         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
25148         [XPG3 || XPG4] (pthread_cond_t): Likewise.
25149         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
25150         [XPG3 || XPG4] (pthread_key_t): Likewise.
25151         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
25152         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
25153         [XPG3 || XPG4] (pthread_once_t): Likewise.
25154         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
25155         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
25156         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
25157         [XPG3 || XPG4] (pthread_t): Likewise.
25158
25159         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
25160         not expect.
25161         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
25162
25163         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
25164         Change function return type to int.
25165
25166         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
25167         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
25168         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
25169         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
25170         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
25171         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
25172         [!POSIX] (posix_madvise): Likewise.
25173         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
25174         && !UNIX98].
25175         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
25176         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
25177         (mode_t): Likewise.
25178         (posix_mem_offset): Likewise.
25179         (posix_typed_mem_get_info): Likewise.
25180         (posix_typed_mem_open): Likewise.
25181
25182         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
25183         Change condition to [XOPEN2K8].
25184
25185         * conform/conformtest.pl: Preprocess allow-header data with -x c
25186         instead of from stdin.
25187         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
25188         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
25189         [C99-based standards] (cerfc): Likewise.
25190         [C99-based standards] (cexp2): Likewise.
25191         [C99-based standards] (cexpm1): Likewise.
25192         [C99-based standards] (clog10): Likewise.
25193         [C99-based standards] (clog1p): Likewise.
25194         [C99-based standards] (clog2): Likewise.
25195         [C99-based standards] (clgamma): Likewise.
25196         [C99-based standards] (ctgamma): Likewise.
25197         [C99-based standards] (cerff): Likewise.
25198         [C99-based standards] (cerfcf): Likewise.
25199         [C99-based standards] (cexp2f): Likewise.
25200         [C99-based standards] (cexpm1f): Likewise.
25201         [C99-based standards] (clog10f): Likewise.
25202         [C99-based standards] (clog1pf): Likewise.
25203         [C99-based standards] (clog2f): Likewise.
25204         [C99-based standards] (clgammaf): Likewise.
25205         [C99-based standards] (ctgammaf): Likewise.
25206         [C99-based standards] (cerfl): Likewise.
25207         [C99-based standards] (cerfcl): Likewise.
25208         [C99-based standards] (cexp2l): Likewise.
25209         [C99-based standards] (cexpm1l): Likewise.
25210         [C99-based standards] (clog10l): Likewise.
25211         [C99-based standards] (clog1pl): Likewise.
25212         [C99-based standards] (clog2l): Likewise.
25213         [C99-based standards] (clgammal): Likewise.
25214         [C99-based standards] (ctgammal): Likewise.
25215         * conform/data/inttypes.h-data [C99-based standards]: Include
25216         stdint.h-data.  Remove all expectations for stdint.h contents.
25217         [C99-based standards] (PRI*): Do not allow.
25218         [C99-based standards] (SCN*): Likewise.
25219         [C99-based standards] (*_t): Likewise.
25220         [C99-based-standards] (PRId8): Expect macro.
25221         [C99-based-standards] (PRIi8): Likewise.
25222         [C99-based-standards] (PRIo8): Likewise.
25223         [C99-based-standards] (PRIu8): Likewise.
25224         [C99-based-standards] (PRIx8): Likewise.
25225         [C99-based-standards] (PRIX8): Likewise.
25226         [C99-based-standards] (SCNd8): Likewise.
25227         [C99-based-standards] (SCNi8): Likewise.
25228         [C99-based-standards] (SCNo8): Likewise.
25229         [C99-based-standards] (SCNu8): Likewise.
25230         [C99-based-standards] (SCNx8): Likewise.
25231         [C99-based-standards] (PRIdLEAST8): Likewise.
25232         [C99-based-standards] (PRIiLEAST8): Likewise.
25233         [C99-based-standards] (PRIoLEAST8): Likewise.
25234         [C99-based-standards] (PRIuLEAST8): Likewise.
25235         [C99-based-standards] (PRIxLEAST8): Likewise.
25236         [C99-based-standards] (PRIXLEAST8): Likewise.
25237         [C99-based-standards] (SCNdLEAST8): Likewise.
25238         [C99-based-standards] (SCNiLEAST8): Likewise.
25239         [C99-based-standards] (SCNoLEAST8): Likewise.
25240         [C99-based-standards] (SCNuLEAST8): Likewise.
25241         [C99-based-standards] (SCNxLEAST8): Likewise.
25242         [C99-based-standards] (PRIdFAST8): Likewise.
25243         [C99-based-standards] (PRIiFAST8): Likewise.
25244         [C99-based-standards] (PRIoFAST8): Likewise.
25245         [C99-based-standards] (PRIuFAST8): Likewise.
25246         [C99-based-standards] (PRIxFAST8): Likewise.
25247         [C99-based-standards] (PRIXFAST8): Likewise.
25248         [C99-based-standards] (SCNdFAST8): Likewise.
25249         [C99-based-standards] (SCNiFAST8): Likewise.
25250         [C99-based-standards] (SCNoFAST8): Likewise.
25251         [C99-based-standards] (SCNuFAST8): Likewise.
25252         [C99-based-standards] (SCNxFAST8): Likewise.
25253         [C99-based-standards] (PRId16): Likewise.
25254         [C99-based-standards] (PRIi16): Likewise.
25255         [C99-based-standards] (PRIo16): Likewise.
25256         [C99-based-standards] (PRIu16): Likewise.
25257         [C99-based-standards] (PRIx16): Likewise.
25258         [C99-based-standards] (PRIX16): Likewise.
25259         [C99-based-standards] (SCNd16): Likewise.
25260         [C99-based-standards] (SCNi16): Likewise.
25261         [C99-based-standards] (SCNo16): Likewise.
25262         [C99-based-standards] (SCNu16): Likewise.
25263         [C99-based-standards] (SCNx16): Likewise.
25264         [C99-based-standards] (PRIdLEAST16): Likewise.
25265         [C99-based-standards] (PRIiLEAST16): Likewise.
25266         [C99-based-standards] (PRIoLEAST16): Likewise.
25267         [C99-based-standards] (PRIuLEAST16): Likewise.
25268         [C99-based-standards] (PRIxLEAST16): Likewise.
25269         [C99-based-standards] (PRIXLEAST16): Likewise.
25270         [C99-based-standards] (SCNdLEAST16): Likewise.
25271         [C99-based-standards] (SCNiLEAST16): Likewise.
25272         [C99-based-standards] (SCNoLEAST16): Likewise.
25273         [C99-based-standards] (SCNuLEAST16): Likewise.
25274         [C99-based-standards] (SCNxLEAST16): Likewise.
25275         [C99-based-standards] (PRIdFAST16): Likewise.
25276         [C99-based-standards] (PRIiFAST16): Likewise.
25277         [C99-based-standards] (PRIoFAST16): Likewise.
25278         [C99-based-standards] (PRIuFAST16): Likewise.
25279         [C99-based-standards] (PRIxFAST16): Likewise.
25280         [C99-based-standards] (PRIXFAST16): Likewise.
25281         [C99-based-standards] (SCNdFAST16): Likewise.
25282         [C99-based-standards] (SCNiFAST16): Likewise.
25283         [C99-based-standards] (SCNoFAST16): Likewise.
25284         [C99-based-standards] (SCNuFAST16): Likewise.
25285         [C99-based-standards] (SCNxFAST16): Likewise.
25286         [C99-based-standards] (PRId32): Likewise.
25287         [C99-based-standards] (PRIi32): Likewise.
25288         [C99-based-standards] (PRIo32): Likewise.
25289         [C99-based-standards] (PRIu32): Likewise.
25290         [C99-based-standards] (PRIx32): Likewise.
25291         [C99-based-standards] (PRIX32): Likewise.
25292         [C99-based-standards] (SCNd32): Likewise.
25293         [C99-based-standards] (SCNi32): Likewise.
25294         [C99-based-standards] (SCNo32): Likewise.
25295         [C99-based-standards] (SCNu32): Likewise.
25296         [C99-based-standards] (SCNx32): Likewise.
25297         [C99-based-standards] (PRIdLEAST32): Likewise.
25298         [C99-based-standards] (PRIiLEAST32): Likewise.
25299         [C99-based-standards] (PRIoLEAST32): Likewise.
25300         [C99-based-standards] (PRIuLEAST32): Likewise.
25301         [C99-based-standards] (PRIxLEAST32): Likewise.
25302         [C99-based-standards] (PRIXLEAST32): Likewise.
25303         [C99-based-standards] (SCNdLEAST32): Likewise.
25304         [C99-based-standards] (SCNiLEAST32): Likewise.
25305         [C99-based-standards] (SCNoLEAST32): Likewise.
25306         [C99-based-standards] (SCNuLEAST32): Likewise.
25307         [C99-based-standards] (SCNxLEAST32): Likewise.
25308         [C99-based-standards] (PRIdFAST32): Likewise.
25309         [C99-based-standards] (PRIiFAST32): Likewise.
25310         [C99-based-standards] (PRIoFAST32): Likewise.
25311         [C99-based-standards] (PRIuFAST32): Likewise.
25312         [C99-based-standards] (PRIxFAST32): Likewise.
25313         [C99-based-standards] (PRIXFAST32): Likewise.
25314         [C99-based-standards] (SCNdFAST32): Likewise.
25315         [C99-based-standards] (SCNiFAST32): Likewise.
25316         [C99-based-standards] (SCNoFAST32): Likewise.
25317         [C99-based-standards] (SCNuFAST32): Likewise.
25318         [C99-based-standards] (SCNxFAST32): Likewise.
25319         [C99-based-standards] (PRId64): Likewise.
25320         [C99-based-standards] (PRIi64): Likewise.
25321         [C99-based-standards] (PRIo64): Likewise.
25322         [C99-based-standards] (PRIu64): Likewise.
25323         [C99-based-standards] (PRIx64): Likewise.
25324         [C99-based-standards] (PRIX64): Likewise.
25325         [C99-based-standards] (SCNd64): Likewise.
25326         [C99-based-standards] (SCNi64): Likewise.
25327         [C99-based-standards] (SCNo64): Likewise.
25328         [C99-based-standards] (SCNu64): Likewise.
25329         [C99-based-standards] (SCNx64): Likewise.
25330         [C99-based-standards] (PRIdLEAST64): Likewise.
25331         [C99-based-standards] (PRIiLEAST64): Likewise.
25332         [C99-based-standards] (PRIoLEAST64): Likewise.
25333         [C99-based-standards] (PRIuLEAST64): Likewise.
25334         [C99-based-standards] (PRIxLEAST64): Likewise.
25335         [C99-based-standards] (PRIXLEAST64): Likewise.
25336         [C99-based-standards] (SCNdLEAST64): Likewise.
25337         [C99-based-standards] (SCNiLEAST64): Likewise.
25338         [C99-based-standards] (SCNoLEAST64): Likewise.
25339         [C99-based-standards] (SCNuLEAST64): Likewise.
25340         [C99-based-standards] (SCNxLEAST64): Likewise.
25341         [C99-based-standards] (PRIdFAST64): Likewise.
25342         [C99-based-standards] (PRIiFAST64): Likewise.
25343         [C99-based-standards] (PRIoFAST64): Likewise.
25344         [C99-based-standards] (PRIuFAST64): Likewise.
25345         [C99-based-standards] (PRIxFAST64): Likewise.
25346         [C99-based-standards] (PRIXFAST64): Likewise.
25347         [C99-based-standards] (SCNdFAST64): Likewise.
25348         [C99-based-standards] (SCNiFAST64): Likewise.
25349         [C99-based-standards] (SCNoFAST64): Likewise.
25350         [C99-based-standards] (SCNuFAST64): Likewise.
25351         [C99-based-standards] (SCNxFAST64): Likewise.
25352         [C99-based-standards] (PRIdMAX): Likewise.
25353         [C99-based-standards] (PRIiMAX): Likewise.
25354         [C99-based-standards] (PRIoMAX): Likewise.
25355         [C99-based-standards] (PRIuMAX): Likewise.
25356         [C99-based-standards] (PRIxMAX): Likewise.
25357         [C99-based-standards] (PRIXMAX): Likewise.
25358         [C99-based-standards] (SCNdMAX): Likewise.
25359         [C99-based-standards] (SCNiMAX): Likewise.
25360         [C99-based-standards] (SCNoMAX): Likewise.
25361         [C99-based-standards] (SCNuMAX): Likewise.
25362         [C99-based-standards] (SCNxMAX): Likewise.
25363         [C99-based-standards] (PRIdPTR): Likewise.
25364         [C99-based-standards] (PRIiPTR): Likewise.
25365         [C99-based-standards] (PRIoPTR): Likewise.
25366         [C99-based-standards] (PRIuPTR): Likewise.
25367         [C99-based-standards] (PRIxPTR): Likewise.
25368         [C99-based-standards] (PRIXPTR): Likewise.
25369         [C99-based-standards] (SCNdPTR): Likewise.
25370         [C99-based-standards] (SCNiPTR): Likewise.
25371         [C99-based-standards] (SCNoPTR): Likewise.
25372         [C99-based-standards] (SCNuPTR): Likewise.
25373         [C99-based-standards] (SCNxPTR): Likewise.
25374         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
25375         allow.
25376         * conform/data/stdint.h-data: Update comments to clarify
25377         requirements.
25378         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
25379         type.
25380         [C99-based standards] (INT8_MAX): Likewise.
25381         [C99-based standards] (INT16_MIN): Likewise.
25382         [C99-based standards] (INT16_MAX): Likewise.
25383         [C99-based standards] (INT32_MIN): Likewise.
25384         [C99-based standards] (INT32_MAX): Likewise.
25385         [C99-based standards] (INT64_MIN): Likewise.
25386         [C99-based standards] (INT64_MAX): Likewise.
25387         [C99-based standards] (UINT8_MAX): Likewise.
25388         [C99-based standards] (UINT16_MAX): Likewise.
25389         [C99-based standards] (UINT32_MAX): Likewise.
25390         [C99-based standards] (UINT64_MAX): Likewise.
25391         [C99-based standards] (INT_LEAST8_MIN): Likewise.
25392         [C99-based standards] (INT_LEAST8_MAX): Likewise.
25393         [C99-based standards] (INT_LEAST16_MIN): Likewise.
25394         [C99-based standards] (INT_LEAST16_MAX): Likewise.
25395         [C99-based standards] (INT_LEAST32_MIN): Likewise.
25396         [C99-based standards] (INT_LEAST32_MAX): Likewise.
25397         [C99-based standards] (INT_LEAST64_MIN): Likewise.
25398         [C99-based standards] (INT_LEAST64_MAX): Likewise.
25399         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
25400         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
25401         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
25402         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
25403         [C99-based standards] (INT_FAST8_MIN): Likewise.
25404         [C99-based standards] (INT_FAST8_MAX): Likewise.
25405         [C99-based standards] (INT_FAST16_MIN): Likewise.
25406         [C99-based standards] (INT_FAST16_MAX): Likewise.
25407         [C99-based standards] (INT_FAST32_MIN): Likewise.
25408         [C99-based standards] (INT_FAST32_MAX): Likewise.
25409         [C99-based standards] (INT_FAST64_MIN): Likewise.
25410         [C99-based standards] (INT_FAST64_MAX): Likewise.
25411         [C99-based standards] (UINT_FAST8_MAX): Likewise.
25412         [C99-based standards] (UINT_FAST16_MAX): Likewise.
25413         [C99-based standards] (UINT_FAST32_MAX): Likewise.
25414         [C99-based standards] (UINT_FAST64_MAX): Likewise.
25415         [C99-based standards] (INTPTR_MIN): Likewise.
25416         [C99-based standards] (INTPTR_MAX): Likewise.
25417         [C99-based standards] (UINTPTR_MAX): Likewise.
25418         [C99-based standards] (INTMAX_MIN): Likewise.
25419         [C99-based standards] (INTMAX_MAX): Likewise.
25420         [C99-based standards] (UINTMAX_MAX): Likewise.
25421         [C99-based standards] (PTRDIFF_MIN): Likewise.
25422         [C99-based standards] (PTRDIFF_MAX): Likewise.
25423         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
25424         [C99-based standards] (SIZE_MAX): Likewise.
25425         [C99-based standards] (WCHAR_MAX): Likewise.
25426         [C99-based standards] (WINT_MAX): Likewise.
25427         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
25428         constraint on value.
25429         [C99-based standards] (WCHAR_MIN): Likewise.
25430         [C99-based standards] (WINT_MIN): Likewise.
25431         [C99-based standards] (*_t): Allow.
25432         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
25433         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
25434         Include math.h-data and complex.h-data.  Remove all expectations
25435         of math.h and complex.h contents.
25436         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
25437         at end of line.
25438         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
25439         (struct tm): Expect tag.
25440         [C99-based-standards] (wcstof): Expect function.
25441         [C99-based-standards] (wcstold): Likewise.
25442         [C99-based-standards] (wcstoll): Likewise.
25443         [C99-based-standards] (wcstoull): Likewise.
25444         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
25445         macro-int-constant.  Specify type.
25446         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
25447         constraint on value.
25448         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25449         Specify type.
25450         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
25451         Specify value.
25452         [ISO C standards]: Do not allow headers.
25453         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
25454         wcs[abcdefghijklmnopqrstuvwxyz]*.
25455         [ISO C standards] (*_t): Do not allow.
25456         * conform/data/wctype.h-data [C99-based standards] (iswblank):
25457         Expect function.
25458         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
25459         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25460         Specify type.
25461         [ISO C standards]: Do not allow headers.
25462         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
25463         is[abcdefghijklmnopqrstuvwxyz]*.
25464         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
25465         to[abcdefghijklmnopqrstuvwxyz]*.
25466         [ISO C standards] (*_t): Do not allow.
25467         * conform/data/stdalign.h-data: New file.
25468         * conform/data/stdbool.h-data: Likewise.
25469         * conform/data/stdnoreturn.h-data: Likewise.
25470
25471 2012-11-07  Roland McGrath  <roland@hack.frob.com>
25472
25473         [BZ #14815]
25474         * manual/filesys.texi (Directory Entries): Typo fix.
25475         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
25476
25477 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25478
25479         * elf/elf.h (EM_AARCH64): New macro.
25480         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
25481         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
25482         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
25483         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
25484         (R_AARCH64_TLSDESC): Likewise.
25485         (NT_ARM_TLS): Likewise.
25486         (NT_ARM_HW_BREAK): Likewise.
25487         (NT_ARM_HW_WATCH): Likewise.
25488
25489 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25490
25491         [BZ #14811]
25492         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
25493         (__ieee754_powl): Saturate nonzero exponents with absolute value
25494         below 0x1p-79 to +/- 0x1p-79.
25495         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
25496         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
25497         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
25498         nonzero exponents with absolute value below 0x1p-32 to +/-
25499         0x1p-32.
25500         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
25501         (__ieee754_powl): Saturate nonzero exponents with absolute value
25502         below 0x1p-79 to +/- 0x1p-79.
25503         * math/libm-test.inc (pow_test): Add more tests.
25504
25505 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25506
25507         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
25508         _dl_s390_cap_flags with kernel. Increase string length.
25509         (_dl_s390_platforms): Add z196 and zEC12.
25510
25511 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25512
25513         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
25514         Change XOPEN21K to XOPEN2K.
25515
25516 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25517
25518         * string/memmove.c: Use memcpy when possible.
25519
25520 2012-11-06  Andreas Jaeger  <aj@suse.de>
25521
25522         * po/eo.po: Update from translation team.
25523
25524 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
25525
25526         [BZ #14793]
25527         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
25528         exponent and small x and y exponents, scale x or y up.  Increase
25529         by 2 the exponent used in scaling up.
25530         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25531         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25532         * math/libm-test.inc (fma_test): Add more tests.
25533         (fma_test_towardzero): Likewise.
25534         (fma_test_downward): Likewise.
25535         (fma_test_upward): Likewise.
25536
25537 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
25538
25539         [BZ #14805]
25540         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
25541         fenv_t *.
25542
25543         [BZ #14801]
25544         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
25545         namespace for names of struct fields.
25546         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
25547         fenv_t fields.
25548         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
25549         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
25550
25551 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25552
25553         [BZ #3665]
25554         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
25555
25556 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25557
25558         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
25559         PTR_DEMANGLE.
25560
25561         [BZ #5246]
25562         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
25563         PTR_DEMANGLE.
25564
25565 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
25566
25567         [BZ #14797]
25568         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
25569         definitely overflow as x * y not x * y + z.
25570         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25571         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25572         * math/libm-test.inc (fma_test): Add more tests.
25573         (fma_test_towardzero): Likewise.
25574         (fma_test_downward): Likewise.
25575         (fma_test_upward): Likewise.
25576
25577 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25578
25579         [BZ #157]
25580
25581         * include/stub-tag.h: Remove file.
25582         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
25583         '#include' of it.
25584         * manual/maint.texi (Porting): Don't reference it.
25585         * Makerules ($(objpfx)stubs): Likewise.
25586         * dirent/closedir.c: Don't include <stub-tag.h>.
25587         * dirent/dirfd.c: Likewise.
25588         * dirent/fdopendir.c: Likewise.
25589         * dirent/getdents.c: Likewise.
25590         * dirent/getdents64.c: Likewise.
25591         * dirent/opendir.c: Likewise.
25592         * dirent/readdir.c: Likewise.
25593         * dirent/readdir64.c: Likewise.
25594         * dirent/readdir64_r.c: Likewise.
25595         * dirent/readdir_r.c: Likewise.
25596         * dirent/rewinddir.c: Likewise.
25597         * dirent/seekdir.c: Likewise.
25598         * dirent/telldir.c: Likewise.
25599         * gmon/profil.c: Likewise.
25600         * grp/setgroups.c: Likewise.
25601         * inet/if_index.c: Likewise.
25602         * io/access.c: Likewise.
25603         * io/chdir.c: Likewise.
25604         * io/chmod.c: Likewise.
25605         * io/chown.c: Likewise.
25606         * io/close.c: Likewise.
25607         * io/dup.c: Likewise.
25608         * io/dup2.c: Likewise.
25609         * io/dup3.c: Likewise.
25610         * io/euidaccess.c: Likewise.
25611         * io/faccessat.c: Likewise.
25612         * io/fchdir.c: Likewise.
25613         * io/fchmod.c: Likewise.
25614         * io/fchmodat.c: Likewise.
25615         * io/fchown.c: Likewise.
25616         * io/fchownat.c: Likewise.
25617         * io/fcntl.c: Likewise.
25618         * io/flock.c: Likewise.
25619         * io/fstatfs.c: Likewise.
25620         * io/fstatfs64.c: Likewise.
25621         * io/fstatvfs.c: Likewise.
25622         * io/fstatvfs64.c: Likewise.
25623         * io/futimens.c: Likewise.
25624         * io/fxstat.c: Likewise.
25625         * io/fxstat64.c: Likewise.
25626         * io/fxstatat.c: Likewise.
25627         * io/fxstatat64.c: Likewise.
25628         * io/getcwd.c: Likewise.
25629         * io/isatty.c: Likewise.
25630         * io/lchmod.c: Likewise.
25631         * io/lchown.c: Likewise.
25632         * io/link.c: Likewise.
25633         * io/linkat.c: Likewise.
25634         * io/lseek.c: Likewise.
25635         * io/lseek64.c: Likewise.
25636         * io/lxstat64.c: Likewise.
25637         * io/mkdir.c: Likewise.
25638         * io/mkdirat.c: Likewise.
25639         * io/mkfifo.c: Likewise.
25640         * io/mkfifoat.c: Likewise.
25641         * io/open.c: Likewise.
25642         * io/open64.c: Likewise.
25643         * io/openat.c: Likewise.
25644         * io/openat64.c: Likewise.
25645         * io/pipe.c: Likewise.
25646         * io/pipe2.c: Likewise.
25647         * io/poll.c: Likewise.
25648         * io/posix_fadvise.c: Likewise.
25649         * io/posix_fadvise64.c: Likewise.
25650         * io/posix_fallocate.c: Likewise.
25651         * io/posix_fallocate64.c: Likewise.
25652         * io/read.c: Likewise.
25653         * io/readlink.c: Likewise.
25654         * io/readlinkat.c: Likewise.
25655         * io/rmdir.c: Likewise.
25656         * io/sendfile.c: Likewise.
25657         * io/sendfile64.c: Likewise.
25658         * io/statfs.c: Likewise.
25659         * io/statfs64.c: Likewise.
25660         * io/statvfs.c: Likewise.
25661         * io/statvfs64.c: Likewise.
25662         * io/symlink.c: Likewise.
25663         * io/symlinkat.c: Likewise.
25664         * io/ttyname.c: Likewise.
25665         * io/ttyname_r.c: Likewise.
25666         * io/umask.c: Likewise.
25667         * io/unlink.c: Likewise.
25668         * io/unlinkat.c: Likewise.
25669         * io/utime.c: Likewise.
25670         * io/utimensat.c: Likewise.
25671         * io/write.c: Likewise.
25672         * io/xmknod.c: Likewise.
25673         * io/xmknodat.c: Likewise.
25674         * io/xstat.c: Likewise.
25675         * io/xstat64.c: Likewise.
25676         * login/getpt.c: Likewise.
25677         * login/grantpt.c: Likewise.
25678         * login/unlockpt.c: Likewise.
25679         * math/e_acoshl.c: Likewise.
25680         * math/e_acosl.c: Likewise.
25681         * math/e_asinl.c: Likewise.
25682         * math/e_atan2l.c: Likewise.
25683         * math/e_atanhl.c: Likewise.
25684         * math/e_coshl.c: Likewise.
25685         * math/e_expl.c: Likewise.
25686         * math/e_fmodl.c: Likewise.
25687         * math/e_gammal_r.c: Likewise.
25688         * math/e_hypotl.c: Likewise.
25689         * math/e_j0l.c: Likewise.
25690         * math/e_j1l.c: Likewise.
25691         * math/e_jnl.c: Likewise.
25692         * math/e_lgammal_r.c: Likewise.
25693         * math/e_log10l.c: Likewise.
25694         * math/e_log2l.c: Likewise.
25695         * math/e_logl.c: Likewise.
25696         * math/e_powl.c: Likewise.
25697         * math/e_rem_pio2l.c: Likewise.
25698         * math/e_sinhl.c: Likewise.
25699         * math/e_sqrtl.c: Likewise.
25700         * math/fclrexcpt.c: Likewise.
25701         * math/fedisblxcpt.c: Likewise.
25702         * math/feenablxcpt.c: Likewise.
25703         * math/fegetenv.c: Likewise.
25704         * math/fegetexcept.c: Likewise.
25705         * math/fegetround.c: Likewise.
25706         * math/feholdexcpt.c: Likewise.
25707         * math/fesetenv.c: Likewise.
25708         * math/fesetround.c: Likewise.
25709         * math/feupdateenv.c: Likewise.
25710         * math/fgetexcptflg.c: Likewise.
25711         * math/fraiseexcpt.c: Likewise.
25712         * math/fsetexcptflg.c: Likewise.
25713         * math/ftestexcept.c: Likewise.
25714         * math/k_cosl.c: Likewise.
25715         * math/k_rem_pio2l.c: Likewise.
25716         * math/k_sinl.c: Likewise.
25717         * math/k_tanl.c: Likewise.
25718         * math/s_asinhl.c: Likewise.
25719         * math/s_atanl.c: Likewise.
25720         * math/s_cbrtl.c: Likewise.
25721         * math/s_erfl.c: Likewise.
25722         * math/s_expm1l.c: Likewise.
25723         * math/s_log1pl.c: Likewise.
25724         * math/s_tanhl.c: Likewise.
25725         * misc/acct.c: Likewise.
25726         * misc/brk.c: Likewise.
25727         * misc/chflags.c: Likewise.
25728         * misc/chroot.c: Likewise.
25729         * misc/fchflags.c: Likewise.
25730         * misc/fgetxattr.c: Likewise.
25731         * misc/flistxattr.c: Likewise.
25732         * misc/fremovexattr.c: Likewise.
25733         * misc/fsetxattr.c: Likewise.
25734         * misc/fsync.c: Likewise.
25735         * misc/ftruncate.c: Likewise.
25736         * misc/futimes.c: Likewise.
25737         * misc/futimesat.c: Likewise.
25738         * misc/getdomain.c: Likewise.
25739         * misc/getdtsz.c: Likewise.
25740         * misc/gethostid.c: Likewise.
25741         * misc/gethostname.c: Likewise.
25742         * misc/getloadavg.c: Likewise.
25743         * misc/getpagesize.c: Likewise.
25744         * misc/getsysstats.c: Likewise.
25745         * misc/getxattr.c: Likewise.
25746         * misc/gtty.c: Likewise.
25747         * misc/ioctl.c: Likewise.
25748         * misc/lgetxattr.c: Likewise.
25749         * misc/listxattr.c: Likewise.
25750         * misc/llistxattr.c: Likewise.
25751         * misc/lremovexattr.c: Likewise.
25752         * misc/lsetxattr.c: Likewise.
25753         * misc/lutimes.c: Likewise.
25754         * misc/madvise.c: Likewise.
25755         * misc/mincore.c: Likewise.
25756         * misc/mlock.c: Likewise.
25757         * misc/mlockall.c: Likewise.
25758         * misc/mmap.c: Likewise.
25759         * misc/mprotect.c: Likewise.
25760         * misc/msync.c: Likewise.
25761         * misc/munlock.c: Likewise.
25762         * misc/munlockall.c: Likewise.
25763         * misc/munmap.c: Likewise.
25764         * misc/preadv.c: Likewise.
25765         * misc/preadv64.c: Likewise.
25766         * misc/ptrace.c: Likewise.
25767         * misc/pwritev.c: Likewise.
25768         * misc/pwritev64.c: Likewise.
25769         * misc/readv.c: Likewise.
25770         * misc/reboot.c: Likewise.
25771         * misc/remap_file_pages.c: Likewise.
25772         * misc/removexattr.c: Likewise.
25773         * misc/revoke.c: Likewise.
25774         * misc/select.c: Likewise.
25775         * misc/setdomain.c: Likewise.
25776         * misc/setegid.c: Likewise.
25777         * misc/seteuid.c: Likewise.
25778         * misc/sethostid.c: Likewise.
25779         * misc/sethostname.c: Likewise.
25780         * misc/setregid.c: Likewise.
25781         * misc/setreuid.c: Likewise.
25782         * misc/setxattr.c: Likewise.
25783         * misc/sstk.c: Likewise.
25784         * misc/stty.c: Likewise.
25785         * misc/swapoff.c: Likewise.
25786         * misc/swapon.c: Likewise.
25787         * misc/sync.c: Likewise.
25788         * misc/syncfs.c: Likewise.
25789         * misc/syscall.c: Likewise.
25790         * misc/truncate.c: Likewise.
25791         * misc/ualarm.c: Likewise.
25792         * misc/usleep.c: Likewise.
25793         * misc/ustat.c: Likewise.
25794         * misc/utimes.c: Likewise.
25795         * misc/vhangup.c: Likewise.
25796         * misc/writev.c: Likewise.
25797         * posix/_exit.c: Likewise.
25798         * posix/alarm.c: Likewise.
25799         * posix/execve.c: Likewise.
25800         * posix/fexecve.c: Likewise.
25801         * posix/fork.c: Likewise.
25802         * posix/fpathconf.c: Likewise.
25803         * posix/getaddrinfo.c: Likewise.
25804         * posix/getegid.c: Likewise.
25805         * posix/geteuid.c: Likewise.
25806         * posix/getgid.c: Likewise.
25807         * posix/getgroups.c: Likewise.
25808         * posix/getlogin.c: Likewise.
25809         * posix/getlogin_r.c: Likewise.
25810         * posix/getpgid.c: Likewise.
25811         * posix/getpid.c: Likewise.
25812         * posix/getppid.c: Likewise.
25813         * posix/getresgid.c: Likewise.
25814         * posix/getresuid.c: Likewise.
25815         * posix/getsid.c: Likewise.
25816         * posix/getuid.c: Likewise.
25817         * posix/glob64.c: Likewise.
25818         * posix/nanosleep.c: Likewise.
25819         * posix/pathconf.c: Likewise.
25820         * posix/pause.c: Likewise.
25821         * posix/posix_madvise.c: Likewise.
25822         * posix/pread.c: Likewise.
25823         * posix/pread64.c: Likewise.
25824         * posix/pwrite.c: Likewise.
25825         * posix/pwrite64.c: Likewise.
25826         * posix/sched_getaffinity.c: Likewise.
25827         * posix/sched_getp.c: Likewise.
25828         * posix/sched_gets.c: Likewise.
25829         * posix/sched_primax.c: Likewise.
25830         * posix/sched_primin.c: Likewise.
25831         * posix/sched_rr_gi.c: Likewise.
25832         * posix/sched_setaffinity.c: Likewise.
25833         * posix/sched_setp.c: Likewise.
25834         * posix/sched_sets.c: Likewise.
25835         * posix/sched_yield.c: Likewise.
25836         * posix/setgid.c: Likewise.
25837         * posix/setlogin.c: Likewise.
25838         * posix/setpgid.c: Likewise.
25839         * posix/setresgid.c: Likewise.
25840         * posix/setresuid.c: Likewise.
25841         * posix/setsid.c: Likewise.
25842         * posix/setuid.c: Likewise.
25843         * posix/sleep.c: Likewise.
25844         * posix/spawni.c: Likewise.
25845         * posix/sysconf.c: Likewise.
25846         * posix/times.c: Likewise.
25847         * posix/wait.c: Likewise.
25848         * posix/wait3.c: Likewise.
25849         * posix/wait4.c: Likewise.
25850         * posix/waitpid.c: Likewise.
25851         * resolv/gai_sigqueue.c: Likewise.
25852         * resource/getpriority.c: Likewise.
25853         * resource/getrlimit.c: Likewise.
25854         * resource/getrusage.c: Likewise.
25855         * resource/nice.c: Likewise.
25856         * resource/setpriority.c: Likewise.
25857         * resource/setrlimit.c: Likewise.
25858         * resource/ulimit.c: Likewise.
25859         * rt/aio_cancel.c: Likewise.
25860         * rt/aio_fsync.c: Likewise.
25861         * rt/aio_read.c: Likewise.
25862         * rt/aio_sigqueue.c: Likewise.
25863         * rt/aio_suspend.c: Likewise.
25864         * rt/aio_write.c: Likewise.
25865         * rt/clock_getres.c: Likewise.
25866         * rt/clock_gettime.c: Likewise.
25867         * rt/clock_nanosleep.c: Likewise.
25868         * rt/clock_settime.c: Likewise.
25869         * rt/lio_listio.c: Likewise.
25870         * rt/mq_close.c: Likewise.
25871         * rt/mq_getattr.c: Likewise.
25872         * rt/mq_notify.c: Likewise.
25873         * rt/mq_open.c: Likewise.
25874         * rt/mq_receive.c: Likewise.
25875         * rt/mq_send.c: Likewise.
25876         * rt/mq_setattr.c: Likewise.
25877         * rt/mq_timedreceive.c: Likewise.
25878         * rt/mq_timedsend.c: Likewise.
25879         * rt/mq_unlink.c: Likewise.
25880         * rt/shm_open.c: Likewise.
25881         * rt/shm_unlink.c: Likewise.
25882         * rt/timer_create.c: Likewise.
25883         * rt/timer_delete.c: Likewise.
25884         * rt/timer_getoverr.c: Likewise.
25885         * rt/timer_gettime.c: Likewise.
25886         * rt/timer_settime.c: Likewise.
25887         * setjmp/__longjmp.c: Likewise.
25888         * setjmp/setjmp.c: Likewise.
25889         * signal/kill.c: Likewise.
25890         * signal/killpg.c: Likewise.
25891         * signal/raise.c: Likewise.
25892         * signal/sigaction.c: Likewise.
25893         * signal/sigaltstack.c: Likewise.
25894         * signal/sigblock.c: Likewise.
25895         * signal/sigignore.c: Likewise.
25896         * signal/sigintr.c: Likewise.
25897         * signal/signal.c: Likewise.
25898         * signal/sigpause.c: Likewise.
25899         * signal/sigpending.c: Likewise.
25900         * signal/sigqueue.c: Likewise.
25901         * signal/sigreturn.c: Likewise.
25902         * signal/sigset.c: Likewise.
25903         * signal/sigsetmask.c: Likewise.
25904         * signal/sigstack.c: Likewise.
25905         * signal/sigsuspend.c: Likewise.
25906         * signal/sigtimedwait.c: Likewise.
25907         * signal/sigvec.c: Likewise.
25908         * signal/sigwait.c: Likewise.
25909         * signal/sigwaitinfo.c: Likewise.
25910         * signal/sysv_signal.c: Likewise.
25911         * socket/accept.c: Likewise.
25912         * socket/accept4.c: Likewise.
25913         * socket/bind.c: Likewise.
25914         * socket/connect.c: Likewise.
25915         * socket/getpeername.c: Likewise.
25916         * socket/getsockname.c: Likewise.
25917         * socket/getsockopt.c: Likewise.
25918         * socket/isfdtype.c: Likewise.
25919         * socket/listen.c: Likewise.
25920         * socket/recv.c: Likewise.
25921         * socket/recvfrom.c: Likewise.
25922         * socket/recvmsg.c: Likewise.
25923         * socket/send.c: Likewise.
25924         * socket/sendmsg.c: Likewise.
25925         * socket/sendto.c: Likewise.
25926         * socket/setsockopt.c: Likewise.
25927         * socket/shutdown.c: Likewise.
25928         * socket/sockatmark.c: Likewise.
25929         * socket/socket.c: Likewise.
25930         * socket/socketpair.c: Likewise.
25931         * stdio-common/ctermid.c: Likewise.
25932         * stdio-common/cuserid.c: Likewise.
25933         * stdio-common/remove.c: Likewise.
25934         * stdio-common/rename.c: Likewise.
25935         * stdio-common/renameat.c: Likewise.
25936         * stdio-common/tempname.c: Likewise.
25937         * stdlib/getcontext.c: Likewise.
25938         * stdlib/makecontext.c: Likewise.
25939         * stdlib/setcontext.c: Likewise.
25940         * stdlib/swapcontext.c: Likewise.
25941         * stdlib/system.c: Likewise.
25942         * streams/fattach.c: Likewise.
25943         * streams/fdetach.c: Likewise.
25944         * streams/getmsg.c: Likewise.
25945         * streams/getpmsg.c: Likewise.
25946         * streams/putmsg.c: Likewise.
25947         * streams/putpmsg.c: Likewise.
25948         * sysdeps/unix/bsd/getpt.c: Likewise.
25949         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
25950         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
25951         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
25952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
25953         Likewise.
25954         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
25955         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
25956         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
25957         * sysvipc/msgctl.c: Likewise.
25958         * sysvipc/msgget.c: Likewise.
25959         * sysvipc/msgrcv.c: Likewise.
25960         * sysvipc/msgsnd.c: Likewise.
25961         * sysvipc/semctl.c: Likewise.
25962         * sysvipc/semget.c: Likewise.
25963         * sysvipc/semop.c: Likewise.
25964         * sysvipc/semtimedop.c: Likewise.
25965         * sysvipc/shmat.c: Likewise.
25966         * sysvipc/shmctl.c: Likewise.
25967         * sysvipc/shmdt.c: Likewise.
25968         * sysvipc/shmget.c: Likewise.
25969         * termios/tcdrain.c: Likewise.
25970         * termios/tcflow.c: Likewise.
25971         * termios/tcflush.c: Likewise.
25972         * termios/tcgetattr.c: Likewise.
25973         * termios/tcgetpgrp.c: Likewise.
25974         * termios/tcsendbrk.c: Likewise.
25975         * termios/tcsetattr.c: Likewise.
25976         * termios/tcsetpgrp.c: Likewise.
25977         * time/adjtime.c: Likewise.
25978         * time/clock.c: Likewise.
25979         * time/getitimer.c: Likewise.
25980         * time/gettimeofday.c: Likewise.
25981         * time/setitimer.c: Likewise.
25982         * time/settimeofday.c: Likewise.
25983         * time/stime.c: Likewise.
25984         * time/time.c: Likewise.
25985
25986 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
25987
25988         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
25989         /usr/old/bin.
25990
25991         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
25992         instead of spaces.
25993         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
25994
25995 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
25996
25997         [BZ #14796]
25998         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
25999         FE_TONEAREST before applying Dekker multiplication and Knuth
26000         addition.  Clear inexact exceptions and check for exact zero
26001         results afterwards.
26002         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26003         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26004         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26005         * math/libm-test.inc (fma_test): Add more tests.
26006         (fma_test_towardzero): Likewise.
26007         (fma_test_downward): Likewise.
26008         (fma_test_upward): Likewise.
26009         * sysdeps/generic/math_private.h (default_libc_fesetround): New
26010         function.
26011         (libc_fesetround): New macro.
26012         (libc_fesetroundf): Likewise.
26013         (libc_fesetroundl): Likewise.
26014         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
26015         function.
26016         (libc_fesetround_387): Likewise.
26017         (libc_fesetroundf): New macro.
26018         (libc_fesetround): Likewise.
26019         (libc_fesetroundl): Likewise.
26020         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
26021         function.
26022         (libc_fesetroundf): New macro.
26023         (libc_fesetround): Likewise.
26024         (libc_fesetroundl): Likewise.
26025         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
26026         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
26027         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
26028         libm_hidden_ver.
26029         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
26030         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
26031         libm_hidden_def.
26032         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
26033         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
26034         libm_hidden_ver.
26035         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
26036         libm_hidden_def.
26037
26038         [BZ #3439]
26039         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
26040         integer constant usable in #if and use that to give value to enum
26041         constant.
26042         (FE_DIVBYZERO): Likewise.
26043         (FE_UNDERFLOW): Likewise.
26044         (FE_OVERFLOW): Likewise.
26045         (FE_INVALID): Likewise.
26046         (FE_INVALID_SNAN): Likewise.
26047         (FE_INVALID_ISI): Likewise.
26048         (FE_INVALID_IDI): Likewise.
26049         (FE_INVALID_ZDZ): Likewise.
26050         (FE_INVALID_IMZ): Likewise.
26051         (FE_INVALID_COMPARE): Likewise.
26052         (FE_INVALID_SOFTWARE): Likewise.
26053         (FE_INVALID_SQRT): Likewise.
26054         (FE_INVALID_INTEGER_CONVERSION): Likewise.
26055         (FE_TONEAREST): Likewise.
26056         (FE_TOWARDZERO): Likewise.
26057         (FE_UPWARD): Likewise.
26058         (FE_DOWNWARD): Likewise.
26059         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
26060         (FE_DIVBYZERO): Likewise.
26061         (FE_OVERFLOW): Likewise.
26062         (FE_UNDERFLOW): Likewise.
26063         (FE_INEXACT): Likewise.
26064         (FE_TONEAREST): Likewise.
26065         (FE_DOWNWARD): Likewise.
26066         (FE_UPWARD): Likewise.
26067         (FE_TOWARDZERO): Likewise.
26068         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
26069         (FE_UNDERFLOW): Likewise.
26070         (FE_OVERFLOW): Likewise.
26071         (FE_DIVBYZERO): Likewise.
26072         (FE_INVALID): Likewise.
26073         (FE_TONEAREST): Likewise.
26074         (FE_TOWARDZERO): Likewise.
26075         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
26076         (FE_OVERFLOW): Likewise.
26077         (FE_UNDERFLOW): Likewise.
26078         (FE_DIVBYZERO): Likewise.
26079         (FE_INEXACT): Likewise.
26080         (FE_TONEAREST): Likewise.
26081         (FE_TOWARDZERO): Likewise.
26082         (FE_UPWARD): Likewise.
26083         (FE_DOWNWARD): Likewise.
26084         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
26085         (FE_DIVBYZERO): Likewise.
26086         (FE_OVERFLOW): Likewise.
26087         (FE_UNDERFLOW): Likewise.
26088         (FE_INEXACT): Likewise.
26089         (FE_TONEAREST): Likewise.
26090         (FE_DOWNWARD): Likewise.
26091         (FE_UPWARD): Likewise.
26092         (FE_TOWARDZERO): Likewise.
26093
26094 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
26095
26096         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
26097
26098 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
26099
26100         * scripts/cross-test-ssh.sh (command): Use newlines to separate
26101         commands.  Quote $PWD.
26102         (blacklist_exports): Don't use remove_newlines.  Replace "declare
26103         -x" by "export".
26104         (remove_newlines): Remove.
26105
26106 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
26107
26108         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
26109         * stdlib/stdlib.h (atof): Moved to ...
26110         * include/bits/stdlib-float.h: Here.  New file.
26111         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
26112         * stdlib/bits/stdlib-float.h: New file.
26113         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
26114         -mno-sse -mno-mmx.
26115         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
26116         <xmmintrin.h>.
26117
26118 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26119
26120         * conform/conformtest.pl (@headers): Add fenv.h.
26121         * conform/data/fenv.h-data: New file.
26122         * include/fenv.h [_ISOMAC]: Disable all contents of file except
26123         include of <math/fenv.h>.
26124
26125         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
26126         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
26127         && !UNIX98].  Enables tests for XOPEN2K8.
26128         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
26129         POSIX2008]: Likewise.
26130
26131         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
26132         (struct rusage): Do not expect type or its members.
26133
26134         [BZ #3439]
26135         * math/math.h (FP_NAN): Define macro to integer constant usable in
26136         #if and use that to give value to enum constant.
26137         (FP_INFINITE): Likewise.
26138         (FP_ZERO): Likewise.
26139         (FP_SUBNORMAL): Likewise.
26140         (FP_NORMAL): Likewise.
26141
26142 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
26143
26144         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
26145         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
26146         arguments.
26147
26148 2012-11-02  Roland McGrath  <roland@hack.frob.com>
26149
26150         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
26151         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
26152         autoconf-time if not.
26153         * configure.in: Remove AC_PREREQ.
26154
26155 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26156
26157         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
26158         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
26159         of the internal implementation.
26160
26161 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26162
26163         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
26164         except include of <misc/sys/syslog.h>.
26165
26166 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26167
26168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
26169         function returns with a NULL context exit with zero.
26170
26171 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26172
26173         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
26174
26175 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26176
26177         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
26178         (run_program_cmd): This.
26179         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
26180         (tst_langinfo): New variable.  Use it.
26181
26182 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
26183
26184         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
26185         floating point opcodes.
26186
26187 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26188
26189         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
26190         variable.
26191
26192         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
26193
26194         * sysdeps/mach/hurd/powerpc: Remove directory.
26195         * sysdeps/mach/powerpc: Likewise.
26196
26197 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26198
26199         * scripts/check-local-headers.sh: Ignore c++ headers.
26200
26201 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26202
26203         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
26204         __libc_cleanup_region_start argument.
26205
26206 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
26207
26208         [BZ #14784]
26209         [BZ #14785]
26210         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
26211         x * y using scaling, not as x * y + z.
26212         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26213         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26214         * math/libm-test.inc (fma_test): Add more tests.
26215         (fma_test_towardzero): Likewise.
26216         (fma_test_downward): Likewise.
26217         (fma_test_upward): Likewise.
26218
26219 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26220
26221         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
26222
26223 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26224
26225         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
26226         New variable.
26227
26228 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
26229
26230         * rt/tst-shm.c (worker): Correct checking for mmap failure.
26231
26232 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26233
26234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26235         Fix sort order.
26236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26237         Likewise.
26238
26239 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26240
26241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26242         Fix the order of the list for glibc 2.17.
26243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26244         Likewise.
26245
26246 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26247
26248         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26249
26250 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26251
26252         [BZ #14610]
26253         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
26254         for low part of x being zero before using __atanl (y).
26255         * math/libm-test.inc (atan2_test): Add another test.
26256
26257         * manual/install.texi (Configuring and compiling): Document
26258         general use of test-wrapper and test-wrapper-env.
26259         * INSTALL: Regenerated.
26260
26261         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
26262         (__fma): 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         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
26266         (__fmal): Do not extract and scale down low bits on after-rounding
26267         systems when result rounded to normal precision would have normal
26268         exponent.
26269         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
26270         (__fmal): Do not extract and scale down low bits on after-rounding
26271         systems when result rounded to normal precision would have normal
26272         exponent.
26273         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
26274         macro.
26275         (fma_test): Add more tests.
26276         (fma_test_towardzero): Likewise.
26277         (fma_test_downward): Likewise.
26278         (fma_test_upward): Likewise.
26279
26280 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26281
26282         * sysdeps/i386/tininess.h: Renamed to ...
26283         * sysdeps/x86/tininess.h: This.
26284         * sysdeps/x86_64/tininess.h: Removed.
26285
26286 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26287
26288         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
26289         input.  Use $(build-program-cmd).
26290         ($(objpfx)tst-array1-static.out): Likewise.
26291         ($(objpfx)tst-array2.out): Likewise.
26292         ($(objpfx)tst-array3.out): Likewise.
26293         ($(objpfx)tst-array4.out): Likewise.
26294         ($(objpfx)tst-array5.out): Likewise.
26295         ($(objpfx)tst-array5-static.out): Likewise.
26296
26297 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
26298
26299         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
26300         if defined.
26301
26302         * nss/nsswitch.h (nss_interface_function): Provide new
26303         macro for use with NSS functions.
26304         * grp/initgroups.c: Use new macro.
26305         * nss/getXXbyYY.c: Likewise.
26306         * nss/getXXbyYY_r.c: Likewise.
26307         * nss/getXXent.c: Likewise.
26308         * nss/getXXent_r.c: Likewise.
26309         * sysdeps/posix/getaddrinfo.c: Likewise.
26310
26311 2012-10-30  Andreas Jaeger  <aj@suse.de>
26312
26313         * po/ru.po: Update Russion translation from translation project.
26314
26315 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26316
26317         [BZ #14152]
26318         [BZ #14783]
26319         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
26320         result and shift together with sticky bit instead of replicating
26321         round-to-nearest rounding.
26322         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26323         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26324         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
26325         missing underflow exceptions.
26326         (fma_test_towardzero): Add more tests.
26327         (fma_test_downward): Likewise.
26328         (fma_test_upward): Likewise.
26329
26330         [BZ #14047]
26331         * sysdeps/generic/tininess.h: New file.
26332         * sysdeps/i386/tininess.h: Likewise.
26333         * sysdeps/sh/tininess.h: Likewise.
26334         * sysdeps/x86_64/tininess.h: Likewise.
26335         * stdlib/tst-strtod-underflow.c: Likewise.
26336         * stdlib/tst-tininess.c: Likewise.
26337         * stdlib/strtod_l.c: Include <tininess.h>.
26338         (round_and_return): Do not set errno for exact underflow cases.
26339         Force an underflow exception when setting errno for underflow.
26340         Determine underflow based on rounding to normal precision if
26341         TININESS_AFTER_ROUNDING.
26342         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
26343         ERANGE for exact underflow cases.
26344         * stdlib/Makefile (tests): Add tst-tininess and
26345         tst-strtod-underflow.
26346         ($(objpfx)tst-tininess): Use $(link-libm).
26347         ($(objpfx)tst-strtod-underflow): Likewise.
26348
26349 2012-10-30  Andreas Jaeger  <aj@suse.de>
26350
26351         [BZ#14767]
26352         * elf/Makefile (tests): Remove conditional for have-initfini-array
26353         since this is now always required and the variable does not exist
26354         anymore.
26355         (tests-static): Likewise.
26356         (modules-names): Likewise.
26357
26358         * po/eo.po: Add Esperanto translation from translation project.
26359
26360         * elf/tst-array1.c (fini_array): Make writeable so that it can be
26361         merged with constructor/destructor.
26362         (init_array): Likewise.
26363         * elf/tst-array2dep.c (fini_array): Likewise.
26364         (init_array): Likewise.
26365
26366 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
26367
26368         * manual/message.texi: Delete @cartouche tags.
26369
26370 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
26371
26372         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
26373         EOPNOTSUPP.
26374         * sysdeps/mach/hurd/fsync.c: Likewise.
26375
26376         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
26377         [_POSIX_REALTIME_SIGNALS]: Change condition to
26378         [_POSIX_REALTIME_SIGNALS > 0].
26379
26380 2012-10-27  Andreas Jaeger  <aj@suse.de>
26381
26382         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
26383         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
26384         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
26385         [__WORDSIZE != 64]: Likewise.
26386
26387 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
26388
26389         *  iconvdata/tst-table.sh: Remove ${SHELL}.
26390         *  iconvdata/tst-tables.sh: Likewise.
26391
26392 2012-10-25  David S. Miller  <davem@davemloft.net>
26393
26394         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26395         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
26396         of strtoull.
26397
26398         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
26399         ifunc-impl-list.c
26400         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26401         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
26402         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
26403         file.
26404
26405 2012-10-25  Roland McGrath  <roland@hack.frob.com>
26406
26407         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26408         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
26409         __getdirentries.
26410
26411 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26412             Jim Blandy  <jimb@codesourcery.com>
26413
26414         * scripts/cross-test-ssh.sh: New file.
26415         * manual/install.texi (Configuring and compiling): Document use of
26416         cross-test-ssh.sh.
26417         * INSTALL: Regenerated.
26418
26419 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
26420
26421         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
26422         EOPNOTSUPP.
26423
26424 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26425
26426         * Makeconfig (run-program-prefix): Fix comment.
26427
26428 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26429             Jim Blandy  <jimb@codesourcery.com>
26430
26431         * Makeconfig (test-wrapper): New variable,
26432         (test-wrapper-env): Likewise.
26433         [$(cross-compiling) = yes && $(test-wrapper) != ""]
26434         (run-built-tests): Define to yes.
26435         (run-program-prefix): Use $(test-wrapper).
26436         (built-program-cmd): Likewise.
26437         * Rules (make-test-out): Use $(test-wrapper-env) and
26438         $(host-built-program-cmd).
26439         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
26440         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
26441         tst-pathopt.sh.
26442         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
26443         $(test-wrapper-env) to tst-rtld-load-self.sh.
26444         ($(objpfx)order2.out): Use $(test-wrapper).
26445         ($(objpfx)tst-initorder.out): Likewise.
26446         ($(objpfx)tst-initorder2.out): Likewise.
26447         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
26448         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
26449         (test_wrapper_env): New variable.  Use it to run ld.so.
26450         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
26451         Use it to run ld.so.
26452         (test_wrapper_env): Likewise.
26453         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
26454         $(test-wrapper) to run-iconv-test.sh.
26455         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
26456         (ICONV): Use $test_wrapper.
26457         * posix/Makefile ($(objpfx)globtest.out): Pass
26458         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
26459         globtest.sh, not $(run-program-prefix).
26460         * posix/globtest.sh (run_via_rtld_prefix): New variable.
26461         (test_wrapper): Likewise.
26462         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
26463         set together with run_via_rtld_prefix.
26464         (run_program_prefix): Define in terms of test_wrapper and
26465         run_via_rtld_prefix.
26466
26467 2012-10-24  Roland McGrath  <roland@hack.frob.com>
26468
26469         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
26470         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
26471         Targets removed.
26472
26473         [BZ #14743]
26474         * include/time.h: Remove librt_hidden_proto (clock_gettime).
26475         Declare __clock_getres, __clock_gettime, __clock_settime,
26476         __clock_nanosleep, and __clock_getcpuclockid.
26477         * rt/clock_gettime.c: Define __clock_gettime as an alias.
26478         Remove librt_hidden_def (clock_gettime).
26479         * sysdeps/unix/clock_gettime.c: Likewise.
26480         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
26481         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
26482         * rt/clock_getres.c: Define __clock_getres as an alias.
26483         * sysdeps/posix/clock_getres.c: Likewise.
26484         * rt/clock_settime.c: Define __clock_settime as an alias.
26485         * sysdeps/unix/clock_settime.c: Likewise.
26486         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
26487         * sysdeps/unix/clock_nanosleep.c: Likewise.
26488         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
26489         * rt/clock-compat.c: New file.
26490         * rt/Makefile (librt-routines): Add clock-compat and move
26491         $(clock-routines) to ...
26492         (routines): ... here, new variable.
26493         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
26494         Don't add get_clockfreq here.
26495         * rt/Versions (libc: GLIBC_2.17): New version set.
26496         Add clock_* symbols here.
26497         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
26498         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
26499         (GLIBC_2.17): Add clock_* symbols.
26500         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
26501         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
26502         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
26503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26504         Likewise.
26505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26506         Likewise.
26507         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
26508         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
26509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
26510         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
26511         * NEWS: Mention the move.
26512
26513         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
26514         Use __open, __read, __close rather than their public counterparts.
26515         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26516         (__get_clockfreq_via_cpuinfo): Likewise.
26517         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
26518         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
26519
26520         * config.h.in (HAVE_IFUNC): New #undef.
26521         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
26522         was successful.
26523         * configure: Regenerated.
26524
26525 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26526
26527         * configure.in: Move READELF check to start of file.
26528         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
26529         libc_cv_asm_gnu_indirect_function in the process.
26530         * configure: Regenerated.
26531
26532 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26533
26534         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
26535         send the output to /dev/null.
26536         (libc_cv_cc_with_libunwind): Likewise.
26537         (libc_cv_as_noexecstack): Likewise.
26538         * configure: Regenerate.
26539
26540 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26541
26542         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
26543
26544         * posix/globtest.sh (TMPDIR): Do not set.
26545         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
26546         (testout): Likewise.
26547
26548 2012-10-24  Andreas Jaeger  <aj@suse.de>
26549
26550         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
26551         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
26552         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
26553         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
26554         posix_fadvise64, posix_fallocate64.
26555
26556         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
26557         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
26558         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
26559         Likewise.
26560         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
26561         Likewise.
26562         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
26563
26564         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
26565         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
26566         <bits/fcntl-linux.h>.
26567         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
26568
26569         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
26570         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
26571         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
26572         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
26573         [__WORDSIZE != 64]: Likewise.
26574
26575 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26576
26577         * Makeconfig (run-built-tests): New variable.
26578         * Rules [$(cross-compiling) = yes]: Change condition to
26579         [$(run-built-tests) = no].
26580         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
26581         to [$(run-built-tests) = yes].
26582         * elf/Makefile [$(cross-compiling) = no]: Likewise
26583         * grp/Makefile [$(cross-compiling) = no]: Likewise.
26584         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
26585         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
26586         * intl/Makefile [$(cross-compiling) = no]: Likewise.
26587         * io/Makefile [$(cross-compiling) = no]: Likewise.
26588         * libio/Makefile [$(cross-compiling) = no]: Likewise.
26589         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
26590         * misc/Makefile [$(cross-compiling) = no]: Likewise.
26591         * posix/Makefile [$(cross-compiling) = no]: Likewise.
26592         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
26593         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
26594         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
26595         * string/Makefile [$(cross-compiling) = no]: Likewise.
26596
26597         * posix/Makefile ($(objpfx)globtest.out): Pass
26598         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
26599         $(rtld-installed-name).
26600         * posix/globtest.sh (elf_objpfx): Remove variable.
26601         (rtld_installed_name): Likewise.
26602         (library_path): Likewise.
26603         (run_program_prefix): New variable.  Use for running globtest
26604         binary.
26605
26606 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
26607             Joseph Myers  <joseph@codesourcery.com>
26608
26609         * Makeconfig (host-built-program-cmd): New variable.
26610         * elf/Makefile (tst-stackguard1-ARGS): Use
26611         $(host-built-program-cmd).
26612         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
26613         (tst-spawn-ARGS): Likewise.
26614         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
26615
26616 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26617             Jim Blandy  <jimb@codesourcery.com>
26618
26619         * Makeconfig (run-via-rtld-prefix): New variable.
26620         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
26621         (built-program-cmd): Likewise.
26622
26623 2012-10-22  Andreas Jaeger  <aj@suse.de>
26624
26625         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
26626         __O_RSYNC if it exists, otherwise to O_SYNC.
26627
26628 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
26629             Joseph Myers  <joseph@codesourcery.com>
26630
26631         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
26632         /dev/null.
26633         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
26634         from /dev/null
26635         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
26636         /dev/null.
26637
26638 2012-10-22  Andreas Jaeger  <aj@suse.de>
26639
26640         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
26641         Define always.
26642         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
26643
26644         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26645         bits/fcntl-linux.h.
26646
26647         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
26648         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
26649
26650         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
26651         to __O_LARGEFILE.
26652         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
26653         to __O_LARGEFILE.
26654
26655 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
26656             Joseph Myers  <joseph@codesourcery.com>
26657
26658         * config.make.in (NM): New variable.
26659
26660 2012-10-21  Andreas Jaeger  <aj@suse.de>
26661
26662         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
26663         definitions and declarations that are provided by
26664         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
26665
26666 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26667
26668         [BZ #14683]
26669         * elf/Makefile (tests-static): Add tst-leaks1-static.
26670         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
26671         ($(objpfx)tst-leaks1-static): New rule.
26672         ($(objpfx)tst-leaks1-static-mem): Likewise.
26673         (tst-leaks1-static-ENV): New macro.
26674         * elf/dl-open.c (dl_open_worker): Check the main application
26675         only if SHARED is defined.
26676         * elf/tst-leaks1-static.c: New file.
26677
26678 2012-10-20  Andreas Jaeger  <aj@suse.de>
26679
26680         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
26681         generic values for Linux.
26682         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
26683         and declarations that are provided by <bits/fcntl-linux.h> and
26684         include <bits/fcntl-linux.h>.
26685         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26686         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26687
26688 2012-10-20  Roland McGrath  <roland@hack.frob.com>
26689
26690         * io/fcntl.h: Move include of <bits/types.h> to the top and
26691         include it unconditionally.
26692
26693 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26694
26695         * wcsmbs/Makefile (tests-ifunc): New variable.
26696         (tests): Add $(tests-ifunc).
26697         * wcsmbs/test-wcschr-ifunc.c: New file.
26698         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
26699         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
26700         * wcsmbs/test-wcslen-ifunc.c: Likewise.
26701         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
26702         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26703
26704         * string/Makefile (tests-ifunc): New variable.
26705         (tests): Add $(tests-ifunc).
26706         * string/test-memccpy.c (TEST_NAME): New macro.
26707         * string/test-memchr.c (TEST_NAME): Likewise.
26708         * string/test-memcmp.c (TEST_NAME): Likewise.
26709         * string/test-memcpy.c (TEST_NAME): Likewise.
26710         * string/test-memmem.c (TEST_NAME): Likewise.
26711         * string/test-memmove.c (TEST_NAME): Likewise.
26712         * string/test-memset.c (TEST_NAME): Likewise.
26713         * string/test-rawmemchr.c (TEST_NAME): Likewise.
26714         * string/test-stpcpy.c (TEST_NAME): Likewise.
26715         * string/test-stpncpy.c (TEST_NAME): Likewise.
26716         * string/test-strcasecmp.c (TEST_NAME): Likewise.
26717         * string/test-strcasestr.c (TEST_NAME): Likewise.
26718         * string/test-strcat.c (TEST_NAME): Likewise.
26719         * string/test-strchr.c (TEST_NAME): Likewise.
26720         * string/test-strcmp.c(TEST_NAME): Likewise.
26721         * string/test-strcpy.c (TEST_NAME): Likewise.
26722         * string/test-strcspn.c (TEST_NAME): Likewise.
26723         * string/test-strlen.c (TEST_NAME): Likewise.
26724         * string/test-strncasecmp.c (TEST_NAME): Likewise.
26725         * string/test-strncmp.c (TEST_NAME): Likewise.
26726         * string/test-strncpy.c (TEST_NAME): Likewise.
26727         * string/test-strnlen.c (TEST_NAME): Likewise.
26728         * string/test-strpbrk.c (TEST_NAME): Likewise.
26729         * string/test-strrchr.c (TEST_NAME): Likewise.
26730         * string/test-strspn.c (TEST_NAME): Likewise.
26731         * string/test-strstr.c (TEST_NAME): Likewise.
26732         * string/test-bcopy-ifunc.c: New file.
26733         * string/test-bzero-ifunc.c: Likewise.
26734         * string/test-memccpy-ifunc.c: Likewise.
26735         * string/test-memchr-ifunc.c: Likewise.
26736         * string/test-memcmp-ifunc.c: Likewise.
26737         * string/test-memcpy-ifunc.c: Likewise.
26738         * string/test-memmem-ifunc.c: Likewise.
26739         * string/test-memmove-ifunc.c: Likewise.
26740         * string/test-mempcpy-ifunc.c: Likewise.
26741         * string/test-memset-ifunc.c: Likewise.
26742         * string/test-rawmemchr-ifunc.c: Likewise.
26743         * string/test-stpcpy-ifunc.c: Likewise.
26744         * string/test-stpncpy-ifunc.c: Likewise.
26745         * string/test-strcasecmp-ifunc.c: Likewise.
26746         * string/test-strcasestr-ifunc.c: Likewise.
26747         * string/test-strcat-ifunc.c: Likewise.
26748         * string/test-strchr-ifunc.c: Likewise.
26749         * string/test-strchrnul-ifunc.c: Likewise.
26750         * string/test-strcmp-ifunc.c: Likewise.
26751         * string/test-strcpy-ifunc.c: Likewise.
26752         * string/test-strcspn-ifunc.c: Likewise.
26753         * string/test-strlen-ifunc.c: Likewise.
26754         * string/test-strncasecmp-ifunc.c: Likewise.
26755         * string/test-strncat-ifunc.c: Likewise.
26756         * string/test-strncmp-ifunc.c: Likewise.
26757         * string/test-strncpy-ifunc.c: Likewise.
26758         * string/test-strnlen-ifunc.c: Likewise.
26759         * string/test-strpbrk-ifunc.c: Likewise.
26760         * string/test-strrchr-ifunc.c: Likewise.
26761         * string/test-strspn-ifunc.c: Likewise.
26762         * string/test-strstr-ifunc.c: Likewise.
26763
26764         * debug/Makefile (tests-ifunc): New variable.
26765         (tests): Add $(tests-ifunc).
26766         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
26767         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
26768         * debug/test-stpcpy_chk-ifunc.c: New file.
26769         * debug/test-strcpy_chk-ifunc.c: Likewise.
26770
26771 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
26772
26773         [BZ #13601]
26774         * elf/dl-load.c (open_verify): Retry read if the entire ELF
26775         header is not read in.
26776
26777 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
26778
26779         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
26780         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
26781         directly.  Pass built executable to script as
26782         $(built-program-cmd).
26783         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
26784         $testprogram without using LD_LIBRARY_PATH and $ldso.
26785
26786         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
26787         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
26788         $(rtld-installed-name).
26789         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
26790         (rtld_installed_name): Likewise.
26791         (library_path): Likewise.
26792         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
26793         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
26794         $(run-program-prefix) to tst-tables.sh.
26795         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26796         it to run tst-table-from and tst-table-to.
26797         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
26798         Pass it to tst-table.sh.
26799         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
26800         $(run-program-prefix) to tst-gettext.sh.
26801         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
26802         tst-translit.sh.
26803         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
26804         tst-gettext2.sh.
26805         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
26806         to run tst-gettext.
26807         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
26808         to run tst-gettext2.
26809         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
26810         to run tst-translit.
26811         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
26812         $(run-program-prefix) to tst-mtrace.sh.
26813         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
26814         to run tst-mtrace.
26815         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
26816         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
26817         $(rtld-installed-name).
26818         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
26819         (rtld_installed_name): Likewise.
26820         (run_program_prefix): New variable.  Use it to run wordexp-test.
26821
26822         * Makeconfig (ARCH): Remove all definitions.
26823         (machine): Likewise.
26824         [ARCH]: Remove conditional code.
26825         [!objdir]: Give error.
26826         [!objdir] (objpfx): Remove.
26827         [!objdir] (common-objpfx): Likewise.
26828         [!objdir] (common-objdir): Likewise.
26829         * configure.in (config_makefile): Remove.  Hardcode Makefile in
26830         AC_CONFIG_FILES call.
26831         * configure: Regenerated.
26832
26833         [BZ #13888]
26834         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
26835         or TMPDIR.
26836         (testout): Likewise.
26837
26838         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
26839         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
26840         $(rtld-installed-name).
26841         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
26842         (rtld_installed_name): Likwise.
26843         (runit): Remove function.
26844         (run_getconf): New variable,  Use it for running getconf binary.
26845
26846 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
26847
26848         [BZ #14716]
26849         * string/test-memmem.c (check_result): New function.
26850         (do_one_test): Use it.
26851         (check1): New function.
26852         (test_main): Use it.
26853
26854 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
26855
26856         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
26857
26858 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
26859
26860         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
26861         (_G_LSEEK64): Likewise.
26862         (_G_MMAP64): Likewise.
26863         (_G_FSTAT64): Likewise.
26864         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
26865         (_G_LSEEK64): Likewise.
26866         (_G_MMAP64): Likewise.
26867         (_G_FSTAT64): Likewise.
26868         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
26869         unconditional.  Call __mmap64 directly.
26870         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
26871         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
26872         __lseek64 directly.
26873         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
26874         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
26875         __mmap64 directly.
26876         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
26877         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26878         __lseek64 directly.
26879         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
26880         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26881         __lseek64 directly.
26882         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
26883         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
26884         __lseek64 directly.
26885         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
26886         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
26887         __fxstat64 directly.
26888         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
26889         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
26890         unconditional.
26891         (freopen64) [!_G_OPEN64]: Remove conditional code.
26892         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
26893         unconditional.
26894         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
26895         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
26896         unconditional.
26897         (ftello64) [!_G_LSEEK64]: Remove conditional code.
26898         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
26899         unconditional.
26900         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26901         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
26902         unconditional.
26903         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
26904         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
26905         unconditional.
26906         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26907         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
26908         unconditional.
26909         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26910         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
26911         unconditional.
26912         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26913
26914 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26915
26916         [BZ #12140]
26917         * manual/memory.texi (Malloc Tunable Parameters): Add note
26918         about free list pointers overwriting some perturb bytes.
26919         Wording suggested by Roland McGrath.
26920
26921 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
26922
26923         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
26924         (lgamma_test): Likewise.
26925         (tgamma_test): Likewise.
26926
26927 2012-10-16  Florian Weimer  <fweimer@redhat.com>
26928
26929         [BZ #14700]
26930         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
26931         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
26932
26933 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
26934
26935         * NEWS: Mention BZ #14716.
26936         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
26937         when removing AVAILABLE1_USES_J macro.
26938
26939 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
26940
26941         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
26942         (__bswap_64): __uint64_t for unsigned 64-bit int.
26943
26944 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
26945
26946         * include/string.h (memmem): Declare libc hidden alias.
26947         * string/memmem.c (memmem): Define libc hidden alias.
26948         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
26949         __read, __close instead of open, read, close.
26950
26951 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
26952
26953         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
26954         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
26955         global and hidden.
26956         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
26957         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
26958         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
26959         Likewise.
26960         (__rawmemchr_sse2): Likewise.
26961         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
26962         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
26963         (__strchr_sse2): Likewise.
26964         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
26965         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
26966         (__strcasecmp_sse2): Likewise.
26967         (__strncasecmp_sse2): Likewise.
26968         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
26969         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
26970         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
26971         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
26972         (__strrchr_sse2): Likewise.
26973         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
26974         ifunc-impl-list.c.
26975         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
26976         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
26977         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
26978         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26979         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
26980         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
26981         * sysdeps/x86_64/multiarch/memset.S: Likewise.
26982         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
26983         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
26984         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
26985         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
26986         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
26987         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
26988         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
26989         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
26990         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
26991         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
26992         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
26993         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
26994         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
26995         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
26996         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
26997         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
26998         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
26999         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
27000         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
27001         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27002         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
27003         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27004         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27005
27006         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
27007         global and hidden.
27008         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
27009         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
27010         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
27011         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
27012         Likewise.
27013         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
27014         Likewise.
27015         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
27016         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
27017         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
27018         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
27019         ifunc-impl-list.c.
27020         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27021         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27022         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27023         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27024         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27025         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27026         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27027         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27028         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27029         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27030         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27031         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27032         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27033         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
27034         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
27035         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27036         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
27037         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
27038         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27039         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27040         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27041         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27042         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27043         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27044         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27045         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
27046         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
27047         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
27048         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
27049         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27050         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
27051         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27052         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27053         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
27054         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27055         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27056         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27057         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27058         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27059         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27060         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
27061
27062         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
27063         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
27064         * include/ifunc-impl-list.h: New file.
27065         * misc/ifunc-impl-list.c: Likewise.
27066         * misc/Makefile (routines): Add ifunc-impl-list.
27067         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
27068         * string/test-string.h: Include <ifunc-impl-list.h>.
27069         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
27070         TEST_NAME]: New variables.
27071         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
27072         are defined.
27073         (test_init): Call __libc_ifunc_impl_list to initialize
27074         func_list if TEST_IFUNC and TEST_NAME are defined.
27075
27076         * string/Makefile (strop-tests): Add bcopy and bzero.
27077         * string/test-bcopy.c: New file.
27078         * string/test-bzero.c: Likewise.
27079         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
27080         defined.
27081         * string/test-memset.c: Support bzero test if TEST_BZERO is
27082         defined.
27083         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
27084         __libc_memmove.
27085         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
27086         __libc_memset.
27087         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
27088         of memset.
27089
27090 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
27091
27092         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
27093         * configure: Regenerated.
27094
27095         * Makeconfig (+link-static-before-libc): Don't include
27096         $(link-static-libc).
27097
27098         * libio/libio.h (_IO_pos_t): Remove.
27099
27100 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27101
27102         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
27103         McGrath.
27104
27105 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27106
27107         * crypt/crypt-entry.c: Include fips-private.h.
27108         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
27109         * crypt/md5c-test.c (main): Tolerate disabled MD5.
27110         * sysdeps/unix/sysv/linux/fips-private.h: New file.
27111         * sysdeps/generic/fips-private.h: New file, dummy fallback.
27112
27113 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27114
27115         * crypt/crypt-private.h: Include stdbool.h.
27116         (_ufc_setup_salt_r): Return bool.
27117         * crypt/crypt-entry.c: Include errno.h.
27118         (__crypt_r): Return NULL with EINVAL for bad salt.
27119         * crypt/crypt_util.c (bad_for_salt): New.
27120         (_ufc_setup_salt_r): Check that salt is long enough and within
27121         the specified alphabet.
27122         * crypt/badsalttest.c: New file.
27123         * crypt/Makefile (tests): Add it.
27124         ($(objpfx)badsalttest): New.
27125
27126 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
27127
27128         * NEWS: Add entry for BZ #14602.
27129
27130 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27131
27132         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
27133         type-generic.
27134         * math/libm-test.inc: Update comment listing what functions and
27135         macros are tested.
27136         (isgreater_test): New function.
27137         (isgreaterequal_test): Likewise.
27138         (isless_test): Likewise.
27139         (islessequal_test): Likewise.
27140         (islessgreater_test): Likewise.
27141         (isunordered_test): Likewise.
27142         (main): Call the new functions.
27143
27144 2012-10-09  Roland McGrath  <roland@hack.frob.com>
27145
27146         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
27147         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
27148         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
27149         * sysdeps/i386/configure: Regenerated.
27150         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
27151         * sysdeps/mach/configure: Regenerated.
27152         * sysdeps/mach/hurd/configure: Regenerated.
27153         * sysdeps/powerpc/configure: Regenerated.
27154         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27155         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27156         * sysdeps/s390/s390-32/configure: Regenerated.
27157         * sysdeps/s390/s390-64/configure: Regenerated.
27158         * sysdeps/sh/configure: Regenerated.
27159         * sysdeps/sparc/configure: Regenerated.
27160         * sysdeps/unix/sysv/linux/configure: Regenerated.
27161         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
27162         * sysdeps/x86_64/configure: Regenerated.
27163
27164         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
27165         defined.  Don't check if MAP is NULL.
27166
27167 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27168
27169         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
27170         (_G_stat64): Likewise.
27171         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
27172         (_G_stat64): Likewise.
27173         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
27174         instead of struct _G_stat64.
27175         * libio/fileops.c (mmap_remap_check): Likewise.
27176         (decide_maybe_mmap): Likewise.
27177         (_IO_new_file_seekoff): Likewise.
27178         (_IO_file_stat): Likewise.
27179         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
27180         _G_off64_t.
27181         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
27182         instead of struct _G_stat64.
27183         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27184
27185 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
27186
27187         [BZ #14602]
27188         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27189         Replace with ...
27190         (CHECK_EOL): New macro.
27191         (two_way_short_needle): Check beginning of haystack for EOL.  Use
27192         CHECK_EOL.
27193         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27194         Replace with CHECK_EOL.
27195         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27196         Replace with CHECK_EOL.
27197
27198 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
27199
27200         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
27201         type-generic.
27202         * math/libm-test.inc: Update comment listing what functions and
27203         macros are tested.
27204         (finite_test): New function.
27205         (isinf_test): Likewise.
27206         (isnan_test): Likewise.
27207         (fpclassify_test): Test subnormal input.
27208         (isfinite_test): Likewise.
27209         (isnormal_test): Likewise.
27210         (main): Call the new functions.
27211
27212 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
27213
27214         [BZ #14660]
27215         * Makerules (%.dynsym): Force C locale when running
27216         $(OBJDUMP) --dynamic-syms.
27217
27218 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
27219
27220         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
27221         <stdint.h>.
27222
27223 2012-10-06  David S. Miller  <davem@davemloft.net>
27224
27225         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
27226         upper 32-bits of the length value in %o2 since we use branch-on-register
27227         tests which consider the entire 64-bit register.
27228
27229 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
27230
27231         * string/test-strstr.c (check2): Add a test for page boundary.
27232
27233 2012-10-05  David S. Miller  <davem@davemloft.net>
27234
27235         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
27236         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
27237         file.
27238         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27239         sysdep_routines.
27240         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27241         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
27242         and bzero when HWCAP_SPARC_CRYPTO is present.
27243
27244 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
27245
27246         [BZ #14602]
27247         * string/test-strstr.c (check2): New function.
27248         (test_main): Call check2.
27249
27250         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
27251         and bug-strchr1.
27252         * string/bug-strcasestr1.c (do_test): Moved to ...
27253         * string/test-strcasestr.c (check1): Here.  New function.
27254         (do_one_test): Break out result checking code into ...
27255         (check_result): This.  New function.
27256         (do_one_test): Call check_result.
27257         (test_main): Call check1.
27258         * string/bug-strchr1.c (do_test): Moved to ...
27259         * string/test-strchr.c (check1): Here.  New function.
27260         (do_one_test): Break out result checking code into ...
27261         (check_result): This.  New function.
27262         (do_one_test): Call check_result.
27263         (test_main): Call check1.
27264         * string/bug-strstr1.c (main): Moved to ...
27265         * string/test-strstr.c (check1): Here.  New function.
27266         (do_one_test): Break out result checking code into ...
27267         (check_result): This.  New function.
27268         (do_one_test): Call check_result.
27269         (test_main): Call check1.
27270         * string/bug-strcasestr1.c: Removed.
27271         * string/bug-strchr1.c: Likewise.
27272         * string/bug-strstr1.c: Likewise.
27273
27274         * elf/Makefile (dl-routines): Add hwcaps.
27275         * elf/dl-support.c (_dl_important_hwcaps): Removed.
27276         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
27277         (_dl_important_hwcaps): Moved to ...
27278         * elf/dl-hwcaps.c: Here.  New file.
27279         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
27280
27281         [BZ #14557]
27282         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
27283         if IS_IN_rtld isn't defined.
27284
27285         * elf/dl-support.c (_dl_sysinfo_map): New.
27286         Include "get-dynamic-info.h" and "setup-vdso.h".
27287         (_dl_non_dynamic_init): Call setup_vdso.
27288         * elf/dynamic-link.h: Don't include <assert.h>.
27289         (elf_get_dynamic_info): Moved to ...
27290         * elf/get-dynamic-info.h: Here.  New file.
27291         * elf/dynamic-link.h: Include "get-dynamic-info.h".
27292         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
27293         * elf/setup-vdso.h: Here.  New file.
27294         * elf/rtld.c: Include "setup-vdso.h".
27295         (dl_main): Call setup_vdso.
27296
27297 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
27298
27299         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
27300         creal in comment listing functions tested.  List finite, isinf,
27301         isnan, isless, islessequal, isgreater, isgreaterequal,
27302         islessgreater, isunordered, lgamma_r and pow10 as functions and
27303         macros not tested.  Mention which functions not tested are aliases
27304         for other functions.  Fix typo.  Note that signs of NaNs are not
27305         tested.
27306
27307         * scripts/config.guess: Update from config.git.
27308         * scripts/config.sub: Likewise.
27309
27310 2012-10-04  Roland McGrath  <roland@hack.frob.com>
27311
27312         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
27313         * misc/madvise.c (madvise): Renamed to __madvise.
27314         Make madvise a weak alias.
27315         * include/sys/mman.h: Declare __madvise.
27316         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
27317         * sysdeps/unix/syscalls.list
27318         (madvise): Make __madvise the strong name, and madvise a weak alias.
27319         * sysdeps/unix/sysv/linux/syscalls.list
27320         (madvise, mmap): Remove redundant entries.
27321         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
27322         * malloc/malloc.c (mtrim): Likewise.
27323         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
27324
27325 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27326
27327         * sysdeps/mach/hurd/dl-cache.c: File removed.
27328         * config.h.in (USE_LDCONFIG): New #undef.
27329         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
27330         * configure: Regenerated.
27331         * elf/Makefile (dl-routines): Add dl-cache only under
27332         [$(use-ldconfig) = yes].
27333         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
27334         cache on [USE_LDCONFIG].
27335         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
27336         [USE_LDCONFIG].
27337         * elf/rtld.c (dl_main): Likewise.
27338
27339 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
27340
27341         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
27342         _SC_LEVEL4_CACHE_LINESIZE.
27343
27344 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27345
27346         * sysdeps/unix/bsd/confstr.h: File removed.
27347
27348 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
27349
27350         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
27351         sys/sdt-config.h.
27352
27353 2012-10-02  Roland McGrath  <roland@hack.frob.com>
27354
27355         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
27356         Make 'mapoff' field ElfW(Off) rather than off_t.
27357
27358 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
27359
27360         * nscd/Makefile: Remove nscd-cflags and all its users.
27361         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
27362         (CFLAGS-nonlib): Add compiler flags for nscd modules.
27363
27364         [BZ #10631]
27365         * malloc.c (malloc_printerr): Clarify error message.
27366
27367 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
27368
27369         [BZ #14648]
27370         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27371         Set bit_FMA_Usable if FMA is supported.
27372         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
27373         macro.
27374         (bit_FMA4_Usable): Updated.
27375         (index_FMA_Usable): New macro.
27376         (CPUID_FMA): Likewise
27377         (HAS_FMA): Defined with bit_FMA_Usable.
27378
27379 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27380
27381         * bits/types.h (__swblk_t): Type removed.
27382         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
27383         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
27384         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27385         (__SWBLK_T_TYPE): Likewise.
27386         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
27387         (__SWBLK_T_TYPE): Likewise.
27388         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27389         (__SWBLK_T_TYPE): Likewise.
27390         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27391         (__SWBLK_T_TYPE): Likewise.
27392
27393 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
27394             Honza Horak <hhorak@redhat.com>
27395
27396         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
27397         (xdr_mapname): Use YPMAXMAP as maxsize.
27398         (xdr_peername): Use YPMAXPEER as maxsize.
27399         (xdr_keydat): Use YPAXRECORD as maxsize.
27400         (xdr_valdat): Use YPMAXRECORD as maxsize.
27401
27402 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27403
27404         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
27405
27406         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
27407         * csu/init-first.c: ... here.
27408         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
27409         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
27410         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27411         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27412         * sysdeps/i386/init-first.c: File removed.
27413         * sysdeps/sh/init-first.c: File removed.
27414
27415 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
27416
27417         [BZ #14645]
27418         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
27419         if x * y might underflow to zero and z is zero.
27420         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27421         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27422         * math/libm-test.inc (min_subnorm_value): New variable.
27423         (fma_test): Add more tests.
27424         (fma_test_towardzero): Likewise.
27425         (fma_test_downward): Likewise
27426         (fma_test_upward): Likewise.
27427         (initialize): Set min_subnorm_value.
27428
27429 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
27430
27431         [BZ #14638]
27432         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
27433         0 + 0.
27434         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
27435         mode for addition resulting in exact zero.
27436         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
27437         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
27438         exact 0 + 0.
27439         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27440         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27441         * math/libm-test.inc (fma_test): Add more tests.
27442         (fma_test_towardzero): New function.
27443         (fma_test_downward): Likewise.
27444         (fma_test_upward): Likewise.
27445         (main): Call the new functions.
27446
27447 2012-09-28  David S. Miller  <davem@davemloft.net>
27448
27449         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
27450
27451 2012-09-28  Roland McGrath  <roland@hack.frob.com>
27452
27453         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
27454         instead of SIGALRM.
27455
27456         * sysdeps/gnu/_G_config.h: Moved to ...
27457         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
27458         * sysdeps/mach/hurd/_G_config.h: Moved to ...
27459         * sysdeps/generic/_G_config.h: ... here.
27460
27461         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
27462
27463         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
27464
27465         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
27466         Conditionalize target on [libnss_test1.so-version].
27467
27468         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
27469
27470         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
27471         (elfobjdir): Move out of conditionals.
27472
27473         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
27474         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
27475         (__nss_lookup_function): Conditionalize label remove_from_tree on
27476         [!DO_STATIC_NSS || SHARED], matching its only use.
27477
27478 2012-09-28  David S. Miller  <davem@davemloft.net>
27479
27480         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
27481         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
27482         file.
27483         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27484         sysdep_routines.
27485         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27486         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
27487         when HWCAP_SPARC_CRYPTO is present.
27488
27489 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27490
27491         * io/tst-mknodat.c: Create a FIFO instead of a socket.
27492
27493 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
27494
27495         [BZ #6530]
27496         * stdio-common/vfprintf.c (process_string_arg): Revert
27497         2000-07-22 change.
27498
27499 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
27500
27501         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
27502         for testcase.
27503         * stdio-common/tst-sprintf.c: Include <locale.h>
27504         (main): Test sprintf's handling of incomplete multibyte
27505         characters.
27506
27507 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
27508
27509         * elf/dl-runtime.c (VERSYMIDX): Removed.
27510         * elf/dl-version.c (VERSYMIDX): Likewise.
27511         * elf/do-rel.h (VERSYMIDX): Likewise.
27512         (VALIDX): Likewise.
27513         * elf/dynamic-link.h (VERSYMIDX): Likewise.
27514         * elf/rtld.c (VALIDX): Likewise.
27515         (ADDRIDX): Likewise.
27516         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
27517         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
27518         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
27519         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
27520         (VALIDX): Likewise.
27521         (ADDRIDX): Likewise.
27522
27523 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27524
27525         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
27526
27527 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
27528
27529         [BZ #11438]
27530         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
27531         to global scope.
27532         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
27533         addresses are in the same scope as 192.0.2/24.
27534         * posix/gai.conf: Document new scope table defaults.
27535
27536 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27537
27538         [BZ #5298]
27539         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
27540         for ftell.  Compute offsets from write pointers instead.
27541         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27542
27543 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27544
27545         [BZ #14543]
27546         * libio/Makefile (tests): New test case tst-fseek.
27547         * libio/tst-fseek.c: New test case to verify that fseek/ftell
27548         combination works in wide mode.
27549         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
27550         state when the external buffer state changes.
27551
27552 2012-09-27  David S. Miller  <davem@davemloft.net>
27553
27554         [BZ #14376]
27555         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
27556         pass reloc->r_addend in as the 'high' argument to
27557         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
27558
27559         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27560
27561 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27562
27563         * rt/tst-aio2.c: Include <pthread.h>.
27564         * rt/tst-aio3.c: Likewise.
27565
27566 2012-09-27  Steve Ellcey  <sellcey@mips.com>
27567
27568         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
27569
27570 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
27571
27572         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
27573         contents on [SHARED].
27574
27575 2012-09-26  Marek Polacek  <polacek@redhat.com>
27576
27577         [BZ #14530]
27578         [BZ #13741]
27579         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
27580         for C++ and GCC <4.3 as well as for non GCC compilers.
27581
27582 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27583
27584         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27585
27586 2012-09-25  Roland McGrath  <roland@hack.frob.com>
27587
27588         * Makefile.in (all, install): Declare with .PHONY.
27589         Reported by Michael Hope <michael.hope@linaro.org>.
27590
27591 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27592
27593         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
27594         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
27595         system header.
27596         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
27597         Likewise.
27598         (sydep_routines): Add the new and the internal functions.
27599         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
27600         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
27601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
27602         (GLIBC_2.17): Add the new function.
27603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
27604         (GLIBC_2.17): Likewise.
27605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
27606         (GLIBC_2.17): Likewise.
27607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
27608         (GLIBC_2.17): Likewise.
27609         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
27610
27611 2012-09-25  Alan Modra  <amodra@gmail.com>
27612
27613         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
27614         Add release barrier before setting once_control to say
27615         initialisation is done.  Add hints on lwarx.  Use macro in
27616         place of isync.
27617         (clear_once_control): Add release barrier.
27618
27619 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27620
27621         [BZ #13629]
27622         * math/s_clog.c (__clog): Handle more values close to |z| = 1
27623         specially.
27624         * math/s_clog10.c (__clog10): Likewise.
27625         * math/s_clog10f.c (__clog10f): Likewise.
27626         * math/s_clog10l.c (__clog10l): Likewise.
27627         * math/s_clogf.c (__clogf): Likewise.
27628         * math/s_clogl.c (__clogl): Likewise.
27629         * math/Makefile (libm-calls): Add x2y2m1.
27630         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
27631         (__x2y2m1): Likewise.
27632         (__x2y2m1l): Likewise.
27633         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
27634         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
27635         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
27636         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
27637         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
27638         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
27639         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
27640         * sysdeps/i386/fpu/libm-test-ulps: Update.
27641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27642
27643         [BZ #14621]
27644         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
27645         int as type of variable DEPTH.
27646         (glob): Use size_t instead of int as type of variables NEWCOUNT
27647         and OLD_PATHC.
27648
27649 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27650
27651         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27652         Add s_sincosf-sse2.
27653         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
27654         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
27655         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
27656         macros for using routine as __sincosf_ia32.
27657         Use macro for function declaration and weak_alias.
27658         * sysdeps/i386/fpu/libm-test-ulps: Update.
27659
27660         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
27661         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27662
27663         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
27664         subnormal argument.
27665         * math/s_cexpf.c (__cexpf): Likewise.
27666         * math/s_csinf.c (__csinf): Likewise.
27667         * math/s_csinhf.c (__csinhf): Likewise.
27668         * math/s_ctanf.c (__ctanf): Likewise.
27669         * math/s_ctanhf.c (__ctanhf): Likewise.
27670         * math/s_ccosh.c (__ccoshf): Likewise.
27671         * math/s_cexp.c (__cexpl): Likewise.
27672         * math/s_csin.c (__csin): Likewise.
27673         * math/s_csinh.c (__csinh): Likewise.
27674         * math/s_ctan.c (__ctan): Likewise.
27675         * math/s_ctanh.c (ctanh): Likewise.
27676         * math/s_ccoshl.c (__ccoshl): Likewise.
27677         * math/s_cexpl.c (__cexpl): Likewise.
27678         * math/s_csinl.c (__csinl): Likewise.
27679         * math/s_csinhl.c (__csinhl): Likewise.
27680         * math/s_ctanl.c (__ctanl): Likewise.
27681         * math/s_ctanhl.c (__ctanhl): Likewise.
27682
27683 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27684
27685         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
27686         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
27687         (_IO_off_t): Define to __off_t, not _G_off_t.
27688         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
27689         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
27690         (_IO_wint_t): Define to wint_t, not _G_wint_t.
27691         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
27692         type of __dummy and __dummy2 fields.
27693         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
27694         (_G_ssize_t): Likewise.
27695         (_G_off_t): Likewise.
27696         (_G_pid_t): Likewise.
27697         (_G_uid_t): Likewise.
27698         (_G_wchar_t): Likewise.
27699         (_G_wint_t): Likewise.
27700         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
27701         (_G_ssize_t): Likewise.
27702         (_G_off_t): Likewise.
27703         (_G_pid_t): Likewise.
27704         (_G_uid_t): Likewise.
27705         (_G_wchar_t): Likewise.
27706         (_G_wint_t): Likewise.
27707         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
27708         (_G_ssize_t): Likewise.
27709         (_G_off_t): Likewise.
27710         (_G_pid_t): Likewise.
27711         (_G_uid_t): Likewise.
27712         (_G_wchar_t): Likewise.
27713         (_G_wint_t): Likewise.
27714
27715 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27716
27717         * malloc/arena.c: Include malloc-sysdep.h.
27718         (shrink_heap): Use check_may_shrink_heap to decide if madvise
27719         is sufficient to shrink the heap or an unmap is needed.
27720         * sysdeps/generic/malloc-sysdep.h: New file.  Define
27721         new function check_may_shrink_heap.
27722         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
27723         new function check_may_shrink_heap.
27724
27725 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27726
27727         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
27728         comments.
27729
27730 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
27731
27732         * catgets/test-gencat.sh: Add "set -e".
27733         * elf/tst-pathopt.sh: Likewise.
27734         * grp/tst_fgetgrent.sh: Likewise.
27735         * iconvdata/run-iconv-test.sh: Likewise.
27736         * intl/tst-gettext.sh: Likewise.
27737         * intl/tst-gettext2.sh: Likewise.
27738         * intl/tst-gettext4.sh: Likewise.
27739         * intl/tst-gettext6.sh: Likewise.
27740         * intl/tst-translit.sh: Likewise.
27741         * io/ftwtest-sh: Likewise.
27742         * libio/test-freopen.sh: Likewise.
27743         * malloc/tst-mtrace.sh: Likewise.
27744         * posix/globtest.sh: Likewise.
27745         * posix/tst-getconf.sh: Likewise.
27746         * posix/wordexp-tst.sh: Likewise.
27747         * stdio-common/tst-printf.sh: Likewise.
27748         * stdio-common/tst-unbputc.sh: Likewise.
27749         * stdlib/tst-fmtmsg.sh: Likewise.
27750         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27751         * catgets/Makefile: Do not specify -e option when running
27752         testsuite shell scripts.
27753         * elf/Makefile: Likewise.
27754         * grp/Makefile: Likewise.
27755         * iconvdata/Makefile: Likewise.
27756         * intl/Makefile: Likewise.
27757         * io/Makefile: Likewise.
27758         * libio/Makefile: Likewise.
27759         * malloc/Makefile: Likewise.
27760         * posix/Makefile: Likewise.
27761         * stdio-common/Makefile: Likewise.
27762         * stdlib/Makefile: Likewise.
27763         * sysdeps/x86_64/Makefile: Likewise.
27764
27765         * io/ftwtest-sh: Add copyright header.
27766         * posix/globtest.sh: Likewise.
27767         * posix/tst-getconf.sh: Likewise.
27768         * posix/wordexp-tst.sh: Likewise.
27769         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27770
27771 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
27772
27773         [BZ #13679]
27774         * Makeconfig (+link): Defined as $(+link-static) if
27775         $(build-shared) isn't yes.
27776         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
27777         isn't yes.
27778         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
27779
27780         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
27781
27782         [BZ #14562]
27783         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
27784         new chunk size with MALLOC_ALIGN_MASK.
27785
27786 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
27787
27788         [BZ #5044]
27789         * stdio-common/printf_fphex.c: Include <stdbool.h> and
27790         <rounding-mode.h>.
27791         (__printf_fphex): Determine rounding using get_rounding_mode and
27792         round_away.
27793         * stdio-common/tst-printf-round.c (struct hex_test): New
27794         structure.
27795         (hex_tests): New variable.
27796         (test_hex_in_one_mode): New function.
27797         (do_test): Also run tests for hex float output.
27798
27799 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
27800
27801         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27802         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27803         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27804         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27805         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27806         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
27807         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27808         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27809
27810 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
27811
27812         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
27813         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
27814         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
27815         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
27816
27817 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
27818
27819         [BZ #14579]
27820         * elf/rtld.c (dl_main): Limit the check for self loading to normal
27821         mode only.
27822         * elf/tst-rtld-load-self.sh: New test.
27823         * elf/Makefile: Run it.
27824
27825 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
27826
27827         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
27828         (tst-writev-ENV): Remove.
27829         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
27830
27831 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
27832
27833         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
27834
27835 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
27836
27837         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
27838         unconditional.
27839         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
27840         Likewise.
27841         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
27842         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
27843         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
27844         Likewise.
27845
27846 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
27847
27848         [BZ #14587]
27849         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
27850         * config.make.in (have-cpp-asm-debuginfo): Removed.
27851         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
27852         * configure: Regenerated.
27853
27854 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
27855
27856         [BZ #5044]
27857         * stdio-common/printf_fp.c: Include <stdbool.h> and
27858         <rounding-mode.h>.
27859         (___printf_fp): Determine rounding using get_rounding_mode and
27860         round_away.
27861         * stdio-common/tst-printf-round.c: New file.
27862         * stdio-common/Makefile (tests): Add tst-printf-round.
27863         (link-libm): New variable.
27864         ($(objpfx)tst-printf-round): Depend in $(link-libm).
27865
27866 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
27867
27868         [BZ #14576]
27869         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
27870         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
27871         Likewise.
27872         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
27873         Likewise.
27874
27875 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
27876
27877         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
27878         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27879         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27880         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27881
27882 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
27883
27884         [BZ #14518]
27885         * include/rounding-mode.h: New file.
27886         * sysdeps/generic/get-rounding-mode.h: Likewise.
27887         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
27888         * stdlib/strtod_l.c: Include <rounding-mode.h>.
27889         (MAX_VALUE): New macro.
27890         (MIN_VALUE): Likewise.
27891         (overflow_value): New function.
27892         (underflow_value): Likewise.
27893         (round_and_return): Use overflow_value and underflow_value to
27894         determine return values in overflow and underflow cases.  Use
27895         round_away to determine rounding depending on rounding mode.
27896         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
27897         determine return values in overflow and underflow cases.
27898         * stdlib/tst-strtod-round.c: Include <fenv.h>.
27899         (struct test_results): New structure.
27900         (struct test): Use struct test_results to store expected results
27901         for all rounding modes.
27902         (TEST): Include expected results for all rounding modes.
27903         (test_in_one_mode): New function.
27904         (do_test): Use test_in_one_mode to compute and check results.
27905         Check results for all rounding modes.
27906         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
27907         $(link-libm).
27908
27909 2012-12-09  Allan McRae  <allan@archlinux.org>
27910
27911         * sysdeps/i386/fpu/libm-test-ulps: Update
27912
27913 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
27914
27915         * sysdeps/generic/_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/gnu/_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         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
27932         (_G_int32_t): Likewise.
27933         (_G_uint16_t): Likewise.
27934         (_G_uint32_t): Likewise.
27935         (_G_HAVE_BOOL): Likewise.
27936         (_G_HAVE_ATEXIT): Likewise.
27937         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27938         (_G_HAVE_IO_FILE_OPEN): Likewise.
27939
27940 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
27941
27942         * csu/libc-tls.c: Update copyright years.
27943
27944 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
27945
27946         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
27947         [!_G_USING_THUNKS]: Remove conditional code.
27948         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
27949         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
27950
27951         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
27952         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
27953         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27954         (_G_VTABLE_LABEL_PREFIX): Likewise.
27955         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27956         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27957         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27958         (_G_VTABLE_LABEL_PREFIX): Likewise.
27959         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27960         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27961         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27962         (_G_VTABLE_LABEL_PREFIX): Likewise.
27963         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27964
27965 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
27966
27967         * libio/Makefile: Include ../Makeconfig before tests.
27968         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
27969         only if $(build-shared) is yes.
27970
27971         * iconv/gconv_db.c: Update copyright years.
27972
27973 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27974
27975         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
27976         unwind info if defined PIC. Fix special cases description.
27977         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
27978
27979         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
27980         DP_HI_MASK entry.
27981         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
27982
27983 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
27984
27985         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
27986
27987         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
27988         is NULL.
27989
27990         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
27991         (LDLIBS-tst-chk4): This.
27992         (LDFLAGS-tst-chk5): Renamed to ...
27993         (LDLIBS-tst-chk5): This.
27994         (LDFLAGS-tst-chk6): Renamed to ...
27995         (LDLIBS-tst-chk6): This.
27996         (LDFLAGS-tst-lfschk4): Renamed to ...
27997         (LDLIBS-tst-lfschk4): This.
27998         (LDFLAGS-tst-lfschk5): Renamed to ...
27999         (LDLIBS-tst-lfschk5): This.
28000         (LDFLAGS-tst-lfschk6): Renamed to ...
28001         (LDLIBS-tst-lfschk6): This.
28002
28003         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
28004         on $(common-objpfx)soversions.mk.
28005
28006 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
28007
28008         [BZ #10014]
28009         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
28010         example host name.
28011
28012 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
28013
28014         * malloc/arena.c (arena_get_retry): New function that gets
28015         another arena for the caller to try its request on.
28016         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
28017         current arena cannot fulfill the request.
28018         (__libc_memalign): Likewise.
28019         (__libc_memalign): Likewise.
28020         (__libc_pvalloc): Likewise.
28021         (__libc_calloc): Likewise.
28022
28023 2012-09-05  John Tobey  <john.tobey@gmail.com>
28024
28025         [BZ #13542]
28026         * manual/arith.texi (Operations on Complex): Fix description
28027         of carg branch cut.
28028
28029 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28030
28031         [BZ #10014]
28032         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
28033         host name.
28034
28035         [BZ #10038]
28036         * manual/memory.texi (Memory): Make order of menu items match
28037         order of sections.
28038
28039 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28040
28041         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
28042         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
28043         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
28044
28045 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28046
28047         * csu/libc-tls.c (static_dtv): Renamed to ...
28048         (_dl_static_dtv): This.  Make it global.
28049         (_dl_initial_dtv): Removed.
28050         (__libc_setup_tls): Updated.
28051         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
28052         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
28053         DL_INITIAL_DTV.
28054
28055 2012-09-06  Petr Machata  <pmachata@redhat.com>
28056
28057         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
28058         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
28059         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
28060         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
28061
28062 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28063
28064         [BZ #14545]
28065         * csu/libc-tls.c (_dl_initial_dtv): New variable.
28066         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
28067         freeing dtv[-1].
28068
28069 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28070
28071         [BZ #14544]
28072         * Makeconfig (link-static-before-libc): Replace $(+prector)
28073         with $(+prectorT).
28074         (link-static-after-libc): Replace $(+postctor) with
28075         $(+postctorT).
28076         (link-bounded): Replace $(+prector)/$(+postctor) with
28077         $(+prectorT)/$(+postctorT).
28078         (+prectorT): New macro.
28079         (+postctorT): Likewise.
28080
28081 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28082
28083         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
28084         (round_str): Handle values above the maximum for IBM long double
28085         as inexact.
28086         * stdlib/tst-strtod-round.c (tests): Regenerated.
28087
28088 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28089
28090         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
28091         assembler flag.
28092         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
28093         zarch_nohighgprs around the zarch optimized routines.
28094         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
28095         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
28096         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
28097         for zarch.
28098
28099 2012-09-05  David S. Miller  <davem@davemloft.net>
28100
28101         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28102
28103         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
28104         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
28105         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
28106         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
28107         entries.
28108
28109 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28110
28111         * malloc/arena.c: Fold copyright years.
28112         * malloc/mcheck.c, malloc/memusage.c: Likewise.
28113
28114 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28115
28116         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
28117
28118 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28119
28120         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
28121
28122 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28123
28124         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
28125         change internal state upon failure.
28126
28127 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28128
28129         * malloc/mcheck.c (mcheck_check_all): Fix typo.
28130         * malloc/memusage.c (mmap): Likewise.
28131         (mmap64, mremap): Likewise.  Adjust name in comment.
28132
28133 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28134
28135         * libio/fileops.c: Fix typos in comments.
28136         * libio/oldfileops.c: Likewise.
28137         * libio/wfileops.c: Likewise.
28138
28139 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28140
28141         [BZ #1349]
28142         * malloc/Makefile (tests): Add tst-malloc-usable test case.
28143         (tst-malloc-usable-ENV): Set environment for test case.
28144         * malloc/hooks.c (malloc_check_get_size): New function to get
28145         requested size.
28146         * malloc/malloc.c (musable): Use malloc_check_get_size.
28147         * malloc/tst-malloc-usable.c: New test case.
28148
28149 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28150
28151         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
28152
28153 2012-09-05  Allan McRae  <allan@archlinux.org>
28154
28155         [BZ #13966]
28156         * configure.in (CXX_SYSINCLUDES): Use compiler output to
28157         determine header location.
28158         * configure: Regenerated.
28159
28160 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28161
28162         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
28163         float format.
28164         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
28165         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
28166         format.
28167         (test): Regenerate.
28168
28169 2012-09-04  David S. Miller  <davem@davemloft.net>
28170
28171         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
28172         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
28173         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
28174
28175 2012-09-04  Florian Weimer  <fweimer@redhat.com>
28176
28177         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
28178         failures.
28179
28180         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
28181
28182 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
28183
28184         [BZ #9914]
28185         * libio/iogetdelim.c: Include <limits.h>.
28186         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
28187         + len + 1 would overflow.
28188
28189 2012-09-03  Andreas Jaeger  <aj@suse.de>
28190
28191         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28192         * sysdeps/i386/fpu/libm-test-ulps: Update.
28193
28194 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28195
28196         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
28197         Add s_sinf-sse2, s_conf-sse2.
28198
28199         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
28200         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
28201         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
28202         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
28203
28204         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
28205         for using routine as __sinf_ia32.
28206         Use macro for function declaration and weak_alias.
28207         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
28208         for using routine as __cosf_ia32.
28209         Use macro for function declaration and weak_alias.
28210
28211         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
28212         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
28213
28214         * sysdeps/x86_64/fpu/s_sinf.S: New file.
28215         * sysdeps/x86_64/fpu/s_cosf.S: New file.
28216         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28217
28218         * math/libm-test.inc (cos_test): Add more test cases.
28219         (sin_test): Likewise.
28220         (sincos_test): Likewise.
28221
28222 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28223
28224         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
28225         (IFUNC_RESOLVE): Make pointers to the specialized implementations
28226         hidden.
28227         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
28228
28229 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
28230
28231         [BZ #14538]
28232         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
28233         first element of the GOT.
28234         (elf_machine_load_address): Return the difference between
28235         the runtime address of _DYNAMIC and elf_machine_dynamic ().
28236
28237 2012-09-01  Allan McRae  <allan@archlinux.org>
28238
28239         [BZ #13412]
28240         * configure.in (AWK): Require gawk version 3.0 or later.
28241         * configure: Regenerated.
28242
28243 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
28244
28245         * sysdeps/unix/sysv/linux/kernel-features.h
28246         (__ASSUME_POSIX_CPU_TIMERS): Remove.
28247         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28248         [__NR_clock_getres]: Make code unconditional.
28249         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
28250         (clock_getcpuclockid): Remove code left unreachable by removal of
28251         conditionals.
28252         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
28253         code unconditional.
28254         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28255         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28256         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
28257         Make code unconditional.
28258         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28259         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28260         * sysdeps/unix/sysv/linux/clock_settime.c
28261         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
28262         conditional code.
28263         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
28264         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28265
28266 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
28267
28268         [BZ #14476]
28269         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
28270         scripts/test-installation.pl.
28271
28272         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
28273         and $ld_so_version if it is set.
28274
28275 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28276
28277         [BZ #14516]
28278         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
28279         failure if reading from procfs failed.
28280         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
28281
28282 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28283
28284         * sysdeps/unix/sysv/linux/kernel-features.h
28285         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
28286         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28287         Remove conditional code.
28288         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28289         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
28290         Remove conditional code.
28291         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28292         * sysdeps/unix/sysv/linux/i386/fxstat.c
28293         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28294         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28295         * sysdeps/unix/sysv/linux/i386/fxstatat.c
28296         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28297         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28298         * sysdeps/unix/sysv/linux/i386/lxstat.c
28299         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28300         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28301         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
28302         Remove conditional code.
28303         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28304         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28305         Remove conditional code.
28306         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28307         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
28308         <kernel-features.h>.
28309         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
28310         Remove.
28311         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
28312         Remove conditional code.
28313         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28314         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
28315         Remove conditional.
28316
28317 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
28318
28319         [BZ #5400]
28320         * NEWS: Add fixed bug number.
28321
28322 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28323
28324         [BZ #14519]
28325         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
28326         underflowing exponent in case of negative sign.
28327         * stdlib/tst-strtod-round-data: Add more tests.
28328         * stdlib/tst-strtod-round.c (tests): Regenerated.
28329
28330         [BZ #3479]
28331         * stdlib/strtod_l.c (NDIG): Remove.
28332         (HEXNDIG): Likewise.
28333         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
28334         smallest representable value.
28335         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
28336         lie within an exact representation of 1/2 ulp of the result.
28337         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
28338         unconditionally.
28339         (TENS_P9_IDX): Define unconditionally.
28340         (TENS_P9_SIZE): Likewise.
28341         (TENS_P10_IDX): Likewise.
28342         (TENS_P10_SIZE): Likewise.
28343         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
28344         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
28345         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
28346         entries for 10^2^13 and 10^2^14.
28347         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
28348         (TENS_P13_IDX): Define.
28349         (TENS_P13_SIZE): Likewise.
28350         (TENS_P14_IDX): Likewise.
28351         (TENS_P14_SIZE): Likewise.
28352         (_fpioconst_pow10): Change array size to
28353         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
28354         unconditional.
28355         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
28356         1024]: Add entries for 10^2^13 and 10^2^14.
28357         [LAST_POW10 > _LAST_POW10]: Remove #error.
28358         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
28359         (_fpioconst_pow10): Change array size to
28360         FPIOCONST_POW10_ARRAY_SIZE.
28361         * stdlib/gen-fpioconst.c: New file.
28362         * stdlib/gen-tst-strtod-round.c: Likewise.
28363         * stdlib/tst-strtod-round-data: Likewise.
28364         * stdlib/tst-strtod-round.c: Likewise.
28365         * stdlib/Makefile (tests): Add tst-strtod-round.
28366
28367         [BZ #14459]
28368         * stdlib/strtod_l.c: Include <stdint.h>.
28369         (NDEBUG): Do not define.
28370         (round_and_return): Change EXPONENT parameter to type intmax_t.
28371         Rearrange calculations to avoid internal overflow possibilities.
28372         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
28373         Rearrange calculations to avoid internal overflow possibilities.
28374         Assert that number fits inside MPNSIZE limbs.
28375         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
28376         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
28377         calculations and add assertions to avoid internal overflow
28378         possibilities.  Add casts to avoid signed/unsigned operations.
28379         * stdlib/tst-strtod-overflow.c: New file.
28380         * stdlib/Makefile (tests): Add tst-strtod-overflow.
28381
28382 2012-08-25  Marek Polacek  <polacek@redhat.com>
28383
28384         * time/time.h: Fix some typos in comments.
28385
28386 2012-08-23  Roland McGrath  <roland@hack.frob.com>
28387
28388         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
28389         * posix/tst-rfc3484-2.c: Likewise.
28390         * posix/tst-rfc3484-3.c: Likewise.
28391
28392 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
28393
28394         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
28395         (EF_ARM_ABI_FLOAT_HARD): Likewise.
28396
28397 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
28398
28399         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
28400         #include of fxstatat64.c.
28401
28402 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28403
28404         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
28405         * shadow/getspent_r.c: Likewise.
28406         * shadow/getspnam.c: Likewise.
28407         * shadow/getspnam_r.c: Likewise.
28408         * gshadow/getsgent.c: Likewise.
28409         * gshadow/getsgent_r.c: Likewise.
28410         * gshadow/getsgnam.c: Likewise.
28411         * gshadow/getsgnam_r.c: Likewise.
28412         * inet/getnetbyad.c: Likewise.
28413         * inet/getnetbyad_r.c: Likewise.
28414         * inet/getnetbynm.c: Likewise.
28415         * inet/getnetbynm_r.c: Likewise.
28416         * inet/getnetent.c: Likewise.
28417         * inet/getnetent_r.c: Likewise.
28418         * inet/getproto.c: Likewise.
28419         * inet/getproto_r.c: Likewise.
28420         * inet/getprtent.c: Likewise.
28421         * inet/getprtent_r.c: Likewise.
28422         * inet/getprtname.c: Likewise.
28423         * inet/getprtname_r.c: Likewise.
28424         * inet/getrpcbyname.c: Likewise.
28425         * inet/getrpcbyname_r.c: Likewise.
28426         * inet/getrpcbynumber.c: Likewise.
28427         * inet/getrpcbynumber_r.c: Likewise.
28428         * inet/getrpcent.c: Likewise.
28429         * inet/getrpcent_r.c: Likewise.
28430         * inet/getaliasent.c: Likewise.
28431         * inet/getaliasent_r.c: Likewise.
28432         * inet/getaliasname.c: Likewise.
28433         * inet/getaliasname_r.c: Likewise.
28434         * nscd/getgrgid_r.c: Likewise.
28435         * nscd/getgrnam_r.c: Likewise.
28436         * nscd/gethstbyad_r.c: Likewise.
28437         * nscd/gethstbynm3_r.c: Likewise.
28438         * nscd/getpwnam_r.c: Likewise.
28439         * nscd/getpwuid_r.c: Likewise.
28440         * nscd/getsrvbynm_r.c: Likewise.
28441         * nscd/getsrvbypt_r.c: Likewise.
28442         * nscd/gai.c: Likewise.
28443
28444         * configure.in (build_nscd): New substituted variable, set
28445         by --disable-build-nscd and defaults to $use_nscd.
28446         * configure: Regenerated.
28447         * config.make.in (build-nscd): New substituted variable.
28448         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
28449         Change conditional to require [$(build-nscd) = yes] as well.
28450         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
28451
28452         [BZ# 13696]
28453         * configure.in (use_nscd): New substituted variable, set by
28454         --disable-nscd.  If enabled, define USE_NSCD.
28455         * configure: Regenerated.
28456         * config.h.in: Add USE_NSCD.
28457         * config.make.in (use-nscd): New substituted variable.
28458         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
28459         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
28460         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
28461         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
28462         (CFLAGS-getgrnam_r.c): Likewise.
28463         (CFLAGS-initgroups.c): Likewise.
28464         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
28465         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
28466         Variables removed.
28467         * inet/getnetgrent_r.c
28468         (nscd_setnetgrent): New function, broken out of ...
28469         (setnetgrent): ... here.  Call it.
28470         (innetgr): Conditionalize nscd bits on [USE_NSCD].
28471         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
28472         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
28473         * nscd/Makefile (routines, aux): Move definitions after include of
28474         Makeconfig.  Conditionalize on [$(use-nscd) != no].
28475         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
28476         Conditionalize on [USE_NSCD].
28477         (is_nscd, nscd_init_cb): Likewise.
28478         (nss_load_library): Conditionalize init callback on [USE_NSCD].
28479         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
28480         * nss/nss_db/db-init.c: Likewise.
28481         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
28482         [USE_NSCD].
28483         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
28484         (make_request): Use it.
28485         (cache_valid_p): New function.
28486         (__check_pf): Use it.
28487         * NEWS: Add item for --disable-nscd.
28488
28489 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
28490
28491         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
28492         to support sed >= 4.2.1-20-ga9bf076.
28493         * configure: Regenerated.
28494
28495 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28496
28497         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
28498         Conditionalize whole body on [IREL].
28499
28500 2012-08-22  Jeff Law <law@redhat.com>
28501
28502         [BZ #14505]
28503         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
28504         if the family is PF_UNSPEC.
28505
28506 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
28507
28508         * Makerules (lib-version): Rename from V.
28509         (install-lib-nosubdir): Change V to lib-version.
28510
28511 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
28512
28513         [BZ #14252]
28514         * powerpc32/power6/wcschr.c: New file.
28515         * powerpc32/power6/wcscpy.c: New file.
28516         * powerpc32/power6/wcsrchr.c: New file.
28517         * powerpc64/power6/wcschr.c: New file.
28518         * powerpc64/power6/wcscpy.c: New file.
28519         * powerpc64/power6/wcsrchr.c: New file.
28520
28521 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28522
28523         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
28524         (two_way_short_needle): Use it.
28525         * string/strstr.c (AVAILABLE1_USES_J): Define.
28526         * string/strcasestr.c: Likewise.
28527
28528         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
28529         array references.
28530         * string/strcasestr.c (TOLOWER): Make side-effect safe.
28531
28532         [BZ #11607]
28533         * NEWS: Add an entry.
28534         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
28535         define their defaults.
28536         (two_way_short_needle): Detect end-of-string on-the-fly.
28537         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
28538         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
28539         * string/bug-strcasestr1.c: New test.
28540         * string/Makefile: Run it.
28541
28542 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28543
28544         [BZ #11607]
28545         * string/str-two-way.h (two_way_short_needle): Optimize matching of
28546         the first character.
28547
28548 2012-08-21  Roland McGrath  <roland@hack.frob.com>
28549
28550         * csu/elf-init.c (__libc_csu_irel): Function removed.
28551         * csu/libc-start.c (apply_irel): New function.
28552         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
28553
28554 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
28555
28556         * sysdeps/unix/sysv/linux/kernel-features.h
28557         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
28558         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
28559         <kernel-features.h>.
28560         [__NR_fadvise64_64]: Make code unconditional.
28561         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
28562         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28563         !__NR_fadvise64_64)]: Likewise.
28564         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28565         !__NR_fadvise64_64))]: Likewise.
28566         [__NR_fadvise64]: Make code unconditional.
28567         [!__NR_fadvise64]: Remove conditional code.
28568         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
28569         <kernel-features.h>.
28570         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28571         unconditional.
28572         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28573         conditional code.
28574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
28575         not include <kernel-features.h>.
28576         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28577         unconditional.
28578         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28579         conditional code.
28580         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
28581         include <kernel-features.h>.
28582         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28583         unconditional.
28584         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28585         conditional code.
28586
28587 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28588
28589         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
28590         slight instruction rearrangements per scrollpipe analysis.
28591         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
28592
28593 2012-08-20  Roland McGrath  <roland@hack.frob.com>
28594
28595         * manual/syslog.texi (syslog; vsyslog, closelog):
28596         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
28597         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
28598
28599         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
28600         DSOCAPS to match condition on defining it.
28601
28602 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
28603
28604         * sysdeps/unix/sysv/linux/kernel-features.h
28605         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
28606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
28607         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28608         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
28610         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28611         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
28613         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28614         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28615
28616         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
28617         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
28618
28619         * sysdeps/unix/sysv/linux/kernel-features.h
28620         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
28621         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
28622         unconditional.
28623         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28624         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
28625         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28626         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28627         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
28628         Make code unconditional.
28629         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28630         (__mmap64) [!__NR_mmap2]: Likewise.
28631         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
28632         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28633         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28634         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
28635         [__NR_mmap2]: Make code unconditional.
28636         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28637         (__mmap64) [!__NR_mmap2]: Likewise.
28638
28639 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28640
28641         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
28642
28643 2012-08-18  Andreas Jaeger  <aj@suse.de>
28644
28645         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
28646
28647 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28648
28649         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
28650         * include/unistd.h (__have_sock_cloexec): Likewise.
28651         (__have_pipe2): Likewise.
28652         (__have_dup3): Likewise.
28653
28654 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28655
28656         [BZ #9685]
28657         * include/unistd.h (__have_pipe2): Change define into an extern int.
28658         (__have_dup3): Likewise.
28659         * socket/have_sock_cloexec.c: Include fcntl.h.
28660         (__have_pipe2): New variable.
28661         (__have_dup3): Likewise.
28662
28663 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
28664
28665         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
28666
28667 2012-08-17  Marek Polacek  <polacek@redhat.com>
28668
28669         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
28670         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
28671
28672 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28673
28674         * configure.in: Add AC_SUBST for sysheaders.
28675         * configure: Regenerated.
28676         * config.make.in (sysheaders): New substituted variable.
28677
28678         * sysdeps/unix/mkfifo.c: Moved ...
28679         * sysdeps/posix/mkfifo.c: ... here.
28680         * sysdeps/unix/mkfifoat.c: Moved ...
28681         * sysdeps/posix/mkfifoat.c: ... here.
28682
28683         * sysdeps/unix/utime.c: Moved ...
28684         * sysdeps/posix/utime.c: ... here.
28685
28686         * sysdeps/unix/time.c: Moved ...
28687         * sysdeps/posix/time.c: ... here.
28688         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
28689         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
28690
28691         * sysdeps/unix/nice.c: Moved ...
28692         * sysdeps/posix/nice.c: ... here.
28693
28694         * sysdeps/unix/alarm.c: Moved ...
28695         * sysdeps/posix/alarm.c: ... here.
28696
28697         * intl/Makefile ($(codeset_mo)): Depend on the input file.
28698
28699 2012-08-17  Jeff Law <law@redhat.com>
28700
28701         * intl/Makefile (codeset_mo): New variable.
28702         ($(codeset_mo)): New target.
28703         (tst-codeset.out): Depend on that.  Remove explicit rule.
28704         (tst-gettext3.out, tst-gettext5.out): Likewise.
28705         (LOCPATH-ENV, tst-codeset-ENV): New variables.
28706         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
28707         * intl/tst-codeset.sh: Remove.
28708         * intl/tst-gettext3.sh: Likewise.
28709         * intl/tst-gettext5.sh: Likewise.
28710
28711 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28712
28713         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
28714         * sysdeps/unix/syscalls.list: ... here.
28715
28716         * sysdeps/posix/getaddrinfo.c
28717         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
28718         (gaiconf_init, gaiconf_reload): Use them.
28719         [!_STATBUF_ST_NSEC]
28720         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
28721         Define using time_t rather than struct timespec.
28722
28723         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
28724         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
28725         Macros removed.
28726         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
28727         [!NO_THREADS].
28728         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
28729         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
28730         Likewise.
28731
28732         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
28733         __libc_cleanup_push argument.
28734
28735         * bits/param.h: New file.
28736         * misc/sys/param.h: New file.
28737         * include/sys/param.h: New file.
28738         * misc/Makefile (headers): Add bits/param.h.
28739         * sysdeps/generic/sys/param.h: File removed.
28740         * sysdeps/unix/sysv/linux/bits/param.h: New file.
28741         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
28742         * sysdeps/mach/hurd/bits/param.h: New file.
28743         * sysdeps/mach/hurd/sys/param.h: File removed.
28744
28745         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
28746         last change.
28747
28748         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
28749         [_IO_MTSAFE_IO].
28750         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
28751         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
28752         New macros.
28753
28754         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
28755         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
28756         rather than -D_IO_MTSAFE_IO conditionally.
28757         * stdio-common/Makefile (CPPFLAGS): Likewise.
28758         * wcsmbs/Makefile (CPPFLAGS): Likewise.
28759         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
28760         Use $(libio-mtsafe).
28761         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
28762         of -D_IO_MTSAFE_IO.
28763         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
28764         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
28765         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
28766         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
28767         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
28768         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
28769         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
28770         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
28771         (CFLAGS-fread_u_chk.c): Likewise.
28772         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
28773         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
28774         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
28775         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
28776         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
28777         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
28778         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
28779         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
28780         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
28781
28782         * libio/Makefile: Test [$(libc-reentrant) = yes]
28783         instead of [$(filter %REENTRANT, $(defines)) nonempty].
28784
28785         * Makeconfig
28786         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
28787         * sysdeps/pthread/configure: File removed.
28788         * sysdeps/pthread/Makeconfig: New file.
28789         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
28790         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
28791
28792 2012-08-16  Gary Benson  <gbenson@redhat.com>
28793
28794         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
28795         unmapping the first object in a namespace.
28796
28797 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28798
28799         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
28800         (__internal_setnetgrent): ... this.  Add internal_function to
28801         definition.  Add libc_hidden_def.
28802         (setnetgrent): Update caller.
28803         (internal_endnetgrent): Renamed to ...
28804         (__internal_endnetgrent): ... this.  Add internal_function to
28805         definition.  Add libc_hidden_def.
28806         (endnetgrent): Update caller.
28807         (internal_getnetgrent_r): Renamed to ...
28808         (__internal_getnetgrent_r): ... this.  Add internal_function to
28809         definition.  Add libc_hidden_def.
28810         (__getnetgrent_r): Update caller.
28811         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
28812
28813 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28814
28815         * stdlib/longlong.h: Update from GCC.
28816
28817 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28818
28819         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
28820         on _QL, which is set by umul_ppmm but never used.
28821         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
28822         variables, which are set by GMP macros but never used.
28823         * stdio-common/_itowa.c (_itowa): Likewise.
28824         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
28825         * stdlib/mod_1.c (mpn_mod_1): Likewise.
28826
28827 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
28828
28829         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
28830         struct La_sh_regs is not constant.
28831         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
28832         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
28833         and struct La_sparc64_regs are not constant.
28834
28835 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28836
28837         * sysdeps/unix/sysv/linux/kernel-features.h
28838         (__ASSUME_POSIX_TIMERS): Remove.
28839         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28840         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28841         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
28842         Make code unconditional.
28843         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28844         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
28845         Make code unconditional.
28846         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28847         * sysdeps/unix/sysv/linux/clock_nanosleep.c
28848         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
28849         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28850         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
28851         Make code unconditional.
28852         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28853         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
28854         (__libc_missing_posix_timers): Remove.
28855
28856 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28857
28858         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
28859         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
28860
28861         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
28862
28863         * elf/dl-sym.c: Include <stdlib.h>.
28864
28865         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
28866         constants, which avoids warnings in 32-bit builds.
28867
28868         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
28869         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
28870
28871         * misc/lseek.c: File moved to ...
28872         * io/lseek.c: ... here.
28873
28874         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
28875
28876         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
28877         shifting LEN more than 31 bits at once.
28878
28879 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28880
28881         [BZ #14195]
28882         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
28883         segmentation fault for a case of two empty input strings.
28884         * string/test-strncasecmp.c (check1): Renamed to...
28885         (bz12205): ...this.
28886         (bz14195): Add new testcase for two empty input strings and N > 0.
28887         (test_main): Call new testcase, adapt for renamed function.
28888
28889 2012-08-15  Andreas Jaeger  <aj@suse.de>
28890
28891         [BZ #14090]
28892         * crypt/md5test2.c: New test, based on test supplied by Serge
28893         Belyshev <belyshev@depni.sinp.msu.ru>.
28894         * crypt/Makefile (xtests): Add md5test-giant..
28895         * crypt/Makefile ($(objpfx)md5test-giant): Add.
28896
28897 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28898
28899         [BZ #14090]
28900         * crypt/md5.c (md5_process_block): Don't assume the buffer
28901         length is less than 2**32.
28902         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
28903         length is less than 2**64.
28904
28905 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28906
28907         * string/str-two-way.h: Include <sys/param.h>.
28908         (MAX): Macro removed.
28909
28910         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
28911         Move #define and #undef of memmove to just before and after
28912         including <string.h>.
28913
28914         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
28915         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
28916         and after including <string.h>.  Move declarations of
28917         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
28918         to before #include "string/memmove.c".
28919
28920         * include/dirent.h: Declare __getdirentries.
28921
28922         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
28923         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
28924
28925 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
28926
28927         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
28928         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
28929         * sysdeps/i386/configure: Regenerated.
28930         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
28931         STABS_CURRENT_FILE, and STABS_FUN.
28932         (END): Remove call to STABS_FUN_END.
28933         (STABS_CURRENT_FILE1): Delete.
28934         (STABS_CURRENT_FILE): Likewise.
28935         (STABS_FUN): Likewise.
28936         (STABS_FUN_END): Likewise.
28937         (STABS_FUN2): Likewise.
28938         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
28939         * sysdeps/x86_64/configure: Regenerated.
28940
28941 2012-08-14  Roland McGrath  <roland@hack.frob.com>
28942
28943         * elf/dl-open.c: Include <atomic.h>.
28944         * elf/dl-lookup.c: Likewise.
28945
28946 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
28947
28948         * sysdeps/unix/sysv/linux/kernel-features.h
28949         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
28950         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
28951         unconditionally.
28952         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
28953         unconditionally.
28954         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
28955         condition on __ASSUME_CLONE_THREAD_FLAGS.
28956
28957 2012-08-14  Andreas Jaeger  <aj@suse.de>
28958
28959         * sysdeps/i386/fpu/libm-test-ulps: Update.
28960
28961 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
28962
28963         * include/atomic.h (atomic_exchange_and_add): Split into ...
28964         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
28965         New atomic macros.
28966
28967 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
28968
28969         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28970
28971 2012-08-13  Jeff Law <law@redhat.com>
28972
28973         * manual/stdio.texi (snprintf): Clarify handling of the trailing
28974         null byte in the output string.
28975
28976 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
28977
28978         * sysdeps/unix/sysv/linux/kernel-features.h
28979         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
28980         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
28981         (__ASSUME_ARG_MAX_STACK_BASED): Define.
28982         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
28983         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
28984         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
28985         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
28986
28987 2012-08-09  Jeff Law <law@redhat.com>
28988
28989         [BZ #13939]
28990         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
28991         When avoid_arena is set, don't retry in the that arena.  Pick the
28992         next one, whatever it might be.
28993         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
28994         (arena_lock): Pass in new parameter to arena_get2.
28995         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
28996         arena_get2.
28997         (__libc_malloc): Unify retrying after main arena failure with
28998         __libc_memalign version.
28999         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
29000
29001 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
29002
29003         [BZ #14166]
29004         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
29005         to __redirect_strstr.
29006         (__strstr_sse42): Use typeof __redirect_strstr.
29007         (__strstr_ia32): Likewise.
29008         (__libc_strstr): New prototype.
29009         (strstr): Renamed to ...
29010         (__libc_strstr): This.
29011         (strstr): New strong alias of __libc_strstr.
29012         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
29013         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
29014         __redirect_time.
29015         Include <time.h>.
29016         (__libc_time): New prototype.
29017         (time_ifunc): Replace time with __libc_time.
29018         (time): New strong alias and hidden definition of __libc_time.
29019         (__GI_time): Remove strong alias.
29020         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
29021         Include <stddef.h>.
29022         (memmove): Redefined to __redirect_memmove.
29023         (__memmove_sse2): Use typeof __redirect_memmove.
29024         (__memmove_ssse3): Likewise.
29025         (__memmove_ssse3_back): Likewise.
29026         (__libc_memmove): New prototype.
29027         (memmove): Renamed to ...
29028         (__libc_memmove): This.
29029         (memmove): New strong alias of __libc_memmove.
29030
29031 2012-08-08  Mark Salter  <msalter@redhat.com>
29032
29033         * elf/elf.h
29034         (R_MN10300_TLS_GD): Define.
29035         (R_MN10300_TLS_LD): Likewise.
29036         (R_MN10300_TLS_LDO): Likewise.
29037         (R_MN10300_TLS_GOTIE): Likewise.
29038         (R_MN10300_TLS_IE): Likewise.
29039         (R_MN10300_TLS_LE): Likewise.
29040         (R_MN10300_TLS_DTPMOD): Likewise.
29041         (R_MN10300_TLS_DTPOFF): Likewise.
29042         (R_MN10300_TLS_TPOFF): Likewise.
29043         (R_MN10300_SYM_DIFF): Likewise.
29044         (R_MN10300_ALIGN): Likewise.
29045         (R_MN10300_NUM): Update.
29046
29047 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
29048
29049         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
29050         Remove.
29051
29052 2012-08-08  Roland McGrath  <roland@hack.frob.com>
29053
29054         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
29055
29056         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
29057         sysdeps/unix -> sysdeps/posix move.
29058         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29059
29060 2012-08-07      Allan McRae     <allan@archlinux.org>
29061
29062         [BZ #14303]
29063         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
29064         (SUNOS_CPP): Likewise.
29065         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
29066         not found.
29067         (open_input): Call CPP using execvp.
29068
29069 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29070
29071         * sysdeps/unix/sysv/linux/kernel-features.h
29072         (__ASSUME_PROT_GROWSUPDOWN): Remove.
29073         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29074         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29075         (__ASSUME_WAITID_SYSCALL): Likewise.
29076         * sysdeps/unix/sysv/linux/dl-execstack.c
29077         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
29078         code unconditional.
29079         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
29080         conditional code.
29081         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
29082         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
29083         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
29084         code.
29085         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
29086         unconditional.
29087         [__ASSUME_WAITID_SYSCALL]: Likewise.
29088         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
29089
29090 2012-08-07  Roland McGrath  <roland@hack.frob.com>
29091
29092         * sysdeps/unix/closedir.c: Renamed to ...
29093         * sysdeps/posix/closedir.c: ... here.
29094         * sysdeps/unix/dirfd.c: Renamed to ...
29095         * sysdeps/posix/dirfd.c: ... here.
29096         * sysdeps/unix/dirstream.h: Renamed to ...
29097         * sysdeps/posix/dirstream.h: ... here.
29098         * sysdeps/unix/fdopendir.c: Renamed to ...
29099         * sysdeps/posix/fdopendir.c: ... here.
29100         * sysdeps/unix/opendir.c: Renamed to ...
29101         * sysdeps/posix/opendir.c: ... here.
29102         * sysdeps/unix/readdir.c: Renamed to ...
29103         * sysdeps/posix/readdir.c: ... here.
29104         * sysdeps/unix/readdir_r.c: Renamed to ...
29105         * sysdeps/posix/readdir_r.c: ... here.
29106         * sysdeps/unix/rewinddir.c: Renamed to ...
29107         * sysdeps/posix/rewinddir.c: ... here.
29108         * sysdeps/unix/seekdir.c: Renamed to ...
29109         * sysdeps/posix/seekdir.c: ... here.
29110         * sysdeps/unix/telldir.c: Renamed to ...
29111         * sysdeps/posix/telldir.c: ... here.
29112         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
29113         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
29114         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29115         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
29116
29117         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
29118         * bits/fcntl.h: ... here.
29119
29120         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
29121         not 0.
29122         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
29123         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
29124         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
29125         (struct flock): Move l_start, l_len to the beginning.
29126         Use __pid_t for l_pid.
29127         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
29128         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
29129         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
29130         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
29131         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
29132         [__USE_LARGEFILE64] (struct flock64): New type.
29133         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
29134
29135         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
29136         * bits/dirent.h: ... here.
29137
29138         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
29139         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
29140
29141 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29142
29143         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29144         Change from 2.6.0 to 2.6.16.
29145         * sysdeps/unix/sysv/linux/configure: Regenerated.
29146         * sysdeps/unix/sysv/linux/kernel-features.h
29147         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
29148         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
29149         version.
29150         (__ASSUME_UTIMES): Likewise.
29151         (__ASSUME_CLONE_STOPPED): Remove.
29152         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
29153         architectures, not kernel version.
29154         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
29155         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29156         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29157         (__ASSUME_WAITID_SYSCALL): Likewise.
29158         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
29159         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
29160         * README: State 2.6.16 as minimum Linux kernel version.  Do not
29161         refer to older versions.
29162
29163 2012-08-06  Roland McGrath  <roland@hack.frob.com>
29164
29165         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
29166         Define alphasort64 as an alias.
29167         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
29168         Define versionsort64 as an alias.
29169         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
29170         Define scandir64 as an alias.
29171         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
29172         Define scandirat64 as an alias.
29173         * dirent/alphasort64.c (alphasort64):
29174         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
29175         * dirent/versionsort64.c: Likewise.
29176         * dirent/scandir64.c: Likewise.
29177         * dirent/scandirat64.c: Likewise.
29178         * sysdeps/wordsize-64/alphasort.c: File removed.
29179         * sysdeps/wordsize-64/alphasort64.c: File removed.
29180         * sysdeps/wordsize-64/scandir.c: File removed.
29181         * sysdeps/wordsize-64/scandir64.c: File removed.
29182         * sysdeps/wordsize-64/scandirat.c: File removed.
29183         * sysdeps/wordsize-64/scandirat64.c: File removed.
29184         * sysdeps/wordsize-64/versionsort.c: File removed.
29185         * sysdeps/wordsize-64/versionsort64.c: File removed.
29186         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
29187         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
29188         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
29189         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
29190         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
29191         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
29192         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
29193         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
29194
29195         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
29196         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29197         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
29198         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29199         [defined __arch64__ || defined __sparcv9]
29200         (__INO_T_MATCHES_INO64_T): New macro.
29201         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29202         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
29203         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
29204         * sysdeps/unix/sysv/linux/bits/dirent.h
29205         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
29206         (_DIRENT_MATCHES_DIRENT64): New macro.
29207
29208         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
29209         Define lockf64 as an alias.
29210         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
29211         Define fseeko64 as an alias.
29212         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
29213         Define ftello64 as an alias.
29214         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
29215         Define _IO_fgetpos64 and fgetpos64 as aliases.
29216         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
29217         Define _IO_fsetpos64 and fsetpos64 as aliases.
29218         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
29219         Conditionalize body on this.
29220         * libio/fseeko64.c: Likewise.
29221         * libio/ftello64.c: Likewise.
29222         * libio/iofgetpos64.c: Likewise.
29223         * libio/iofsetpos64.c: Likewise.
29224         * sysdeps/wordsize-64/lockf.c: File removed.
29225         * sysdeps/wordsize-64/lockf64.c: File removed.
29226         * sysdeps/wordsize-64/fseeko.c: File removed.
29227         * sysdeps/wordsize-64/fseeko64.c: File removed.
29228         * sysdeps/wordsize-64/ftello.c: File removed.
29229         * sysdeps/wordsize-64/ftello64.c: File removed.
29230         * sysdeps/wordsize-64/iofgetpos.c: File removed.
29231         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
29232         * sysdeps/wordsize-64/iofsetpos.c: File removed.
29233         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
29234         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
29235         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
29236         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
29237         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
29238         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
29239         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
29240         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
29241         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
29242         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
29243         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
29244
29245         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29246         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29247         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
29248         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29249         [defined __arch64__ || defined __sparcv9]
29250         (__OFF_T_MATCHES_OFF64_T): New macro.
29251         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29252         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29253         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
29254         (__OFF_T_MATCHES_OFF64_T): New macro.
29255
29256 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29257
29258         * stdlib/secure-getenv.c (__secure_getenv): Replace
29259         GLIBC_2_16 with GLIBC_2_17.
29260
29261 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29262
29263         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
29264         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
29265
29266 2012-08-03  David S. Miller  <davem@davemloft.net>
29267
29268         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29269
29270 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29271
29272         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
29273         Remove.
29274         (__ASSUME_CORRECT_SI_PID): Likewise.
29275         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
29276         (__ASSUME_TMPFS_NAME): Likewise.
29277         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
29278         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
29279         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
29280         (HAVE_AUX_SECURE): Make definition unconditional.
29281         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
29282         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
29283
29284 2012-08-03  Roland McGrath  <roland@hack.frob.com>
29285
29286         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
29287         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
29288         * sysdeps/mach/hurd/eloop-threshold.h: New file.
29289         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
29290         __eloop_threshold instead of SYMLOOP_MAX.
29291
29292         * sysdeps/generic/eloop-threshold.h: New file.
29293         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
29294         of MAXSYMLINKS.
29295         * elf/chroot_canon.c (chroot_canon): Likewise.
29296
29297 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29298
29299         [BZ #13717]
29300         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29301         Change to 2.6.0 everywhere.
29302         * sysdeps/unix/sysv/linux/configure: Regenerated.
29303         * sysdeps/unix/sysv/linux/kernel-features.h
29304         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
29305         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
29306         kernel versions.
29307         (__ASSUME_POSIX_TIMERS): Define unconditionally.
29308         (__ASSUME_FUTEX_REQUEUE): Remove.
29309         (__ASSUME_STATFS64): Define unconditionally.
29310         (__ASSUME_AT_SECURE): Likewise.
29311         (__ASSUME_CORRECT_SI_PID): Likewise.
29312         (__ASSUME_TGKILL): Define without depending on kernel version for
29313         i386.
29314         (__ASSUME_UTIMES): Likewise.
29315         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
29316         kernel version.
29317         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
29318         (__ASSUME_TMPFS_NAME): Likewise.
29319         * README: Update reference to Linux kernel versions.
29320
29321 2012-08-02  Marek Polacek  <polacek@redhat.com>
29322
29323         [BZ# 14150]
29324         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
29325         libc_cv_asm_type_prefix with %.
29326         * configure: Regenerated.
29327         * include/libc-symbols.h: Remove comment about
29328         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29329         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
29330         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
29331         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
29332         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
29333         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29334         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
29335         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
29336         * elf/tst-unique2mod1.c: Likewise.
29337         * elf/tst-unique1mod2.c: Likewise.
29338         * elf/tst-unique1mod1.c: Likewise.
29339         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
29340         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
29341         Replace ASM_TYPE_DIRECTIVE with .type.
29342         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29343         * sysdeps/i386/sysdep.h: Likewise.
29344         * sysdeps/x86_64/sysdep.h: Likewise.
29345         * sysdeps/sh/sysdep.h: Likewise.
29346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
29347         Do not define ASM_TYPE_DIRECTIVE.
29348         * sysdeps/powerpc/sysdep.h: Likewise.
29349         * sysdeps/powerpc/powerpc32/sysdep.h:
29350         Replace ASM_TYPE_DIRECTIVE with .type.
29351         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29352         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29353         * sysdeps/i386/fpu/e_powf.S: Likewise.
29354         * sysdeps/i386/fpu/e_expl.S: Likewise.
29355         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29356         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29357         * sysdeps/i386/fpu/e_pow.S: Likewise.
29358         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
29359         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29360         * sysdeps/i386/fpu/s_expm1.S: Likewise.
29361         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
29362         * sysdeps/i386/fpu/e_log2.S: Likewise.
29363         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29364         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29365         * sysdeps/i386/fpu/e_powl.S: Likewise.
29366         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29367         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
29368         * sysdeps/i386/fpu/e_logl.S: Likewise.
29369         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
29370         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
29371         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
29372         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29373         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29374         * sysdeps/i386/fpu/e_log.S: Likewise.
29375         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29376         * sysdeps/i386/fpu/e_logf.S: Likewise.
29377         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29378         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29379         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
29380         * sysdeps/i386/fpu/e_log10.S: Likewise.
29381         * sysdeps/i386/fpu/s_frexp.S: Likewise.
29382         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29383         * sysdeps/i386/fpu/s_asinh.S: Likewise.
29384         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
29385         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29386         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29387         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
29388         * sysdeps/i386/i686/strtok.S: Likewise.
29389         * sysdeps/i386/i386-mcount.S: Likewise.
29390         * sysdeps/i386/strtok.S: Likewise.
29391         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
29392         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29393         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29394         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29395         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29396         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29397         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29398         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29399         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29400         * sysdeps/x86_64/_mcount.S: Likewise.
29401         * sysdeps/x86_64/strtok.S: Likewise.
29402         * sysdeps/sh/_mcount.S: Likewise.
29403
29404 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29405
29406         * libio/iofopen.c: Include <fcntl.h>.
29407         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
29408         (_IO_fopen64, fopen64): Define as aliases.
29409         * libio/iofopen64.c: Include <fcntl.h>.
29410         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
29411         Conditionalize body on this.
29412         * sysdeps/wordsize-64/iofopen.c: File removed.
29413         * sysdeps/wordsize-64/iofopen64.c: File removed.
29414
29415 2012-08-01  Marek Polacek  <polacek@redhat.com>
29416
29417         * libc/Makeconfig: Use elf in place of binfmt-subdir.
29418         Use dlfcn directly instead of a variable.
29419         (binfmt-subdir): Do not define.
29420         (dlfcn): Likewise.
29421
29422 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
29423
29424         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
29425         Remove all definitions.
29426         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
29427         <kernel-features.h>.
29428         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29429         (miss_F_GETOWN_EX): Remove all definitions.
29430         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
29431         macro definition.
29432         [!__ASSUME_FCNTL64]: Remove conditional code.
29433         [__ASSUME_FCNTL64]: Make code unconditional.
29434         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
29435         <kernel-features.h>.
29436         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29437         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
29438         (lockf64) [__NR_fcntl64]: Make code unconditional.
29439         (lockf64) [__ASSUME_FCNTL64]: Likewise.
29440
29441         * sysdeps/unix/sysv/linux/kernel-features.h
29442         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
29443         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
29444         Make code unconditional.
29445         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29446         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
29448         [__NR_vfork]: Make code unconditional.
29449         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29450         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
29452         [__NR_vfork]: Make code unconditional.
29453         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29454         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29455
29456 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29457
29458         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
29459         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
29460
29461         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29462         Define mkstemp64 as an alias.
29463         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29464         Define mkstemps64 as an alias.
29465         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29466         Define mkostemp64 as an alias.
29467         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29468         Define mkostemps64 as an alias.
29469         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
29470         Conditionalize body on this.
29471         * misc/mkostemp64.c: Likewise.
29472         * misc/mkostemps64.c: Likewise.
29473         * misc/mkstemps64.c: Likewise.
29474         * sysdeps/wordsize-64/mkstemp64.c: File removed.
29475         * sysdeps/wordsize-64/mkostemp64.c: File removed.
29476         * sysdeps/wordsize-64/mkostemp.c: File removed.
29477         * sysdeps/wordsize-64/mkstemp.c: File removed.
29478         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
29479         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
29480         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
29481         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
29482
29483         [BZ #14138]
29484         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
29485         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
29486         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
29487         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
29488
29489         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
29490         compat_symbol macros from <shlib-compat.h> rather than the underlying
29491         default_symbol_version and symbol_version macros, so that DEFAULT
29492         lines in shlib-versions are respected.
29493         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
29494
29495 2012-08-01  Florian Weimer  <fweimer@redhat.com>
29496
29497         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
29498         Declare with warn_unused_result.
29499         (setgid, setregid, setegid, setresgid): Likewise.
29500         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
29501         Likewise.
29502         * WUR-REPORT: Remove set*id functions.
29503
29504 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
29505
29506         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
29507
29508 2012-07-31  Roland McGrath  <roland@hack.frob.com>
29509
29510         [BZ #10191]
29511         * include/sys/socket.h (__libc_accept, __libc_accept4):
29512         Add attribute_hidden.
29513         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
29514
29515         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
29516         use of PTR_MANGLE.
29517         * inet/getnetgrent_r.c (setup): Likewise.
29518
29519         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
29520
29521 2012-07-31  David S. Miller  <davem@davemloft.net>
29522
29523         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29524
29525 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
29526
29527         [BZ #13629]
29528         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
29529         value between 1.0 and 2.0 and smaller part has absolute value less
29530         than 1.0.
29531         * math/s_clog10.c (__clog10): Likewise.
29532         * math/s_clog10f.c (__clog10f): Likewise.
29533         * math/s_clog10l.c (__clog10l): Likewise.
29534         * math/s_clogf.c (__clogf): Likewise.
29535         * math/s_clogl.c (__clogl): Likewise.
29536         * math/libm-test.inc (clog_test): Add more tests.
29537         (clog10_test): Likewise.
29538         * sysdeps/i386/fpu/libm-test-ulps: Update.
29539         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29540
29541 2012-07-31  Florian Weimer  <fweimer@redhat.com>
29542
29543         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
29544         Exit with zero in case no suitable GID is found, and write a
29545         message to standard error.
29546
29547 2012-07-30  Roland McGrath  <roland@hack.frob.com>
29548
29549         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
29550         rather than to 1.
29551         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
29552         (MAXPATHLEN): Removed.
29553         (NOGROUP, NODEV): New macros.
29554         (setbit, clrbit, isset, isclr): New macros.
29555         (howmany, roundup, powerof2): New macros.
29556         (DEV_BSIZE): New macro.
29557
29558         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
29559         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
29560
29561         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
29562         definition on [!__NO_LONG_DOUBLE_MATH].
29563
29564         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
29565         PTR_MANGLE and PTR_DEMANGLE.
29566
29567         * socket/accept4.c (accept4): Rename to __libc_accept4.
29568         Define accept4 as a weak alias.
29569
29570         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
29571         on [_DIRENT_HAVE_D_TYPE].
29572         * io/ftw.c (ftw_dir): Likewise.
29573
29574         * io/xmknod.c (__xmknod): Don't check PATH for being null.
29575
29576         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
29577
29578         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
29579         Use the BSD numbers rather than the arbitrary ones we had.
29580         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
29581         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
29582         (SIGXCPU, SIGXFSZ): New macros.
29583         (_NSIG): Now 32.
29584
29585         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
29586         initializer on [_LIBC_REENTRANT].
29587
29588         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
29589         definitions inside [_POSIX_MAPPED_FILES].
29590
29591         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
29592
29593         * dirent/opendir.c: Include <fcntl.h>.
29594
29595         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
29596         (__libc_getspecific): Likewise.
29597         (__libc_key_create): Likewise.
29598
29599         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
29600         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
29601         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
29602         (tmpfile64): Define as alias.
29603         * sysdeps/wordsize-64/tmpfile.c: File removed.
29604         * sysdeps/wordsize-64/tmpfile64.c: File removed.
29605         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
29606         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
29607
29608         * stdio-common/vfscanf.c: Include <stdbool.h>.
29609         * nss/makedb.c: Likewise.
29610         * stdio-common/_i18n_number.h: Likewise.
29611         * argp/argp-help.c: Likewise.
29612         * posix/wordexp.c: Likewise.
29613         * sysdeps/posix/spawni.c: Likewise.
29614         * nss/nss_files/files-initgroups.c: Likewise.
29615         * stdio-common/reg-modifier.c: Include <stdlib.h>.
29616         * nss/nss_files/files-initgroups.c: Likewise.
29617         * nss/nss_db/db-netgrp.c: Likewise.
29618         * nss/nss_db/db-initgroups.c: Likewise.
29619         * io/fchmodat.c: Include <sys/stat.h>.
29620
29621         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
29622         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
29623
29624         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
29625         [HAVE_MMAP].
29626
29627         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
29628         Add multiple inclusion protection.
29629
29630 2012-07-27  David S. Miller  <davem@davemloft.net>
29631
29632         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29633
29634 2012-07-27  Gary Benson  <gbenson@redhat.com>
29635
29636         [BZ #14298]
29637         * elf/rtld.c: Include <stap-probe.h>.
29638         (dl_main): Added static probes "init_start" and "init_complete".
29639         * elf/dl-load.c: Include <stap-probe.h>.
29640         (lose): Take new parameter "nsid".
29641         Added static probe "map_failed".
29642         (_dl_map_object_from_fd): Pass namespace id to lose.
29643         Added static probe "map_start".
29644         (open_verify): Pass namespace id to lose.
29645         * elf/dl-open.c: Include <stap-probe.h>.
29646         (dl_open_worker) Added static probes "map_complete", "reloc_start"
29647         and "reloc_complete".
29648         * elf/dl-close.c: Include <stap-probe.h>.
29649         (_dl_close_worker): Added static probes "unmap_start" and
29650         "unmap_complete".
29651         * elf/rtld-debugger-interface.txt: New file documenting the above.
29652
29653 2012-07-26  Roland McGrath  <roland@hack.frob.com>
29654
29655         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
29656         rather than a string variable.
29657         * sunrpc/rpc_main.c (h_output): Likewise.
29658         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
29659
29660 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
29661
29662         * inet/check_native.c: New file.
29663
29664 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
29665
29666         [BZ #13629]
29667         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
29668         if larger part has absolute value 1.0.
29669         * math/s_clog10.c (__clog10): Likewise.
29670         * math/s_clog10f.c (__clog10f): Likewise.
29671         * math/s_clog10l.c (__clog10l): Likewise.
29672         * math/s_clogf.c (__clogf): Likewise.
29673         * math/s_clogl.c (__clogl): Likewise.
29674         * math/libm-test.inc (clog_test): Add more tests.
29675         (clog10_test): Likewise.
29676         * sysdeps/i386/fpu/libm-test-ulps: Update.
29677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29678
29679         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
29680         (pltexit): Likewise.
29681         (La_regs): Likewise.
29682         (La_retval): Likewise.
29683         (int_retval): Likewise.
29684         Update #error for removed macros to refer only to definitions in
29685         tst-audit.h.
29686         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
29687         macro.
29688         (pltexit): Likewise.
29689         (La_regs): Likewise.
29690         (La_retval): Likewise.
29691         (int_retval): Likewise.
29692         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
29693         macro.
29694         (pltexit): Likewise.
29695         (La_regs): Likewise.
29696         (La_retval): Likewise.
29697         (int_retval): Likewise.
29698         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
29699         macro.
29700         (pltexit): Likewise.
29701         (La_regs): Likewise.
29702         (La_retval): Likewise.
29703         (int_retval): Likewise.
29704         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
29705         macro.
29706         (pltexit): Likewise.
29707         (La_regs): Likewise.
29708         (La_retval): Likewise.
29709         (int_retval): Likewise.
29710         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
29711         macro.
29712         (pltexit): Likewise.
29713         (La_regs): Likewise.
29714         (La_retval): Likewise.
29715         (int_retval): Likewise.
29716         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
29717         macro.
29718         (pltexit): Likewise.
29719         (La_regs): Likewise.
29720         (La_retval): Likewise.
29721         (int_retval): Likewise.
29722         * sysdeps/generic/tst-audit.h: Update comment to refer only to
29723         macro definitions in tst-audit.h.
29724         * sysdeps/i386/tst-audit.h: New file.
29725         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
29726         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
29727         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
29728         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
29729         * sysdeps/sh/tst-audit.h: Likewise.
29730         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
29731         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
29732         * sysdeps/x86_64/tst-audit.h: Likewise.
29733
29734 2012-07-26  Andreas Jaeger  <aj@suse.de>
29735
29736         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
29737         ptrace.
29738
29739         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
29740         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
29741         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
29742         PTRACE_O_MASK.
29743         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
29744         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
29745         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
29746
29747         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
29748         value.
29749
29750         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
29751         _sigsys.
29752         (si_call_addr, si_syscall, si_arch): Define new macro.
29753         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
29754         _sigsys.
29755         (si_call_addr, si_syscall, si_arch): Define new marcro.
29756         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
29757         _sigsys.
29758         (si_call_addr, si_syscall, si_arch): Define new macro.
29759         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
29760         _sigsys.
29761         (si_call_addr, si_syscall, si_arch): Define new macro.
29762
29763 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29764
29765         [BZ #13717]
29766         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29767         Change to 2.4.21 where previously 2.4.1.
29768         * sysdeps/unix/sysv/linux/configure: Regenerated.
29769         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
29770         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
29771         Linux kernel version.
29772         (__ASSUME_STD_AUXV): Remove.
29773         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
29774         kernel version.
29775         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
29776         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
29777         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
29778         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
29779         (__ASSUME_NETLINK_SUPPORT): Likewise.
29780         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
29781         (__no_netlink_support): Remove conditional definition.
29782         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
29783         Remove.
29784         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29785         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
29786         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
29787         (if_nameindex_ioctl): Remove.
29788         (if_nameindex_netlink): Do not handle __no_netlink_support.
29789         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29790         code.
29791         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
29792         Remove conditional code.
29793         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29794         code.
29795         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
29796         unconditional.
29797         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29798         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
29799         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
29800         Remove.
29801         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
29802         [!__ASSUME_STD_AUXV]: Remove conditional code.
29803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
29804         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
29805         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
29806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
29807         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
29808         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29809         code.
29810         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
29812         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
29813         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29814         conditional code.
29815         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
29817         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29818         code.
29819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
29820         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29821         conditional code.
29822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
29823         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29824         code unconditional.
29825         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29826         conditional code.
29827         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29828         unconditional.
29829         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29830         conditional code.
29831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29832         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29833         unconditional.
29834         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29835         conditional code.
29836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
29837         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29838         code unconditional.
29839         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29840         conditional code.
29841         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29842         unconditional.
29843         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29844         conditional code.
29845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
29846         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29847         code unconditional.
29848         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29849         conditional code.
29850         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29851         unconditional.
29852         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29853         conditional code.
29854
29855 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
29856
29857         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
29858         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
29859         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
29860         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
29861         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
29862         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29863         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29864         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
29865         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
29866         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
29867         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
29868         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
29869         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
29870         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29871         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
29872         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
29873         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
29874         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
29875         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
29876         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
29877         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
29878         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
29879         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
29880
29881 2012-07-25  Florian Weimer  <fweimer@redhat.com>
29882
29883         * Versions.def: Add GLIBC_2.17.
29884         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
29885         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
29886         Introduce __libc_secure_getenv.
29887         * stdlib/Versions (2.17): Add secure_getenv
29888         (GLIBC_PRIVATE): Add __libc_secure_getenv.
29889         * stdlib/secure-getenv.c: Rename __secure_getenv to
29890         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
29891         symbol __secure_getenv for GLIBC_2.0.
29892         * stdlib/tst-secure-getenv.c: New.
29893         * stdlib/Makefile (tests): Add testcase.
29894         * manual/startup.texi (Environment Access): Document
29895         secure_getenv.
29896         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
29897         __libc_secure_getenv.
29898         * inet/ruserpass.c (ruserpass): Likewise.
29899         * malloc/mtrace.c (mtrace): Likewise.
29900         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
29901         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
29902         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
29903         * sysdeps/posix/tempname.c: Likewise.  Evaluate
29904         HAVE_SECURE_GETENV.
29905         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
29906         __secure_getenv to __libc_secure_getenv.
29907         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
29908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29909         Likewise.
29910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29911         Likewise.
29912         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
29913         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
29914         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
29915         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
29916         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
29917         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
29918         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
29919
29920 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29921
29922         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
29923         (struct La_i86_retval): Likewise.
29924         (struct La_x86_64_regs): Likewise.
29925         (struct La_x86_64_retval): Likewise.
29926         (struct La_x32_regs): Likewise.
29927         (struct La_x32_retval): Likewise.
29928         (struct La_ppc32_regs): Likewise.
29929         (struct La_ppc32_retval): Likewise.
29930         (struct La_ppc64_regs): Likewise.
29931         (struct La_ppc64_retval): Likewise.
29932         (struct La_sh_regs): Likewise.
29933         (struct La_sh_retval): Likewise.
29934         (struct La_s390_32_regs): Likewise.
29935         (struct La_s390_32_retval): Likewise.
29936         (struct La_s390_64_regs): Likewise.
29937         (struct La_s390_64_retval): Likewise.
29938         (struct La_sparc32_regs): Likewise.
29939         (struct La_sparc32_retval): Likewise.
29940         (struct La_sparc64_regs): Likewise.
29941         (struct La_sparc64_retval): Likewise.
29942         (struct audit_ifaces): Remove architecture-specific pltenter and
29943         pltexit members.
29944         * sysdeps/i386/ldsodefs.h: New file.
29945         * sysdeps/powerpc/ldsodefs.h: Likewise.
29946         * sysdeps/s390/ldsodefs.h: Likewise.
29947         * sysdeps/sh/ldsodefs.h: Likewise.
29948         * sysdeps/sparc/ldsodefs.h: Likewise.
29949         * sysdeps/x86_64/ldsodefs.h: Likewise.
29950
29951 2012-07-25  Marek Polacek  <polacek@redhat.com>
29952
29953         [BZ #6808]
29954         * math/libm-test.inc (yn_test): Add another test.
29955         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
29956         to ERANGE when the result is +-Inf.
29957         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
29958         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29959         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
29960         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
29961
29962 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
29963
29964         * conform/data/time.h-data (NULL): Use macro-constant.  Require
29965         equal to 0.
29966         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
29967         clock_t.
29968         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
29969
29970 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
29971
29972         * configure.in <sysdeps resolving>: Correct printing
29973         Implies_before.
29974         * configure: Regenerate.
29975
29976 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
29977
29978         * math/w_ilogb.c: Include <limits.h>.
29979         * math/w_ilogbl.c: Likewise.
29980
29981 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29982
29983         * manual/lang.texi (__va_copy): Document primarily as ISO C99
29984         va_copy.  Document allowing for unavailable va_copy only as
29985         pre-C99 compatibility.
29986         * manual/string.texi (Copying and Concatenation): Use va_copy
29987         instead of __va_copy in concat example.
29988
29989 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
29990
29991         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
29992         (__sendto): Use create_address_port.  Initialize APORT and deallocate
29993         it if not null.
29994
29995         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
29996         with O_NOLINK passed to __file_name_lookup.
29997
29998         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
29999         with O_NOLINK passed to __file_name_lookup.
30000
30001         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
30002         negative N or less than NGIDS.
30003
30004         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
30005         type to string_t.  Set ERANGE as errno and return it if NAME is not big
30006         enough.  Use memcpy instead of strncpy.
30007
30008 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30009
30010         * elf/Makefile (check-data): Remove.
30011         (localplt.data): New vpath directive.
30012         ($(objpfx)check-localplt.out): Use localplt.data from vpath
30013         instead of $(check-data).
30014         * scripts/data/localplt-generic.data: Move to ...
30015         * sysdeps/generic/localplt.data: ... here.
30016         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
30017         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
30018         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
30019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30020         ... here.
30021         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
30022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30023         ... here.
30024         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
30025         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
30026         ... here.
30027         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
30028         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
30029         ... here.
30030         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
30031         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
30032         ... here.
30033         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
30034         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
30035         ... here.
30036
30037 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30038
30039         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
30040         PPC32 and PPC64 files.
30041         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
30042         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
30043
30044 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30045
30046         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
30047         __makecontext_ret to ...
30048         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
30049         ... here and call exit if uc_link is NULL.  New file.
30050         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
30051         __makecontext_ret.S.
30052         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
30053         __makecontext_ret to ...
30054         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
30055         ... here and call exit if uc_link is NULL.  New file.
30056         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
30057         __makecontext_ret.S.
30058
30059 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30060
30061         * elf/elf.h (R_390_IRELATIVE): New definition.
30062         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
30063         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
30064         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
30065         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
30066         (elf_machine_lazy_rel): Likewise.
30067         * sysdeps/s390/dl-irel.h: New file.
30068         * sysdeps/s390/s390-64/memcpy.S: New asm code.
30069         * sysdeps/s390/s390-64/memset.S: New asm code.
30070         * sysdeps/s390/s390-64/memcmp.S: New asm code.
30071         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
30072         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
30073         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
30074         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
30075         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
30076         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
30077         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
30078         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
30079         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
30080         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
30081         * sysdeps/s390/s390-32/memcpy.S: New asm code.
30082         * sysdeps/s390/s390-32/memset.S: New asm code.
30083         * sysdeps/s390/s390-32/memcmp.S: New asm code.
30084
30085 2012-07-17  Marek Polacek  <polacek@redhat.com>
30086
30087         [BZ #14349]
30088         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
30089         * sysdeps/s390/s390-64/configure.in: Likewise.
30090         * sysdeps/sparc/configure.in: Likewise.
30091         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
30092         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
30093         * sysdeps/i386/configure.in: Likewise.
30094         * sysdeps/x86_64/configure.in: Likewise.
30095         * sysdeps/sh/configure.in: Likewise.
30096         * sysdeps/s390/s390-32/configure: Regenerated.
30097         * sysdeps/s390/s390-64/configure: Likewise.
30098         * sysdeps/x86_64/configure: Likewise.
30099         * sysdeps/sh/configure: Likewise.
30100         * sysdeps/powerpc/powerpc64/configure: Likewise.
30101         * sysdeps/powerpc/powerpc32/configure: Likewise.
30102         * sysdeps/sparc/configure: Likwise.
30103         * sysdeps/i386/configure: Likewise.
30104
30105         * elf/dl-open.c: Comment fixes.
30106
30107 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
30108
30109         * Makefile [CXX] (check-data): Remove.
30110         [CXX] (c++-types.data): New vpath directive.
30111         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
30112         vpath.  Do not allow for C++ type data being missing.
30113         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
30114         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
30115         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
30116         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
30117         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
30118         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
30119         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
30120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30121         ... here.
30122         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
30123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30124         ... here.
30125         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
30126         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
30127         ... here.
30128         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
30129         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
30130         ... here.
30131         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
30132         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
30133         ... here.
30134         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
30135         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
30136         ... here.
30137         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
30138         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
30139         ... here.
30140         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
30141         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
30142
30143         * elf/tls-macros.h (TLS_LE): Move architecture-specific
30144         definitions to architecture-specific files.
30145         (TLS_IE): Likewise.
30146         (TLS_LD): Likewise.
30147         (TLS_GD): Likewise.
30148         * sysdeps/i386/tls-macros.h: New file.
30149         * sysdeps/powerpc/tls-macros.h: Likewise.
30150         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
30151         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
30152         * sysdeps/sh/tls-macros.h: Likewise.
30153         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
30154         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
30155         * sysdeps/x86_64/tls-macros.h: Likewise.
30156
30157 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30158
30159         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
30160         zero value for regular exit case.
30161
30162         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
30163         (__start_context): Preserve zero value for regular exit case.
30164
30165 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30166             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30167
30168         * manual/setjmp.texi (setcontext): Clarify normal process
30169         termination when uc_link is the null pointer.
30170         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
30171         exit call.
30172
30173 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
30174
30175         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
30176         preprocessor.  Test for each exception mask separately.
30177
30178 2012-07-16  Andreas Jaeger  <aj@suse.de>
30179
30180         * po/ru.po: Update from translation team.
30181
30182 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
30183
30184         * conform/data/string.h-data (NULL): Use macro-constant.  Require
30185         equal to 0.
30186         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
30187         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
30188         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
30189         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
30190         [ISO || ISO99 || ISO11] (*_t): Do not allow.
30191
30192 2012-07-13  Andreas Jaeger  <aj@suse.de>
30193
30194         * po/fr.po: Update from translation team.
30195
30196 2012-07-12  Marek Polacek  <polacek@redhat.com>
30197
30198         [BZ #14173]
30199         * math/libm-test.inc (yn_test): Add test for BZ #14173.
30200         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
30201         loop condition.
30202
30203 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
30204
30205         [BZ #13717]
30206         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30207         Change to 2.4.1 where previously 2.4.0.
30208         * sysdeps/unix/sysv/linux/configure: Regenerated.
30209         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
30210         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
30211         version.
30212         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
30213         (__ASSUME_AT_CLKTCK): Remove.
30214         (__ASSUME_AT_PAGESIZE): Likewise.
30215         (__ASSUME_AT_XID): Likewise.
30216         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
30217         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
30218         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
30219         unconditionally.
30220         (HAVE_AUX_PAGESIZE): Likewise.
30221         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
30222         [__ASSUME_AT_CLKTCK]: Make code unconditional.
30223         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
30224
30225 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
30226
30227         [BZ #14307]
30228         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
30229         the temporary buffer used to invoke __gethostbyname2_r,
30230         __gethostbyaddr_r and gethostbyname4_r to make room for struct
30231         host_data / struct gaih_addrtuple.
30232         * resolv/nss_dns/dns-host.c (global scope): Move definition of
30233         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
30234         header file nss/nsswitch.h.
30235         * nss/nsswitch.h (global scope): Add definition of implementation
30236         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
30237         resolv/nss_dns/dns-host.c).
30238
30239 2012-07-11  Andreas Jaeger  <aj@suse.de>
30240
30241         * po/fr.po: Update from translation team.
30242
30243         * po/sv.po: Update from translation team
30244         * po/fr.po: Another update from translation team.
30245
30246 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30247
30248         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
30249         for subnormals or multiply small sinh result by itself.
30250         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30251         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30252
30253 2012-07-11  David S. Miller  <davem@davemloft.net>
30254
30255         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30256
30257 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
30258
30259         [BZ #14347]
30260         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
30261         (INTERNAL_MARK): Shift it here.
30262
30263 2012-07-10  Marek Polacek  <polacek@redhat.com>
30264
30265         [BZ #14151]
30266         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
30267         libc_cv_asm_global_directive with .globl.
30268         * configure: Regenerated.
30269         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
30270         with .globl.
30271         * sysdeps/i386/configure: Regenerated.
30272         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
30273         with .globl.
30274         * sysdeps/x86_64/configure: Regenerated.
30275         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
30276         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
30277         * elf/tst-unique2mod2.c: Likewise.
30278         * elf/tst-unique2mod1.c: Likewise.
30279         * elf/tst-unique1mod2.c: Likewise.
30280         * elf/tst-unique1mod1.c: Likewise.
30281         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30282         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30283         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30284         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30285         * sysdeps/mach/sysdep.h: Likewise.
30286         * sysdeps/i386/sysdep.h: Likewise.
30287         * sysdeps/i386/i386-mcount.S: Likewise.
30288         * sysdeps/x86_64/_mcount.S: Likewise.
30289         * sysdeps/x86_64/sysdep.h: Likewise.
30290         * sysdeps/sh/_mcount.S: Likewise.
30291         * sysdeps/sh/sysdep.h: Likewise.
30292         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
30293         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
30294         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
30295         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30296         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
30297         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
30298         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
30299         * locale/localeinfo.h: Likewise.
30300         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
30301         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
30302
30303 2012-07-09  Roland McGrath  <roland@hack.frob.com>
30304
30305         [BZ #14336]
30306         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
30307         system".
30308         * manual/message.texi (The Uniforum approach): Likewise.
30309         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
30310         (glibc iconv Implementation): Likewise.
30311
30312 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
30313
30314         [BZ #14337]
30315         * math/s_clog.c (__clog): Avoid scaling a value down where that
30316         could result in underflow.
30317         * math/s_clog10.c (__clog10): Likewise.
30318         * math/s_clog10f.c (__clog10f): Likewise.
30319         * math/s_clog10l.c (__clog10l): Likewise.
30320         * math/s_clogf.c (__clogf): Likewise.
30321         * math/s_clogl.c (__clogl): Likewise.
30322         * math/libm-test.inc (clog_test): Add more tests.
30323         (clog10_test): Likewise.
30324         * sysdeps/i386/fpu/libm-test-ulps: Update.
30325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30326
30327 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
30328
30329         [BZ #14283]
30330         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
30331         by 7 not 8 to examine high bit of fractional part.
30332
30333         [BZ #14042]
30334         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
30335         for call to __mcount_internal.
30336         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
30337         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
30338         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
30339
30340 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
30341
30342         [BZ #14154]
30343         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
30344         approximation for values within 0x1p-13f of an odd multiple of
30345         pi/4.
30346         * math/libm-test.inc (tan_test): Do not allow spurious underflow
30347         exception.  Add more tests.
30348         * sysdeps/i386/fpu/libm-test-ulps: Update.
30349
30350         [BZ #6778]
30351         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
30352         inputs and return -1 for them.  Do not check for +Inf in case not
30353         reachable for +Inf.
30354         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
30355         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
30356         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30357         and return -1 for them.  Do not check for +Inf in case not
30358         reachable for +Inf.
30359         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
30360         define.
30361         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30362         and return -1 for them.  Do not check for +Inf in case not
30363         reachable for +Inf.
30364         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
30365         spurious underflow.
30366         * sysdeps/i386/fpu/libm-test-ulps: Update.
30367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30368
30369 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
30370
30371         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
30372
30373 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
30374
30375         [BZ #14157]
30376         [BZ #14331]
30377         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
30378         could result in spurious underflow.  Scale down values above
30379         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
30380         * math/s_csqrtf.c (__csqrtf): Likewise.
30381         * math/s_csqrtl.c (__csqrtl): Likewise.
30382         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
30383         spurious underflow.
30384         * sysdeps/i386/fpu/libm-test-ulps: Update.
30385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30386
30387 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
30388
30389         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
30390         xopen-msg.sed.
30391         * catgets/xopen-msg.awk: New file.
30392         * catgets/xopen-msg.sed: Removed.
30393
30394         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
30395         po2text.sed.
30396         * intl/po2test.awk: New file.
30397         * intl/po2test.sed: Removed.
30398
30399 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
30400
30401         [BZ #14328]
30402         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
30403         or multiply small sinh result by itself.
30404         * math/s_ctanf.c (__ctanf): Likewise.
30405         * math/s_ctanh.c (__ctanh): Likewise.
30406         * math/s_ctanhf.c (__ctanhf): Likewise.
30407         * math/s_ctanhl.c (__ctanhl): Likewise.
30408         * math/s_ctanl.c (__ctanl): Likewise.
30409         * math/libm-test.inc (ctan_test_tonearest): New function.
30410         (ctan_test_towardzero): Likewise.
30411         (ctan_test_downward): Likewise.
30412         (ctan_test_upward): Likewise.
30413         (ctanh_test_tonearest): Likewise.
30414         (ctanh_test_towardzero): Likewise.
30415         (ctanh_test_downward): Likewise.
30416         (ctanh_test_upward): Likewise.
30417         (main): Call these new functions.
30418         * sysdeps/i386/fpu/libm-test-ulps: Update.
30419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30420
30421 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
30422
30423         * .gitignore: Delete /ports entry.
30424
30425 2012-07-03  Andreas Jaeger  <aj@suse.de>
30426
30427         * po/bg.po: Update from translation team.
30428         * po/cs.po: Likewise.
30429         * po/de.po: Likewise.
30430         * po/hr.po: Likewise.
30431         * po/nl.pl: Likewise.
30432         * po/pl.po: Likewise.
30433         * po/vi.po: Likewise.
30434
30435 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
30436
30437         * Makeconfig [!+link] (+link-before-libc): New variable.
30438         [!+link] (+link-after-libc): Likewise.
30439         [!+link] (+link-tests): Likewise.
30440         [!+link] (+link): Define in terms of $(+link-before-libc) and
30441         $(+link-after-libc).
30442         [!+link-static] (+link-static-before-libc): New variable.
30443         [!+link-static] (+link-static-after-libc): Likewise.
30444         [!+link-static] (+link-static-tests): Likewise.
30445         [!+link-static] (+link-static): Define in terms of
30446         $(+link-static-before-libc) and $(+link-static-after-libc).
30447         [build-shared] (link-libc-before-gnulib): New variable.
30448         [build-shared] (link-libc-tests): Likewise.
30449         [build-shared] (link-libc): Define in terms of
30450         $(link-libc-before-gnulib).
30451         [!build-shared] (link-libc-tests): New variable.
30452         (link-libc-static-tests): New variable.
30453         [!gnulib] (gnulib-arch): New variable.
30454         [!gnulib] (gnulib-tests): Likewise.
30455         [!gnulib] (static-gnulib-arch): Likewise.
30456         [!gnulib] (static-gnulib-tests): Likewise.
30457         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
30458         Define with "=" instead of ":=".
30459         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
30460         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
30461         * Rules (binaries-all-notests): New variable.
30462         (binaries-all-tests): Likewise.
30463         (binaries-static-notests): Likewise.
30464         (binaries-static-tests): Likewise.
30465         (binaries-all): Define using $(binaries-all-notests) and
30466         $(binaries-all-tests).
30467         (binaries-static): Define using $(binaries-static-notests) and
30468         $(binaries-static-tests).
30469         (binaries-shared-tests): New variable.
30470         (binaries-shared-notests): Likewise.
30471         (binaries-shared): Remove variable.
30472         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
30473         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
30474         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
30475         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
30476         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
30477         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
30478         * elf/Makefile (sln-modules): New variable.
30479         (extra-objs): Add $(sln-modules:=.o).
30480         (ldconfig-modules): Add static-stubs.
30481         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
30482         * elf/static-stubs.c: New file.
30483
30484         [BZ #14283]
30485         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
30486         by 7 not 8 to examine high bit of fractional part.  Use volatile
30487         variables when splitting into final array of floats if
30488         __FLT_EVAL_METHOD__ != 0.
30489         * math/libm-test.inc (cos_test): Add another test.
30490         (sin_test): Likewise.
30491         * sysdeps/i386/fpu/libm-test-ulps: Update.
30492
30493         [BZ #14273]
30494         * math/libm-test.inc (cosh_test): Add more tests.
30495
30496         * version.h (RELEASE): Set to "development".
30497         (VERSION): Set to "2.16.90".
30498
30499 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
30500
30501         * NEWS: Update copyright. Remove last-updated date.
30502         Mention math library bug fixes and timezone data changes.
30503         * README: Mention GNU/Hurd, x32, and HPPA support status.
30504
30505 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
30506
30507         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
30508
30509 2012-06-27  Andreas Jaeger  <aj@suse.de>
30510
30511         * manual/contrib.texi (Contributors): Add Samuel Thibault.
30512
30513 2012-06-25  Andreas Jaeger  <aj@suse.de>
30514
30515         * sysdeps/s390/fpu/libm-test-ulps: Update.
30516
30517 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
30518             Thomas Schwinge  <thomas@codesourcery.com>
30519
30520         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
30521         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
30522         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
30523         fanotify_mark.
30524
30525 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
30526
30527         * sysdeps/mach/start.c: Remove file.
30528         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
30529         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
30530         * sysdeps/sh/init-first.c: Likewise.
30531
30532         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
30533         registers for frame unwinding purposes, add CFI directives.
30534         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30535         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
30536         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
30537         Likewise.
30538
30539         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
30540         __fortify_fail returning.
30541         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30542
30543         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
30544         sysdeps/sh/____longjmp_chk.S.
30545         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
30546         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
30547         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
30548         (gen-as-const-headers): Append sigaltstack-offsets.sym.
30549
30550         * sysdeps/sh/abort-instr.h: New file.
30551         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
30552         process in case exit returns.
30553
30554         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
30555         initialize the GOT register before use.
30556
30557         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
30558         calculation of ARGC > 4.
30559
30560         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
30561         meaningful names to some local labels.
30562
30563 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
30564             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30565
30566         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
30567         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
30568         (__arch_compare_and_exchange_val_16_acq): Likewise.
30569         (__arch_compare_and_exchange_val_32_acq): Likewise.
30570         (atomic_exchange_and_add): Fix gUSA sequence.
30571         (atomic_add): Likewise.
30572         (atomic_add_negative): Likewise.
30573         (atomic_add_zero): Likewise.
30574         (atomic_bit_test_set): Likewise.
30575
30576 2012-06-22  Andreas Schwab  <schwab@redhat.com>
30577
30578         [BZ #13579]
30579         * include/link.h (struct link_map): Add l_free_initfini.
30580         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
30581         l_initfini.
30582         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
30583         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
30584         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
30585         set.
30586
30587 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
30588
30589         * configure.in: Use AC_LANG_SOURCE.
30590         * configure: Regenerate.
30591
30592 2012-06-22  Roland McGrath  <roland@hack.frob.com>
30593
30594         * configure.in (libc_cv_localstatedir): New substituted variable.
30595         * configure: Regenerated.
30596         * config.make.in (localstatedir): New variable, substituted from
30597         libc_cv_localstatedir.
30598         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
30599         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
30600         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
30601         * sysdeps/gnu/configure: Regenerated.
30602
30603 2012-06-21  Jeff Law  <law@redhat.com>
30604
30605         [BZ #14277]
30606         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
30607         free.  Simplify list management for _LIBC case.
30608
30609 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
30610
30611         [BZ #14273]
30612         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
30613         Clear sign bit of 64-bit integer value before comparing against
30614         overflow value.
30615
30616         * sysdeps/mach/configure: Regenerated.
30617
30618 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
30619
30620         [BZ #14278]
30621         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
30622
30623 2012-06-21  Jeff Law  <law@redhat.com>
30624
30625         [BZ #13882]
30626         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
30627         uint16_t for elements in the "seen" array to avoid char overflows.
30628         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30629         * elf/dl-open.c (dl_open_worker): Likewise.
30630
30631 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
30632
30633         * scripts/list-sources.sh: Scan PORTS for translations.
30634         * po/libc.pot: Regenerated.
30635
30636 2012-06-21  Andreas Jaeger  <aj@suse.de>
30637
30638         [BZ #12194]
30639         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
30640         warning.
30641         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
30642         * bits/byteswap-16.h (__bswap_16): Likewise.
30643         * bits/byteswap.h (__bswap_constant_16): Likewise.
30644
30645 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
30646
30647         [BZ #14117]
30648         * sysdeps/i386/fpu_control.h: Removed.
30649         * sysdeps/x86_64/fpu_control.h: Moved to ...
30650         * sysdeps/x86/fpu_control.h: Here.
30651
30652         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
30653         (_FPU_SETCW): Likewise.
30654
30655 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
30656
30657         [BZ #14117]
30658         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
30659         * sysdeps/x86/fpu/bits/mathinline.h: This.
30660         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
30661
30662         [BZ #14050]
30663         [BZ #14117]
30664         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
30665         functions if __x86_64__ is defined.
30666
30667 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
30668
30669         * string/endian.h: Add !__ASSEMBLER__ condition for including
30670         conversion interfaces.
30671
30672 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
30673
30674         [BZ #14241]
30675         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
30676         of ABS(x) in calculating zero to negative powers other than odd
30677         integers.
30678         * math/libm-test.inc (pow_test): Add more tests.
30679
30680 2012-06-15  Andreas Jaeger  <aj@suse.de>
30681
30682         * manual/contrib.texi (Contributors): Update entry of Liubov
30683         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
30684         Machado Filho.
30685
30686 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
30687
30688         * string/string.h: Add __wur to GNU version of strerror_r.
30689
30690 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
30691
30692         [BZ #14229]
30693         * string/Makefile (tests): Add tst-strtok_r.
30694         * string/tst-strtok_r.c: New file.
30695         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
30696         RAX_LP/RDX_LP on SAVE_PTR.
30697
30698 2012-06-14  Roland McGrath  <roland@hack.frob.com>
30699
30700         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
30701
30702 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
30703
30704         * libm_test.inc (csqrt_test): Allow more spurious underflow
30705         exceptions.
30706         (j0_test): Likewise.
30707         (j1_test): Likewise.
30708         (y0_test): Likewise.
30709         (y1_test): Likewise.
30710
30711 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
30712
30713         * po/Makefile (libc.pot): Use UTF-8 charset.
30714
30715 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
30716
30717         [BZ #14210]
30718         Suppress sign-conversion warning from FD_SET.
30719         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
30720         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
30721         not unsigned long int.
30722         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
30723
30724 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
30725
30726         [BZ #14050]
30727         [BZ #14117]
30728         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
30729         __extern_always_inline instead of __extern_inline.
30730         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
30731         (__signbit): Likewise.
30732         (__signbitl): Support C++ namespace.
30733         (lrintf): New inline function.
30734         (lrint): Likewise.
30735         (llrintf): Likewise.
30736         (llrint): Likewise.
30737         (fmaxf): Likewise.
30738         (fmax): Likewise.
30739         (fminf): Likewise.
30740         (fmin): Likewise.
30741         (rint): Likewise.
30742         (rintf): Likewise.
30743         (ceil): Likewise.
30744         (ceilf): Likewise.
30745         (floor): Likewise.
30746         (floorf): Likewise.
30747         (nearbyint): Likewise.
30748         (nearbyintf): Likewise.
30749
30750 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
30751
30752         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
30753         non-default versions.
30754
30755 2012-06-11  Roland McGrath  <roland@hack.frob.com>
30756
30757         [BZ #14218]
30758         * manual/argp.texi (Argp): Reword argp_parse description slightly.
30759
30760 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
30761
30762         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
30763         (FE_UPWARD, FE_DOWNWARD): Don't define.
30764         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
30765         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30766
30767         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
30768         reading it.
30769         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30770         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30771
30772 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30773
30774         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
30775         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
30776         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
30777         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
30778
30779 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
30780
30781         [BZ #14117]
30782         * sysdeps/i386/fpu/bits/fenv.h: Removed.
30783         * sysdeps/i386/fpu/Implies: New file.
30784         * sysdeps/x86_64/fpu/Implies: Likewise.
30785         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
30786         * sysdeps/x86/fpu/bits/fenv.h: This.
30787
30788         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
30789         __SSE_MATH__.
30790
30791 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30792
30793         [BZ #14134]
30794         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
30795         character 0xffff that matches the last element of the
30796         conversion table.
30797
30798 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30799
30800         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
30801         fmodl commit.
30802
30803 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30804
30805         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
30806         values higher than 25.6283.
30807
30808 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30809
30810         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
30811         subnormal exponent extraction and add some __builtin_expect.
30812         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
30813         Fix for subnormal mantissa calculation.
30814
30815 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
30816
30817         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
30818         cpu2 is -1 and errno is not ENOSYS.
30819
30820 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
30821
30822         [BZ #14117]
30823         * sysdeps/i386/i486/bits/string.h: Renamed to ...
30824         * sysdeps/x86/bits/string.h: This.
30825         * sysdeps/x86_64/bits/string.h: Removed.
30826
30827         * sysdeps/i386/i486/bits/string.h: Define inline functions only
30828         if not compiling for x86-64, but compiling for >= i486.
30829
30830         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
30831         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
30832
30833         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
30834         New macro from Linux kernel 3.4.0.
30835         (FP_XSTATE_MAGIC2): Likewise.
30836         (FP_XSTATE_MAGIC2_SIZE): Likewise.
30837         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
30838         (struct _fpx_sw_bytes): New struct.
30839         (struct _xsave_hdr): Likewise.
30840         (struct _ymmh_state): Likewise.
30841         (struct _xstate): Likewise.
30842
30843         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
30844         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
30845         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
30846         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
30847         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
30848         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
30849
30850         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
30851         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
30852         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
30853         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
30854         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
30855         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
30856
30857 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30858
30859         [BZ #13743]
30860         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
30861         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
30862         (sysdep_headers): Include sys/platform/ppc.h.
30863         * sysdeps/powerpc/test-gettimebase.c: Test for
30864         __ppc_get_timebase() to catch future ISA opcode/insn changes.
30865         * manual/Makefile (appendices): Include platform.texi.
30866         * manual/contrib.texi (Contributors): Update @node pointers.
30867         * manual/maint.texi (Maintenance): Likewise.
30868         (Platform): New node.
30869         * manual/platform.texi: New file.  Document the new features.
30870
30871 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30872             Jakub Jelinek  <jakub@redhat.com>
30873
30874         [BZ #14188]
30875         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
30876         where __builtin_expect is unavailable.
30877
30878 2012-06-03  David S. Miller  <davem@davemloft.net>
30879
30880         * stdlib/longlong.h: Updated from GCC.
30881
30882 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
30883
30884         [BZ #14042]
30885         * sysdeps/powerpc/powerpc32/mcount.c: New file.
30886         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
30887         __mcount_internal.
30888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
30889         (GLIBC_2.16): Likewise.
30890
30891 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30892
30893         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
30894
30895 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30896
30897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
30898         (default-abi): New variable.
30899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
30900         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
30901         variable.
30902         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
30903         Likewise.
30904         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
30905         Likewise.
30906         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
30907         Likewise.
30908
30909         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
30910         definition.  Document in comment.
30911
30912 2012-06-01  David S. Miller  <davem@davemloft.net>
30913
30914         * stdlib/longlong.h: Updated from GCC.
30915
30916 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30917
30918         [BZ #14117]
30919         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
30920         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
30921         sys/debugreg.h sys/io.h here.
30922         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
30923         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
30924         sys/io.h.
30925         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
30926         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
30927         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
30928         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
30929         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
30930         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
30931
30932         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
30933         Define only if __x86_64__ is defined.
30934
30935 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30936
30937         [BZ #14048]
30938         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
30939         Use int64_t for variable i.
30940         * math/libm-test.inc (fmod_test): Add more tests.
30941
30942         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
30943         z computation is not scheduled after fetestexcept.
30944         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
30945         Use math_force_eval instead of asm to ensure calculation scheduled
30946         before exception test.
30947         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
30948         Ensure a1 + u.d computation is not scheduled after fetestexcept.
30949
30950 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
30951
30952         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
30953         computation is not scheduled after fetestexcept.
30954
30955 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30956
30957         [BZ #14117]
30958         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
30959         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
30960
30961 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30962
30963         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
30964         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
30965
30966 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30967
30968         [BZ #14117]
30969         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
30970         <bits/wordsize.h>.
30971         (__WCHAR_MIN): Support __WORDSIZE == 64.
30972         (__WCHAR_MAX): Likewise.
30973
30974         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
30975         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
30976
30977         [BZ #14183]
30978         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
30979         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
30980
30981         [BZ #14117]
30982         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
30983         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
30984
30985         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
30986         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
30987
30988         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
30989         Defined to 1 if __x86_64__ isn't defined.
30990         (_STAT_VER_LINUX_OLD): New.
30991         (st_atime): Remove duplicate.
30992         (st_mtime): Likewise.
30993         (st_ctime): Likewise.
30994
30995 2012-05-31  David S. Miller  <davem@davemloft.net>
30996
30997         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
30998         entries.
30999
31000 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
31001
31002         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
31003         gen-libm-test.pl.
31004
31005         [BZ #14132]
31006         * elf/dl-reloc.c: Include <_itoa.h>.
31007         (_dl_reloc_bad_type): Remove use of INTUSE.
31008         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
31009         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
31010         * stdio-common/psiginfo.c (psiginfo): Likewise.
31011         * stdio-common/psignal.c (psignal): Likewise.
31012         * string/strsignal.c (strsignal): Likewise.
31013         * include/signal.h (_sys_siglist): Declare hidden proto.
31014         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
31015         INTVARDEF with libc_hidden_data_def.
31016         * stdio-common/itoa-udigits.c: Likewise.
31017         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
31018         (_itoa_lower_digits_internal): Remove declaration.
31019         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
31020         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
31021         (_sys_sigabbrev_internal): Remove aliases.
31022         (_sys_siglist): Define hidden alias.
31023
31024 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
31025
31026         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
31027         bits/sysctl.h.
31028
31029 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31030
31031         [BZ #14117]
31032         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
31033         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
31034
31035         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
31036         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
31037         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
31038         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
31039         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
31040         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
31041
31042         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
31043         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
31044         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
31045
31046         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
31047         with __addr.
31048         (insw): Likewise.
31049         (insl): Likewise.
31050         (outsb): Likewise.
31051         (outsw): Likewise.
31052         (outsl): Likewise.
31053
31054         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
31055         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
31056         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
31057
31058         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
31059         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
31060         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
31061         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
31062         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
31063         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
31064
31065         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
31066         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
31067
31068         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
31069         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
31070
31071         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
31072         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
31073         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
31074
31075         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
31076         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
31077         to ...
31078         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
31079
31080         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
31081         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
31082         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
31083
31084         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
31085         for x86-64.
31086         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
31087
31088 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
31089
31090         * math/math.h (M_El): Use two more decimal places.
31091         (M_LOG2El): Likewise.
31092         (M_LOG10El): Likewise.
31093         (M_LN2l): Likewise.
31094         (M_LN10l): Likewise.
31095         (M_PIl): Likewise.
31096         (M_PI_2l): Likewise.
31097         (M_PI_4l): Likewise.
31098         (M_1_PIl): Likewise.
31099         (M_2_PIl): Likewise.
31100         (M_2_SQRTPIl): Likewise.
31101         (M_SQRT2l): Likewise.
31102         (M_SQRT1_2l): Likewise.
31103
31104 2012-05-31  David S. Miller  <davem@davemloft.net>
31105
31106         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
31107         values between float registers.
31108         * sysdeps/sparc/sparc64/memset.S: Likewise.
31109         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
31110
31111 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
31112
31113         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
31114         -D_FORTIFY_SOURCE=1.
31115         (CPPFLAGS-tst-longjmp_chk.c): Define.
31116         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
31117         (CPPFLAGS-tst-longjmp_chk2.c): Define.
31118         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
31119         CFLAGS-tst-wchar-h.c.
31120
31121 2012-05-31  Marek Polacek  <polacek@redhat.com>
31122
31123         [BZ #14132]
31124         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
31125         __endmntent_internal): Remove declaration.
31126         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
31127         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
31128         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
31129
31130 2012-05-30  David S. Miller  <davem@davemloft.net>
31131
31132         * sysdeps/sparc/sparc32/soft-fp/q_util.c
31133         (___Q_simulate_exceptions): Use real FP ops rather than writing
31134         into the %fsr.
31135         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
31136         Likewise.
31137
31138 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31139
31140         [BZ #14117]
31141         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
31142         * sysdeps/x86/bits/xtitypes.h: This.
31143
31144         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
31145         * sysdeps/x86/bits/wordsize.h: This.
31146
31147         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
31148         * sysdeps/x86/bits/huge_vall.h: This.
31149
31150         * sysdeps/i386/bits/select.h: Removed.
31151         * sysdeps/x86_64/bits/select.h: Renamed to ...
31152         * sysdeps/x86/bits/select.h: This.
31153
31154         * sysdeps/i386/bits/setjmp.h: Removed.
31155         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
31156         * sysdeps/x86/bits/setjmp.h: This.
31157
31158         * sysdeps/i386/bits/mathdef.h: Removed.
31159         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
31160         * sysdeps/x86/bits/mathdef.h: This.
31161
31162 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
31163
31164         [BZ #14132]
31165         * include/sys/socket.h (__connect_internal)
31166         (__libc_sa_len_internal): Remove declaration.
31167         (__connect, __libc_sa_len): Declare hidden_proto.
31168         (SA_LEN): Remove use of INTUSE.
31169         * socket/connect.c: Add libc_hidden_def.
31170         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
31171         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
31172         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
31173         alias.
31174         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
31175         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
31176         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
31177         of adding _internal alias.
31178
31179 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31180
31181         [BZ #14117]
31182         * sysdeps/i386/bits/link.h: Removed.
31183         * sysdeps/i386/bits/linkmap.h: Likewise.
31184         * sysdeps/x86_64/bits/link.h: Renamed to ...
31185         * sysdeps/x86/bits/link.h: This.
31186         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
31187         * sysdeps/x86/bits/linkmap.h: This.
31188
31189         * sysdeps/i386/bits/endian.h: Removed.
31190         * sysdeps/x86_64/bits/endian.h: Renamed to ...
31191         * sysdeps/x86/bits/endian.h: This.
31192
31193         * sysdeps/i386/bits/byteswap.h: Removed.
31194         * sysdeps/i386/bits/byteswap-16.h: Likewise.
31195         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
31196         * sysdeps/x86/bits/byteswap.h: This.
31197         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
31198         * sysdeps/x86/bits/byteswap-16.h: This.
31199         * sysdeps/i386/Implies: Add x86.
31200         * sysdeps/x86_64/Implies: Likewise.
31201
31202 2012-05-30  David S. Miller  <davem@davemloft.net>
31203
31204         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
31205         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
31206         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
31207         (FP_TRAPPING_EXCEPTIONS): Define.
31208         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
31209         (FP_TRAPPING_EXCEPTIONS): Define.
31210         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
31211         subnormals only when inexact has been signalled or underflow
31212         exceptions are enabled.
31213         (_FP_PACK_CANONICAL): Likewise.
31214
31215 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31216
31217         [BZ #14183]
31218         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
31219         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
31220
31221 2012-05-30  Richard Henderson  <rth@twiddle.net>
31222
31223         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
31224         with #ifndef NOT_IN_libc.
31225
31226         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
31227         marked to avoid plt entry.
31228
31229 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31230
31231         [BZ #14112]
31232         * Makeconfig (default-abi): New macro.
31233         (abi-includes): Likewise.
31234         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
31235         $(abi-$(default-abi)-lib-soname) for soname if defined.
31236         ($(common-objpfx)gnu/lib-names.stmp): Generate from
31237         abi-variants.
31238         * Makefile (installed-stubs): Likewise.
31239         * include/stubs-biarch.h: Removed.
31240         * scripts/lib-names.awk: Only handle one library at a time.
31241         * scripts/soversions.awk: Remove WORDSIZE support.
31242         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
31243         entries.
31244         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
31245         Removed.
31246         (syscall-list-default-condition): Likewise.
31247         (syscall-list-default-condition): Likewise.
31248         (syscall-list-includes): Likewise.
31249         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
31250         syscall-list-* with abi-*.  Handle undefined abi-variants.
31251         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
31252         * sysdeps/unix/sysv/linux/i386/Implies: New file.
31253         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
31254         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
31255         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
31256         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
31257         Removed.
31258         (syscall-list-32-options): Likewise.
31259         (syscall-list-32-condition): Likewise.
31260         (syscall-list-64-options): Likewise.
31261         (syscall-list-64-condition): Likewise.
31262         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
31263         macro.
31264         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
31265         Renamed to ...
31266         (abi-*): This.
31267         (abi-64-ld-soname): New macro.
31268         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
31269         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
31270         Renamed to ...
31271         (abi-*): This.
31272         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
31273         * sysdeps/x86_64/x32/shlib-versions: Likewise.
31274
31275 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
31276
31277         * sysdeps/unix/sysv/linux/kernel-features.h
31278         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
31279         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
31280         include <kernel-features.h>.
31281         [!__NR_ftruncate64]: Remove conditional code.
31282         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31283         [__NR_ftruncate64]: Make code unconditional.
31284         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31285         * sysdeps/unix/sysv/linux/truncate64.c: Do not
31286         include <kernel-features.h>.
31287         [!__NR_ftruncate64]: Remove conditional code.
31288         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31289         [__NR_ftruncate64]: Make code unconditional.
31290         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
31292         include <kernel-features.h>.
31293         [!__NR_ftruncate64]: Remove conditional code.
31294         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31295         [__NR_ftruncate64]: Make code unconditional.
31296         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
31298         include <kernel-features.h>.
31299         [!__NR_ftruncate64]: Remove conditional code.
31300         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31301         [__NR_ftruncate64]: Make code unconditional.
31302         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31303
31304         * configure.in (libc_cv_fpie): Weaken to a compile test using
31305         LIBC_TRY_CC_OPTION.
31306         * configure: Regenerated.
31307
31308 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31309
31310         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
31311         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
31312         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
31313         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
31314         Refreshed.
31315         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
31316         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
31317         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
31318         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
31319         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
31320         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
31321         Refreshed.
31322
31323 2012-05-27  David S. Miller  <davem@davemloft.net>
31324
31325         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
31326         (___Q_zero): New.
31327         (__Q_simulate_exceptions): Return void.  Change to simulate
31328         exceptions by writing into the %fsr.
31329         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
31330         (__Qp_handle_exceptions): Likewise.
31331         (numbers): Delete.
31332         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
31333         __Qp_handle_exceptions.
31334         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
31335         __Qp_handle_exceptions.
31336         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31337         as unused and give dummy FP_RND_NEAREST initializer.
31338         (FP_INHIBIT_RESULTS): Define.
31339         (___Q_simulate_exceptions): Update declaration.
31340         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
31341         formatting.
31342         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31343         as unused and give dummy FP_RND_NEAREST initializer.
31344         (__Qp_handle_exceptions): Update declaration.
31345         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
31346         formatting.
31347
31348 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
31349
31350         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
31351         the temporary FPU control word.
31352         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
31353         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
31354         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
31355         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
31356         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
31357         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
31358         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
31359         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
31360         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
31361         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
31362         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31363
31364 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31365
31366         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
31367         fields.
31368
31369 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
31370
31371         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
31372         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
31373         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
31374         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
31375         Likewise.
31376         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
31377         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
31378         Likewise.
31379
31380 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
31381
31382         * po/h.po: Update from translation team.
31383
31384 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
31385
31386         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
31387
31388         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
31389         handling of denormals.
31390         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
31391         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
31392         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31393         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31394         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31395         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
31396         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
31397         Likewise.
31398
31399 2012-05-26  Marek Polacek  <polacek@redhat.com>
31400
31401         [BZ #14152]
31402         * math/libm-test.inc (fma_test): Don't always expect underflow
31403         exception.
31404
31405 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31406
31407         [BZ #12416]
31408         * elf/tst-execstack.c: Include stackinfo.h.
31409         (do_test): Adjust test case to ensure that pthread_getattr_np
31410         behaviour remains the same after marking stack executable.
31411
31412 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31413
31414         * sysdeps/unix/sysv/linux/kernel-features.h
31415         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
31416         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
31417         kernel-features.h.
31418         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31419         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31420         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
31421         kernel-features.h.
31422         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31423         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31424
31425 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
31426
31427         * configure.in: Define the default includes to being none.
31428         * configure: Regenerated.
31429
31430 2012-05-25  Roland McGrath  <roland@hack.frob.com>
31431
31432         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
31433         * sysdeps/x86_64/setjmp.S: Likewise.
31434         * sysdeps/i386/bsd-setjmp.S: Likewise.
31435         * sysdeps/i386/bsd-_setjmp.S: Likewise.
31436         * sysdeps/i386/setjmp.S: Likewise.
31437         * sysdeps/i386/__longjmp.S: Likewise.
31438         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31439         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
31440
31441         * include/stap-probe.h: New file.
31442         * configure.in: Handle --enable-systemtap.
31443         * configure: Regenerated.
31444         * config.h.in (USE_STAP_PROBE): New #undef.
31445         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
31446         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
31447         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
31448
31449 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31450
31451         [BZ #13717]
31452         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
31453         to 2.4.0 where earlier.
31454         * sysdeps/unix/sysv/linux/configure: Regenerated.
31455         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
31456         <kernel-features.h>.
31457         [__ASSUME_32BITUIDS]: Make code unconditional.
31458         [!__ASSUME_32BITUIDS]: Remove conditional code.
31459         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
31460         <kernel-features.h>.
31461         [__ASSUME_32BITUIDS]: Make code unconditional.
31462         [!__ASSUME_32BITUIDS]: Remove conditional code.
31463         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
31464         [__ASSUME_32BITUIDS]: Make code unconditional.
31465         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
31466         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.c: Do not include
31499         <kernel-features.h>.
31500         [__ASSUME_32BITUIDS]: Make code unconditional.
31501         [!__ASSUME_32BITUIDS]: Remove conditional code.
31502         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
31503         <kernel-features.h>.
31504         [__ASSUME_32BITUIDS]: Make code unconditional.
31505         [!__ASSUME_32BITUIDS]: Remove conditional code.
31506         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
31507         <kernel-features.h>.
31508         [__NR_setresgid] (__setresgid): Do not declare.
31509         [__ASSUME_32BITUIDS]: Make code unconditional.
31510         [!__ASSUME_32BITUIDS]: Remove conditional code.
31511         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
31512         <kernel-features.h>.
31513         [__NR_setresuid] (__setresuid): Do not declare.
31514         [__ASSUME_32BITUIDS]: Make code unconditional.
31515         [!__ASSUME_32BITUIDS]: Remove conditional code.
31516         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/i386/setuid.c: Do not include
31549         <kernel-features.h>.
31550         [__ASSUME_32BITUIDS]: Make code unconditional.
31551         [!__ASSUME_32BITUIDS]: Remove conditional code.
31552         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
31553         <kernel-features.h>.
31554         [__ASSUME_32BITUIDS]: Make code unconditional.
31555         [!__ASSUME_32BITUIDS]: Remove conditional code.
31556         * sysdeps/unix/sysv/linux/kernel-features.h
31557         (__ASSUME_SETRESUID_SYSCALL): Remove.
31558         (__ASSUME_SETRESGID_SYSCALL): Likewise.
31559         (__ASSUME_32BITUIDS): Likewise.
31560         (__ASSUME_LDT_WORKS): Likewise.
31561         (__ASSUME_O_DIRECTORY): Likewise.
31562         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
31563         architecture but not kernel version.
31564         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
31565         (__ASSUME_MMAP2_SYSCALL): Likewise.
31566         (__ASSUME_STAT64_SYSCALL): Likewise.
31567         (__ASSUME_IPC64): Likewise.
31568         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
31569         <kernel-features.h>.
31570         [__ASSUME_32BITUIDS]: Make code unconditional.
31571         [!__ASSUME_32BITUIDS]: Remove conditional code.
31572         * sysdeps/unix/sysv/linux/opendir.c: Do not include
31573         <kernel-features.h>.
31574         [__ASSUME_O_DIRECTORY]: Make code unconditional.
31575         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
31576         132096]: Remove conditional code.
31577         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
31578         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
31579         <kernel-features.h>.
31580         [__ASSUME_32BITUIDS]: Make code unconditional.
31581         [!__ASSUME_32BITUIDS]: Remove conditional code.
31582         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
31583         <kernel-features.h>.
31584         [__ASSUME_32BITUIDS]: Make code unconditional.
31585         [!__ASSUME_32BITUIDS]: Remove conditional code.
31586         * sysdeps/unix/sysv/linux/setegid.c: Do not include
31587         <kernel-features.h>.
31588         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
31589         unconditional.
31590         (__setresgid): Do not declare.
31591         [__ASSUME_32BITUIDS]: Make code unconditional.
31592         [!__ASSUME_32BITUIDS]: Remove conditional code.
31593         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
31594         <kernel-features.h>.
31595         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
31596         unconditional.
31597         (__setresuid): Do not declare.
31598         [__ASSUME_32BITUIDS]: Make code unconditional.
31599         [!__ASSUME_32BITUIDS]: Remove conditional code.
31600         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
31601         <kernel-features.h>.
31602         [__ASSUME_32BITUIDS]: Make code unconditional.
31603         [!__ASSUME_32BITUIDS]: Remove conditional code.
31604         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
31605         <kernel-features.h>.
31606         [__ASSUME_32BITUIDS]: Make code unconditional.
31607         [!__ASSUME_32BITUIDS]: Remove conditional code.
31608
31609 2012-05-25  Richard Henderson  <rth@twiddle.net>
31610
31611         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
31612         dl_hwcap to ifunc resolver.
31613         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
31614         elf_ifunc_invoke.
31615         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
31616         dl_hwcap to ifunc resolver.
31617         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
31618
31619 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31620
31621         [BZ #14153]
31622         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
31623         for |x| <= 2**-26, not 2**-57.
31624         * math/libm-test.inc (acos_test): Do not allow spurious underflow
31625         exception.
31626
31627 2012-05-24  Jeff Law  <law@redhat.com>
31628
31629         * stdio-common/Makefile (tests): Add bug25.
31630         * stdio-common/bug25.c: New test.
31631
31632 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31633
31634         [BZ #13576]
31635         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
31636         multiple of MALLOC_ALIGNMENT in size.
31637         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
31638
31639 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31640
31641         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
31642         Require >= 256.
31643         (FILENAME_MAX): Use macro-int-constant.
31644         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
31645         (_IOFBF): Use macro-int-constant.
31646         (_IOLBF): Likewise.
31647         (_IONBF): Likewise.
31648         (SEEK_CUR): Likewise.
31649         (SEEK_END): Likewise.
31650         (SEEK_SET): Likewise.
31651         (TMP_MAX): Likewise.
31652         (EOF): Use macro-int-constant.  Require < 0.
31653         (NULL): Use macro-constant.  Require == 0.
31654         (stdin): Require type to be FILE *.
31655         (stdout): Likewise.
31656         (stderr): Likewise.
31657         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
31658         macro-int-constant.
31659         (EXIT_SUCCESS): Likewise.
31660         (NULL): Use macro-constant.  Require == 0.
31661         (RAND_MAX): Use macro-int-constant.
31662         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
31663         [C99-based standards] (strtof): Require function.
31664         [C99-based standards] (strtold): Likewise.
31665         [C99-based standards] (strtoll): Likewise.
31666         [C99-based standards] (strtoull): Likewise.
31667         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
31668         [ISO || ISO99 || ISO11] (limits.h): Likewise.
31669         [ISO || ISO99 || ISO11] (math.h): Likewise.
31670         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
31671         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
31672         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31673
31674 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
31675
31676         [BZ #14132]
31677         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
31678         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
31679         * intl/dgettext.c (DCGETTEXT): Likewise.
31680         * intl/gettext.c (DCGETTEXT): Likewise.
31681         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
31682         * posix/regex_internal.h (gettext): Likewise.
31683         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
31684         Remove declaration.
31685         * include/argz.h (__argz_count_internal)
31686         (__argz_stringify_internal): Remove declaration.
31687         (__argz_count, __argz_stringify): Declare hidden proto.
31688         * intl/dcgettext.c: Remove use of INTDEF.
31689         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
31690         * string/argz-stringify.c: Likewise.
31691         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31692         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31693         Declare hidden proto.
31694         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31695         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31696         Declare hidden proto.
31697         * include/stdio.h (__asprintf_internal): Don't declare.
31698         (__asprintf): Don't define as macro.  Declare hidden proto.
31699         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
31700         (__fsetlocking): Declare hidden proto.
31701         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
31702         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
31703         hidden proto.
31704         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
31705         (_IO_setlinebuf): Remove use of INTUSE.
31706         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
31707         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
31708         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
31709         Remove declaration.
31710         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
31711         (_IO_do_flush): Remove use of INTUSE.
31712         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
31713         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
31714         (_IO_adjust_column, _IO_least_wmarker)
31715         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
31716         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
31717         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
31718         (_IO_default_doallocate, _IO_wdefault_doallocate)
31719         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
31720         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
31721         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
31722         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
31723         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
31724         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
31725         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
31726         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
31727         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
31728         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
31729         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
31730         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
31731         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
31732         proto.
31733         (_IO_flush_all_internal, _IO_adjust_column_internal)
31734         (_IO_default_uflow_internal, _IO_default_finish_internal)
31735         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
31736         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
31737         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
31738         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
31739         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
31740         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
31741         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
31742         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
31743         (_IO_file_close_internal, _IO_file_close_it_internal)
31744         (_IO_file_underflow_internal, _IO_file_overflow_internal)
31745         (_IO_file_init_internal, _IO_file_attach_internal)
31746         (_IO_file_fopen_internal, _IO_file_read_internal)
31747         (_IO_file_sync_internal, _IO_file_seek_internal)
31748         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
31749         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
31750         (_IO_str_underflow_internal, _IO_str_overflow_internal)
31751         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
31752         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
31753         (_IO_list_all_internal, _IO_link_in_internal)
31754         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
31755         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
31756         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
31757         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
31758         (_IO_do_write_internal, _IO_padn_internal)
31759         (_IO_getline_info_internal, _IO_getline_internal)
31760         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
31761         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
31762         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
31763         (_IO_vfscanf_internal, _IO_vfprintf_internal)
31764         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
31765         (_IO_init_internal, _IO_un_link_internal): Don't declare.
31766         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
31767         with libc_hidden_ver, remove use of INTUSE.
31768         * libio/genops.c: Likewise.
31769         * libio/freopen.c: Likewise.
31770         * libio/freopen64.c: Likewise.
31771         * libio/iofclose.c: Likewise.
31772         * libio/iofdopen.c: Likewise.
31773         * libio/iofflush.c: Likewise.
31774         * libio/iofflush_u.c: Likewise.
31775         * libio/iofgets.c: Likewise.
31776         * libio/iofgets_u.c: Likewise.
31777         * libio/iofopen.c: Likewise.
31778         * libio/iofopncook.c: Likewise.
31779         * libio/iofread.c: Likewise.
31780         * libio/iofread_u.c: Likewise.
31781         * libio/ioftell.c: Likewise.
31782         * libio/iofwrite.c: Likewise.
31783         * libio/iogetline.c: Likewise.
31784         * libio/iogets.c: Likewise.
31785         * libio/iogetwline.c: Likewise.
31786         * libio/iopadn.c: Likewise.
31787         * libio/iopopen.c: Likewise.
31788         * libio/ioseekoff.c: Likewise.
31789         * libio/ioseekpos.c: Likewise.
31790         * libio/iosetbuffer.c: Likewise.
31791         * libio/iosetvbuf.c: Likewise.
31792         * libio/ioungetc.c: Likewise.
31793         * libio/ioungetwc.c: Likewise.
31794         * libio/iovdprintf.c: Likewise.
31795         * libio/iovsprintf.c: Likewise.
31796         * libio/iovsscanf.c: Likewise.
31797         * libio/memstream.c: Likewise.
31798         * libio/obprintf.c: Likewise.
31799         * libio/oldfileops.c: Likewise.
31800         * libio/oldiofclose.c: Likewise.
31801         * libio/oldiofdopen.c: Likewise.
31802         * libio/oldiofopen.c: Likewise.
31803         * libio/oldiopopen.c: Likewise.
31804         * libio/oldstdfiles.c: Likewise.
31805         * libio/putc.c: Likewise.
31806         * libio/setbuf.c: Likewise.
31807         * libio/setlinebuf.c: Likewise.
31808         * libio/stdfiles.c: Likewise.
31809         * libio/strops.c: Likewise.
31810         * libio/vasprintf.c: Likewise.
31811         * libio/vscanf.c: Likewise.
31812         * libio/vsnprintf.c: Likewise.
31813         * libio/vswprintf.c: Likewise.
31814         * libio/wfiledoalloc.c: Likewise.
31815         * libio/wfileops.c: Likewise.
31816         * libio/wgenops.c: Likewise.
31817         * libio/wmemstream.c: Likewise.
31818         * libio/wstrops.c: Likewise.
31819         * libio/__fpurge.c: Likewise.
31820         * libio/__fsetlocking.c: Likewise.
31821         * assert/assert.c: Likewise.
31822         * debug/fgets_chk.c: Likewise.
31823         * debug/fgets_u_chk.c: Likewise.
31824         * debug/fread_chk.c: Likewise.
31825         * debug/fread_u_chk.c: Likewise.
31826         * debug/gets_chk.c: Likewise.
31827         * debug/obprintf_chk.c: Likewise.
31828         * debug/vasprintf_chk.c: Likewise.
31829         * debug/vdprintf_chk.c: Likewise.
31830         * debug/vsnprintf_chk.c: Likewise.
31831         * debug/vsprintf_chk.c: Likewise.
31832         * malloc/mtrace.c: Likewise.
31833         * misc/error.c: Likewise.
31834         * misc/syslog.c: Likewise.
31835         * stdio-common/asprintf.c: Likewise.
31836         * stdio-common/fxprintf.c: Likewise.
31837         * stdio-common/getw.c: Likewise.
31838         * stdio-common/isoc99_fscanf.c: Likewise.
31839         * stdio-common/isoc99_scanf.c: Likewise.
31840         * stdio-common/isoc99_vfscanf.c: Likewise.
31841         * stdio-common/isoc99_vscanf.c: Likewise.
31842         * stdio-common/isoc99_vsscanf.c: Likewise.
31843         * stdio-common/printf-prs.c: Likewise.
31844         * stdio-common/printf_fp.c: Likewise.
31845         * stdio-common/printf_fphex.c: Likewise.
31846         * stdio-common/printf_size.c: Likewise.
31847         * stdio-common/putw.c: Likewise.
31848         * stdio-common/scanf.c: Likewise.
31849         * stdio-common/sprintf.c: Likewise.
31850         * stdio-common/tmpfile.c: Likewise.
31851         * stdio-common/vfprintf.c: Likewise.
31852         * stdio-common/vfscanf.c: Likewise.
31853         * stdlib/strfmon_l.c: Likewise.
31854         * sunrpc/openchild.c: Likewise.
31855         * sunrpc/xdr_stdio.c: Likewise.
31856         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
31857         * sysdeps/mach/hurd/tmpfile.c: Likewise.
31858
31859 2012-05-24  Roland McGrath  <roland@hack.frob.com>
31860
31861         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31862
31863         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
31864         in the third column, to generate for the shared library an IFUNC
31865         that uses _dl_vdso_vsym.
31866         * Makerules (COMPILE.c, compile-stdin.c): New variables.
31867         * Makeconfig (object-suffixes-noshared): New variable.
31868
31869         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
31870         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
31871         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
31872         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
31873
31874         [BZ #14132]
31875         * include/sys/time.h (__gettimeofday): Remove macro.
31876         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
31877         * time/gettimeofday.c (__gettimeofday): Remove #undef.
31878         Remove INTDEF.
31879         (__gettimeofday): Add libc_hidden_def.
31880         (gettimeofday): Add libc_hidden_weak.
31881         * sysdeps/mach/gettimeofday.c: Likewise.
31882         * sysdeps/posix/gettimeofday.c: Likewise.
31883         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
31884         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31885         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
31886         (__gettimeofday_internal): Remove strong_alias.
31887         (__gettimeofday): Add libc_hidden_def.
31888         (gettimeofday): Add libc_hidden_weak.
31889         * sysdeps/unix/syscalls.list (gettimeofday):
31890         Remove __gettimeofday_internal alias.
31891
31892 2012-05-24  Daniel Jacobowitz  <drow@false.org>
31893             H.J. Lu  <hongjiu.lu@intel.com>
31894
31895         [BZ #12495]
31896         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
31897         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
31898         (largebin_index_32_big): New.
31899         (largebin_index): Use it for 16-byte alignment.
31900         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
31901         correction with front_misalign.
31902
31903 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31904
31905         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
31906         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
31907         Likewise.
31908         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
31909         Likewise.
31910         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
31911         Likewise.
31912         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
31913         Likewise.
31914         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
31915         Likewise.
31916         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
31917         Likewise.
31918         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
31919         Likewise.
31920         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
31921         Likewise.
31922         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
31923         Likewise.
31924         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
31925         Likewise.
31926         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
31927         Likewise.
31928         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
31929         Likewise.
31930
31931         * scripts/data/c++-types-x32-linux-gnu.data: New file.
31932         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
31933
31934 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31935
31936         [BZ #10846]
31937         [BZ #14036]
31938         * math/libm-test.inc (exp_test): Add test from bug 14036.
31939         (pow_test): Add test from bug 10846.
31940
31941         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
31942         and other flags.
31943         (special_function): Do not include flags in test name.
31944         (parse_args): Likewise.
31945         * sysdeps/i386/fpu/libm-test-ulps: Update.
31946         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31947         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31948         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31950
31951         * math/gen-libm-test.pl (%beautify): Add entries for underflow
31952         exceptions.
31953         * math/libm-test.inc ("Philosophy"): Update comment about
31954         exception testing.
31955         (UNDERFLOW_EXCEPTION): New macro.
31956         (UNDERFLOW_EXCEPTION_OK): Likewise.
31957         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
31958         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
31959         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
31960         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
31961         (INVALID_EXCEPTION_OK): Update value.
31962         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
31963         (OVERFLOW_EXCEPTION_OK): Likewise.
31964         (IGNORE_ZERO_INF_SIGN): Likewise.
31965         (test_exceptions): Handle underflow exceptions.
31966         (acos_test): Update for underflow exception expectations.
31967         (cexp_test): Likewise.
31968         (clog_test): Likewise.
31969         (clog10_test): Likewise.
31970         (csqrt_test): Likewise.
31971         (ctan_test): Likewise.
31972         (ctanh_test): Likewise.
31973         (exp_test): Likewise.
31974         (exp10_test): Likewise.
31975         (exp2_test): Likewise.
31976         (expm1_test): Likewise.
31977         (fma_test): Likewise.
31978         (j0_test): Likewise.
31979         (jn_test): Likewise.
31980         (nexttoward_test): Likewise.
31981         (pow_test): Likewise.
31982         (scalbn_test): Likewise.
31983         (scalbln_test): Likewise.
31984         (tan_test): Likewise.
31985         (y1_test): Likewise.
31986         * sysdeps/i386/fpu/libm-test-ulps: Update.
31987         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31988
31989 2012-05-23  David S. Miller  <davem@davemloft.net>
31990
31991         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
31992         (__libc_sigaction): Remove unused local variables.
31993
31994 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31995
31996         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
31997
31998 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
31999
32000         mktime: avoid signed integer overflow
32001         * time/mktime.c (__mktime_internal): Do not mishandle the case
32002         where diff == INT_MIN.
32003
32004         mktime: simplify computation of average
32005         * time/mktime.c (ranged_convert): Use new time_t_avg function
32006         instead of rolling our own (probably-slower) code.
32007
32008         mktime: do not assume signed right shift propagates sign bit
32009         * time/mktime.c (isdst_differ): New static function.
32010         (__mktime_internal): No need to normalize tm_isdst now.
32011         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
32012         tm_isdst values.
32013
32014         mktime: merge another wrapv change from gnulib
32015         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
32016         from some compilers.
32017
32018         mktime: remove incorrect attempt at unusual arithmetics
32019         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
32020         The code didn't really work on such machines anyway.
32021         (TYPE_MINIMUM): Assume two's complement.
32022         (twos_complement_arithmetic): Verify that long_int and time_t
32023         are two's complement (or unsigned, in the latter case).
32024
32025         mktime: check signed shifts on long_int and time_t, too
32026         * time/mktime.c (SHR): Check that shifts work as desired
32027         on the types long_int and time_t too, as SHR is used on
32028         such types.
32029
32030         mktime: do not assume 'long' is wide enough
32031         * time/mktime.c (verify): Move decl up.
32032         (long_int): New type.
32033         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
32034         to remove assumption in the code that 'long' is wide enough to
32035         store year values.  This assumption is not true on x32 and on
32036         some non-glibc platforms.
32037
32038         mktime: merge wrapv change from gnulib
32039         * time/mktime.c (WRAPV): New macro.
32040         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
32041         (guess_time_tm, __mktime_internal): Do not assume that signed
32042         integer overflow wraps around; modern compilers generate code
32043         where this assumption is no longer valid.
32044
32045 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32046
32047         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32048         Replace "jmp L(pseudo_end)" with "ret".
32049         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
32050         Likewise.
32051
32052 2012-05-23  Andreas Jaeger  <aj@suse.de>
32053
32054         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
32055         * sysdeps/unix/sysv/linux/poll.c: Remove file.
32056
32057 2012-05-23  Andreas Jaeger  <aj@suse.de>
32058             Maximilian Attems  <max@stro.at>
32059
32060         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
32061         New macros.
32062
32063 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32064
32065         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
32066         code so that pseudo_end is just ret and the stack pointer is
32067         correct also for static library in error case.
32068
32069 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
32070
32071         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
32072         move to syscalls.list.
32073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
32074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32077
32078         * manual/install.texi (Running make install): Do not mention Linux
32079         kernel version for which pt_chown is not needed.
32080         (Linux): Do not mention problems with nscd with 2.0 kernels.
32081         * INSTALL: Regenerated.
32082
32083 2012-05-23  Andreas Jaeger  <aj@suse.de>
32084
32085         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
32086         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
32087         macro.
32088         * sysdeps/unix/sysv/linux/s390/bits/mman.h
32089         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32090         * sysdeps/unix/sysv/linux/sh/bits/mman.h
32091         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32092         * sysdeps/unix/sysv/linux/i386/bits/mman.h
32093         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32094         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
32095         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32096         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
32097         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32098         * sysdeps/unix/sysv/linux/bits/in.h
32099         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
32100
32101 2012-05-22  Roland McGrath  <roland@hack.frob.com>
32102
32103         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
32104         (PREPARE_VERSION): Just use assert instead, it will be elided
32105         under [NDEBUG] anyway.
32106
32107 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32108
32109         * sysdeps/unix/sysv/linux/Makefile: Include
32110         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
32111         (sysdep_routines): Remove sysctl.
32112         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
32113         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
32114         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
32115         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
32116         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
32117
32118 2012-05-22  Andreas Jaeger  <aj@suse.de>
32119
32120         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
32121         that pseudo_end is just ret and the stack pointer is correct also
32122         for static library in error case.
32123
32124 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
32125
32126         [BZ #14122]
32127         * nss/nsswitch.c (defconfig_entries): New variable.
32128         (__nss_database_lookup): Don't leak defconfig entries.
32129         (nss_parse_service_list): Don't leak on error paths.
32130         (free_database_entries): New function.
32131         (free_defconfig): New function.
32132         (free_mem): Move common code to free_database_entries.
32133
32134 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32135
32136         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
32137         Add arch_prctl.
32138         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
32139
32140         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32141         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
32142         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
32143         New macro.
32144         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
32145         (INTERNAL_SYSCALL_TYPES): Likewise.
32146         (LOAD_ARGS_TYPES_[1-6]): Likewise.
32147         (LOAD_REGS_TYPES_[1-6]): Likewise.
32148         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
32149         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
32150
32151 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32152
32153         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
32154         copysignl for GLIBC_2_0.
32155         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
32156         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
32157         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
32158         logbl for GLIBC_2_0.
32159         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
32160         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
32161
32162 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32163
32164         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
32165         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32166
32167         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32168         Use "neg %eax".
32169
32170         * time/mktime.c: Update copyright years.
32171
32172 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32173
32174         mktime: merge comment-quoting-style change from gnulib
32175         * time/mktime.c: Quote 'like this' in comments.
32176         The GNU coding standards suggest that we no longer quote `like this',
32177         as "`" and "'" are typically rendered asymmetrically nowadays.
32178         The typical gnulib style is to quote 'like this' when quoting
32179         code, and "like this" when quoting English.
32180
32181         * time/mktime.c (compile-command): Add "-I.".
32182
32183         mktime: merge mktime-internal.h change from gnulib
32184         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
32185
32186         mktime: merge time_r change from gnulib
32187         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
32188
32189         mktime: merge DEBUG change from gnulib
32190         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
32191         case system <time.h> has a #define.
32192
32193         mktime: merge <sys/types.h> change from gnulib
32194         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
32195         since <time.t> is now guaranteed to define time_t.
32196
32197         mktime: merge HAVE_CONFIG_H change from gnulib
32198         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
32199
32200 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32201
32202         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32203         Use "neg %eax".
32204
32205         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
32206         __rlim_t cast.
32207         (struct rusage): Use anonymous union to pad each field to
32208         __syscall_slong_t.
32209
32210 2012-05-21  David S. Miller  <davem@davemloft.net>
32211
32212         * Makefules (o-iterator): Remove .s cases.
32213         (compile-command.s): Delete.
32214         (COMPILE.s): Delete.
32215         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
32216
32217 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
32218
32219         * configure.in (libc_cv_predef_stack_protector): Only consider
32220         "foobar" and "__stack_chk_fail" lines in libc_undefs.
32221         * configure: Regenerated.
32222
32223 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32224
32225         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32226         New macro.  Use R*LP on int and pointer.
32227         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
32228         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
32229         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
32230         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
32231
32232         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
32233         [__WORDSIZE_TIME64_COMPAT32] instead of
32234         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
32235         (struct utmp): Likewise.
32236         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
32237         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
32238         Renamed to ...
32239         (__WORDSIZE_TIME64_COMPAT32): This.
32240         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
32241         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
32242         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
32243         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
32244         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
32245         (__WORDSIZE_TIME64_COMPAT32): New macro.
32246
32247 2012-05-21  Andreas Jaeger  <aj@suse.de>
32248
32249         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
32250         only if [SHARED]. Add prototype for __wcschr_ia32.
32251
32252 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32253
32254         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
32255         of %rbp unmolested in the jmp_buf while mangling the low bits.
32256         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
32257         unmolested high bits of %rbp while demangling the low bits.
32258         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32259
32260 2012-05-21  Andreas Jaeger  <aj@suse.de>
32261
32262         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
32263         * sunrpc/svc_simple.c: Use it for registerrpc.
32264         * sunrpc/xcrypt.c: Use it for passwd2des.
32265
32266         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
32267
32268 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32269
32270         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
32271         Don't define if [__SYSCALL_WORDSIZE != 32].
32272         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
32273         New macro.
32274
32275 2012-05-21  Bruno Haible  <bruno@clisp.org>
32276             Andreas Jaeger  <aj@suse.de>
32277
32278         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
32279         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
32280         inptr and inend for must_buffer_ch.
32281         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
32282         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
32283         * stdio-common/Makefile (tests): Remove bug15.
32284         (bug15-ENV): Remove macro.
32285         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
32286         anymore.
32287
32288 2012-05-19  Andreas Jaeger  <aj@suse.de>
32289             Roland McGrath  <roland@hack.frob.com>
32290
32291         * manual/contrib.texi: Completely rewritten. It contains now an
32292         alphabetical list of contributors and their contributions.
32293
32294 2012-05-21  Richard Henderson  <rth@twiddle.net>
32295
32296         * misc/getauxval.c (__getauxval): Use unsigned long int.
32297         * misc/sys/auxv.h: Include <sys/cdefs.h>.
32298         (getauxval): Use unsigned long int.
32299
32300 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32301
32302         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32303
32304 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32305
32306         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
32307         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
32308         __alignof__ (long double).
32309
32310 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32311
32312         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32313
32314 2012-05-20  Richard Henderson  <rth@twiddle.net>
32315
32316         * misc/getauxval.c: New file.
32317         * misc/sys/auxv.h: New file.
32318         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
32319         (routines): Add getauxval.
32320         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
32321         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
32322         * elf/dl-sysdep.c (_dl_auxv): Remove.
32323         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
32324         * elf/dl-support.c (_dl_auxv): New variable.
32325         (_dl_aux_init): Initialize it.
32326         * manual/startup.texi (Auxiliary Vector): New node.
32327         * sysdeps/generic/bits/hwcap.h: New file.
32328         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
32329         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
32330         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
32331         * sysdeps/sparc/sysdep.h: ... here.  Include it.
32332         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
32333         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
32334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32335         Update.
32336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
32337         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
32338         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
32339         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
32340         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32341         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32342         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
32343         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
32344
32345 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32346
32347         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32348
32349 2012-05-19  David S. Miller  <davem@davemloft.net>
32350
32351         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32352
32353 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32354
32355         [BZ #14123]
32356         * math/s_ccosh.c: Include <float.h>
32357         (__ccosh): Avoid internal overflow calculating sinh and cosh
32358         values before multiplying by sin and cos values.
32359         * math/s_ccoshf.c: Likewise.
32360         * math/s_ccoshl.c: Likewise.
32361         * math/s_csin.c: Likewise.
32362         * math/s_csinf.c: Likewise.
32363         * math/s_csinl.c: Likewise.
32364         * math/s_csinh.c: Likewise.
32365         * math/s_csinhf.c: Likewise.
32366         * math/s_csinhl.c: Likewise.
32367         * math/libm-test.inc (ccos_test): Add more tests.
32368         (ccosh_test): Likewise.
32369         (csin_test): Likewise.
32370         (csinh_test): Likewise.
32371         * sysdeps/i386/fpu/libm-test-ulps: Update.
32372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32373
32374 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
32375
32376         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
32377         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
32378
32379         * sysdeps/x86_64/x32/_itoa.h: Add comment.
32380
32381 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32382
32383         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
32384         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
32385         * sysdeps/powerpc/soft-fp/Versions: Likewise.
32386         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
32387         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
32388         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
32389         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
32390         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
32391         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
32392         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
32393         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
32394         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
32395         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
32396         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
32397         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
32398         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
32399         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
32400         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
32401         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
32402         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
32403         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
32404         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
32405         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
32406         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
32407         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
32408         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
32409         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
32410         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
32411         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
32412         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
32413         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
32414
32415 2012-05-18  Andreas Jaeger  <aj@suse.de>
32416
32417         * csu/.gitignore: Delete.
32418
32419 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32420
32421         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
32422         (timex): Use __syscall_slong_t.
32423
32424 2012-05-18  Andreas Jaeger  <aj@suse.de>
32425             Carlos O'Donell  <carlos_odonell@mentor.com>
32426
32427         * manual/install.texi (Configuring and compiling): Update
32428         description about files modified in the source directory.
32429         * INSTALL: Regenerated.
32430
32431 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32432
32433         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
32434         value.  Use "or" to set return value to -1.
32435         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
32436         negate return value.
32437
32438 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32439
32440         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
32441         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
32442         failure if the compiler has Graphite support disabled.
32443         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
32444         Likewise.
32445         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
32446         (CFLAGS-memmove.c): Likewise.
32447         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
32448         Likewise.
32449
32450 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32451
32452         * sysdeps/x86_64/x32/_itoa.h: New file.
32453
32454         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
32455         getdents system call only if kernel and user dirents have the
32456         same d_ino and d_off.
32457
32458         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
32459         LLONG_MAX != LONG_MAX.
32460         (_itoa_word): Use _ITOA_WORD_TYPE on value.
32461         (_fitoa_word): Likewise.
32462
32463         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
32464         years.
32465         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
32466         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
32467         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
32468
32469         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
32470         include <bits/wordsize.h>.  Check __x86_64__ instead of
32471         __WORDSIZE.
32472         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
32473         if __x86_64__ is defined.  Use anonymous union on fpstate.
32474
32475         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
32476         anonymous union.
32477
32478 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
32479
32480         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
32481         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
32482         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
32483         Refer to _rtld_local_ro instead of _rtld_global_ro.
32484         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
32485         Likewise.
32486         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
32487         Likewise.
32488         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
32489         Likewise.
32490         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
32491         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
32492         of _rtld_global, and rtld_progname instead of _dl_argv[0].
32493
32494         * sysdeps/powerpc/powerpc32/dl-machine.c
32495         (__elf_machine_runtime_setup) [PROF]: Don't reference
32496         _dl_prof_resolve.
32497
32498 2012-05-18  Andreas Jaeger  <aj@suse.de>
32499
32500         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
32501         function only available for GCCs before 3.4 since GCC 3.4
32502         introduced a builtin.
32503         (lrint): Likewise.
32504         (llrintf): Likewise.
32505         (llrint): Likewise.
32506         (fmaxf): Likewise.
32507         (fmax): Likewise.
32508         (fminf): Likewise.
32509         (fmin): Likewise.
32510         (rint): Likewise.
32511         (rintf): Likewise.
32512         (nearbyint): Likewise.
32513         (nearbyintf): Likewise.
32514         (ceil): Likewise.
32515         (ceilf): Likewise.
32516         (floor): Likewise.
32517         (floorf): Likewise.
32518
32519 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32520
32521         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
32522         on both fields and cast pointer to __syscall_ulong_t.
32523
32524         * bits/types.h (__fsword_t): New type.
32525         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
32526         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
32527         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32528         (__FSWORD_T_TYPE): Likewise.
32529         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32530         (__FSWORD_T_TYPE): Likewise.
32531         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32532         (__FSWORD_T_TYPE): Likewise.
32533         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
32534         (__FSWORD_T_TYPE): Likewise.
32535         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
32536         __SWORD_TYPE with __fsword_t.
32537         (statfs64): Likewise.
32538
32539 2012-05-17  David S. Miller  <davem@davemloft.net>
32540
32541         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
32542
32543 2012-05-17  Andreas Jaeger  <aj@suse.de>
32544
32545         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
32546         warning.
32547
32548 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32549
32550         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
32551
32552 2012-05-17  Andreas Jaeger  <aj@suse.de>
32553
32554         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
32555         when it is used.
32556
32557 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32558
32559         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
32560
32561 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32562
32563         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
32564         * sysdeps/x86_64/tst-mallocalign1.c: New file.
32565
32566 2012-05-17  Andreas Jaeger  <aj@suse.de>
32567             Carlos O'Donell  <carlos_odonell@mentor.com>
32568
32569         [BZ #14059]
32570         * sysdeps/x86_64/multiarch/init-arch.h
32571         (bit_YMM_Usable): Rename to...
32572         (bit_AVX_Usable): ... this.
32573         (bit_FMA4_Usable): New macro.
32574         (bit_XMM_state): New macro.
32575         (bit_YMM_state): New macro.
32576         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
32577         [__ASSEMBLER__] (index_AVX_Usable): ... this.
32578         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
32579         (CPUID_OSXSAVE): New macro.
32580         (CPUID_AVX): New macro.
32581         (CPUID_FMA4): New macro.
32582         (index_YMM_Usable): Rename to...
32583         (index_AVX_Usable): ... this.
32584         (HAS_AVX): Use HAS_ARCH_FEATURE.
32585         (HAS_FMA4): Likewise.
32586         (HAS_YMM_USABLE): Remove.
32587         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32588         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
32589         are present.
32590         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
32591         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
32592         * sysdeps/x86_64/multiarch/Makefile: Likewise.
32593         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
32594         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
32595
32596 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32597
32598         * math/libm-test.c: Support platforms without multiple rounding modes.
32599         * math/bug-nextafter.c: Support platforms without FP exceptions.
32600         * math/bug-nexttoward.c: Likewise.
32601         * math/test-fenv.c: Likewise.
32602         * math/test-misc.c: Likewise.
32603         * stdlib/bug-getcontext.c: Likewise.
32604
32605 2012-05-17  Andreas Jaeger  <aj@suse.de>
32606
32607         * manual/examples/search.c (critter_cmp): Change signature to
32608         avoid warnings.
32609         * manual/string.texi (Collation Functions): Likewise.
32610
32611 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32612
32613         * bits/types.h: Fold copyright years.
32614         * bits/typesizes.h: Likewise.
32615         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
32616         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
32617         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
32618         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
32619         * time/time.h: Likewise.
32620
32621 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
32622
32623         [BZ #208]
32624         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
32625         in instead of returning them.  Return void.
32626         (__libc_mallinfo): Accumulate over all arenas.
32627         (__malloc_stats): Adjust for change in int_mallinfo interface.
32628
32629 2012-05-16  Roland McGrath  <roland@hack.frob.com>
32630
32631         [BZ #10375]
32632         * configure.in (NM): Add AC_CHECK_TOOL for it.
32633         (libc_extra_cflags): New substituted variable.
32634         Check for -fstack-protector being used implicitly.
32635         * configure: Regenerated.
32636         * config.make.in (config-extra-cflags): New variable,
32637         gets @libc_extra_cflags@.
32638         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
32639
32640         [BZ #10375]
32641         * configure.in: Check for _FORTIFY_SOURCE being predefined.
32642         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
32643         * configure: Regenerated.
32644         * config.make.in (CPPUNDEFS): New substituted variable.
32645         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
32646         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
32647         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
32648
32649 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32650
32651         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
32652         (mq_attr): Use __syscall_slong_t.
32653
32654 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32655
32656         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
32657         Check __x86_64__ instead of __WORDSIZE.
32658         (_STAT_VER_LINUX): Likewise.
32659         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
32660         __syscall_ulong_t and __syscall_slong_t.
32661         (stat64): Likewise.
32662
32663 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32664
32665         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
32666
32667 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32668
32669         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
32670
32671 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32672
32673         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
32674         __syscall_ulong_t.
32675
32676         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
32677         include <bits/wordsize.h>.  Check __x86_64__ instead of
32678         __WORDSIZE.
32679         (greg_t): Use "__extension__ long long int" if __x86_64__ is
32680         defined.
32681         (mcontext_t): Replace "unsigned long" with "unsigned long long".
32682
32683         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
32684         include <bits/wordsize.h>.  Check __x86_64__ instead of
32685         __WORDSIZE.
32686         (user_regs_struct): Use "__extension__ unsigned long long"
32687         instead of "unsigned long" if __x86_64__ is defined.
32688         (user): Likewise.  Pad after pointer field if __ILP32__ is
32689         defined.
32690
32691 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
32692
32693         * configure.in (makeinfo): Require version 4.5 or later.  Allow
32694         versions 5 to 9.
32695         * configure: Regenerated.
32696         * manual/install.texi (texinfo): Increase version requirement to
32697         4.5 or later.
32698         * INSTALL: Regenerated.
32699
32700         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
32701
32702 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32703
32704         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
32705
32706         * sysdeps/x86_64/x32/ffs.c: New file.
32707
32708         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
32709         __syscall_ulong_t.
32710         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
32711         defined.  Use __syscall_ulong_t.
32712         (shminfo): Use __syscall_ulong_t.
32713         (shm_info): Likewise.
32714
32715         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
32716         __syscall_ulong_t.
32717
32718         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
32719         <bits/wordsize.h>.
32720         (msgqnum_t): Use __syscall_ulong_t.
32721         (msglen_t): Likewise.
32722         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
32723         __syscall_ulong_t.
32724
32725         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
32726         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32727
32728         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
32729
32730         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
32731         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
32732
32733         * sysvipc/sys/msg.h (msgbuf): Replace long int with
32734         __syscall_slong_t.
32735
32736         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
32737         include <bits/wordsize.h>.  Check __x86_64__ instead of
32738         __WORDSIZE.
32739
32740         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
32741         "unsigned long long int" if __x86_64__ is defined.
32742         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
32743
32744         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
32745         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32746         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
32747
32748         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
32749         <stdint.h>.
32750         (GET_PC): Cast to uintptr_t first.
32751         (GET_FRAME): Likewise.
32752         (GET_STACK): Likewise.
32753
32754         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
32755         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
32756         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
32757         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
32758         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
32759         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
32760         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
32761         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
32762         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
32763         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
32764         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
32765         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
32766         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
32767         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
32768         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
32769         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
32770         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
32771         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
32772         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
32773         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
32774         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
32775         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
32776         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
32777         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
32778         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
32779         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
32780         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
32781         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
32782         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
32783
32784 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
32785
32786         * Makerules (+depfiles): Also collect depfiles from .oS in
32787         $(extra-objs).
32788         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
32789         .oS, $(libnldbl-routines)).
32790
32791         * Makerules (native-compile-mkdep-flags): Define.
32792         * sunrpc/Makefile (extra-objs): Add $(addprefix
32793         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
32794         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
32795         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
32796         calling $(make-target-directory).
32797
32798 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32799
32800         * bits/types.h (__snseconds_t): Removed.
32801         * time/time.h (struct timespec): Replace __snseconds_t with
32802         __syscall_slong_t.
32803         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
32804         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
32805         Likewise.
32806         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32807         (__SNSECONDS_T_TYPE): Likewise.
32808         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32809         (__SNSECONDS_T_TYPE): Likewise.
32810         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32811         (__SNSECONDS_T_TYPE): Likewise.
32812
32813 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32814
32815         * sysdeps/mach/hurd/bits/typesizes.h
32816         (__SYSCALL_SLONG_TYPE): New macro.
32817         (__SYSCALL_ULONG_TYPE): Likewise.
32818
32819 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32820
32821         * bits/types.h (__syscall_slong_t): New type.
32822         (__syscall_ulong_t): Likewise.
32823
32824         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
32825         (__SYSCALL_ULONG_TYPE): Likewise.
32826         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32827         (__SYSCALL_SLONG_TYPE): Likewise.
32828         (__SYSCALL_ULONG_TYPE): Likewise.
32829         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32830         (__SYSCALL_SLONG_TYPE): Likewise.
32831         (__SYSCALL_ULONG_TYPE): Likewise.
32832         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32833         (__SYSCALL_SLONG_TYPE): Likewise.
32834         (__SYSCALL_ULONG_TYPE): Likewise.
32835
32836 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32837
32838         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
32839         Add sigaltstack-offsets.sym.
32840         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
32841         <sigaltstack-offsets.h>.
32842         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
32843         longjmp_msg pointer.
32844         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
32845         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
32846         signal stack.
32847         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
32848
32849 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32850
32851         * elf/stackguard-macros.h: Remove file.
32852         * sysdeps/generic/stackguard-macros.h: New file.
32853         * sysdeps/i386/stackguard-macros.h: Likewise.
32854         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
32855         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
32856         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
32857         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
32858         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
32859         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
32860         * sysdeps/x86_64/stackguard-macros.h: Likewise.
32861         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
32862         <elf/stackguard-macros.h>.
32863
32864         [BZ #14109]
32865         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
32866         __aligned__ in attribute.
32867         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
32868         (gregset_t): Likewise.
32869
32870 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32871
32872         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
32873         * sysdeps/x86_64/64/Implies-after: Here.  New file.
32874         * sysdeps/x86_64/x32/Implies-after: New file.
32875
32876 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32877
32878         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
32879         and access return value for _dl_profile_fixup.  Use R10_LP to
32880         load frame size.
32881
32882 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32883
32884         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
32885
32886 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32887
32888         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
32889         * sysdeps/x86_64/x32/sysdep.h: New file.
32890
32891 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32892
32893         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
32894         * sysdeps/x86_64/setjmp.S: Likewise.
32895
32896 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32897
32898         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
32899         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
32900         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
32901         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
32902         remove unused global constant.
32903
32904 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
32905
32906         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
32907         include of <not-cancel.h>.
32908
32909 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32910
32911         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
32912
32913 2012-05-15  Jeff Law  <law@redhat.com>
32914             Andreas Jaeger  <aj@suse.de>
32915
32916         [BZ #13594]
32917         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
32918         out from...
32919         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
32920         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
32921         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
32922         code changing __hst_map_handle.map.
32923
32924 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32925
32926         * configure.in (sysnames): Look for Implies-before and Implies-after
32927         files.
32928         * configure: Regenerated.
32929
32930 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32931
32932         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
32933         8-byte data alignment with LP_SIZE alignment.
32934
32935 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32936
32937         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
32938         into R10_LP.
32939
32940 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32941
32942         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
32943
32944 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32945
32946         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
32947         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
32948         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
32949         Likewise.
32950         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
32951
32952 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32953
32954         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
32955         (stackinfo_sub_sp): Likewise.
32956
32957 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32958
32959         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
32960         RAX_LP.
32961
32962 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32963
32964         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
32965         into R*_LP.
32966
32967 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32968
32969         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
32970         sizes into R*_LP.
32971
32972 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32973
32974         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
32975
32976 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32977
32978         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
32979         into R11_LP and load __x86_64_shared_cache_size_half into
32980         R8_LP.
32981
32982 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32983
32984         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
32985         R8_LP.
32986
32987 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32988
32989         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
32990         logb for POWER7.
32991         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
32992         logbf for POWER7.
32993         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
32994         logbl for POWER7.
32995         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
32996         powerpc32/power7/fpu/s_logb.c via #include.
32997         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
32998         powerpc32/power7/fpu/s_logbf.c via #include.
32999         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
33000         powerpc32/power7/fpu/s_logbl.c via #include.
33001
33002 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
33003
33004         * README.libm: Remove file.
33005
33006 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33007
33008         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
33009         count for x32.  Use R*_LP and omit operand-size suffix.
33010
33011 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33012
33013         * shlib-versions: Move x86_64-.*-linux.* entries to ...
33014         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
33015         * sysdeps/x86_64/x32/shlib-versions: New file.
33016
33017 2012-05-14  Roland McGrath  <roland@hack.frob.com>
33018
33019         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
33020         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
33021         Use _dl_fatal_printf instead.
33022
33023 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33024
33025         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
33026         set if not set by the user.  Do not allow for being unset.
33027         * sysdeps/unix/sysv/linux/configure: Regenerated.
33028
33029 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33030
33031         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
33032         the `q' suffix from lea and replace .quad with ASM_ADDR.
33033
33034 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33035
33036         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
33037         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
33038         instead of $17.
33039         (PTR_DEMANGLE): Likewise.
33040
33041 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33042
33043         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
33044         (LP_OP): Likewise.
33045         (ASM_ADDR): Likewise.
33046         (RAX_LP): Likewise.
33047         (RBP_LP): Likewise.
33048         (RBX_LP): Likewise.
33049         (RCX_LP): Likewise.
33050         (RDI_LP): Likewise.
33051         (RSI_LP): Likewise.
33052         (RSP_LP): Likewise.
33053         (R8_LP): Likewise.
33054         (R9_LP): Likewise.
33055         (R10_LP): Likewise.
33056         (R10_LP): Likewise.
33057         (R11_LP): Likewise.
33058         (R12_LP): Likewise.
33059         (R13_LP): Likewise.
33060         (R14_LP): Likewise.
33061         (R15_LP): Likewise.
33062
33063 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33064
33065         * sysdeps/x86_64/x32/dl-machine.h: New file.
33066
33067 2012-05-14  Andreas Jaeger  <aj@suse.de>
33068
33069         * manual/Makefile (subdir): Remove export of subdir.
33070         (all): Remove target.
33071         (.PHONY): Remove all from list.
33072         (mkinstalldirs): Remove.
33073         (.PHONY): Remove installdirs from list.
33074         ($(inst_infodir)/libc.info): Use make-target-directory.
33075         (installdirs): Remove.
33076         (subdir_%): Remove.
33077         (glibc-targets): Remove.
33078         (lib): Remove.
33079         (stubs): Remove.
33080         ($(objpfx)stubs ../po/manual.pot): Remove.
33081         ($(objpfx)stamp%): Remove.
33082         (make-target-directory): Remove.
33083         (subdir_install): Remove.
33084         (routines): Remove.
33085         (aux): Remove.
33086         (sources): Remove.
33087         (objects): Remove.
33088         (headers): Remove.
33089
33090         [BZ #13750]
33091         * manual/.gitignore: Remove, it's not needed anymore.
33092         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
33093         all files in it.
33094         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
33095         directory.
33096         (texis): Renamed to $(objpfx)texis.
33097         (texis-path): New, contains path to generated files.
33098         (chapters.%): Use texis-path for complete path, add extra argument
33099         libc-texinfo.sh.
33100         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
33101         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
33102         (summary,texi, stamp-summary): Use complete path of
33103         files. Generate files in build dir.
33104         (dir-add.texi): Build in build dir.
33105         (libm-err.texi,stamp-libm-err): Likewise.
33106         (version.texi, stamp-version): Likewise.
33107         (.%c.texi): Likewise.
33108         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
33109         (mostlyclean): Remove target.
33110         (realclean): Remove target.
33111         (generated): Add new variable with contents from mostlyclean and
33112         realclean, remove entries duplicated in common-mostlyclean, add
33113         stamp-libm-err and stamp-version.
33114         (generated-dirs): Add libc directory.
33115         ($(inst_infodir)/libc.info): Install files from build dir.
33116
33117         * manual/install.texi (Configuring and compiling): Adjust since
33118         the info files are not part of the tar ball anymore.
33119
33120 2012-05-14  Andreas Jaeger  <aj@suse.de>
33121
33122         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
33123         variable.
33124
33125 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33126
33127         [BZ #13717]
33128         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
33129         to 2.2.0 where earlier.
33130         * sysdeps/unix/sysv/linux/configure: Regenerated.
33131         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
33132         Remove conditional code.
33133         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
33134         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
33135         Remove conditional code.
33136         [!__NR_lchown]: Likewise.
33137         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33138         [__NR_lchown]: Likewise.
33139         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
33140         comment referencing __ASSUME_LCHOWN_SYSCALL.
33141         * sysdeps/unix/sysv/linux/i386/sigaction.c
33142         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33143         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33144         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
33145         Remove conditional code.
33146         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
33147         (__protocol_available): Remove #if 0 code.
33148         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
33149         conditional code.
33150         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
33151         * sysdeps/unix/sysv/linux/kernel-features.h
33152         (__ASSUME_GETCWD_SYSCALL): Don't define.
33153         (__ASSUME_REALTIME_SIGNALS): Likewise.
33154         (__ASSUME_PREAD_SYSCALL): Likewise.
33155         (__ASSUME_PWRITE_SYSCALL): Likewise.
33156         (__ASSUME_POLL_SYSCALL): Likewise.
33157         (__ASSUME_LCHOWN_SYSCALL): Likewise.
33158         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
33159         non-SPARC.
33160         (__ASSUME_SIOCGIFNAME): Don't define.
33161         (__ASSUME_MSG_NOSIGNAL): Likewise.
33162         (__ASSUME_SENDFILE): Define unconditionally.
33163         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
33164         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
33165         conditional code.
33166         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
33167         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
33168         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33169         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33170         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
33171         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33172         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
33174         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33175         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
33177         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33178         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
33180         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33181         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
33183         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33184         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
33186         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33187         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
33189         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33190         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
33192         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33193         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
33195         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33196         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33197         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
33198         Remove conditional code.
33199         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33200         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33201         Remove conditional code.
33202         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33203         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
33204         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
33205         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33206         Remove conditional code.
33207         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33208         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
33209         Remove conditional code.
33210         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33211         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
33212         Remove conditional code.
33213         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33214         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33215         Remove conditional code.
33216         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33217         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33218         Remove conditional code.
33219         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33220         * sysdeps/unix/sysv/linux/sh/pwrite64.c
33221         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33222         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33223         * sysdeps/unix/sysv/linux/sigaction.c
33224         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33225         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33226         * sysdeps/unix/sysv/linux/sigpending.c
33227         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33228         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33229         * sysdeps/unix/sysv/linux/sigprocmask.c
33230         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33231         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33232         * sysdeps/unix/sysv/linux/sigsuspend.c
33233         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33234         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33235         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
33236         (__libc_missing_rt_sigs): Remove.
33237         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
33238         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
33239         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
33240         Remove conditional code.
33241         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
33242         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
33243         return 1.
33244         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
33245         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
33246         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
33247         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
33248
33249 2012-05-14  Andreas Jaeger  <aj@suse.de>
33250
33251         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
33252         it's not used in glibc.
33253         (__coshm1): Likewise.
33254         (__acosh1p): Likewise.
33255         (__sgn): Likewise.
33256
33257         * manual/string.texi (Copying and Concatenation): Add missing
33258         variable in concat example.
33259         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33260
33261 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33262
33263         [BZ #14103]
33264         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
33265         __builtin_clzl with __builtin_clzll.
33266
33267 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33268
33269         [BZ #14104]
33270         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
33271         libc_freeres_ptr.
33272
33273 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33274
33275         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
33276         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
33277         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
33278         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
33279
33280 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
33281
33282         * NEWS: Update ia64 info.
33283
33284 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
33285
33286         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
33287         used as bcopy.
33288
33289 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
33290
33291         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
33292         * sysdeps/unix/syscalls.list (dup3): Likewise.
33293         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
33294         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
33295
33296 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33297
33298         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
33299         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
33300
33301 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33302
33303         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
33304         thread pointer.
33305         (TLS_IE): Use mov/add instead of movq/addq to load thread
33306         pointer.
33307         (TLS_GD_PREFIX): New.
33308         (TLS_GD): Use it.
33309
33310 2012-05-11  David S. Miller  <davem@davemloft.net>
33311
33312         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
33313         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
33314         (_FPU_SETCW): Likewise.
33315
33316 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33317
33318         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
33319         is 32-byte aligned.
33320
33321 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
33322
33323         [BZ #11837]
33324         * iconvdata/gb18030.c: Update tables.
33325         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
33326         characters specially.
33327         (BODY for TO_LOOP): Add encoding of missing ranges.
33328
33329 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
33330
33331         [BZ #13673]
33332         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
33333         * sysdeps/mach/hurd/dup3.c: Likewise.
33334         * sysdeps/mach/hurd/readlinkat.c: Likewise.
33335         * sysdeps/powerpc/memmove.c:: Likewise.
33336
33337 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33338
33339         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
33340         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
33341
33342 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33343
33344         * elf/elf.h (R_X86_64_RELATIVE64): New.
33345         (R_X86_64_NUM): Updated.
33346         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
33347         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
33348         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
33349         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
33350         tst-quad1pie tst-quad2pie
33351         (modules-names): Add tst-quadmod1 tst-quadmod2.
33352         ($(objpfx)tst-quad1): New dependency.
33353         ($(objpfx)tst-quad2): Likewise.
33354         ($(objpfx)tst-quad1pie): Likewise.
33355         ($(objpfx)tst-quad2pie): Likewise.
33356         * sysdeps/x86_64/tst-quad1.c: New file.
33357         * sysdeps/x86_64/tst-quad1pie.c: New file.
33358         * sysdeps/x86_64/tst-quad2.c: Likewise.
33359         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
33360         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
33361         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
33362         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
33363         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
33364
33365 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33366
33367         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
33368         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
33369         * streams/stropts.h (t_scalar_t): Define type.
33370
33371         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
33372         (_PATH_PRESERVE): Set to "/var/lib".
33373         (_PATH_RWHODIR): Set to "/var/spool/rwho".
33374
33375         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
33376         instead of int.
33377
33378         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
33379         if __dir_mkfile succeeded.
33380
33381         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
33382         checking for _hurd_dtablesize.  Unlock it right after having
33383         finished _hurd_dtable allocation.
33384
33385 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33386
33387         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
33388         * sysdeps/mach/hurd/configure: Regenerated.
33389         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
33390         special-casing to...
33391         * sysdeps/gnu/configure.in: ... this new file.
33392         * sysdeps/unix/sysv/linux/configure: Regenerated.
33393         * sysdeps/gnu/configure: New generated file.
33394
33395         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
33396         for Linux: use nsec instead of usec, as well as:
33397         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
33398         members of type struct timespec.
33399         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
33400         New macros.
33401         (struct stat64): Likewise.
33402         (_STATBUF_ST_NSEC): New macro.
33403         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
33404
33405         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
33406         __strtoul_internal rather than strtoul.
33407
33408 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33409
33410         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
33411         and reject them.
33412
33413 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33414
33415         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
33416         which preserves existing values.
33417         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
33418
33419 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33420
33421         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
33422         TIMEOUT values.  Return EINVAL for NFDS values either negative or
33423         greater than FD_SETSIZE.
33424
33425 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33426
33427         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
33428         allocated, call __vm_protect to finish enabling the existing space, and
33429         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
33430         allocate the remainder.
33431
33432 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33433
33434         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
33435         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
33436
33437 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33438
33439         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
33440         sysdeps/mach/hurd/readlink.c.
33441
33442         * posix/tst-sysconf.c (posix_options): Only use
33443         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
33444         _POSIX_SYNCHRONIZED_IO when they are defined
33445         * sysdeps/mach/hurd/bits/posix_opt.h:
33446         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
33447         (_XOPEN_REALTIME): Undefine macro.
33448         (_XOPEN_REALTIME_THREADS): Undefine macro.
33449         (_XOPEN_SHM): Undefine macro.
33450         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
33451         macro to -1.
33452         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
33453         macro to -1.
33454         (_POSIX_ASYNC_IO): Undefine macro.
33455         (_POSIX_PRIORITIZED_IO): Undefine macro.
33456         (_POSIX_SPIN_LOCKS): Define macro to -1.
33457
33458         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
33459         SA_NODEFER, SA_RESETHAND.
33460         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
33461         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
33462         F_DUPFD_CLOEXEC.
33463
33464 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33465
33466         * elf/Makefile (pldd-modules): Define unconditionally.
33467
33468 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33469
33470         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
33471
33472 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33473
33474         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
33475         Return ENOENT when name is empty.
33476         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
33477
33478 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33479
33480         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
33481
33482         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
33483
33484 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33485
33486         Fix mlock in all cases except non-readable pages.
33487         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
33488         instead of VM_PROT_ALL as parameter to __vm_wire function.
33489
33490         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
33491         (__mkdir): When path is `/', just fail with EEXIST.
33492         * sysdeps/mach/hurd/mkdirat.c: Likewise.
33493
33494 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33495
33496         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
33497         <sys/uio.h> (for writev).
33498         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
33499         and <sys/param.h> (for MIN).
33500
33501 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33502
33503         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
33504         REQUESTED_TIME.  Properly set the remaining time and return EINTR
33505         if interrupted.
33506
33507 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33508
33509         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
33510         Depend on against $(link-rpcuserlibs).
33511
33512 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33513
33514         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
33515         (__libc_stack_end): Do not use attribute_relro.
33516         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
33517         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
33518         to libthread-provided value.
33519         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
33520         attribute_relro.
33521
33522 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33523
33524         [BZ #3748]
33525         * bits/libc-lock.h (__libc_once_get): New macro.
33526         * sysdeps/mach/bits/libc-lock.h: Likewise.
33527         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
33528         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
33529         instead of using implementation details.
33530
33531         * libio/fileops.c: Unconditionally include <kernel-features.h>.
33532         * libio/freopen.c: Likewise.
33533         * libio/freopen64.c: Likewise.
33534         * misc/syslog.c: Likewise.
33535         * nscd/connections.c: Likewise.
33536         * nscd/netgroupcache.c: Likewise.
33537         * sysdeps/posix/getcwd.c: Likewise.
33538
33539 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33540
33541         * math/w_ilogbf.c: Add #include <limits.h>.
33542
33543 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33544
33545         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
33546         path instead of returning without unlocking.
33547
33548         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
33549         immediate-write ioctls.
33550         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
33551
33552 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33553
33554         * sysdeps/mach/hurd/i386/init-first.c (init): Use
33555         __builtin_frame_address instead of making assumptions about the
33556         location of the return address relative to DATA.  Force early load of
33557         the return address.
33558         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
33559         __builtin_frame_address.
33560
33561         dup3 for GNU Hurd.
33562         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
33563         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
33564         implement dup3 and do some further code clean-ups.
33565         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
33566         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
33567
33568 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33569
33570         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
33571
33572         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
33573         HURD_CRITICAL_END around holding _hurd_dtable_lock.
33574         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
33575         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
33576         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
33577         d->port.lock.
33578
33579         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
33580         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
33581         when handler == SIG_ERR, not when handler != SIG_ERR.
33582
33583 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33584
33585         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
33586         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
33587         definitions.
33588
33589         accept4 for GNU Hurd.
33590         * include/sys/socket.h (__libc_accept4): New prototype.
33591         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
33592         to implement __libc_accept4.
33593         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
33594         __libc_accept4.
33595         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
33596
33597         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
33598         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
33599         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
33600         signal-defines.sym.
33601
33602 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33603
33604         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
33605
33606 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33607
33608         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
33609         assertion on O_CLOEXEC flag.
33610         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
33611         * hurd/intern-fd.c: Likewise.
33612         * hurd/port2fd.c: Likewise.
33613
33614 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33615
33616         [BZ #3906]
33617         * bits/in.h (IPV6_PKTINFO): Define new macro.
33618         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
33619
33620 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33621
33622         [BZ #13954]
33623         [BZ #13955]
33624         [BZ #13956]
33625         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
33626         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
33627         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
33628         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
33629         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
33630         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
33631         * math/libm-test.inc (logb_test) : Additional logb tests.
33632
33633 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
33634             Andreas Jaeger  <aj@suse.de>
33635
33636         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
33637         * configure: Regenerated.
33638         * config.h.in (LINK_OBSOLETE_RPC): New macro.
33639         * config.make.in (link-obsolete-rpc): New substituted variable.
33640         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
33641         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
33642         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33643         (shared-only-routines): Don't set it under [link-obsolete-rpc],
33644         so that libc.a contains the symbols.
33645         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33646         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
33647         * sunrpc/auth_none.c: Likewise.
33648         * sunrpc/auth_unix.c: Likewise.
33649         * sunrpc/authdes_prot.c: Likewise.
33650         * sunrpc/authuxprot.c: Likewise.
33651         * sunrpc/clnt_gen.c: Likewise.
33652         * sunrpc/clnt_perr.c: Likewise.
33653         * sunrpc/clnt_raw.c: Likewise.
33654         * sunrpc/clnt_simp.c: Likewise.
33655         * sunrpc/clnt_tcp.c: Likewise.
33656         * sunrpc/clnt_udp.c: Likewise.
33657         * sunrpc/clnt_unix.c: Likewise.
33658         * sunrpc/des_crypt.c: Likewise.
33659         * sunrpc/des_soft.c: Likewise.
33660         * sunrpc/get_myaddr.c: Likewise.
33661         * sunrpc/key_call.c: Likewise.
33662         * sunrpc/key_prot.c: Likewise.
33663         * sunrpc/netname.c: Likewise.
33664         * sunrpc/pm_getmaps.c: Likewise.
33665         * sunrpc/pm_getport.c: Likewise.
33666         * sunrpc/pmap_clnt.c: Likewise.
33667         * sunrpc/pmap_prot.c: Likewise.
33668         * sunrpc/pmap_prot2.c: Likewise.
33669         * sunrpc/pmap_rmt.c: Likewise.
33670         * sunrpc/publickey.c: Likewise.
33671         * sunrpc/rpc_cmsg.c: Likewise.
33672         * sunrpc/rpc_common.c: Likewise.
33673         * sunrpc/rpc_dtable.c: Likewise.
33674         * sunrpc/rpc_prot.c: Likewise.
33675         * sunrpc/rpc_thread.c: Likewise.
33676         * sunrpc/rtime.c: Likewise.
33677         * sunrpc/svc.c: Likewise.
33678         * sunrpc/svc_auth.c: Likewise.
33679         * sunrpc/svc_raw.c: Likewise.
33680         * sunrpc/svc_run.c: Likewise.
33681         * sunrpc/svc_tcp.c: Likewise.
33682         * sunrpc/svc_udp.c: Likewise.
33683         * sunrpc/svc_unix.c: Likewise.
33684         * sunrpc/svcauth_des.c: Likewise.
33685         * sunrpc/xcrypt.c: Likewise.
33686         * sunrpc/xdr.c: Likewise.
33687         * sunrpc/xdr_array.c: Likewise.
33688         * sunrpc/xdr_float.c: Likewise.
33689         * sunrpc/xdr_intXX_t.c: Likewise.
33690         * sunrpc/xdr_mem.c: Likewise.
33691         * sunrpc/xdr_rec.c: Likewise.
33692         * sunrpc/xdr_ref.c: Likewise.
33693         * sunrpc/xdr_sizeof.c: Likewise.
33694         * sunrpc/xdr_stdio.c: Likewise.
33695
33696 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33697
33698         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
33699         change.  Update copyright years.
33700
33701 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33702
33703         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
33704
33705 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
33706             Joseph Myers  <joseph@codesourcery.com>
33707             Paul Pluzhnikov  <ppluzhnikov@google.com>
33708
33709         [BZ #14012]
33710         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
33711         requiring rpcgen.
33712         [cross-compiling] (extra-libs): Likewise.
33713         [cross-compiling] (extra-libs-others): Likewise.
33714         [cross-compiling] (librpcsvc-routines): Likewise.
33715         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
33716         [cross-compiling] (omit-deps): Likewise.
33717         (sunrpc-CPPFLAGS): New variable.
33718         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
33719         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
33720         (cross-rpcgen-objs): New variable.
33721         (extra-objs): Append $(cross-rpcgen-objs).
33722         ($(cross-rpcgen-objs)): New rule.
33723         ($(objpfx)cross-rpcgen): Likewise.
33724         (rpcgen-cmd): Define to use $(built-program-file).  Expand
33725         comment.
33726         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
33727         ($(objpfx)x%.stmp): Likewise.
33728         * sunrpc/proto.h [IS_IN_build] (_): Define.
33729         [IS_IN_build] (_libc_intl_domainname): Likewise.
33730
33731 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33732
33733         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
33734         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
33735         and R_X86_64_TPOFF64.
33736
33737 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33738
33739         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
33740         sysdeps/unix/sysv/syscalls.list.
33741         (stime): Likewise.
33742         (utime): Likewise.
33743         * sysdeps/unix/sysv/syscalls.list: Remove file.
33744
33745 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33746
33747         [BZ #3440]
33748         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
33749         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
33750         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
33751         (__LC_IDENTIFICATION): Make these macros useful in #if
33752         expressions, as required by C99.
33753
33754 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
33755
33756         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
33757         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
33758         after this.
33759
33760 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
33761
33762         * stdlib/longlong.h: Updated from GCC.
33763
33764 2012-05-09  Andreas Jaeger  <aj@suse.de>
33765
33766         * nscd/nscd.c (run_modes): Make named enum, reorder so that
33767         default is first entry.
33768         (run_mode): Set type.
33769         (main): Remove informal message about syslog.
33770         (options): Fix typo.
33771
33772         [BZ #14053]
33773         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
33774         to asm.
33775         (lrint): Likewise.
33776         (llrintf): Likewise.
33777         (llrint): Likewise.
33778         (rint): Likewise.
33779         (rintf): Likewise.
33780         (nearbyint): Likewise.
33781         (nearbyintf): Likewise.
33782
33783 2012-05-09  Andreas Jaeger  <aj@suse.de>
33784             Pedro Alves  <palves@redhat.com>
33785
33786         * nscd/nscd.c (run_mode): Use enum.
33787         (main): Cleanup coding style issue.
33788
33789 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
33790             Andreas Jaeger  <aj@suse.de>
33791
33792         * nscd/nscd.c (go_background): Replaced with...
33793         (run_mode): ... this.
33794         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
33795         (options): Add -F --foreground.
33796         (main): Implement it.
33797         (parse_opt): Parse it.
33798
33799 2012-05-09  Andreas Jaeger  <aj@suse.de>
33800
33801         [BZ #14083]
33802         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
33803         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
33804         -Wconversion warning.
33805         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
33806         Likewise.
33807
33808 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
33809
33810         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
33811         == 0.
33812         (LC_ALL): Use macro-int-constant.
33813         (LC_COLLATE): Likewise.
33814         (LC_CTYPE): Likewise.
33815         (LC_MESSAGES): Likewise.
33816         (LC_MONETARY): Likewise.
33817         (LC_NUMERIC): Likewise.
33818         (LC_TIME): Likewise.
33819         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
33820         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33821         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33822         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
33823         Specify type.
33824         [C99-based standards] (float_t): Expect type.
33825         [C99-based standards] (double_t): Expect type.
33826         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
33827         type.
33828         [C99-based standards] (HUGE_VALL): Likewise.
33829         [C99-based standards] (INFINITY): Likewise.
33830         [C99-based standards] (NAN): Likewise.
33831         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
33832         [C99-based standards] (FP_NAN): Likewise.
33833         [C99-based standards] (FP_NORMAL): Likewise.
33834         [C99-based standards] (FP_SUBNORMAL): Likewise.
33835         [C99-based standards] (FP_ZERO): Likewise.
33836         [C99-based standards] (FP_FAST_FMA): Use
33837         optional-macro-int-constant.  Specify type.  Require == 1.
33838         [C99-based standards] (FP_FAST_FMAF): Likewise.
33839         [C99-based standards] (FP_FAST_FMAL): Likewise.
33840         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
33841         [C99-based standards] (FP_ILOGBNAN): Likewise.
33842         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
33843         Specify type.
33844         [C99-based standards] (MATH_ERREXCEPT): Likewise.
33845         [C99-based standards] (math_errhandling): Specify type.
33846         [ISO99 || ISO11] (signgam): Do not allow.
33847         [non-C99-based standards] (copysignf): Do not allow.
33848         [non-C99-based standards] (exp2f): Likewise.
33849         [non-C99-based standards] (log2f): Likewise.
33850         [non-C99-based standards] (modff): Allow.
33851         [non-C99-based standards] (erff): Do not allow.
33852         [non-C99-based standards] (erfcf): Likewise.
33853         [non-C99-based standards] (gammaf): Likewise.
33854         [non-C99-based standards] (hypotf): Likewise.
33855         [non-C99-based standards] (j0f): Likewise.
33856         [non-C99-based standards] (j1f): Likewise.
33857         [non-C99-based standards] (jnf): Likewise.
33858         [non-C99-based standards] (lgammaf): Likewise.
33859         [non-C99-based standards] (tgammaf): Likewise.
33860         [non-C99-based standards] (y0f): Likewise.
33861         [non-C99-based standards] (y1f): Likewise.
33862         [non-C99-based standards] (ynf): Likewise.
33863         [non-C99-based standards] (isnanf): Likewise.
33864         [non-C99-based standards] (acoshf): Likewise.
33865         [non-C99-based standards] (asinhf): Likewise.
33866         [non-C99-based standards] (atanhf): Likewise.
33867         [non-C99-based standards] (cbrtf): Likewise.
33868         [non-C99-based standards] (expm1f): Likewise.
33869         [non-C99-based standards] (ilogbf): Likewise.
33870         [non-C99-based standards] (log1pf): Likewise.
33871         [non-C99-based standards] (logbf): Likewise.
33872         [non-C99-based standards] (nextafterf): Likewise.
33873         [non-C99-based standards] (remainderf): Likewise.
33874         [non-C99-based standards] (rintf): Likewise.
33875         [non-C99-based standards] (scalbf): Likewise.
33876         [non-C99-based standards] (copysignl): Likewise.
33877         [non-C99-based standards] (exp2l): Likewise.
33878         [non-C99-based standards] (log2l): Likewise.
33879         [non-C99-based standards] (modfl): Allow.
33880         [non-C99-based standards] (erfl): Do not allow.
33881         [non-C99-based standards] (erfcl): Likewise.
33882         [non-C99-based standards] (gammal): Likewise.
33883         [non-C99-based standards] (hypotl): Likewise.
33884         [non-C99-based standards] (j0l): Likewise.
33885         [non-C99-based standards] (j1l): Likewise.
33886         [non-C99-based standards] (jnl): Likewise.
33887         [non-C99-based standards] (lgammal): Likewise.
33888         [non-C99-based standards] (tgammal): Likewise.
33889         [non-C99-based standards] (y0l): Likewise.
33890         [non-C99-based standards] (y1l): Likewise.
33891         [non-C99-based standards] (ynl): Likewise.
33892         [non-C99-based standards] (isnanl): Likewise.
33893         [non-C99-based standards] (acoshl): Likewise.
33894         [non-C99-based standards] (asinhl): Likewise.
33895         [non-C99-based standards] (atanhl): Likewise.
33896         [non-C99-based standards] (cbrtl): Likewise.
33897         [non-C99-based standards] (expm1l): Likewise.
33898         [non-C99-based standards] (ilogbl): Likewise.
33899         [non-C99-based standards] (log1pl): Likewise.
33900         [non-C99-based standards] (logbl): Likewise.
33901         [non-C99-based standards] (nextafterl): Likewise.
33902         [non-C99-based standards] (remainderl): Likewise.
33903         [non-C99-based standards] (rintl): Likewise.
33904         [non-C99-based standards] (scalbl): Likewise.
33905         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33906         [non-C99-based standards] (FP_*): Do not allow.
33907         [C99-based standards] (FP_*): Change to
33908         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33909         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33910         allow.
33911         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
33912         (SIG_ERR): Likewise.
33913         [X/Open-based standards] (SIG_HOLD): Likewise.
33914         (SIG_IGN): Likewise.
33915         (SIGABRT): Use macro-int-constant.  Specify type.  Require
33916         positive value.
33917         (SIGFPE): Likewise.
33918         (SIGILL): Likewise.
33919         (SIGINT): Likewise.
33920         (SIGSEGV): Likewise.
33921         (SIGTER): Likewise.
33922         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
33923         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
33924         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
33925         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
33926         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
33927         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
33928         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
33929         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
33930         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
33931         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
33932         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
33933         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
33934         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
33935         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
33936         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
33937         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
33938         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
33939         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
33940         [X/Open-based standards] (SIGTRAP): Likewise.
33941         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
33942         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
33943         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
33944         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
33945         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33946         allow.
33947
33948 2012-05-08  Ian Wienand  <ianw@vmware.com>
33949
33950         [BZ #14080]
33951         * time/tzset.c (__tzset_parse_tz): Update default rules for
33952         daylight time changes in the Energy Policy Act of 2005.
33953
33954 2012-05-09  Andreas Jaeger  <aj@suse.de>
33955
33956         [BZ #13983]
33957         * elf/ldconfig.c (parse_conf): Change string to make clear that
33958         ldconfig only issued a warning if ld.so.conf does not exist.
33959
33960 2012-05-08  David S. Miller  <davem@davemloft.net>
33961
33962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
33963         movxtod instead of popping the value on the stack.
33964
33965         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33966
33967 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
33968
33969         * config.h.in: Add HAVE_ARM_PCS_VFP.
33970
33971 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
33972
33973         [BZ #13979]
33974         * include/features.h: Warn if user requests __FORTIFY_SOURCE
33975         checking but the checks are disabled for any reason.
33976
33977 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
33978
33979         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
33980         and ELF64_R_TYPE with ELFW(R_TYPE).
33981
33982 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
33983
33984         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
33985         (ulimit): Likewise.
33986
33987         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
33988         (settimeofday): Likewise.
33989
33990 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
33991
33992         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
33993         a struct th_u2 inside the union, and move tu_block/tu_code into
33994         a new th_u3 union of tu_block/tu_code inside of that.  Move
33995         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
33996         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
33997         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
33998         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
33999         (th_stuff): Change to th_u1.tu_stuff.
34000         (th_data): Define.
34001         (th_msg): Change to th_u1.th_u2.tu_data.
34002
34003 2012-05-07  David S. Miller  <davem@davemloft.net>
34004
34005         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34006
34007         [BZ #14074]
34008         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
34009         (SETUP_PIC_REG): Use it.
34010         (SETUP_PIC_REG_LEAF): Use it.
34011
34012 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
34013
34014         [BZ #13885]
34015         [BZ #13923]
34016         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34017         USE_AS_EXPM1L.
34018         (EXPL_FINITE): Likewise.
34019         (FLDLOG): Likewise.
34020         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34021         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34022         e_expl.S.
34023         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34024         USE_AS_EXPM1L.
34025         (EXPL_FINITE): Likewise.
34026         (FLDLOG): Likewise.
34027         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34028         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34029         e_expl.S.
34030         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
34031         test of -max_value argument for long double.
34032         * sysdeps/i386/fpu/libm-test-ulps: Update.
34033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34034
34035 2012-05-06  David S. Miller  <davem@davemloft.net>
34036
34037         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
34038         quad soft-float symbols whose references which are compiler
34039         generated.
34040         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34041
34042 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
34043
34044         [BZ #13884]
34045         [BZ #13914]
34046         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34047         USE_AS_EXP10L.
34048         (EXPL_FINITE): Likewise.
34049         (FLDLOG): Likewise.
34050         (c0): Likewise.
34051         (c1): Likewise.
34052         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34053         Adjust comments for base varying.
34054         (__expl_finite): Change alias to EXPL_FINITE.
34055         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
34056         e_expl.S.
34057         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
34058         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
34059         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
34060         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
34061         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34062         USE_AS_EXP10L.
34063         (EXPL_FINITE): Likewise.
34064         (FLDLOG): Likewise.
34065         (c0): Likewise.
34066         (c1): Likewise.
34067         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34068         Adjust comments for base varying.
34069         (__expl_finite): Change alias to EXPL_FINITE.
34070         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
34071         tests for bugs.
34072         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34073
34074         [BZ #14064]
34075         * math/libm-test.inc (check_float_internal): Correct ulp
34076         calculation for subnormal expected results.
34077
34078 2012-05-06  Andreas Jaeger  <aj@suse.de>
34079
34080         * Makeconfig (+math-flags): New, set to -frounding-math.
34081         (+cflags): Add +math-flags so that all of glibc gets compiled with
34082         it.
34083
34084         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
34085
34086 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
34087
34088         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
34089         Disable one test.
34090
34091         [BZ #13787]
34092         [BZ #13922]
34093         [BZ #14036]
34094         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
34095         (__ieee754_expl): Allow for and saturate large arguments.
34096         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
34097         (u_threshold): Likewise.
34098         (__exp): Call __ieee754_exp before checking for overflow and
34099         underflow.
34100         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
34101         (u_threshold): Likewise.
34102         (__expf): Call __ieee754_expf before checking for overflow and
34103         underflow.
34104         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
34105         (u_threshold): Likewise.
34106         (__expl): Call __ieee754_expl before checking for overflow and
34107         underflow.
34108         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
34109         (__ieee754_expl): Allow for and saturate large arguments.
34110         * math/libm-test.inc (exp_test): Add another test.  Do not allow
34111         missing overflow exception on overflow.
34112         (expm1_test): Do not allow missing overflow exception on overflow.
34113
34114         * sysdeps/i386/fpu/e_expl.c: Move to ...
34115         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
34116         rather than using inline asm.
34117         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
34118         * sysdeps/x86_64/fpu/e_expl.S: Copy from
34119         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
34120
34121         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
34122         (nice): Likewise.
34123         (poll): Likewise.
34124         (signal): Likewise.
34125         (time): Likewise.
34126         (times): Likewise.
34127
34128 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34129
34130         * sysdeps/unix/syscalls.list (adjtime): Add entry from
34131         sysdeps/unix/common/syscalls.list.
34132         (fchmod): Likewise.
34133         (fchown): Likewise.
34134         (ftruncate): Likewise.
34135         (getrusage): Likewise.
34136         (gettimeofday): Likewise.
34137         (setpgid): Likewise.
34138         (setregid): Likewise.
34139         (setreuid): Likewise.
34140         (sigaction): Likewise.
34141         (truncate): Likewise.
34142         (vhangup): Likewise.
34143         * sysdeps/unix/common/syscalls.list: Remove file.
34144         * sysdeps/unix/bsd/Implies: Don't include unix/common.
34145         * sysdeps/unix/sysv/linux/Implies: Likewise.
34146
34147 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
34148
34149         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
34150         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
34151         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
34152         Moved to ...
34153         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
34154         Here.
34155         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
34156         to ...
34157         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
34158         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
34159         to ...
34160         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
34161         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
34162         to ...
34163         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
34164         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
34165         to ...
34166         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
34167         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
34168         to ...
34169         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
34170         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
34171         to ...
34172         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
34173         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
34174         to ...
34175         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
34176         Here.
34177         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
34178         to ...
34179         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
34180         Here.
34181         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
34182         to ...
34183         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
34184         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
34185         Moved to ...
34186         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
34187         Here.
34188         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
34189         to ...
34190         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
34191
34192 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34193
34194         * sysdeps/unix/common/bits/dirent.h: Remove file.
34195         * sysdeps/unix/common/bits/fcntl.h: Likewise.
34196
34197         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
34198         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
34199         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
34200         * sysdeps/unix/bsd/isatty.c: Likewise.
34201         * sysdeps/unix/bsd/tcdrain.c: Likewise.
34202         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
34203         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
34204
34205 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34206
34207         [BZ #13563]
34208         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
34209         long double comparison inaccuracies.
34210         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
34211         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34212
34213 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
34214
34215         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
34216         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
34217
34218 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34219
34220         [BZ #14049]
34221         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
34222         nonzero digits before rounding a hex value.
34223         * stdlib/tst-strtod.c (tests): Add another test.
34224
34225 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34226
34227         * sysdeps/s390/fpu/libm-test-ulps: Update.
34228
34229 2012-05-03  Andreas Jaeger  <aj@suse.de>
34230
34231         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
34232         does not get optimized out.
34233         (malloc_opt_barrier): New.
34234
34235 2012-05-03  Andreas Jaeger  <aj@suse.de>
34236             Roland McGrath  <roland@hack.frob.com>
34237
34238         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
34239         intermediate file deletion.
34240         (generated): Add .symlist files.
34241
34242 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
34243
34244         [BZ #13775]
34245         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
34246         Redirect under this condition.
34247         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34248         [__USE_GNU] (__dprintf_chk): Not under this condition.
34249         [__USE_GNU] (__vdprintf_chk): Likewise.
34250         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
34251         under this condition.
34252         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34253         [__USE_XOPEN2K8] (dprintf): Define under this condition.
34254         [__USE_XOPEN2K8] (vdprintf): Likewise.
34255         [__USE_GNU] (__dprintf_chk): Not under this condition.
34256         [__USE_GNU] (__vdprintf_chk): Likewise.
34257         [__USE_GNU] (dprintf): Likewise.
34258         [__USE_GNU] (vdprintf): Likewise.
34259
34260 2012-05-03  Roland McGrath  <roland@hack.frob.com>
34261
34262         * elf/Makefile (common-generated): Set this instead of generated for
34263         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
34264         $(all-built-dso)-derived lists.
34265
34266 2012-05-03  Andreas Jaeger  <aj@suse.de>
34267
34268         * sysdeps/i386/fpu/libm-test-ulps: Update.
34269
34270         * FAQ: Removed.
34271         * FAQ.in: Likewise.
34272         * scripts/gen-FAQ.pl: Likewise.
34273         * manual/install.texi (Installation): Point to online location of
34274         FAQ.
34275         * Makefile (files-for-dist): Remove FAQ.
34276         (FAQ): Remove.
34277
34278 2012-05-02  Allan McRae  <allan@archlinux.org>
34279
34280         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
34281         (LDFLAGS-reldepmod5.so): Likewise.
34282         (LDFLAGS-reldep6mod1.so): Likewise.
34283         (LDFLAGS-reldep6mod4.so): Likewise.
34284         (LDFLAGS-reldep8mod3.so): Likewise.
34285         (LDFLAGS-unload4mod1.so): Likewise.
34286         (LDFLAGS-unload4mod2.so): Likewise.
34287         (LDFLAGS-tst-initorder): Likewise.
34288         (LDFLAGS-tst-initordera2.so): Likewise.
34289         (LDFLAGS-tst-initordera3.so): Likewise.
34290         (LDFLAGS-tst-initordera4.so): Likewise.
34291         (LDFLAGS-tst-initorderb2.so): Likewise.
34292         (LDFLAGS-noload): Likewise.
34293         (LDFLAGS-next): Likewise.
34294         (LDFLAGS-order2mod1.so): Likewise.
34295         (LDFLAGS-order2mod2.so): Likewise.
34296         (LDFLAGS-tst-initorder2): Likewise.
34297         (LDFLAGS-tst-initorder2a.so): Likewise.
34298         (LDFLAGS-tst-initorder2b.so): Likewise.
34299         (LDFLAGS-tst-initorder2c.so): Likewise.
34300         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
34301
34302 2012-05-02  David S. Miller  <davem@davemloft.net>
34303
34304         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34305
34306 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
34307
34308         [BZ #14055]
34309         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
34310
34311 2012-05-02  Andreas Jaeger  <aj@suse.de>
34312
34313         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
34314         since we manipulate rounding mode.
34315         (CPPFLAGS-test-idouble.c): Likewise.
34316         (CPPFLAGS-test-ifloat.c): Likewise.
34317         (CFLAGS-test-ldouble.c): Likewise.
34318         (CFLAGS-test-double.c): Likewise.
34319         (CFLAGS-test-float.c): Likewise.
34320         (CFLAGS-test-misc.c): Likewise.
34321         (CFLAGS-test-test-fenv.c): Likewise.
34322
34323 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34324
34325         [BZ #2550]
34326         [BZ #2570]
34327         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
34328         comparisons to determine direction to adjust input.
34329
34330 2012-05-01  Roland McGrath  <roland@hack.frob.com>
34331
34332         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
34333         output to the target.
34334
34335         * scripts/localplt.awk: New file.
34336         * elf/Makefile ($(objpfx)check-localplt): Target removed.
34337         (check-localplt-CFLAGS): Variable removed.
34338         ($(all-built-dso:=.jmprel)): New static pattern rule.
34339         (generated): Add those targets.
34340         (localplt-built-dso): New variable.
34341         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
34342
34343         * elf/check-localplt.c: File removed.
34344
34345         * scripts/check-execstack.awk: New file.
34346         * elf/Makefile ($(objpfx)check-execstack): Target removed.
34347         (check-execstack-CFLAGS): Variable removed.
34348         ($(objpfx)check-execstack.h): Target removed.
34349         ($(objpfx)execstack-default): New target.
34350         (generated): Add that instead of check-execstack.h.
34351         ($(all-built-dso:=.phdr)): New static pattern rule.
34352         (generated): Add those targets.
34353         * elf/check-execstack.c: File removed.
34354
34355         * scripts/check-textrel.awk: New file.
34356         * elf/Makefile ($(objpfx)check-textrel): Target removed.
34357         (check-textrel-CFLAGS): Variable removed.
34358         (all-built-dso): Use := to define.o
34359         ($(all-built-dso:=.dyn)): New static pattern rule.
34360         (generated): Add those targets.
34361         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
34362         * config.make.in (READELF): New substituted variable.
34363         * elf/check-textrel.c: File removed.
34364
34365 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34366
34367         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34368         allow.
34369         * conform/data/ctype.h-data [C99-based standards] (isblank):
34370         Expect function.
34371         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
34372         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
34373         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34374         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
34375         Specify type.  Require positive value.
34376         (EILSEQ): Likewise.
34377         (ERANGE): Likewise.
34378         [ISO || POSIX] (EILSEQ): Do not expect.
34379         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
34380         Specify type.  Require positive value.
34381         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
34382         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
34383         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
34384         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
34385         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
34386         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
34387         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
34388         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
34389         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
34390         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
34391         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
34392         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
34393         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
34394         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
34395         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
34396         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
34397         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
34398         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
34399         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
34400         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
34401         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
34402         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
34403         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
34404         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
34405         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
34406         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
34407         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
34408         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
34409         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
34410         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
34411         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
34412         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
34413         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
34414         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
34415         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
34416         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
34417         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
34418         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
34419         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
34420         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
34421         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
34422         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
34423         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
34424         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
34425         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
34426         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
34427         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
34428         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
34429         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
34430         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
34431         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
34432         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
34433         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
34434         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
34435         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
34436         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
34437         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
34438         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
34439         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
34440         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
34441         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
34442         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
34443         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
34444         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
34445         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
34446         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
34447         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
34448         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
34449         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
34450         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
34451         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
34452         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
34453         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
34454         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
34455         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
34456         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
34457         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
34458         Require >= 2.
34459         (FLT_ROUNDS): Expect as macro, not constant.
34460         (FLT_MANT_DIG): Use macro-int-constant.
34461         (DBL_MANT_DIG): Likewise.
34462         (LDBL_MANT_DIG): Likewise.
34463         (FLT_DIG): Likewise.
34464         (DBL_DIG): Likewise.
34465         (LDBL_DIG): Likewise.
34466         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
34467         (DBL_MIN_EXP): Likewise.
34468         (LDBL_MIN_EXP): Likewise.
34469         (FLT_MAX_EXP): Use macro-int-constant.
34470         (DBL_MAX_EXP): Likewise.
34471         (LDBL_MAX_EXP): Likewise.
34472         (FLT_MAX_10_EXP): Likewise.
34473         (DBL_MAX_10_EXP): Likewise.
34474         (LDBL_MAX_10_EXP): Likewise.
34475         (FLT_MAX): Use macro-constant.
34476         (DBL_MAX): Likewise.
34477         (LDBL_MAX): Likewise.
34478         (FLT_EPSILON): Use macro-constant.  Give upper bound.
34479         (DBL_EPSILON): Likewise.
34480         (LDBL_EPSILON): Likewise.
34481         (FLT_MIN): Likewise.
34482         (DBL_MIN): Likewise.
34483         (LDBL_MIN): Likewise.
34484         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
34485         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
34486         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
34487         [ISO11] (FLT_HAS_SUBNORM): Likewise.
34488         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
34489         [ISO11] (DBL_DECIMAL_DIG): Likewise.
34490         [ISO11] (FLT_DECIMAL_DIG): Likewise.
34491         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
34492         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
34493         [ISO11] (FLT_TRUE_MIN): Likewise.
34494         [ISO11] (LDBL_TRUE_MIN): Likewise.
34495         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34496         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
34497         (SCHAR_MIN): Use macro-int-constant.  Specify type.
34498         (SCHAR_MAX): Likewise.
34499         (UCHAR_MAX): Likewise.
34500         (CHAR_MIN): Likewise.
34501         (CHAR_MAX): Likewise.
34502         (MB_LEN_MAX): Use macro-int-constant.
34503         (SHRT_MIN): Use macro-int-constant.  Specify type.
34504         (SHRT_MAX): Likewise.
34505         (USHRT_MAX): Likewise.
34506         (INT_MAX): Likewise.
34507         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
34508         bound negative.
34509         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34510         bound with "U".
34511         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34512         bound with "L".
34513         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
34514         bound negative.  Suffix upper bound with "L".
34515         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34516         bound with "UL".
34517         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
34518         Specify type.
34519         [C99-based standards] (LLONG_MAX): Likewise.
34520         [C99-based standards] (ULLONG_MAX): Likewise.
34521         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
34522         == 0.
34523         [ISO11] (max_align_t): Require type.
34524         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34525
34526         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
34527         from $CFLAGS, without defining away __attribute__ calls.
34528         (checknamespace): Use $CFLAGS_namespace.
34529
34530         * conform/conformtest.pl (@keywords): Only include C99 keywords
34531         for standards based on C99 or C11.
34532
34533         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
34534         Disable tests.
34535         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
34536         UNIX98]: Likewise.
34537
34538         * conform/conformtest.pl: Handle "macro-int-constant" and test for
34539         usability of symbols in #if.
34540
34541         * conform/conformtest.pl: If macro or constant types start
34542         "promoted:", expect the symbol to be of the following type
34543         promoted by the integer promotions.
34544
34545         * conform/conformtest.pl: Parse all "constant" and "macro" lines
34546         in one place.  Also handle "macro-constant".
34547
34548         * conform/conformtest.pl: Only accept expected macro values with
34549         "==".  Parse all "macro" lines in one place.
34550         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
34551
34552         * conform/conformtest.pl: Handle braced types on "constant" lines
34553         instead of handling "typed-constant".
34554         * conform/data/signal.h-data: Use "constant" instead of
34555         "typed-constant".
34556
34557         * conform/conformtest.pl: Handle "optional-" at start of lines in
34558         one place rather than duplicating several cases.  Handle each
34559         format of "macro" line with initial "optional-".
34560
34561         * conform/conformtest.pl: Only accept expected constant or
34562         optional-constant values with "==".  Parse all "constant" lines in
34563         one place.  Parse all "optional-constant" lines in one place.
34564         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
34565         * conform/data/fmtmsg.h-data: Likewise.
34566         * conform/data/netinet/in.h-data: Likewise.
34567         * conform/data/tar.h-data: Likewise.
34568         * conform/data/limits.h-data: Use "==" form on "constant" and
34569         "optional-constant" lines.
34570
34571         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
34572         Use -std=c99 for XOPEN2K.
34573         (@knownproblems): Remove.
34574         (newtoken): Don't check %isknown.
34575
34576         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
34577         Do not expect macro.
34578         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
34579         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
34580         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
34581         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
34582         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
34583         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
34584         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
34585         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
34586         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
34587         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
34588         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
34589         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
34590         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
34591         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
34592         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
34593         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
34594         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
34595         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
34596         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
34597         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
34598         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
34599         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
34600         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
34601         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
34602         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
34603         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
34604         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
34605         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
34606         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
34607         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
34608         [XPG3] (acosh): Likewise.
34609         [XPG3] (asinh): Likewise.
34610         [XPG3] (atanh): Likewise.
34611         [XPG3] (cbrt): Likewise.
34612         [XPG3] (expm1): Likewise.
34613         [XPG3] (ilogb): Likewise.
34614         [XPG3] (log1p): Likewise.
34615         [XPG3] (logb): Likewise.
34616         [XPG3] (nextafter): Likewise.
34617         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
34618         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
34619         [XPG3] (remainder): Likewise.
34620         [XPG3] (rint): Likewise.
34621         [XPG3 || XPG4 || UNIX98] (round): Likewise.
34622         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
34623         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
34624         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
34625         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
34626         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
34627         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
34628         [UNIX98 || XOPEN2K] (scalb): Expect.
34629         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
34630         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
34631         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
34632         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
34633         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
34634         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
34635         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
34636         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
34637         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
34638         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
34639         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
34640         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
34641         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
34642         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
34643         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
34644         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
34645         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
34646         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
34647         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
34648         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
34649         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
34650         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
34651         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
34652         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
34653         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
34654         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
34655         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
34656         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
34657         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
34658         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
34659         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
34660         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
34661         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
34662         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
34663         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
34664         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
34665         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
34666         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
34667         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
34668         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
34669         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
34670         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
34671         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
34672         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
34673         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
34674         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
34675         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
34676         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
34677         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
34678         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
34679         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
34680         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
34681         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
34682         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
34683         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
34684         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
34685         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
34686         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
34687         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
34688         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
34689         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
34690         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
34691         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
34692         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
34693         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
34694         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
34695         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
34696         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
34697         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
34698         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
34699         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
34700         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
34701         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
34702         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
34703         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
34704         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
34705         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
34706         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
34707         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
34708         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
34709         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
34710         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
34711         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
34712         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
34713         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
34714         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
34715         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
34716         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
34717         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
34718         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
34719         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
34720         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
34721         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
34722         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
34723         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
34724         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
34725         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
34726         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
34727         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
34728         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
34729         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
34730         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
34731         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
34732         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
34733         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
34734         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
34735         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
34736         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
34737         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
34738         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
34739         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
34740         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
34741         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
34742         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
34743         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
34744         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
34745         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
34746         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
34747         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
34748         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
34749         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
34750         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
34751         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
34752         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
34753         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
34754         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
34755         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
34756         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
34757         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
34758         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
34759         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
34760         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
34761         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
34762         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
34763         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
34764         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
34765         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
34766
34767         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
34768         _XOPEN_SOURCE_EXTENDED for XPG4.
34769
34770         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
34771
34772         * Makeconfig (localtime): Remove variable.
34773         (inst_localtime-file): Likewise.
34774
34775 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34776
34777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
34778         Update.
34779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
34780         Update.
34781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
34782         Update.
34783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
34784         Update.
34785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
34786         Update.
34787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
34788         Update.
34789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
34790         Update.
34791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
34792         Update.
34793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34794         Update.
34795
34796 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34797
34798         [BZ #2550]
34799         [BZ #2570]
34800         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
34801         comparisons to determine direction to adjust input.
34802         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34803         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
34804         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34805         Likewise.
34806         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34807         Likewise.
34808         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34809         Likewise.
34810         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34811         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34812         Likewise.
34813         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34814         Likewise.
34815         * math/libm-test.inc (nexttoward_test): Add more tests.
34816
34817 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34818
34819         [BZ #14040]
34820         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
34821         in version GLIBC_2.1, not GLIBC_2.0.
34822         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
34823         Likewise.
34824
34825 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
34826
34827         [BZ #13942]
34828         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
34829         (1 - x) * (1 + x).
34830         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34831         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
34832         * math/libm-test.inc (acos_test): Add more tests.
34833         (asin_test): Likewise.
34834         * sysdeps/i386/fpu/libm-test-ulps: Update.
34835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34836
34837         [BZ #14034]
34838         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
34839         of square root.
34840         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
34841         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34842         * math/libm-test.inc (acos_test_tonearest): New function.
34843         (acos_test_towardzero): Likewise.
34844         (acos_test_downward): Likewise.
34845         (acos_test_upward): Likewise.
34846         (asin_test_tonearest): Likewise.
34847         (asin_test_towardzero): Likewise.
34848         (asin_test_downward): Likewise.
34849         (asin_test_upward): Likewise.
34850         (main): Call the new functions.
34851         * sysdeps/i386/fpu/libm-test-ulps: Update.
34852         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34853
34854         [BZ #13884]
34855         [BZ #13924]
34856         * math/e_exp10.c: Include <float.h>.
34857         (__ieee754_exp10): Handle underflow here rather than multiplying
34858         large negative argument by M_LN10.
34859         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
34860         of __ieee754_expf.
34861         * math/e_exp10l.c: Include <float.h>.
34862         (__ieee754_exp10l): Handle underflow here rather than multiplying
34863         large negative argument by M_LN10l.
34864         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
34865         spurious overflow exception on underflow.
34866
34867 2012-04-29  Marek Polacek  <polacek@redhat.com>
34868
34869         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
34870         (__fortify_function): New macro.
34871         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
34872         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
34873         __extern_always_inline.
34874         * libio/bits/stdio2.h: Likewise.
34875         * libio/bits/stdio.h: Likewise.
34876         * string/string.h: Likewise.
34877         * string/bits/string3.h: Likewise.
34878         * include/stdio.h: Likewise.
34879         * stdlib/bits/stdlib.h: Likewise.
34880         * stdlib/stdlib.h: Likewise.
34881         * rt/bits/mqueue2.h: Likewise.
34882         * rt/mqueue.h: Likewise.
34883         * posix/bits/unistd.h: Likewise.
34884         * posix/unistd.h: Likewise.
34885         * io/bits/poll2.h: Likewise.
34886         * io/bits/fcntl2.h: Likewise.
34887         * io/fcntl.h: Likewise.
34888         * io/sys/poll.h: Likewise.
34889         * misc/bits/syslog.h: Likewise.
34890         * misc/bits/syslog-ldbl.h: Likewise.
34891         * misc/sys/syslog.h: Likewise.
34892         * socket/bits/socket2.h: Likewise.
34893         * socket/sys/socket.h: Likewise.
34894         * debug/tst-chk1.c: Likewise.
34895         * wcsmbs/bits/wchar2.h: Likewise.
34896         * wcsmbs/bits/wchar-ldbl.h: Likewise.
34897         * wcsmbs/wchar.h: Likewise.
34898
34899 2012-04-29  Andreas Jaeger  <aj@suse.de>
34900
34901         * Makerules (tests): Remove enable-check-abi protection.
34902         (check-abi-warn): Remove.
34903         (check-abi-%): Remove check-abi-warn usage.
34904
34905         * configure.in: Remove check-abi configure option.
34906         * configure: Regenerated.
34907         * config.make.in (enable-check-abi): Remove.
34908
34909 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
34910
34911         [BZ #14033]
34912         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
34913         double functions to double *_finite functions.
34914
34915         [BZ #13941]
34916         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
34917         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
34918         LDBL_MIN_EXP.
34919         * stdio-common/Makefile (tests): Add tst-sprintf3.
34920         * stdio-common/tst-sprintf3.c: New file.
34921
34922         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
34923         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
34924
34925 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34926
34927         * conform/conformtest.pl: Remove duplicate typed-constant
34928         handling.
34929
34930 2012-04-28  David S. Miller  <davem@davemloft.net>
34931
34932         * Makerules (%.abilist): Add vpath on sysdep_dirs.
34933         (check-abi-%): Remove AWK script prerequisite and explicit
34934         abilist directory.
34935         (check-abi): Rewrite to just diff the symlist with the abilist.
34936         (config-tls, config-abi-config): Delete, no longer used.
34937         (update-abi-%): Remove AWK script and explicit abilist directory.
34938         (update-abi): Rewrite to simply compare and conditionally copy the
34939         symlist and the sysdep abilist file.  Remove update-abi-config
34940         checks.
34941         * abilist/ld.abilist: Remove.
34942         * abilist/libBrokenLocale.abilist: Remove.
34943         * abilist/libanl.abilist: Remove.
34944         * abilist/libcrypt.abilist: Remove.
34945         * abilist/libdl.abilist: Remove.
34946         * abilist/librt.abilist: Remove.
34947         * abilist/libthread_db.abilist: Remove.
34948         * abilist/libutil.abilist: Remove.
34949         * scripts/extract-abilist.awk: Remove.
34950         * scripts/merge-abilist.awk: Remove.
34951         * sysdeps/generic/libcidn.abilist: New file.
34952         * sysdeps/generic/libnss_compat.abilist: New file.
34953         * sysdeps/generic/libnss_db.abilist: New file.
34954         * sysdeps/generic/libnss_dns.abilist: New file.
34955         * sysdeps/generic/libnss_files.abilist: New file.
34956         * sysdeps/generic/libnss_hesiod.abilist: New file.
34957         * sysdeps/generic/libnss_nis.abilist: New file.
34958         * sysdeps/generic/libnss_nisplus.abilist: New file.
34959         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
34960         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
34961         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
34962         file.
34963         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
34964         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
34965         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
34966         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
34967         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
34968         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
34969         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
34970         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
34971         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
34972         file.
34973         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
34974         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
34975         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
34976         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
34977         file.
34978         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
34979         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
34980         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
34981         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
34982         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
34983         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
34984         file.
34985         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
34986         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
34987         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
34988         file.
34989         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
34990         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
34991         New file.
34992         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
34993         New file.
34994         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
34995         New file.
34996         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
34997         New file.
34998         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
34999         New file.
35000         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
35001         New file.
35002         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
35003         New file.
35004         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
35005         New file.
35006         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
35007         New file.
35008         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
35009         New file.
35010         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
35011         New file.
35012         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
35013         New file.
35014         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
35015         New file.
35016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
35017         file.
35018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
35019         New file.
35020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
35021         New file.
35022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
35023         file.
35024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
35025         New file.
35026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
35027         New file.
35028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
35029         file.
35030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
35031         New file.
35032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
35033         New file.
35034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
35035         New file.
35036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
35037         New file.
35038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
35039         New file.
35040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
35041         New file.
35042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
35043         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
35044         file.
35045         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35046         New file.
35047         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
35048         file.
35049         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
35050         file.
35051         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
35052         file.
35053         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
35054         file.
35055         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
35056         file.
35057         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35058         New file.
35059         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
35060         file.
35061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
35062         file.
35063         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35064         New file.
35065         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
35066         file.
35067         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
35068         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
35069         file.
35070         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35071         New file.
35072         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
35073         file.
35074         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
35075         file.
35076         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
35077         file.
35078         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
35079         file.
35080         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
35081         file.
35082         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35083         New file.
35084         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
35085         file.
35086         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
35087         file.
35088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35089         New file.
35090         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
35091         file.
35092         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
35093         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
35094         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
35095         file.
35096         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
35097         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
35098         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
35099         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
35100         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
35101         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
35102         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
35103         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
35104         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
35105         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
35106         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
35107         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
35108         file.
35109         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35110         New file.
35111         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
35112         file.
35113         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
35114         file.
35115         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
35116         file.
35117         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
35118         file.
35119         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
35120         file.
35121         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35122         New file.
35123         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35124         New file.
35125         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
35126         file.
35127         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35128         New file.
35129         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
35130         file.
35131         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
35132         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
35133         file.
35134         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35135         New file.
35136         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
35137         file.
35138         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
35139         file.
35140         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
35141         file.
35142         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
35143         file.
35144         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
35145         file.
35146         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35147         New file.
35148         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35149         New file.
35150         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
35151         file.
35152         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35153         New file.
35154         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
35155         file.
35156
35157 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35158
35159         * conform/conformtest.pl: Fix typo in handling typed-constant from
35160         allow-header.
35161
35162 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35163
35164         * README: Cut down references to pre-2.6 Linux kernels and
35165         Linuxthreads.  Update lists of configurations in libc and ports
35166         and sort alphabetically.  Say "or newer" with Linux kernel version
35167         requirements.
35168
35169         * config.h.in [IS_IN_build]: Allow compiling without optimization.
35170
35171 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
35172
35173         [BZ #887]
35174         * math/libm-test.inc (logb_test_downward): New test to expose
35175         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
35176         rounding mode.
35177
35178 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35179
35180         [BZ #14027]
35181         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
35182         to be done.
35183         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
35184         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
35185
35186 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
35187
35188         * sysdeps/unix/i386/brk.S: Remove file.
35189         * sysdeps/unix/i386/dl-brk.S: Likewise.
35190         * sysdeps/unix/i386/pipe.S: Likewise.
35191         * sysdeps/unix/i386/sigreturn.S: Likewise.
35192         * sysdeps/unix/i386/syscall.S: Likewise.
35193         * sysdeps/unix/i386/vfork.S: Likewise.
35194         * sysdeps/unix/i386/wait.S: Likewise.
35195
35196         * sysdeps/unix/common/tcsendbrk.c: Move to ...
35197         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
35198
35199         * configure.in (arm*-none*): Do not allow without
35200         --enable-hacker-mode.
35201         (netbsd*): Remove case setting base_os.
35202         (386bsd*): Likewise.
35203         (freebsd*): Likewise.
35204         (bsdi*): Likewise.
35205         (osf*): Likewise.
35206         (sunos*): Likewise.
35207         (ultrix*): Likewise.
35208         (newsos*): Likewise.
35209         (dynix*): Likewise.
35210         (*bsd*): Likewise.
35211         (sysv*): Likewise.
35212         (isc*): Likewise.
35213         (esix*): Likewise.
35214         (sco*): Likewise.
35215         (minix*): Likewise.
35216         (irix4*): Likewise.
35217         (irix6*): Likewise.
35218         (solaris[2-9]*): Likewise.
35219         (none): Likewise.
35220         * configure: Regenerated.
35221
35222 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35223
35224         [BZ #11521]
35225         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
35226         overflow or cancellation in calculating denominator.
35227         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
35228         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
35229         down expression to avoid unexpected rounding in newer GCCs.
35230         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
35231
35232 2012-04-26  David S. Miller  <davem@davemloft.net>
35233
35234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
35235         long-double compat symbols.
35236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
35237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
35238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
35239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
35240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
35241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
35242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
35243         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
35244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
35245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
35246         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
35247         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
35248         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
35249
35250 2012-04-25  David S. Miller  <davem@davemloft.net>
35251
35252         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
35253         HWCAP_* values only after the memory barriers have been defined.
35254         (atomic_full_barrier): Define.
35255         (atomic_read_barrier): Define.
35256         (atomic_write_barrier): Define.
35257
35258 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35259
35260         * shlib-versions: Add libgcc_s version information.
35261         * sysdeps/generic/libgcc_s.h: Remove.
35262         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
35263         libgcc_s.h.
35264         * sysdeps/gnu/unwind-resume.c: Likewise.
35265         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
35266
35267 2012-04-25  David S. Miller  <davem@davemloft.net>
35268
35269         * sysdeps/unix/sparc/brk.S: Delete.
35270         * sysdeps/unix/sparc/dl-brk.S: Delete.
35271         * sysdeps/unix/sparc/pipe.S: Delete.
35272         * sysdeps/unix/sparc/sysdep.S: Delete.
35273         * sysdeps/unix/sparc/sysdep.h: Delete.
35274         * sysdeps/unix/sparc/vfork.S: Delete.
35275         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
35276         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
35277         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
35278         (ret_ERRVAL, r0, r1, MOVE): Define.
35279         (JUMPTARGET): Remove.
35280         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
35281         sysdeps/unix/sparc/sysdep.h
35282         (ENTRY, END): Remove.
35283         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
35284
35285 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
35286
35287         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
35288         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
35289         -DIS_IN_build.
35290
35291         * timezone/README: Update upstream location and email address for
35292         tzcode and tzdata.
35293         * timezone/zdump.c: Update from tzcode 2012b.
35294         * timezone/zic.c: Likewise.
35295
35296         * configure.in (libc_cv_as_needed): Remove test.
35297         * configure: Regenerated.
35298         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
35299         conditional definition.
35300         [$(have-as-needed) != yes] (no-as-needed): Likewise.
35301         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
35302         * config.make.in (have-as-needed): Remove variable.
35303
35304 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
35305             Paul Pluzhnikov  <ppluzhnikov@google.com>
35306
35307         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
35308         strings correctly.
35309
35310 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
35311
35312         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
35313         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
35314         * sysdeps/sh/strlen.S: Likewise.
35315
35316 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35317
35318         * sysdeps/unix/fork.S: Remove file.
35319         * sysdeps/unix/i386/fork.S: Likewise.
35320         * sysdeps/unix/sparc/fork.S: Likewise.
35321
35322         * sysdeps/unix/system.c: Remove file.
35323         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
35324
35325         * sysdeps/unix/getegid.S: Remove file.
35326         * sysdeps/unix/geteuid.S: Likewise.
35327
35328 2012-04-24  Roland McGrath  <roland@hack.frob.com>
35329
35330         * scripts/check-localplt.awk: New file.
35331         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
35332         of diff.
35333         * scripts/data/localplt-generic.data: Add a comment.
35334
35335         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
35336         NODE when __dir_mkfile failed.
35337         * sysdeps/mach/hurd/symlinkat.c: Likewise.
35338         Reported by Ludovic Courtès <ludo@gnu.org>.
35339
35340 2012-04-24  Andreas Jaeger  <aj@suse.de>
35341
35342         * Makerules (common-clean): Also remove gen-as-const-headers
35343         files.
35344
35345 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35346
35347         * Makerules (native-compile): Do not change working directory for
35348         build.  Use $(OUTPUT_OPTION) in command.
35349         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
35350
35351 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35352
35353         [BZ #13886]
35354         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
35355         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
35356         * math/libm-test.inc (floor_test): Add more tests.
35357         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
35358
35359 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35360
35361         * sysdeps/unix/getdents.c: Remove file.
35362         * sysdeps/unix/sysv/getdents.c: Likewise.
35363         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
35364
35365         * sysdeps/unix/syscalls.list (madvise): Add syscall from
35366         sysdeps/unix/mman/syscalls.list.
35367         (mmap): Likewise.
35368         (mprotect): Likewise.
35369         (msync): Likewise.
35370         (munmap): Likewise.
35371         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
35372         * sysdeps/unix/mman/syscalls.list: Remove.
35373         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
35374
35375         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
35376         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
35377         * configure: Regenerated.
35378         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
35379         $(libgcc_s_suffix).
35380         * config.make.in (libgcc_s_suffix): Remove variable.
35381
35382 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
35383
35384         * sysdeps/unix/sysv/gethostname.c: Move to ...
35385         * sysdeps/posix/gethostname.c: ... here.
35386
35387         * sysdeps/unix/execve.S: Remove file.
35388
35389         * sysdeps/unix/_exit.S: Remove file.
35390
35391 2012-04-23  Andreas Jaeger  <aj@suse.de>
35392
35393         [BZ #13739]
35394         * manual/Makefile: Remove make dist support, there's no
35395         need for a stand-alone documentation tar ball.
35396         (TEXI2DVI): Define always, it's not in Makeconfig.
35397         (dist): Removed.
35398         (tar-it): Removed.
35399         (edition): Removed.
35400         (glibc-doc-$(edition).tar): Removed
35401         (%.Z): Removed.
35402         (%.gz): Removed.
35403         (%.uu): Removed.
35404         (ETAGS): Remove, it's in Makeconfig.
35405         (move-if-change): Remove, it's in Makeconfig.
35406
35407 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
35408
35409         [BZ #13970]
35410         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
35411         (strtod, strtof, strtold, strtol, strtoul, strtoq)
35412         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
35413         (strtod_l, strtof_l, strtold_l): Remove __wur.
35414         It is not necessarily an error to ignore strtol's return value.
35415         One can reliably look at the stored endptr to decide whether
35416         the number had valid syntax.
35417
35418 2012-04-21  Andreas Jaeger  <aj@suse.de>
35419
35420         [BZ #13739]
35421         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
35422
35423 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
35424
35425         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
35426         * sysdeps/unix/sysv/Versions: Remove file.
35427
35428 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
35429
35430         [BZ #13927]
35431         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35432
35433 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
35434
35435         [BZ #7064]
35436         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
35437         version from __vm86.
35438
35439 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
35440
35441         * sysdeps/unix/common/lxstat.c: Remove file.
35442         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
35443
35444         * sysdeps/unix/sysv/Makefile: Remove file.
35445
35446         * sysdeps/unix/sysv/direct.h: Remove file.
35447
35448         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
35449         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
35450         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
35451         * sysdeps/unix/sysv/bits/signum.h: Likewise.
35452         * sysdeps/unix/sysv/bits/stat.h: Likewise.
35453         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
35454         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
35455
35456         * sysdeps/unix/sysv/setrlimit.c: Remove file.
35457
35458         * sysdeps/unix/xmknod.c: Remove file.
35459         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
35460
35461         * sysdeps/unix/sysv/settimeofday.c: Remove file.
35462
35463         * sysdeps/unix/sysv/i386/time.S: Remove file.
35464
35465         * sysdeps/unix/fxstat.c: Remove file.
35466         * sysdeps/unix/xstat.c: Likewise.
35467         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
35468
35469         * sysdeps/unix/sysv/sigaction.c: Remove file.
35470
35471         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
35472         (sysdep_headers): Remove variable.
35473         [termio.h not in sysdep_headers] (generated): Likewise.
35474         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
35475         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
35476         * sysdeps/unix/sysv/tcdrain.c: Likewise.
35477         * sysdeps/unix/sysv/tcflow.c: Likewise.
35478         * sysdeps/unix/sysv/tcflush.c: Likewise.
35479         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
35480         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
35481         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
35482         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
35483         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
35484
35485         * sysdeps/unix/siglist.c: Remove file.
35486
35487         * sysdeps/unix/getppid.S: Remove file.
35488
35489         * sysdeps/unix/mkdir.c: Remove file.
35490         * sysdeps/unix/rmdir.c: Likewise.
35491
35492 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
35493
35494         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
35495         ERR_MAX value.
35496         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
35497         errlist-compat value.
35498
35499 2012-04-18  David S. Miller  <davem@davemloft.net>
35500
35501         * sysdeps/generic/memcopy.h (reg_char): Delete.
35502         * debug/strcat_chk.c: Use char, not reg_char.
35503         * debug/strcpy_chk.c: Likewise.
35504         * debug/strncat_chk.c: Likewise.
35505         * debug/strncpy_chk.c: Likewise.
35506         * string/memchr.c: Likewise.
35507         * string/memrchr.c: Likewise.
35508         * string/rawmemchr.c: Likewise.
35509         * string/strcat.c: Likewise.
35510         * string/strchr.c: Likewise.
35511         * string/strchrnul.c: Likewise.
35512         * string/strcmp.c: Likewise.
35513         * string/strcpy.c: Likewise.
35514         * string/strncat.c: Likewise.
35515         * string/strncmp.c: Likewise.
35516         * string/strncpy.c: Likewise.
35517
35518 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35519
35520         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
35521         __builtin_memcopy is called when src and dest ranges are known to not
35522         overlap.
35523
35524 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35525
35526         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
35527         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
35528         fwd_align_merge macro call.
35529         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
35530         bwd_align_merge macro call.
35531         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35532
35533 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35534
35535         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
35536         bwd_align_merge macros.
35537         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
35538         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
35539         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35540
35541 2012-04-18  David S. Miller  <davem@davemloft.net>
35542
35543         * sysdeps/sparc/sparc64/memcopy.h: Delete.
35544
35545 2012-04-18  Andreas Jaeger  <aj@suse.de>
35546
35547         [BZ# 6794]
35548         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
35549         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
35550         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35551
35552         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
35553         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
35554         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35555
35556         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
35557         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
35558         Adjust for changed ldbl-128 files.
35559
35560         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
35561         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
35562         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35563
35564 2012-04-17  David S. Miller  <davem@davemloft.net>
35565
35566         * sysdeps/sparc/sparc32/memcopy.h: Delete.
35567
35568 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
35569
35570         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
35571         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
35572         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
35573         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
35574         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
35575         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
35576
35577 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35578
35579         [BZ #6794]
35580         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
35581         * math/libm-test.inc: Add ilogb errno and exception tests.
35582         * math/w_ilogb.c: New file: ilogb wrapper.
35583         * math/w_ilogbf.c: New file: ilogbf wrapper.
35584         * math/w_ilogbl.c: New file: ilogbl wrapper.
35585         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
35586         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
35587         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
35588         exception being thrown with 0.0 as argument.
35589         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
35590         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
35591         exception being thrown with 0.0 as argument.
35592         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
35593         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35594         exception being thrown with 0.0 as argument.
35595         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
35596         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35597         exception being thrown with 0.0 as argument.
35598         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
35599         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
35600         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
35601         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
35602         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
35603         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
35604         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
35605         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
35606         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
35607
35608 2012-04-17  Petr Baudis  <pasky@ucw.cz>
35609
35610         * include/sys/uio.h: Change __vector to __iovec to avoid clash
35611         with altivec.
35612
35613 2012-04-16  Marek Polacek  <polacek@redhat.com>
35614
35615         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
35616
35617 2012-04-16  Marek Polacek  <polacek@redhat.com>
35618
35619         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
35620         operands of fdivp instruction.
35621
35622 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35623
35624         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
35625         * elf/tst-auditmod3b.c: Likewise.
35626         * elf/tst-auditmod4b.c: Likewise.
35627         * elf/tst-auditmod5b.c: Likewise.
35628         * elf/tst-auditmod6b.c: Likewise.
35629         * elf/tst-auditmod6c.c: Likewise.
35630         * elf/tst-auditmod7b.c: Likewise.
35631         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
35632         * sysdeps/x86_64/preconfigure.in: Likewise.
35633         * sysdeps/x86_64/preconfigure: Regenerated.
35634
35635 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35636
35637         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
35638         __ILP32__.
35639
35640 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
35641
35642         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35643         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
35644
35645 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
35646
35647         [BZ #13973]
35648         * locale/iso-639.def: Fix gl language name. Spotted by
35649         Yaron Shahrabani.
35650
35651 2012-04-12  Roland McGrath  <roland@hack.frob.com>
35652
35653         [BZ #2074]
35654         * libio/libio.h (__io_write_fn): Update comment.
35655
35656 2012-04-12  Petr Baudis  <pasky@ucw.cz>
35657
35658         [BZ #2074]
35659         * stdio.texi (Hook Functions): The user provided writer function
35660         is not allowed to return -1.
35661
35662 2012-04-11  David S. Miller  <davem@davemloft.net>
35663
35664         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35665
35666 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
35667
35668         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
35669         Add a leading slash to rtkaio.
35670
35671 2012-04-11  Jim Meyering  <meyering@redhat.com>
35672
35673         [BZ #11959]
35674         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
35675         It is not necessarily an error to ignore fwrite's return
35676         value.  One can reliably use ferror to test for errors after
35677         the fact.
35678
35679 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35680
35681         * bits/types.h (__snseconds_t): New type.
35682         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
35683
35684         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
35685         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
35686         (__SNSECONDS_T_TYPE): Likewise.
35687         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
35688         (__SNSECONDS_T_TYPE): Likewise.
35689         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
35690         (__SNSECONDS_T_TYPE): Likewise.
35691
35692 2012-04-10  Andreas Jaeger  <aj@suse.de>
35693
35694         [BZ #2636]
35695         * manual/time.texi (Processor Time): Return type of times is
35696         elapsed real time since an arbitrary point in the past.
35697         (CPU Time): Move CLK_TCK from here...
35698         (Processor Time): ...to here.  Correct description.
35699         * manual/conf.texi (Constants for Sysconf): Correct description of
35700         _SC_CLK_TCK.
35701
35702 2012-04-10  David S. Miller  <davem@davemloft.net>
35703
35704         [BZ #13967]
35705         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
35706         where the is a gap between DT_REL(A) and DT_JMPREL.
35707
35708 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35709
35710         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
35711         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35712         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35713
35714 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35715
35716         * elf/dl-support.c (_dl_inhibit_cache): New variable.
35717         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
35718         (dl_main): Handle --inhibit-cache.
35719         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
35720         _dl_inhibit_cache.
35721         * elf/dl-load.c (_dl_map_object): Use it.
35722         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
35723
35724 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35725
35726         [BZ #13872]
35727         * sysdeps/i386/fpu/e_powl.S (p78): New object.
35728         (__ieee754_powl): Saturate large exponents rather than testing for
35729         overflow of y*log2(x).
35730         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
35731         * math/libm-test.inc (pow_test): Do not permit spurious overflow
35732         exceptions.
35733
35734         [BZ #11521]
35735         * math/s_ctan.c: Include <float.h>.
35736         (__ctan): Avoid internal overflow or cancellation in calculating
35737         denominator.
35738         * math/s_ctanf.c: Likewise.
35739         * math/s_ctanl.c: Likewise.
35740         * math/s_ctanh.c: Likewise.
35741         * math/s_ctanhf.c: Likewise.
35742         * math/s_ctanhl.c: Likewise.
35743         * math/libm-test.inc (ctan_test): Add more tests.
35744         (ctanh_test): Likewise.
35745         * sysdeps/i386/fpu/libm-test-ulps: Update.
35746         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35747
35748 2012-04-09  Andreas Jaeger  <aj@suse.de>
35749
35750         [BZ #6894]
35751         * manual/filesys.texi (Directory Entries): Mention that d_namlen
35752         is an optional BSD extension.
35753
35754         [BZ #10254]
35755         * manual/stdio.texi (Opening Streams): Document additional fopen
35756         parameters.
35757
35758 2012-04-09  Roland McGrath  <roland@hack.frob.com>
35759
35760         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
35761         %eax without telling the compiler.
35762
35763 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
35764
35765         [BZ # 13963]
35766         * manual/install.texi: Use sourceware.org.
35767
35768 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35769
35770         [BZ #13873]
35771         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
35772         (__ieee754_pow): Generate overflow and underflow using huge*huge
35773         and tiny*tiny rather than just returning constant infinity or zero
35774         for large exponents.
35775         * math/libm-test.inc (pow_test): Require overflow exceptions for
35776         applicable cases of large exponents.
35777
35778         [BZ #706]
35779         * sysdeps/i386/fpu/e_pow.S (p10): New object.
35780         (__ieee754_pow): Use iterative multiplication algorithm only for
35781         integer exponents with absolute value below 1024.  Check for odd
35782         integer exponents when using algorithm for real exponents.
35783         * math/libm-test.inc (pow_test): Add more tests.
35784         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35785
35786 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
35787
35788         [BZ #13705]
35789         * math/libm-test.inc (exp_test): Do not allow overflow exception
35790         on underflow test.
35791
35792 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
35793
35794         [BZ #13705]
35795         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
35796         instead of __kernel_standard_f.
35797
35798 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
35799
35800         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
35801         * sysdeps/x86_64/memset_chk.S: Likewise.
35802
35803 2012-04-08  Andreas Jaeger  <aj@suse.de>
35804
35805         [BZ #10153]
35806         * manual/startup.texi (Environment Access): Describe return value
35807         for putenv and setenv.
35808
35809         [BZ #6895]
35810         * manual/filesys.texi (Directory Entries): Add description for
35811         DT_LNK.
35812
35813         [BZ #6890]
35814         * manual/filesys.texi (Directory Entries): Clarify that it's file
35815         system not operating system in the description of DT_UNKNOWN.
35816
35817         [BZ #6578]
35818         * manual/syslog.texi (closelog): Fix reference, it's openlog.
35819
35820 2012-04-08  Stephen Compall  <s11@member.fsf.org>
35821
35822         [BZ #6649]
35823         * manual/llio.texi (Opening and Closing Files): Add cross
35824         reference to explain mode argument.
35825
35826 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
35827
35828         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
35829         * sysdeps/x86_64/memset_chk.S: Likewise.
35830
35831 2012-04-07  David S. Miller  <davem@davemloft.net>
35832
35833         * elf/elf.h (R_SPARC_WDISP10): Define.
35834         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
35835         R_SPARC_SIZE32.
35836         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
35837         R_SPARC_SIZE64 and R_SPARC_H34.
35838
35839 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
35840
35841         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
35842         conditions and remove no longer applicable assertion.
35843
35844 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35845
35846         * bits/byteswap.h: Include <features.h>.
35847         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35848         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35849
35850 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35851
35852         * bits/byteswap.h (__bswap_16): Removed.
35853         Include <bits/byteswap-16.h> to get __bswap_16.
35854         * sysdeps/i386/bits/byteswap.h: Likewise.
35855         * sysdeps/s390/bits/byteswap.h: Likewise.
35856         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35857         * bits/byteswap-16.h: New file.
35858         * sysdeps/i386/bits/byteswap-16.h: Likewise.
35859         * sysdeps/s390/bits/byteswap-16.h: Likewise.
35860         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
35861         * string/Makefile (headers): Add bits/byteswap-16.h.
35862
35863 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35864
35865         [BZ #13895]
35866         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
35867         extra indirection.
35868         * nss/Makefile (tests-static, tests): Add tst-nss-static.
35869         * nss/tst-nss-static.c: New.
35870
35871 2012-04-06  Robert Millan  <rmh@gnu.org>
35872
35873         [BZ #6486]
35874         * manual/llio.texi (File Position Primitive): lseek
35875         refers to WHENCE when it really means OFFSET.
35876
35877 2012-04-06  Andreas Jaeger  <aj@suse.de>
35878
35879         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
35880         strncmp declarations.
35881
35882         * abilist/libc.abilist: Add __poll and __ppoll.
35883
35884 2012-04-05  David S. Miller  <davem@davemloft.net>
35885
35886         * scripts/check-local-headers.sh: Accept a host triplet in the
35887         path matched by the exclude regexp.
35888
35889         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
35890         definition.
35891         * sysdeps/powerpc/powerpc32/dl-machine.h
35892         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
35893         * sysdeps/s390/s390-32/dl-machine.h
35894         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35895         * sysdeps/sparc/sparc32/dl-machine.h
35896         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35897         * sysdeps/sparc/sparc64/dl-machine.h
35898         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35899
35900         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
35901         lazy binding.
35902         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
35903         undefined symbol errors.
35904
35905         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
35906         DT_NEEDED entries.
35907
35908 2012-04-05  Michael Matz  <matz@suse.de>
35909
35910         [BZ #13592]
35911         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
35912
35913 2012-04-05  Andreas Jaeger  <aj@suse.de>
35914
35915         [BZ #13908]
35916         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
35917         comment.
35918
35919 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35920
35921         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
35922         which ROUND is no valid rounding mode.
35923
35924 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35925
35926         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
35927         read again.
35928         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
35929
35930 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35931
35932         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
35933         an exception using FPU order intentionally.
35934
35935 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35936
35937         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
35938         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
35939         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
35940         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
35941
35942 2012-04-05  Simon Josefsson  <simon@josefsson.org>
35943
35944         [BZ #12340]
35945         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
35946         EINVAL when BUFLEN is too smal.
35947
35948 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
35949
35950         [BZ #13553]
35951         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
35952         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
35953
35954 2012-04-03  Andreas Jaeger  <aj@suse.de>
35955
35956         [BZ #13938]
35957         * manual/setjmp.texi (System V contexts): Fix sentence.
35958
35959         [BZ #13926]
35960         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
35961         New macro for this case.
35962         [!__GNUC__] (__bswap_64): New inline function for this case.
35963         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35964         * bits/byteswap.h: Likewise.
35965         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
35966         ull, guard with __GLIBC_HAVE_LONG_LONG.
35967
35968         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
35969         __GLIBC_HAVE_LONG_LONG.
35970
35971         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
35972         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
35973
35974 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
35975
35976         [BZ #13691]
35977         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
35978         inptr and inend, rather than using last_ch.
35979
35980 2012-04-02  David S. Miller  <davem@davemloft.net>
35981
35982         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
35983         * stdio-common/printf-parse.h (read_int): Change return type to
35984         'int', return -1 on INT_MAX overflow.
35985         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
35986         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
35987         overflows INT_MAX.  Check for overflow of in-format-string precision
35988         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
35989         SIZE_MAX not INT_MAX for integer overflow test.
35990         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
35991         skip the construct in the format string but do not record anything.
35992         * stdio-common/bug22.c: Adjust to test both width/prevision
35993         INT_MAX overflow as well as total length INT_MAX overflow.  Check
35994         explicitly for proper errno values.
35995
35996 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
35997
35998         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
35999         CHAR_MAX.
36000         * string/test-strcmp.c [! WIDE]: Likewise.
36001         * time/tst-mktime2.c: Likewise for INT_MAX.
36002         * string/test-string.h: #include <sys/param.h> for MIN.
36003
36004         * csu/init-first.c (__libc_init_first): Call __ctype_init.
36005         * sysdeps/i386/init-first.c (init): Likewise.
36006         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
36007         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
36008         * sysdeps/sh/init-first.c (init): Likewise.
36009
36010 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
36011
36012         * po/ru.po: Update from translation team.
36013         * po/vi.po: Likewise.
36014
36015 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36016
36017         * resolv/nss_dns/dns-host.c: Merge copyright years.
36018
36019 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
36020
36021         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
36022         Optimize memcpy with prefetch if
36023         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
36024         src, dst pointers have unequal 16 byte alignments.
36025
36026 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
36027
36028         [BZ #13928]
36029         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
36030         from a CNAME entry and return the minimum ttl for the query.
36031         (gaih_getanswer_slice): Likewise.
36032
36033 2012-03-30  Jeff Law  <law@redhat.com>
36034
36035         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
36036         due to long keys.
36037         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
36038         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
36039
36040         * resolv/nss_dns/dns-host.c: Update copyright year.
36041
36042 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
36043
36044         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
36045         requests to save a system call.  Fix check that all bytes are sent.
36046
36047         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
36048         comments for sendmmsg.
36049
36050 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
36051
36052         [BZ #13691]
36053         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
36054         with only 1 character between 0x0041 and 0x01b0.
36055         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
36056         * wcsmbs/tst-mbsnrtowcs.c: New file.
36057
36058 2012-03-29  David S. Miller  <davem@davemloft.net>
36059
36060         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
36061         small copies by hand.
36062
36063 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
36064
36065         [BZ #13761]
36066         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
36067         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
36068         group memberships.
36069
36070 2012-03-28  David S. Miller  <davem@davemloft.net>
36071
36072         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
36073         that branches into memcpy.
36074         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
36075         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
36076         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
36077         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
36078         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
36079         bits.
36080         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
36081         implementation too.
36082         * sysdeps/sparc/mempcpy.S: New file.
36083
36084         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
36085         the IFUNC routine in the libc case.
36086         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36087
36088         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
36089         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
36090         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
36091         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
36092         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
36093         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
36094         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
36095         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
36096
36097         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
36098         loop to 256 bytes instead of 64 bytes and fix test signedness.
36099
36100         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
36101         * sysdeps/sparc/sparc32/Makefile: rather than here...
36102         * sysdeps/sparc/sparc64/Makefile: and here.
36103
36104 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
36105
36106         * malloc/mallocbug.c: Avoid warnings about unused variables.
36107
36108 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
36109
36110         [BZ #13760]
36111         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
36112         in the right place. Discard and retry query if response is
36113         larger than input buffer size.
36114
36115 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
36116
36117         [BZ #369]
36118         [BZ #2678]
36119         [BZ #3866]
36120         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
36121         x for large integer exponent.
36122         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36123         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
36124         sign of result as needed afterwards.
36125         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
36126         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
36127         result for underflowing pow the same as for overflow.
36128         (__kernel_standard_l): Handle powl overflow and underflow here
36129         rather than calling __kernel_standard.
36130         * math/libm-test.inc (pow_test): Add more tests.
36131
36132         [BZ #3868]
36133         [BZ #13879]
36134         [BZ #13910]
36135         [BZ #13911]
36136         [BZ #13912]
36137         [BZ #13913]
36138         [BZ #13915]
36139         [BZ #13916]
36140         [BZ #13917]
36141         [BZ #13918]
36142         [BZ #13919]
36143         [BZ #13920]
36144         [BZ #13921]
36145         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
36146         * sysdeps/ieee754/k_standard.c: Include <float.h>.
36147         (__kernel_standard_l): New function.
36148         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
36149         __kernel_standard.
36150         * math/w_acosl.c (__acosl): Likewise.
36151         * math/w_asinl.c (__asinl): Likewise.
36152         * math/w_atan2l.c (__atan2l): Likewise.
36153         * math/w_atanhl.c (__atanhl): Likewise.
36154         * math/w_coshl.c (__coshl): Likewise.
36155         * math/w_exp10l.c (__exp10l): Likewise.
36156         * math/w_exp2l.c (__exp2l): Likewise.
36157         * math/w_fmodl.c (__fmodl): Likewise.
36158         * math/w_hypotl.c (__hypotl): Likewise.
36159         * math/w_j0l.c (__j0l, __y0l): Likewise.
36160         * math/w_j1l.c (__j1l, __y1l): Likewise.
36161         * math/w_jnl.c (__jnl, __ynl): Likewise.
36162         * math/w_lgammal.c (__lgammal): Likewise.
36163         * math/w_log10l.c (__log10l): Likewise.
36164         * math/w_log2l.c (__log2l): Likewise.
36165         * math/w_logl.c (__logl): Likewise.
36166         * math/w_powl.c (__powl): Likewise.
36167         * math/w_remainderl.c (__remainderl): Likewise.
36168         * math/w_scalbl.c (sysv_scalbl): Likewise.
36169         * math/w_sinhl.c (__sinhl): Likewise.
36170         * math/w_sqrtl.c (__sqrtl): Likewise.
36171         * math/w_tgammal.c (__tgammal): Likewise.
36172         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
36173         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
36174         * math/libm-test.inc (acos_test): Add more tests.
36175         (acosh_test): Likewise.
36176         (asin_test): Likewise.
36177         (atanh_test): Likewise.
36178         (exp_test): Likewise.
36179         (exp10_test): Likewise.
36180         (exp2_test): Likewise.
36181         (expm1_test): Likewise.
36182         (lgamma_test): Likewise.
36183         (log_test): Likewise.
36184         (log10_test): Likewise.
36185         (log1p_test): Likewise.
36186         (log2_test): Likewise.
36187         (pow_test): Do not allow some spurious overflow exceptions.
36188         (sqrt_test): Add more tests.
36189         (tgamma_test): Likewise.
36190         (y0_test): Likewise.
36191         (y1_test): Likewise.
36192         (yn_test): Likewise.
36193
36194 2012-03-27  Anton Blanchard  <anton@samba.org>
36195
36196         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
36197         MAP_HUGETLB.
36198         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36199         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36200         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36201
36202 2012-03-27  David S. Miller  <davem@davemloft.net>
36203
36204         * conform/Makefile: Run run-conformtest.sh using $(BASH).
36205
36206         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
36207         have-as-vis3 check.
36208
36209 2012-03-27  Andreas Jaeger  <aj@suse.de>
36210
36211         * sysdeps/x86_64/elf/configure.in: Moved to ...
36212         * sysdeps/x86_64/configure.in: ... here.
36213         * sysdeps/x86_64/elf/start.S: Moved to ...
36214         * sysdeps/x86_64/start.S: ... here.
36215         * sysdeps/x86_64/elf/configure: Delete.
36216
36217         * sysdeps/x86_64/configure.in: Merge contents from
36218         sysdeps/i386/configure.in (without i686 check).
36219
36220         * sysdeps/i386/elf/Versions: Merge into ...
36221         * sysdeps/i386/Versions: ... this.
36222         * sysdeps/i386/elf/Versions: Delete file.
36223         * sysdeps/i386/elf/start.S: Moved to ...
36224         * sysdeps/i386/start.S: ...here.
36225         * sysdeps/i386/elf/configure.in: Merge into...
36226         * sysdeps/i386/configure.in: ...here.
36227         * sysdeps/i386/elf/configure.in: Delete file.
36228         * sysdeps/i386/elf/configure: Delete file.
36229
36230         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
36231         * debug/backtracesyms.c: ... here.
36232         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
36233         * debug/backtracesymsfd.c: ... here.
36234         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
36235         * sysdeps/generic/ifunc-sel.h: ... here.
36236
36237         * sysdeps/unix/i386/start.c: Delete file.
36238         * sysdeps/unix/sparc/start.c: Delete file.
36239         * sysdeps/unix/start.c: Delete file.
36240
36241         * sysdeps/sh/elf/configure.in: Moved to ...
36242         * sysdeps/sh/configure.in: ... here.
36243         * sysdeps/sh/elf/start.S: Moved to ...
36244         * sysdeps/sh/start.S: ... here.
36245         * sysdeps/sh/elf/configure: Delete file.
36246
36247         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
36248         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
36249         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
36250         * sysdeps/powerpc/powerpc64/entry.h: ... here.
36251         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
36252         * sysdeps/powerpc/powerpc64/start.S: here.
36253         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
36254         * sysdeps/powerpc/powerpc64/Makefile: ... this.
36255         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
36256         * sysdeps/powerpc/powerpc64/configure.in: ... this.
36257         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
36258
36259         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
36260         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
36261         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
36262         * sysdeps/powerpc/powerpc32/start.S: ... here.
36263         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
36264         * sysdeps/powerpc/powerpc32/configure.in: ... this.
36265         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
36266
36267         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
36268         * sysdeps/powerpc/ifunc-sel.h: ... here.
36269         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
36270         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
36271
36272         * sysdeps/sparc/elf/configure.in: Moved to ...
36273         * sysdeps/sparc/configure.in: ... here.
36274         * sysdeps/sparc/elf/configure: Delete file.
36275         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
36276         * sysdeps/sparc/sparc32/start.S: ... here.
36277         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
36278         * sysdeps/sparc/sparc64/start.S: ... here.
36279         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
36280         * sysdeps/sparc/sparc32/Makefile: ... this.
36281         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
36282         * sysdeps/sparc/sparc64/Makefile: ... this.
36283
36284         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
36285         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
36286         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
36287         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
36288         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
36289         * sysdeps/s390/s390-32/setjmp.S: ... here.
36290         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
36291         * sysdeps/s390/s390-32/configure.in: ... here.
36292         * sysdeps/s390/s390-32/elf/configure: Delete file.
36293         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
36294         * sysdeps/s390/s390-32/start.S: ... here.
36295
36296         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
36297         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
36298         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
36299         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
36300         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
36301         * sysdeps/s390/s390-64/setjmp.S: ... here.
36302         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
36303         * sysdeps/s390/s390-64/configure.in: ... here
36304         * sysdeps/s390/s390-64/elf/configure: Delete file.
36305         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
36306         * sysdeps/s390/s390-64/start.S: ... here.
36307         * sysdeps/s390/s390-64/elf/configure: Delete.
36308
36309         * configure.in: Remove support for elf directories in sysdeps.
36310
36311         * configure: Regenerated.
36312         * sysdeps/i386/configure: Regenerated.
36313         * sysdeps/powerpc/powerpc32/configure: Regenerated.
36314         * sysdeps/powerpc/powerpc64/configure: Regenerated.
36315         * sysdeps/s390/s390-32/configure: Regenerated.
36316         * sysdeps/s390/s390-64/configure: Regenerated.
36317         * sysdeps/sh/configure: Regenerated.
36318         * sysdeps/sparc/configure: Regenerated.
36319         * sysdeps/x86_64/configure: Regenerated.
36320
36321 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
36322
36323         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36324
36325         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
36326         denormal result into account.
36327
36328 2012-03-25  Roland McGrath  <roland@hack.frob.com>
36329
36330         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
36331         Reported by Allan McRae <allan@archlinux.org>.
36332
36333 2012-03-23  Jeff Law  <law@redhat.com>
36334
36335         * nss/getnssent.c (__nss_getent): Fix typo.
36336
36337 2012-03-23  David S. Miller  <davem@davemloft.net>
36338
36339         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36340
36341 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
36342
36343         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
36344         to pad to uint64_t for each field.
36345         (dl_tls_index): Replace unsigned long with uint64_t.
36346
36347 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
36348         Paul Pluzhnikov  <ppluzhnikov@google.com>
36349
36350         [BZ #6528]
36351         * grp/Makefile (otherlibs): Don't set it.
36352         * inet/Makefile (otherlibs): Likewise.
36353         * login/Makefile (otherlibs): Likewise.
36354         * nscd/Makefile (otherlibs): Likewise.
36355         * posix/Makefile (otherlibs): Likewise.
36356         * pwd/Makefile (otherlibs): Likewise.
36357         * rt/Makefile (otherlibs): Likewise.
36358         * sunrpc/Makefile (otherlibs): Likewise.
36359         * nss/Makefile (otherlibs): Likewise.
36360         Add libnss_files to routines and static-only-routines.
36361         ($(objpfx)getent): Remove rule.
36362         * resolv/Makefile: Add libnss_dns and libresolv to routines and
36363         static-only-routines.
36364
36365 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36366
36367         [BZ #13892]
36368         * math/s_cexp.c: Include <float.h>.
36369         (__cexp): Handle exp result overflowing not necessarily
36370         overflowing both real and imaginary parts of result.
36371         * math/s_cexpf.c: Likewise.
36372         * math/s_cexpl.c: Likewise.
36373         * math/libm-test.inc (cexp_test): Add more tests.
36374         * sysdeps/i386/fpu/libm-test-ulps: Update.
36375         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36376
36377 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36378
36379         * include/link.h (ELFW): New macro.
36380         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
36381         Replace ELF64_R_TYPE with ELFW(R_TYPE).
36382
36383 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36384
36385         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
36386         with uint64_t.
36387
36388 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36389
36390         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
36391         declaration.
36392         (struct La_x32_retval): Likewise.
36393
36394 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36395
36396         * sysdeps/x86_64/preconfigure.in: New file.
36397         * sysdeps/x86_64/preconfigure: New generated file.
36398
36399 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36400
36401         [BZ #13824]
36402         * math/e_exp2l.c: Include <float.h>.
36403         (__ieee754_exp2l): Handle overflow and underflow cases
36404         separately.  Only pass fractional part of argument to
36405         __ieee754_expl.
36406         * math/libm-test.inc (exp2_test): Add more tests.
36407
36408         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
36409         negating x to take absolute value.
36410         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
36411         Likewise.
36412         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
36413         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
36414         Likewise.
36415         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
36416         computing low part if x was negated.
36417         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
36418
36419 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36420
36421         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
36422         la_x32_gnu_pltexit.
36423         (pltexit): Cast int_retval to ptrdiff_t.
36424         * elf/tst-auditmod3b.c: Likewise.
36425         * elf/tst-auditmod4b.c: Likewise.
36426         * elf/tst-auditmod5b.c: Likewise.
36427         * elf/tst-auditmod6b.c: Likewise.
36428         * elf/tst-auditmod6c.c: Likewise.
36429         * elf/tst-auditmod7b.c: Likewise.
36430
36431         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
36432         and x32_gnu_pltexit.
36433
36434         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
36435         __ELF_NATIVE_CLASS.
36436         (La_x32_regs): New macro.
36437         (La_x32_retval): Likewise.
36438         (la_x32_gnu_pltenter): New function prototype.
36439         (la_x32_gnu_pltexit): Likewise.
36440
36441 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
36442
36443         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
36444         exponent.
36445
36446         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36447
36448         * configure.in (libc_cv_cc_nofma): Check for option to disable
36449         generation of FMA instructions.
36450         * configure: Regenerate.
36451         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
36452         * sysdeps/ieee754/dbl-64/Makefile: New file.
36453         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36454         Remove brandred-fma4.
36455         (CFLAGS-brandred-fma4.c): Remove.
36456         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
36457         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
36458         define.
36459         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
36460         define.
36461
36462 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36463
36464         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
36465         LLONG_MAX != LONG_MAX.
36466         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36467         (_fitoa_word): Likewise.
36468         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
36469         LLONG_MAX != LONG_MAX.
36470         * stdio-common/_itowa.h: Include <_itoa.h>.
36471         (_itowa_word): Use _ITOA_WORD_TYPE on value.
36472         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
36473         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
36474         only if not defined.
36475         (_ITOA_WORD_TYPE): Likewise.
36476         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36477         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
36478
36479 2012-03-21  David S. Miller  <davem@davemloft.net>
36480
36481         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36482
36483 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36484
36485         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
36486         of x86_64 when setting libc_cv_slibdir, libdir and
36487         libc_cv_localedir.
36488         * sysdeps/unix/sysv/linux/configure: Regenerated.
36489
36490 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36491
36492         * manual/lang.texi (Old Varargs): Remove section.
36493         (How Variadic): Update menu.
36494         (va_start): Do not mention varargs.h.
36495
36496 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36497             Joseph Myers  <joseph@codesourcery.com>
36498
36499         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
36500         link test.
36501         * configure: Regenerated.
36502
36503 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36504
36505         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
36506         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
36507         conformtest.pl
36508
36509 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36510
36511         * NOTES: Remove.
36512         * Makefile (files-for-dist): Remove NOTES.
36513         (NOTES): Remove rule.
36514         * README: Don't refer to NOTES.
36515         * manual/creature.texi: Don't include macros.texi.
36516         * manual/intro.texi (creature.texi): Remove comment referring to
36517         NOTES.
36518
36519         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
36520         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
36521         * configure: Regenerated.
36522         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
36523         LIBC_TRY_CC_OPTION.
36524         (libc_cv_as_i686): Likewise.
36525         (libc_cv_cc_avx): Likewise.
36526         (libc_cv_cc_sse2avx): Likewise.
36527         (libc_cv_cc_fma4): Likewise.
36528         (libc_cv_cc_novzeroupper): Likewise.
36529         * sysdeps/i386/configure: Regenerated.
36530
36531         [BZ #13883]
36532         * sysdeps/i386/fpu/s_cexp.S: Remove.
36533         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
36534         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
36535         * math/libm-test.inc (cexp_test): Add more tests.
36536         * sysdeps/i386/fpu/libm-test-ulps: Update.
36537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36538
36539 2012-03-21  Allan McRae  <allan@archlinux.org>
36540
36541         * timezone/Makefile: Do not install iso3166.tab and zone.tab
36542
36543 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36544
36545         [BZ #13871]
36546         * math/w_exp2.c: Do not include <float.h>.
36547         (o_threshold, u_threshold): Remove.
36548         (__exp2): Calculate result before checking finiteness and calling
36549         __kernel_standard.
36550         * math/w_exp2f.c: Likewise.
36551         * math/w_exp2l.c: Likewise.
36552         * math/libm-test.inc (exp2_test): Require overflow exception for
36553         1e6 input.
36554
36555         [BZ #3866]
36556         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
36557         range of signed 64-bit integers before using fistpll.  Remove
36558         checks for whether integers fit in mantissa bits.
36559         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
36560         the range of signed 32-bit integers before using fistpl.  Remove
36561         checks for whether integers fit in mantissa bits.
36562         * sysdeps/i386/fpu/e_powl.S (p64): New object.
36563         (__ieee754_powl): Test for y outside the range of signed 64-bit
36564         integers before using fistpll.  Reduce 64-bit values to 63-bit
36565         ones as needed.
36566         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
36567         divide-by-zero is raised for zero to large negative powers.
36568         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
36569         (__ieee754_powl): Test for y outside the range of signed 64-bit
36570         integers before using fistpll.  Reduce 64-bit values to 63-bit
36571         ones as needed.
36572         * math/libm-test.inc (pow_test): Add more tests.
36573
36574 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36575
36576         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
36577         <stdio-common/_itoa.h>.
36578         * debug/segfault.c: Likewise.
36579         * elf/dl-cache.c: Likewise.
36580         * elf/dl-minimal.c: Likewise.
36581         * elf/dl-misc.c: Likewise.
36582         * elf/dl-sysdep.c: Likewise.
36583         * elf/dl-version.c: Likewise.
36584         * elf/rtld.c: Likewise.
36585         * hurd/hurdsock.c: Likewise.
36586         * hurd/lookup-retry.c: Likewise.
36587         * malloc/malloc.c: Likewise.
36588         * malloc/mtrace.c: Likewise.
36589         * nscd/nscd_getgr_r.c: Likewise.
36590         * nscd/nscd_getpw_r.c: Likewise.
36591         * nscd/nscd_getserv_r.c: Likewise.
36592         * posix/getopt_init.c: Likewise.
36593         * posix/wordexp.c: Likewise.
36594         * stdio-common/_itoa.c: Likewise.
36595         * stdio-common/printf_fphex.c: Likewise.
36596         * stdio-common/vfprintf.c: Likewise.
36597         * string/_strerror.c: Likewise.
36598         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
36599         * sysdeps/i386/i686/hp-timing.h: Likewise.
36600         * sysdeps/mach/_strerror.c: Likewise.
36601         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
36602         * sysdeps/mach/hurd/sethostid.c: Likewise.
36603         * sysdeps/mach/hurd/xmknodat.c: Likewise.
36604         * sysdeps/mach/xpg-strerror.c: Likewise.
36605         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
36606         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
36607         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
36608         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
36609         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
36610         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
36611         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
36612         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
36613         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
36614         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
36615         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
36616         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
36617         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
36618         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
36619         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
36620         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
36621         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
36622         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
36623         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
36624         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
36625         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
36626
36627         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
36628
36629         * stdio-common/_itoa.h: Moved to ...
36630         * sysdeps/generic/_itoa.h: Here.
36631
36632         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
36633
36634         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
36635         instead of "_itoa.h" and "_itowa.h".
36636         * stdio-common/vfprintf.: Likewise.
36637
36638 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36639
36640         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
36641         <bits/wordsize.h>.
36642         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
36643         (__signbit): Likwise.
36644         (llrintf): Likwise.
36645         (llrint): Likwise.
36646
36647 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36648
36649         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
36650         __WORDSIZE != 64.
36651
36652 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
36653
36654         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
36655         OVERFLOW_EXCEPTION_OK.
36656         * math/libm-test.inc ("Philosophy"): Update comment about
36657         exception testing.
36658         (OVERFLOW_EXCEPTION): Define.
36659         (OVERFLOW_EXCEPTION_OK): Likewise.
36660         (INVALID_EXCEPTION_OK): Renumber.
36661         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
36662         (IGNORE_ZERO_INF_SIGN): Likewise.
36663         (test_exceptions): Handle FE_OVERFLOW.
36664         (exp10_test): Expect overflow exceptions.
36665         (exp2_test): Likewise.
36666         (expm1_test): Likewise.
36667         (nextafter_test): Likewise.
36668         (pow_test): Likewise.
36669         (scalbn_test): Likewise.
36670         (scalbln_test): Likewise.
36671
36672 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36673
36674         * sysdeps/x86_64/bits/atomic.h
36675         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
36676         64bit integer.
36677         (atomic_exchange_acq): Likewise.
36678         (__arch_exchange_and_add_body): Likewise.
36679         (__arch_add_body): Likewise.
36680         (atomic_add_negative): Likewise.
36681         (atomic_add_zero): Likewise.
36682
36683 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36684
36685         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
36686         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
36687
36688 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36689
36690         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
36691         Check __x86_64__ instead of __WORDSIZE.
36692
36693 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36694
36695         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
36696
36697 2012-03-19  David S. Miller  <davem@davemloft.net>
36698
36699         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36700
36701         * sysdeps/sparc/fpu/fenv_private.h: New file.
36702         * sysdeps/sparc/fpu/math_private.h: Use it.
36703         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
36704         Remove.
36705         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
36706         (libc_feholdexcept_setroundl): Remove.
36707         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
36708         Remove.
36709         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
36710         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
36711
36712 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36713
36714         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
36715         int64_t instead of long int.
36716         (INSERT_WORDS64): Likwise.
36717
36718 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36719
36720         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
36721         _Unwind_GetCFA return to _Unwind_Ptr first.
36722
36723 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
36724
36725         [BZ #13629]
36726         * math/s_clog.c: Include <float.h>.
36727         (__clog): Scale large or subnormal inputs.
36728         * math/s_clogf.c: Likewise.
36729         * math/s_clogl.c: Likewise.
36730         * math/s_clog10.c: Include <float.h>.
36731         (M_LOG10_2): Define.
36732         (__clog10): Scale large or subnormal inputs.
36733         * math/s_clog10f.c: Likewise.
36734         * math/s_clog10l.c: Likewise.
36735         * math/libm-test.inc (clog_test): Add more tests.
36736         (clog10_test): Likewise.
36737         * sysdeps/i386/fpu/libm-test-ulps: Update.
36738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36739
36740         [BZ #11451]
36741         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
36742         x and y.
36743         * math/libm-test.inc (atan2_test): Add another test.
36744
36745         * Makerules (common-objdir-compile): Remove.
36746         * sysdeps/unix/Makefile (config-generated): Do not add
36747         $(unix-generated) to variable.
36748         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
36749         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
36750         Remove rule.
36751         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
36752         Likewise.
36753         [generic bits/local_lim.h] (before-compile): Do not append to
36754         variable.
36755         [generic bits/local_lim.h] (common-generated): Likewise.
36756         [generic sys/param.h] (before-compile): Do not append to variable.
36757         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
36758         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
36759         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
36760         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
36761         include.
36762         [generic sys/param.h] (sys/param.h-includes): Remove variable.
36763         [generic sys/param.h] (sys/param.h-includes): Remove rule.
36764         [generic sys/param.h] ($(addprefix
36765         $(common-objpfx),$(sys/param.h-includes))): Likewise.
36766         [generic sys/param.h] (common-generated): Do not append to
36767         variable.
36768         [generic sys/param.h] (sysdep_headers): Likewise.
36769         [generic bits/errno.h] (before-compile): Do not append to
36770         variable.
36771         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
36772         rule.
36773         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
36774         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
36775         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
36776         [generic bits/errno.h] (common-generated): Do not append to
36777         variable.
36778         [generic bits/ioctls.h] (before-compile): Do not append to
36779         variable.
36780         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
36781         rule.
36782         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
36783         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
36784         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
36785         rule.
36786         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
36787         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
36788         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
36789         [generic bits/ioctls.h] (common-generated): Do not append to
36790         variable.
36791         [generic sys/syscall.h] (syscall.h): Remove variable.
36792         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
36793         rule.
36794         [generic sys/syscall.h] (before-compile): Do not append to
36795         variable.
36796         [generic sys/syscall.h] (common-generated): Likewise.
36797         * sysdeps/unix/errnos-tmpl.c: Remove file.
36798         * sysdeps/unix/errnos.awk: Likewise.
36799         * sysdeps/unix/ioctls-tmpl.c: Likewise.
36800         * sysdeps/unix/ioctls.awk: Likewise.
36801         * sysdeps/unix/mk-local_lim.c: Likewise.
36802         * sysdeps/unix/snarf-ioctls: Likewise.
36803
36804 2012-03-19  Richard Henderson  <rth@twiddle.net>
36805
36806         * sysdeps/i386/fpu/fenv_private.h: New file.
36807         * sysdeps/i386/fpu/math_private.h: Use it.
36808         (math_opt_barrier, math_force_eval): Remove.
36809         (libc_feholdexcept_setround_53bit): Remove.
36810         (libc_feupdateenv_53bit): Remove.
36811         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36812         (math_opt_barrier, math_force_eval): Remove.
36813         (libc_feholdexcept): Remove.
36814         (libc_feholdexcept_setround): Remove.
36815         (libc_fetestexcept, libc_fesetenv): Remove.
36816         (libc_feupdateenv_test): Remove.
36817         (libc_feupdateenv, libc_feholdsetround): Remove.
36818         (libc_feresetround): Remove.
36819
36820         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
36821         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36822
36823         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
36824         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
36825         (libc_feupdateenv_testl): New.
36826         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
36827         (libc_feupdateenv_testf): New.
36828         (libc_feupdateenv): Use libc_feupdateenv_test.
36829         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
36830         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
36831
36832         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
36833         (libc_feholdsetroundf, libc_feholdsetroundl): New.
36834         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
36835         (libc_feresetround_noex): New.
36836         (libc_feresetround_noexf): New.
36837         (libc_feresetround_noexl): New.
36838         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
36839         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
36840         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
36841         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
36842         SET_RESTORE_ROUND.
36843         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
36844         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
36845         (__cos): Likewise.
36846         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
36847         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
36848         SET_RESTORE_ROUND_NOEX.
36849         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
36850         SET_RESTORE_ROUND_NOEXF.
36851         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
36852         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
36853         (libc_feholdsetroundf): New.
36854         (libc_feresetround, libc_feresetroundf): New.
36855
36856         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
36857         (libc_feholdexcept_setround_53bit): Convert from macro to function.
36858         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
36859
36860         * sysdeps/generic/math_private.h: Include <fenv.h>.
36861         (default_libc_feholdexcept): New.
36862         (default_libc_feholdexcept_setround): New.
36863         (default_libc_fesetenv, default_libc_feupdateenv): New.
36864         (libc_feholdexcept): Only define if undefined.
36865         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
36866         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
36867         (libc_feholdexcept_setroundl): Likewise.
36868         (libc_feholdexcept_setround_53bit): Likewise.
36869         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
36870         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
36871         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
36872         (libc_feupdateenv_53bit): Likewise.
36873         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
36874         (libc_feholdexcept): Convert from macro to inline function.
36875         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
36876         (libc_fesetenv, libc_feupdateenv): Likewise.
36877
36878         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
36879         not previously defined.
36880         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
36881         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
36882         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
36883         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
36884         * sysdeps/ieee754/flt-32/math_private.h: New file.
36885         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
36886         math_private.h below SET_FLOAT_WORD.
36887         (__isnan, __isinf_ns, __finite): Remove.
36888         (__isnanf, __isinf_nsf, __finitef): Remove.
36889
36890 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
36891
36892         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36893
36894 2012-03-17  David S. Miller  <davem@davemloft.net>
36895
36896         [BZ #6471]
36897         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
36898         for 2.16.
36899
36900 2012-03-16  David S. Miller  <davem@davemloft.net>
36901
36902         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
36903         warnings.
36904
36905         [BZ #6471]
36906         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
36907         properly.
36908         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
36909         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
36910         sysdep_routines when subdir is sysvipc.
36911         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
36912         __getshmlba helper.
36913
36914         * sysdeps/sparc/fpu/libm-test/ulps: Update.
36915
36916 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36917
36918         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
36919         [__LP64__].
36920
36921 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36922
36923         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
36924         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
36925         (__lround): Renamed to ...
36926         (__llround): This.  Replace long int with long long int.
36927         Define lround functions as aliases of llround functions.
36928         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
36929
36930 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36931
36932         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
36933         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
36934         adresses to uintptr_t.  Replace "long int" and "unsigned long
36935         int" with "greg_t" on va_arg.
36936
36937 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36938
36939         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
36940         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
36941
36942         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
36943         Move e_machine check before EI_CLASS check.  Handle x32
36944         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
36945         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
36946         SKIP_EM_IA_64 and include
36947         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
36948
36949         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
36950         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
36951         (add_system_dir): New macro.
36952
36953         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
36954         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
36955
36956 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36957
36958         [BZ #2551]
36959         [BZ #2552]
36960         [BZ #2553]
36961         [BZ #2554]
36962         [BZ #2562]
36963         [BZ #2563]
36964         [BZ #2565]
36965         [BZ #2566]
36966         [BZ #2576]
36967         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
36968         (y0): Likewise.
36969         * math/w_j0f.c (j0f): Likewise.
36970         (y0f): Likewise.
36971         * math/w_j0l.c (__j0l): Likewise.
36972         (__y0l): Likewise.
36973         * math/w_j1.c (j1): Likewise.
36974         (y1): Likewise.
36975         * math/w_j1f.c (j1f): Likewise.
36976         (y1f): Likewise.
36977         * math/w_j1l.c (__j1l): Likewise.
36978         (__y1l): Likewise.
36979         * math/w_jn.c (jn): Likewise.
36980         (yn): Likewise.
36981         * math/w_jnf.c (jnf): Likewise.
36982         (ynf): Likewise.
36983         * math/w_jnl.c (__jnl): Likewise.
36984         (__ynl): Likewise.
36985         * math/libm-test.inc (j0_test): Add more tests.
36986         (j1_test): Likewise.
36987         (jn_test): Likewise.  Add trailing semicolon to existing test.
36988         (y0_test): Likewise.
36989         (y1_test): Likewise.
36990         * sysdeps/i386/fpu/libm-test-ulps: Update.
36991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36992
36993         [BZ #13851]
36994         [BZ #13854]
36995         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
36996         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
36997         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
36998         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
36999         (__tanl): Set errno for infinite argument.
37000         * sysdeps/i386/fpu/mptan.c: Remove.
37001         * sysdeps/i386/fpu/s_tan.S: Likewise.
37002         * sysdeps/i386/fpu/s_tanl.S: Likewise.
37003         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
37004         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
37005         * math/libm-test.inc (tan_test): Add more tests and enable more
37006         tests for double and long double.
37007         * sysdeps/i386/fpu/libm-test-ulps: Update.
37008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37009
37010 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
37011
37012         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
37013         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
37014
37015 2012-03-16  Roland McGrath  <roland@hack.frob.com>
37016
37017         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
37018         * configure.in: Use it for both main tree and add-ons.
37019         * configure: Regenerated.
37020
37021 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37022
37023         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
37024
37025 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37026
37027         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
37028         in comment.
37029
37030         [BZ #13851]
37031         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
37032         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
37033         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
37034         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
37035         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
37036         infinite argument.
37037         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
37038         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
37039         != 0 for prec == 2.
37040         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
37041         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
37042         * sysdeps/i386/fpu/s_cosl.S: Likewise.
37043         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
37044         * sysdeps/i386/fpu/s_sinl.S: Likewise.
37045         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
37046         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
37047         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
37048         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
37049         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
37050         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
37051         * math/libm-test.inc (cos_test): Add more tests and enable more
37052         tests for long double.
37053         (sin_test): Likewise.
37054         (sincos_test): Likewise.
37055         * sysdeps/i386/fpu/libm-test-ulps: Update.
37056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37057
37058 2012-03-16  David S. Miller  <davem@davemloft.net>
37059
37060         * sysdeps/sparc/fpu/math_private.h: New file.
37061
37062 2012-03-15  David S. Miller  <davem@davemloft.net>
37063
37064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
37065         file.
37066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
37067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
37068         file.
37069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
37070         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
37071         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
37072         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
37073         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
37074         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
37075         sysdep routines.
37076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37077
37078         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
37079         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
37080
37081         * sysdeps/sparc/sparc-ifunc.h: New file.
37082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
37083         sparc-ifunc.h
37084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
37085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
37086         Likewise.
37087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
37088         Likewise.
37089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
37090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
37091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
37092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
37093         Likewise.
37094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
37095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
37096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
37097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
37098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
37099         Likewise.
37100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
37101         Likewise.
37102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
37103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
37104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
37105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
37106         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
37107         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
37108         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
37109         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
37110         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
37111         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
37112         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
37113         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
37114         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
37115         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
37116         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
37117         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
37118         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
37119         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
37120         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
37121         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
37122         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
37123         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
37124         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
37125         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
37126
37127 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37128
37129         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
37130         scaling.
37131         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37132
37133 2012-03-15  Andreas Jaeger  <aj@suse.de>
37134
37135         [BZ #13852]
37136         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
37137         ieee754/flt-32 implementation for sin, cos and sincos.
37138         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
37139         * sysdeps/i386/fpu/s_cosf.S: Likewise.
37140         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
37141         * sysdeps/i386/fpu/s_sinf.S: Likewise.
37142         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
37143         ieee754/flt-32 implementation for tan.
37144
37145         * math/libm-test.inc (cos_test): Enable some large input tests for
37146         float as well
37147         (sin_test): Likewise.
37148         (sincos_test): Likewise.
37149         (tan_test): Add tests for large input.
37150
37151         * sysdeps/i386/fpu/libm-test-ulps: Update.
37152
37153 2012-03-15  Andreas Jaeger  <aj@suse.de>
37154
37155         [BZ #13658]
37156         * math/libm-test.inc (cos_test): Add more test cases.
37157         (sin_test): Likewise.
37158         (sincos_test): Likewise.
37159
37160 2012-03-15  Andreas Jaeger  <aj@suse.de>
37161
37162         [BZ #13837]
37163         * math/libm-test.inc (cos_test): Add a test case for large input
37164         value.
37165         (sin_test): Likewise.
37166         (sincos_test): Likewise.
37167
37168 2012-03-15  Andreas Jaeger  <aj@suse.de>
37169             Joseph Myers  <joseph@codesourcery.com>
37170
37171         [BZ #13658]
37172         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
37173         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
37174         * sysdeps/i386/fpu/branred.c: Likewise.
37175         * sysdeps/i386/fpu/dosincos.c: Likewise.
37176         * sysdeps/i386/fpu/mpa.c: Likewise.
37177         * sysdeps/i386/fpu/s_cos.S: Likewise.
37178         * sysdeps/i386/fpu/s_sin.S: Likewise.
37179         * sysdeps/i386/fpu/s_sincos.S: Likewise.
37180         * sysdeps/i386/fpu/sincos32.c: Likewise.
37181
37182         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
37183         Define.
37184         (libc_feupdateenv_53bit): Define.
37185         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
37186         Define.
37187         (libc_feupdateenv_53bit): Define.
37188
37189         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
37190         53 bit (without extend i386 double precision).
37191
37192         * math/libm-test.inc (sincos_test): Add tests for large input.
37193         (sin): Likewise.
37194         (cos): Likewise.
37195
37196         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
37197
37198 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37199
37200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37201
37202 2012-03-15  David S. Miller  <davem@davemloft.net>
37203
37204         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
37205         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
37206         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
37207         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
37208         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
37209         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
37210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
37211         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
37212         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
37213         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
37214         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
37215         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
37216         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
37217         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
37218         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
37219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
37220         file.
37221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
37222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
37223         file.
37224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
37225         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
37226         file.
37227         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
37228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
37229         file.
37230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
37231         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
37232         fmin/fmax sysdep routines.
37233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37234
37235 2012-03-14  David S. Miller  <davem@davemloft.net>
37236
37237         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
37238         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
37239         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
37240         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
37241         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
37242         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
37243         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
37244         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
37245         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
37246         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
37247         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
37248         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
37249         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
37250         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
37251         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
37252         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
37253         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
37254         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
37255         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
37256         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
37257         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
37258         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
37259         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
37260         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
37261         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
37262         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
37263         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
37264         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
37265         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
37266         routines.
37267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
37268         file.
37269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
37270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
37271         file.
37272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
37273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
37274         file.
37275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
37276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
37277         file.
37278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
37279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
37280         file.
37281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
37282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
37283         file.
37284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
37285         file.
37286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
37287         file.
37288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
37289         file.
37290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
37291         New file.
37292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
37293         file.
37294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
37295         file.
37296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
37297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
37298         file.
37299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
37300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
37301         file.
37302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
37303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
37304         file.
37305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
37306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
37307         VIS3 routines.
37308
37309         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
37310         New file.
37311
37312         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37313
37314         * sysdeps/sparc/configure.in: New file.
37315         * sysdeps/sparc/configure: Generate.
37316         * configure.in (libc_cv_sparc_as_vis3): Substitute.
37317         * configure: Regenerate.
37318         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
37319         * config.make.in (have-as-vis3): New.
37320         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
37321         available use -Av9d instead of -Av9a.
37322         * sysdeps/sparc/sparc64/Makefile: Likewise.
37323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
37324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
37325         New file.
37326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
37327         file.
37328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
37329         New file.
37330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
37331         file.
37332         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
37333         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
37334         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
37335         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
37336         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
37337
37338         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
37339         fzeros/fnegs to load 0x80000000 into a float register instead of
37340         using the stack.
37341         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
37342
37343 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37344
37345         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37346         bits/syscall.h.
37347         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
37348         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
37349         ($(inst_includedir)/bits/syscall.h): Remove rule.
37350         ($(objpfx)bits/syscall.d): Include instead of
37351         $(objpfx)syscall-list.d.
37352         (generated): Change syscall-list.h and syscall-list.d to
37353         bits/syscall.h and bits/syscall.d.
37354
37355 2012-03-14  Roland McGrath  <roland@hack.frob.com>
37356
37357         [BZ #13846]
37358         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
37359
37360 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37361
37362         [BZ #13841]
37363         * math/s_csqrt.c: Include <float.h>.
37364         (__csqrt): Scale large or subnormal inputs.
37365         * math/s_csqrtf.c: Likewise.
37366         * math/s_csqrtl.c: Likewise.
37367         * math/libm-test.inc (csqrt_test): Add more tests.
37368         * sysdeps/i386/fpu/libm-test-ulps: Update.
37369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37370
37371         [BZ #13840]
37372         * math/libm-test.inc (hypot_test): Add more tests.
37373
37374 2012-03-13  David S. Miller  <davem@davemloft.net>
37375
37376         [BZ #13840]
37377         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
37378         double-precision for the calculation instead of scaling.
37379
37380 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
37381
37382         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
37383         manipulate bits before adding and subtracting TWO52[sx].
37384         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
37385         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
37386         Likewise.
37387         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
37388
37389 2012-03-13  David S. Miller  <davem@davemloft.net>
37390
37391         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
37392         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
37393         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
37394         rtld-global-offsets.h
37395         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37396
37397         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
37398         large parameters.
37399
37400         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
37401
37402         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
37403         'err' in the ifdef scope in which it is actually used.
37404
37405         * nss/nss_db/db-init.c: Include string.h
37406
37407 2012-03-12  David S. Miller  <davem@davemloft.net>
37408
37409         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
37410         masking out of the most significant byte of random value used.
37411         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37412         Fix coding style in previous change.
37413
37414         * sysdeps/unix/sysv/linux/kernel-features.h
37415         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
37416         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
37417         expression.
37418         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
37419         later.
37420
37421 2012-03-11  David S. Miller  <davem@davemloft.net>
37422
37423         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
37424         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
37425         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
37426         for 'resultvar' otherwise things get truncated on 64-bit.
37427
37428         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37429         Fix masking out of the most significant byte of random value used.
37430
37431         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37432
37433 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
37434
37435         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37436
37437 2012-03-09  David S. Miller  <davem@davemloft.net>
37438
37439         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
37440         variables with appropriate CPP guards.
37441         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
37442         from the frame pointer, not the stack pointer.  Correct layout
37443         comments.  Fix test on resulting framesize and the management of
37444         the outregs buffer for pltexit.  Preserve floating point return
37445         values across _dl_call_pltexit call.
37446         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
37447         framesize and the management of the outregs buffer for pltexit.
37448         Preserve floating point return values across _dl_call_pltexit
37449         call.
37450         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
37451         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
37452         (la_sparc64_gnu_pltexit): New functions.
37453         (print_exit): Fix format string for return register value.
37454
37455 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
37456
37457         * sunrpc/Makefile (others): Add rpcgen.
37458         ($(objpfx)rpcgen): Remove special build rule and dependency on
37459         libc.
37460         * sunrpc/rpcgen.c: New file.
37461
37462 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
37463
37464         [BZ #13673]
37465         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
37466         * stdio-common/bug-vfprintf-nargs.c: Likewise.
37467         * sysdeps/i386/crti.S: Likewise.
37468         * sysdeps/i386/crtn.S: Likewise.
37469         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
37470         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
37471         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
37472         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
37473         * sysdeps/sh/crti.S: Likewise.
37474         * sysdeps/sh/crtn.S: Likewise.
37475         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
37476
37477         [BZ #13673]
37478         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
37479         with URL.
37480         * locale/programs/locfile-kw.gperf: Likewise.
37481         * locale/programs/charmap-kw.h: Regenerated.
37482         * locale/programs/locfile-kw.h: Likewise.
37483
37484         [BZ #13673]
37485         * intl/plural.y: Replace FSF snail mail address with URL.
37486         * intl/plural.c: Regenerated.
37487
37488 2012-03-09  Richard Henderson  <rth@twiddle.net>
37489
37490         * include/math_private.h: Remove file.
37491         * math/math_private.h: Move file ...
37492         * sysdeps/generic/math_private.h: ... here.
37493
37494         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
37495         * sysdeps/powerpc/fpu/math_private.h: Likewise.
37496         * sysdeps/x86_64/fpu/math_private.h: Likewise.
37497
37498         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
37499         and <math_private.h>.
37500         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37501         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37502         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37503         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37504         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37505         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
37506         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
37507         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
37508         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
37509         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
37510         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
37511         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
37512         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
37513         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
37514         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
37515         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
37516         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
37517         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
37518         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
37519         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
37520         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
37521         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
37522         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
37523         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
37524         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
37525         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
37526         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
37527         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
37528         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
37529         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37530         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
37531         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
37532         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
37533         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
37534         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37535         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37536         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
37537         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37538         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37539         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37540         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
37541         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37542         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37543         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
37544         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
37545         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37546         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
37547         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
37548         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
37549         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37550         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
37551         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
37552         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
37553         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37554         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
37555         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
37556         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
37557         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37558         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
37559         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
37560         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
37561         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
37562         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
37563         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37564         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
37565         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
37566         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
37567         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
37568         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
37569         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
37570         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
37571         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
37572         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
37573         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
37574         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
37575         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
37576         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
37577         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37578         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
37579         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
37580         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
37581         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
37582         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
37583         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
37584         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
37585         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37586         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
37587         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
37588         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
37589         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37590         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37591         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
37592         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
37593         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
37594         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
37595         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
37596         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
37597         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
37598         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
37599         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
37600         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
37601         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
37602         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
37603         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
37604         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37605         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
37606         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
37607         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
37608         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37609         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37610         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37611         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37612         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
37613         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37614         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
37615         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
37616         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37617         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37618         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37619         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
37620         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37621         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37622         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
37623         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
37624         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37625         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37626         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
37627         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
37628         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37629         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
37630         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
37631         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
37632         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37633         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
37634         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
37635         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
37636         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
37637         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37638         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
37639         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
37640         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
37641         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37642         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37643         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
37644         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
37645         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37646         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37647         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37648         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
37649         * sysdeps/ieee754/k_standard.c: Likewise.
37650         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
37651         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
37652         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37653         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
37654         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
37655         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
37656         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
37657         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
37658         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
37659         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
37660         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
37661         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
37662         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
37663         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
37664         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
37665         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
37666         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
37667         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
37668         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
37669         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
37670         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
37671         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
37672         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37673         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37674         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
37675         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
37676         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37677         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37678         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37679         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37680         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
37681         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37682         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37683         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37684         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
37685         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37686         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37687         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
37688         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
37689         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37690         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
37691         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
37692         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
37693         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37694         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
37695         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
37696         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37697         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37698         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37699         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37700         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37701         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
37702         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37703         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
37704         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37705         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37706         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
37707         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
37708         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37709         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37710         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37711         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
37712         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37713         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
37714         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37715         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37716         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
37717         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
37718         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
37719         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
37720         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
37721         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37722         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
37723         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
37724         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
37725         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
37726         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
37727         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
37728         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37729         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
37730         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
37731         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
37732         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37733         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37734         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
37735         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37736         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37737         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
37738         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
37739         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37740         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
37741         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37742         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37743         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
37744         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37745         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37746         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
37747         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37748         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37749         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
37750         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37751         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37752         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37753         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37754         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
37755         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37756         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37757         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37758         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
37759         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37760         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37761         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37762         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
37763         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37764         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
37765         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
37766         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
37767         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37768         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
37769         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
37770         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
37771         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
37772         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
37773         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
37774         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37775         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
37776         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37777         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37778         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37779         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37780         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37781         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37782         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37783         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
37784         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37785         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37786         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
37787         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
37788         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37789         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
37790         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
37791         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37792         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
37793         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
37794         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37795         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37796         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37797         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37798         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37799         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
37800         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37801         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
37802         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37803         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37804         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
37805         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
37806         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37807         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37808         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37809         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
37810         * sysdeps/ieee754/s_lib_version.c: Likewise.
37811         * sysdeps/ieee754/s_matherr.c: Likewise.
37812         * sysdeps/ieee754/s_signgam.c: Likewise.
37813         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
37814         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
37815         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
37816         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
37817         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
37818         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
37819         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
37820         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
37821         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
37822         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
37823         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
37824         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
37825         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37826         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37827         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
37828         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
37829         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
37830         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
37831         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
37832         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37833         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37834
37835 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37836
37837         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
37838         * sunrpc/rpc_main.c: Likewise.
37839         * sunrpc/rpc_svcout.c: Likewise.
37840
37841 2012-03-09  David S. Miller  <davem@davemloft.net>
37842
37843         * include/math_private.h: New file.
37844
37845 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37846
37847         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
37848         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
37849         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
37850         from <bits/socket_type.h>.
37851         (enum __socket_type): Don't define here.
37852         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
37853         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37854         bits/socket_type.h.
37855
37856         [BZ #13566]
37857         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
37858         checking __USE_GNU.
37859
37860         * Makerules ($(inst_includedir)/%.h): New rule.
37861         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
37862         (install-others): Remove variable setting.
37863         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
37864
37865 2012-03-08  Richard Henderson  <rth@twiddle.net>
37866
37867         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
37868         from macro to inline function; merge with the
37869         !__LIBC_INTERNAL_MATH_INLINES version.
37870         (__ieee754_sqrtf): Likewise.
37871
37872         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
37873         to inline function.
37874         (__rintf, __floor, __floorf): Likewise.
37875
37876         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
37877         macro to inline function.
37878         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
37879
37880         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
37881         not <math/math_private.h>.
37882
37883 2012-03-08  David S. Miller  <davem@davemloft.net>
37884
37885         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
37886         copyright year.
37887         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
37888
37889 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
37890
37891         * resolv/gai_misc.c (handle_requests): Fix struct timespec
37892         normalization.
37893         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
37894         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37895
37896 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
37897
37898         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
37899         be defined individually, they must be defined as a block.  Define
37900         S for printing a string instead of hidint the different by using a
37901         macro for adding the 'l'.
37902         * stdio-common/tst-fphex-wide.c: Adjust.
37903
37904 2012-03-07  Marek Polacek  <polacek@redhat.com>
37905
37906         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
37907
37908 2012-03-08  Marek Polacek  <polacek@redhat.com>
37909
37910         [BZ #13806]
37911         * stdio-common/Makefile (tests): Add tst-fphex-wide.
37912         * stdio-common/tst-fphex.c: Define a few macros to make the
37913         test reusable.  Use them.
37914         * stdio-common/tst-fphex-wide.c: New file.
37915
37916 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
37917
37918         [BZ #6911]
37919         * manual/macros.texi (gnusystems): New macro.
37920         (nongnusystems): Likewise.
37921         (gnulinuxhurdsystems): Likewise.
37922         (gnuhurdsystems): Likewise..
37923         (gnulinuxsystems): Likewise.
37924         * manual/charset.texi: Use new macros or @theglibc{} to refer to
37925         variants of the GNU system, not "GNU system".
37926         * manual/conf.texi: Likewise.
37927         * manual/errno.texi: Likewise.  Update example of errno macro
37928         expansion.
37929         * manual/filesys.texi: Likewise.
37930         (getumask): Document as specific to GNU/Hurd.
37931         * manual/install.texi: Likewise.  Reword some references to
37932         GNU/Linux.
37933         * manual/intro.texi: Likewise.
37934         * manual/io.texi: Likewise.
37935         (File Name Portability): Detail which constraints are inapplicable
37936         to all GNU systems and which are only inapplicable to GNU/Hurd.
37937         * manual/job.texi: Likewise.
37938         * manual/llio.texi: Likewise.
37939         (O_NOCTTY): Document as present on GNU/Linux.
37940         * manual/maint.texi: Likewise.
37941         * manual/memory.texi: Likewise.
37942         * manual/pattern.texi: Likewise.
37943         * manual/pipe.texi: Likewise.
37944         * manual/process.texi: Likewise.
37945         * manual/resource.texi: Likewise.
37946         (RUSAGE_CHILDREN): Remove statement about specifying a particular
37947         child on GNU/Hurd.
37948         * manual/setjmp.texi: Likewise.
37949         * manual/signal.texi: Likewise.
37950         * manual/startup.texi: Likewise.
37951         * manual/stdio.texi: Likewise.
37952         * manual/terminal.texi: Likewise.
37953         (ONLCR): Document as POSIX.
37954         (OXTABS): Document availability on GNU/Linux as XTABS.
37955         (ONOEOT): Document availability separately from other bits.
37956         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
37957         * manual/time.texi: Likewise.
37958         * manual/users.texi: Likewise.
37959         * INSTALL: Regenerated.
37960         * sysdeps/gnu/errlist.c: Regenerated.
37961
37962         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
37963         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
37964         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
37965         puts.
37966         * configure: Regenerated.
37967
37968 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
37969
37970         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
37971         default includes instead of AC_HEADER_CHECK.
37972         * sysdeps/i386/configure: Regenerated.
37973
37974         [BZ #10716]
37975         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
37976         * math/s_cacoshf.c (__cacoshf): Likewise.
37977         * math/s_cacoshl.c (__cacoshl): Likewise.
37978         * math/s_casinh.c (__casinh): Set signs of result from argument.
37979         * math/s_casinhf.c (__casinhf): Likewise.
37980         * math/s_casinhl.c (__casinhl): Likewise.
37981         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
37982         (casinh_test): Add more tests.
37983         * sysdeps/i386/fpu/libm-test-ulps: Update.
37984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37985
37986 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
37987
37988         * po/zh_TW.po: Update from translation team.
37989
37990         * login/Makefile (distribute): Remove variable.
37991         * catgets/Makefile: Likewise.
37992         * mach/Makefile: Likewise.
37993         * malloc/Makefile: Likewise.
37994         * misc/Makefile: Likewise.
37995         * iconv/Makefile: Likewise.
37996         * nscd/Makefile: Likewise.
37997         * hurd/Makefile: Likewise.
37998         * manual/Makefile: Likewise.
37999         * locale/Makefile: Likewise.
38000         * intl/Makefile: Likewise.
38001         * conform/Makefile: Likewise.
38002         * nss/Makefile: Likewise.
38003         * time/Makefile: Likewise.
38004         * soft-fp/Makefile: Likewise.
38005         * dirent/Makefile: Likewise.
38006         * gmon/Makefile: Likewise.
38007         * po/Makefile: Likewise.
38008         * rt/Makefile: Likewise.
38009         * socket/Makefile: Likewise.
38010         * math/Makefile: Likewise.
38011         * signal/Makefile: Likewise.
38012         * debug/Makefile: Likewise.
38013         * elf/Makefile: Likewise.
38014         * timezone/Makefile: Likewise.
38015         * stdlib/Makefile: Likewise.
38016         * iconvdata/Makefile: Likewise.
38017         * sunrpc/Makefile: Likewise.
38018         * io/Makefile: Likewise.
38019         * argp/Makefile: Likewise.
38020         * inet/Makefile: Likewise.
38021         * hesiod/Makefile: Likewise.
38022         * grp/Makefile: Likewise.
38023         * csu/Makefile: Likewise.
38024         * wctype/Makefile: Likewise.
38025         * crypt/Makefile: Likewise.
38026         * libio/Makefile: Likewise.
38027         * string/Makefile: Likewise.
38028         * nis/Makefile: Likewise.
38029         * resolv/Makefile: Likewise.
38030         * stdio-common/Makefile: Likewise.
38031         * wcsmbs/Makefile: Likewise.
38032         * dlfcn/Makefile: Likewise.
38033         * posix/Makefile: Likewise.
38034
38035         [BZ #6959]
38036         * timezone/Makefile: Don't install timezone files, just the programs
38037         and scripts.
38038
38039 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
38040
38041         * nss/databases.def: Add missing gshadow entry.
38042
38043         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
38044
38045 2012-03-06  Marek Polacek  <polacek@redhat.com>
38046
38047         [BZ #13726]
38048         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
38049         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
38050         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
38051         * stdio-common/tst-long-dbl-fphex.c: New file.
38052
38053 2012-03-06  David S. Miller  <davem@davemloft.net>
38054
38055         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
38056         (set_obp_int): New function.
38057         (get_obp_int): New function.
38058         (__get_clockfreq_via_dev_openprom): Likewise.
38059         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
38060         Avoid unused variable warnings on 'val' and use builtin_expect.
38061         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
38062         __builtin_expect.
38063         (INLINE_CLONE_SYSCALL): Likewise.
38064
38065 2012-03-05  David S. Miller  <davem@davemloft.net>
38066
38067         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38068
38069 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
38070
38071         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38072
38073         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
38074         only for |x| >= 40.
38075         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
38076
38077 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
38078
38079         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
38080         Replace gettimeofday with __vdso_gettimeofday.
38081
38082         * sysdeps/unix/sysv/linux/x86_64/init-first.c
38083         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
38084         __vdso_clock_gettime and __vdso_getcpu.
38085
38086         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
38087         time with __vdso_time.
38088
38089 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38090
38091         * manual/lang.texi (size_t): Note types to which size_t may be
38092         equivalent with the GNU C Library, but do not describe when
38093         differences between them are significant.
38094
38095 2012-03-05  Andreas Jaeger  <aj@suse.de>
38096
38097         * sysdeps/i386/fpu/libm-test-ulps: Update.
38098
38099 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38100
38101         [BZ #3976]
38102         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
38103         (__ieee754_pow): Save and restore rounding mode and use
38104         round-to-nearest for main computations.
38105         * math/libm-test.inc (pow_test_tonearest): New function.
38106         (pow_test_towardzero): Likewise.
38107         (pow_test_downward): Likewise.
38108         (pow_test_upward): Likewise.
38109         (main): Call the new functions.
38110         * sysdeps/i386/fpu/libm-test-ulps: Update.
38111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38112
38113         [BZ #3976]
38114         * math/libm-test.inc (cosh_test_tonearest): New function.
38115         (cosh_test_towardzero): Likewise.
38116         (cosh_test_downward): Likewise.
38117         (cosh_test_upward): Likewise.
38118         (sinh_test_tonearest): Likewise.
38119         (sinh_test_towardzero): Likewise.
38120         (sinh_test_downward): Likewise.
38121         (sinh_test_upward): Likewise.
38122         (main): Call the new functions.
38123         * sysdeps/i386/fpu/libm-test-ulps: Update.
38124         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38125
38126 2012-03-05  Tom de Vries  <tom@codesourcery.com>
38127
38128         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
38129         default stack guard is set in last bytes.
38130         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
38131
38132 2012-03-05  Kees Cook  <keescook@chromium.org>
38133
38134         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
38135
38136         [BZ #13656]
38137         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
38138         possibly allocate from heap instead of stack.
38139         * stdio-common/bug-vfprintf-nargs.c: New file.
38140         * stdio-common/Makefile (tests): Add nargs overflow test.
38141
38142 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
38143
38144         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38145
38146 2012-03-03  Marek Polacek  <polacek@redhat.com>
38147
38148         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
38149         * math/math_private.h: Likewise.
38150         * stdlib/tst-strtod.c: Likewise.
38151         * sysdeps/i386/i486/bits/atomic.h: Likewise.
38152         * sysdeps/x86_64/bits/atomic.h: Likewise.
38153
38154 2012-03-02  David S. Miller  <davem@davemloft.net>
38155
38156         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
38157         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
38158         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
38159         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
38160         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
38161         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
38162         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
38163         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
38164
38165 2012-03-02  Roland McGrath  <roland@hack.frob.com>
38166
38167         [BZ #13792]
38168         * manual/examples/README: New file, says the example source files
38169         can be used under GPL>=2.
38170         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
38171         line containing just "*/".
38172         * manual/examples/add.c: Add copyright header (GPL>=2).
38173         * manual/examples/argp-ex1.c: Likewise.
38174         * manual/examples/argp-ex2.c: Likewise.
38175         * manual/examples/argp-ex3.c: Likewise.
38176         * manual/examples/argp-ex4.c: Likewise.
38177         * manual/examples/atexit.c: Likewise.
38178         * manual/examples/db.c: Likewise.
38179         * manual/examples/dir.c: Likewise.
38180         * manual/examples/dir2.c: Likewise.
38181         * manual/examples/execinfo.c: Likewise.
38182         * manual/examples/filecli.c: Likewise.
38183         * manual/examples/filesrv.c: Likewise.
38184         * manual/examples/fmtmsgexpl.c: Likewise.
38185         * manual/examples/genpass.c: Likewise.
38186         * manual/examples/inetcli.c: Likewise.
38187         * manual/examples/inetsrv.c: Likewise.
38188         * manual/examples/isockad.c: Likewise.
38189         * manual/examples/longopt.c: Likewise.
38190         * manual/examples/memopen.c: Likewise.
38191         * manual/examples/memstrm.c: Likewise.
38192         * manual/examples/mkfsock.c: Likewise.
38193         * manual/examples/mkisock.c: Likewise.
38194         * manual/examples/mygetpass.c: Likewise.
38195         * manual/examples/pipe.c: Likewise.
38196         * manual/examples/popen.c: Likewise.
38197         * manual/examples/rprintf.c: Likewise.
38198         * manual/examples/search.c: Likewise.
38199         * manual/examples/select.c: Likewise.
38200         * manual/examples/setjmp.c: Likewise.
38201         * manual/examples/sigh1.c: Likewise.
38202         * manual/examples/sigusr.c: Likewise.
38203         * manual/examples/stpcpy.c: Likewise.
38204         * manual/examples/strdupa.c: Likewise.
38205         * manual/examples/strftim.c: Likewise.
38206         * manual/examples/strncat.c: Likewise.
38207         * manual/examples/subopt.c: Likewise.
38208         * manual/examples/swapcontext.c: Likewise.
38209         * manual/examples/termios.c: Likewise.
38210         * manual/examples/testopt.c: Likewise.
38211         * manual/examples/testpass.c: Likewise.
38212         * manual/examples/timeval_subtract.c: Likewise.
38213
38214         [BZ #13792]
38215         * manual/time.texi (Elapsed Time): Move timeval_subtract example
38216         function to ...
38217         * manual/timeval_subtract.c.texi: ... here, new file.
38218
38219 2012-03-02  David S. Miller  <davem@davemloft.net>
38220
38221         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
38222
38223 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
38224
38225         [BZ #3976]
38226         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
38227         (__sin): Save and restore rounding mode and use round-to-nearest
38228         for all computations.
38229         (__cos): Save and restore rounding mode and use round-to-nearest
38230         for all computations.
38231         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
38232         <fenv.h>.
38233         (tan): Save and restore rounding mode and use round-to-nearest for
38234         all computations.
38235         * math/libm-test.inc (cos_test_tonearest): New function.
38236         (cos_test_towardzero): Likewise.
38237         (cos_test_downward): Likewise.
38238         (cos_test_upward): Likewise.
38239         (sin_test_tonearest): Likewise.
38240         (sin_test_towardzero): Likewise.
38241         (sin_test_downward): Likewise.
38242         (sin_test_upward): Likewise.
38243         (tan_test_tonearest): Likewise.
38244         (tan_test_towardzero): Likewise.
38245         (tan_test_downward): Likewise.
38246         (tan_test_upward): Likewise.
38247         (main): Call the new functions.
38248         * sysdeps/i386/fpu/libm-test-ulps: Update.
38249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38250
38251         [BZ #10135]
38252         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
38253         small n, then large n, before computing and testing k+n.
38254         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38255         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
38256         Likewise.
38257         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
38258         Likewise.
38259         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
38260         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
38261         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
38262         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
38263         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
38264         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
38265         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
38266         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
38267         * math/libm-test.inc (scalbn_test): Add more tests.
38268         (scalbln_test): Likewise.
38269
38270         * manual/filesys.texi (mode_t): Describe constraints on size and
38271         signedness, not exact equivalence to a particular type.
38272         (ino_t): Likewise.
38273         (ino64_t): Likewise.
38274         (dev_t): Likewise.
38275         (nlink_t): Likewise.
38276         (blkcnt_t): Likewise.
38277         (blkcnt64_t): Likewise.
38278         * manual/llio.texi (off_t): Likewise.
38279
38280         [BZ #3976]
38281         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
38282         (__ieee754_exp): Save and restore rounding mode and use
38283         round-to-nearest for all computations.
38284         * math/libm-test.inc (exp_test_tonearest): New function.
38285         (exp_test_towardzero): Likewise.
38286         (exp_test_downward): Likewise.
38287         (exp_test_upward): Likewise.
38288         (main): Call the new functions.
38289         * sysdeps/i386/fpu/libm-test-ulps: Update.
38290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38291
38292 2012-03-01  Chris Demetriou  <cgd@google.com>
38293
38294         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
38295         have predictable order.
38296
38297 2012-03-01  David S. Miller  <davem@davemloft.net>
38298
38299         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
38300
38301         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
38302         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
38303         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
38304         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
38305
38306         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
38307         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
38308         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
38309         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
38310         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
38311         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
38312         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
38313         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
38314         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
38315
38316         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38317
38318         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
38319         * sysdeps/sparc/fpu/libm-test-ulps: to here.
38320         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
38321
38322         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
38323         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
38324         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38325         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
38326         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
38327         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
38328         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
38329         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
38330         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38331         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
38332         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
38333         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38334         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38335         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38336         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38337         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38338         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
38339         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
38340         * sysdeps/sparc/elf/configure: Regenerated.
38341
38342 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
38343
38344         * configure.in (AS, LD): Require binutils 2.20 or later.
38345         * configure: Regenerated.
38346         * manual/install.texi (Tools for Compilation): Give binutils 2.20
38347         as required minimum version.
38348         * INSTALL: Regenerated.
38349
38350         [BZ #2541]
38351         [BZ #4108]
38352         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
38353         before squaring exponent.
38354         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
38355         bottom long double and 27 bits of top long double before squaring
38356         exponent.
38357         * math/libm-test.inc (erfc_test): Add more tests.
38358         * sysdeps/i386/fpu/libm-test-ulps: Update.
38359         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38360         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38361
38362 2012-03-01  Kai Tietz  <ktietz@redhat.com>
38363
38364         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
38365         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
38366         containing bit-fields.
38367         * soft-fp/extended.h (_FP_UNION_E): Likewise.
38368         * soft-fp/single.h (_FP_UNION_S): Likewise.
38369         * soft-fp/double.h (_FP_UNION_D): Likewise.
38370
38371 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38372
38373         [BZ #13786]
38374         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
38375         not include ../strcmp.S.
38376         [USE_AS_STRNCASECMP_L]: Likewise.
38377         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
38378         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
38379         * sysdeps/i386/i686/multiarch/strncase_l-c.c
38380         (__strncasecmp_l_ia32): Define as alias to
38381         __strncasecmp_l_nonascii.
38382
38383         [BZ #5794]
38384         * math/libm-test.inc (expm1_test): Add test for bug 5794.
38385         * sysdeps/i386/fpu/libm-test-ulps: Update.
38386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38387
38388         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
38389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38390
38391 2012-02-29  Jeff Law  <law@redhat.com>
38392
38393         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
38394         out of bounds read.
38395
38396 2012-02-29  Marek Polacek  <polacek@redhat.com>
38397
38398         [BZ #13706]
38399         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
38400         * elf/Makefile: Add rules to run tst-unused-dep.out.
38401
38402 2012-02-28  David S. Miller  <davem@davemloft.net>
38403
38404         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
38405         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
38406         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
38407         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
38408         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
38409         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
38410
38411 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38412
38413         * math/libm-test.inc (llround_test): Move one test from
38414         lround_test.  Use TEST_f_L in moved test.
38415         (lround_test): Move misplaced test to llround_test.  Add testcase
38416         from bug 2561.
38417
38418 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
38419
38420         * sysdeps/x86_64/fpu/e_expf.S: New file.
38421         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
38422
38423 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
38424
38425         [BZ #13637]
38426         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
38427         of remain_len that may cause incomplete multi-byte character and
38428         false match.
38429         * posix/bug-regex33.c: New file.
38430         * posix/Makefile (tests): Add bug-regex33.
38431
38432 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
38433
38434         * manual/macros.texi: New file.
38435         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
38436         * manual/libc.texinfo: Include macros.texi.
38437         * manual/creatute.texi: Likewise.
38438         * manual/install.texi: Likewise.
38439         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
38440         @glibcadj{} in references to the GNU C Library.
38441         * manual/charset.texi: Likewise.
38442         * manual/conf.texi: Likewise.
38443         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
38444         when not using those macros.
38445         * manual/creature.texi: Likewise.
38446         * manual/crypt.texi: Likewise.
38447         * manual/errno.texi: Likewise.
38448         * manual/filesys.texi: Likewise.
38449         * manual/header.texi: Likewise.
38450         * manual/install.texi: Likewise.
38451         * manual/intro.texi: Likewise.
38452         * manual/io.texi: Likewise.
38453         * manual/job.texi: Likewise.
38454         * manual/lang.texi: Likewise.
38455         * manual/libc.texiinfo: Likewise.
38456         * manual/llio.texi: Likewise.
38457         * manual/locale.texi: Likewise.
38458         * manual/maint.texi: Likewise.
38459         * manual/math.texi: Likewise.
38460         * manual/memory.texi: Likewise.
38461         * manual/message.texi: Likewise.
38462         * manual/nss.texi: Likewise.
38463         * manual/pattern.texi: Likewise.
38464         * manual/process.texi: Likewise.
38465         * manual/resource.texi: Likewise.
38466         * manual/search.texi: Likewise.
38467         * manual/setjmp.texi: Likewise.
38468         * manual/signal.texi: Likewise.
38469         * manual/socket.texi: Likewise.
38470         * manual/startup.texi: Likewise.
38471         * manual/stdio.texi: Likewise.
38472         * manual/string.texi: Likewise.
38473         * manual/sysinfo.texi: Likewise.
38474         * manual/syslog.texi: Likewise.
38475         * manual/terminal.texi: Likewise.
38476         * manual/time.texi: Likewise.
38477         * manual/users.texi: Likewise.
38478         * INSTALL: Regenerated.
38479         * NOTES: Regenerated.
38480         * sysdeps/gnu/errlist.c: Regenerated.
38481
38482 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
38483
38484         * include/dirent.h: Include <dirstream.h> before
38485         <dirent/dirent.h>.
38486
38487 2012-02-28  David S. Miller  <davem@davemloft.net>
38488
38489         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
38490         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
38491         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
38492         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
38493
38494 2012-02-27  David S. Miller  <davem@davemloft.net>
38495
38496         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
38497         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
38498         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
38499         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
38500
38501         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
38502         frame pointer instead of stack pointer relative arg slot.
38503         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38504         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38505         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38506
38507 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
38508
38509         [BZ #3992]
38510         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
38511
38512 2012-02-27  David S. Miller  <davem@davemloft.net>
38513
38514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
38515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38516         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
38517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
38518         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38519         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38520         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
38521         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
38522
38523 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38524
38525         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
38526         later.  Allow versions 5-9.
38527         * configure: Regenerated.
38528         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
38529         required minimum version and 4.6 as recommended version.  Do not
38530         mention bugs in GCC 2.7 and 2.8.
38531         * INSTALL: Regenerated.
38532
38533 2012-02-27  David S. Miller  <davem@davemloft.net>
38534
38535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
38536         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
38537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
38538         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
38539         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
38540         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
38541         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
38542         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
38543
38544         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
38545         manipulate bits before adding and subtracting TWO112[sx].
38546         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38547
38548 2012-02-27  Roland McGrath  <roland@hack.frob.com>
38549
38550         [BZ #13775]
38551         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
38552         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
38553         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
38554         being in POSIX, because they are in 1003.1-2008.
38555
38556         * rt/tst-aio.c: Include <fcntl.h>.
38557         * rt/tst-aio7.c: Likewise.
38558         * rt/tst-aio64.c: Likewise.
38559
38560         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
38561
38562 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38563
38564         * manual/install.texi (--with-headers): Describe headers as
38565         interface headers, not private headers.
38566         (Specific advice for GNU/Linux systems): Describe use of headers
38567         from "make headers_install", not private headers from older
38568         kernels.
38569         * INSTALL: Regenerated.
38570         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
38571         Change to 2.6.19.
38572         * sysdeps/unix/sysv/linux/configure: Regenerated.
38573
38574         * manual/llio.texi (fclean): Remove documentation.
38575
38576         * manual/Makefile (libc-texi-generated): New variable.  Include
38577         version.texi.
38578         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
38579         $(libc-texi-generated), not duplicated list of files.
38580         (version.texi, stamp-version): New rules.
38581         (realclean): Remove $(libc-texi-generated), not individual files
38582         from that list.  Do not remove dir-add.texinfo.
38583         * manual/libc.texinfo: Comment out uses of edition numbers and
38584         references to printed manual.  Remove last-updated dates.
38585         (EDITION): Comment out.
38586         (ISBN): Likewise.
38587         (VERSION, UPDATED): Remove.
38588         (version.texi): Include.
38589
38590 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
38591
38592         * sysdeps/posix/spawni.c: Include <signal.h>.
38593         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
38594         * sysdeps/pthread/aio_fsync.c: Likewise.
38595
38596 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
38597
38598         * conform/Makefile (tests): Run only when not cross-compiling and
38599         when fast-check is not defined.
38600
38601         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
38602         * conform/data/limits.h-data: Fixes for POSIX2008.
38603         * conform/run-conformtest.sh: Run all tests.
38604         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
38605         headers.
38606         * include/bits/dlfcn.h: Likewise.
38607         * include/langinfo.h: Likewise.
38608         * include/monetary.h: Likewise.
38609         * include/sys/poll.h: Likewise.
38610
38611         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
38612         for __USE_GNU.
38613         * posix/spawn.h: Define __need_sigset_t.
38614         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
38615         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
38616         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
38617         to get sigevent_t only.
38618         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
38619         only for __USE_GNU.
38620         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
38621         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
38622         process_vm_writev only for __USE_GNU.
38623         * termios/termios.h: Declare tcgetsid also for POSIX2008.
38624
38625         * conform/Makefile: For now ignore errors from run-conformtest.
38626         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
38627         POSIX to avoid namespace pollution.  Don't prepend headers.
38628         * conform/data/aio.h-data: Fixes for POSIX testing.
38629         * conform/data/fcntl.h-data: Likewise.
38630         * conform/data/glob.h-data: Likewise.
38631         * conform/data/grp.h-data: Likewise.
38632         * conform/data/pthread.h-data: Likewise.
38633         * conform/data/pwd.h-data: Likewise.
38634         * conform/data/signal.h-data: Likewise.
38635         * conform/data/spawn.h-data: Likewise.
38636         * conform/data/stdio.h-data: Likewise.
38637         * conform/data/stdlib.h-data: Likewise.
38638         * conform/data/stropts.h-data: Likewise.
38639         * conform/data/sys/mman.h-data: Likewise.
38640         * conform/data/sys/stat.h-data: Likewise.
38641         * conform/data/sys/types.h-data: Likewise.
38642         * conform/data/sys/wait.h-data: Likewise.
38643         * conform/data/time.h-data: Likewise.
38644         * conform/data/unistd.h-data: Likewise.
38645         * conform/data/utime.h-data: Likewise.
38646
38647         * io/sys/stat.h: fchmod was always in POSIX.
38648         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
38649         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
38650         * rt/aio.h: Define __need_timespec before including <time.h>.
38651         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
38652         struct.  Add forward declaration of pthread_attr_t and use it in
38653         sigevent.
38654         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
38655         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
38656         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
38657         always remove CLK_TCK definition.
38658
38659 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
38660
38661         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
38662
38663 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
38664
38665         * conform/run-conformtest.sh: New file.
38666         * conform/Makefile: Run run-conformtest for tests.
38667         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
38668         support.
38669
38670         * conform/data/uchar.h-data: New file.
38671         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
38672         * conform/data/arpa/inet.h-data: Likewise.
38673         * conform/data/assert.h-data: Likewise.
38674         * conform/data/complex.h-data: Likewise.
38675         * conform/data/cpio.h-data: Likewise.
38676         * conform/data/ctype.h-data: Likewise.
38677         * conform/data/dirent.h-data: Likewise.
38678         * conform/data/dlfcn.h-data: Likewise.
38679         * conform/data/errno.h-data: Likewise.
38680         * conform/data/fcntl.h-data: Likewise.
38681         * conform/data/float.h-data: Likewise.
38682         * conform/data/fmtmsg.h-data: Likewise.
38683         * conform/data/fnmatch.h-data: Likewise.
38684         * conform/data/ftw.h-data: Likewise.
38685         * conform/data/glob.h-data: Likewise.
38686         * conform/data/grp.h-data: Likewise.
38687         * conform/data/iconv.h-data: Likewise.
38688         * conform/data/inttypes.h-data: Likewise.
38689         * conform/data/langinfo.h-data: Likewise.
38690         * conform/data/libgen.h-data: Likewise.
38691         * conform/data/limits.h-data: Likewise.
38692         * conform/data/locale.h-data: Likewise.
38693         * conform/data/math.h-data: Likewise.
38694         * conform/data/monetary.h-data: Likewise.
38695         * conform/data/mqueue.h-data: Likewise.
38696         * conform/data/ndbm.h-data: Likewise.
38697         * conform/data/net/if.h-data: Likewise.
38698         * conform/data/netdb.h-data: Likewise.
38699         * conform/data/netinet/in.h-data: Likewise.
38700         * conform/data/nl_types.h-data: Likewise.
38701         * conform/data/poll.h-data: Likewise.
38702         * conform/data/pthread.h-data: Likewise.
38703         * conform/data/pwd.h-data: Likewise.
38704         * conform/data/regex.h-data: Likewise.
38705         * conform/data/sched.h-data: Likewise.
38706         * conform/data/search.h-data: Likewise.
38707         * conform/data/semaphore.h-data: Likewise.
38708         * conform/data/setjmp.h-data: Likewise.
38709         * conform/data/signal.h-data: Likewise.
38710         * conform/data/spawn.h-data: Likewise.
38711         * conform/data/stdarg.h-data: Likewise.
38712         * conform/data/stdio.h-data: Likewise.
38713         * conform/data/stdlib.h-data: Likewise.
38714         * conform/data/string.h-data: Likewise.
38715         * conform/data/strings.h-data: Likewise.
38716         * conform/data/stropts.h-data: Likewise.
38717         * conform/data/sys/ipc.h-data: Likewise.
38718         * conform/data/sys/mman.h-data: Likewise.
38719         * conform/data/sys/msg.h-data: Likewise.
38720         * conform/data/sys/resource.h-data: Likewise.
38721         * conform/data/sys/select.h-data: Likewise.
38722         * conform/data/sys/sem.h-data: Likewise.
38723         * conform/data/sys/shm.h-data: Likewise.
38724         * conform/data/sys/socket.h-data: Likewise.
38725         * conform/data/sys/stat.h-data: Likewise.
38726         * conform/data/sys/statvfs.h-data: Likewise.
38727         * conform/data/sys/time.h-data: Likewise.
38728         * conform/data/sys/timeb.h-data: Likewise.
38729         * conform/data/sys/times.h-data: Likewise.
38730         * conform/data/sys/types.h-data: Likewise.
38731         * conform/data/sys/uio.h-data: Likewise.
38732         * conform/data/sys/un.h-data: Likewise.
38733         * conform/data/sys/utsname.h-data: Likewise.
38734         * conform/data/sys/wait.h-data: Likewise.
38735         * conform/data/syslog.h-data: Likewise.
38736         * conform/data/tar.h-data: Likewise.
38737         * conform/data/termios.h-data: Likewise.
38738         * conform/data/utime.h-data: Likewise.
38739         * conform/data/utmpx.h-data: Likewise.
38740         * conform/data/varargs.h-data: Likewise.
38741         * conform/data/wchar.h-data: Likewise.
38742         * conform/data/wctype.h-data: Likewise.
38743         * conform/data/wordexp.h-data: Likewise.
38744
38745         * include/stropts.h: New file.
38746         * include/uchar.h: New file.
38747         * include/aio.h: Changes to allow conformtest.pl to use the headers.
38748         * include/assert.h: Likewise.
38749         * include/ctype.h: Likewise.
38750         * include/dirent.h: Likewise.
38751         * include/dlfcn.h: Likewise.
38752         * include/fcntl.h: Likewise.
38753         * include/fnmatch.h: Likewise.
38754         * include/glob.h: Likewise.
38755         * include/grp.h: Likewise.
38756         * include/libio.h: Likewise.
38757         * include/locale.h: Likewise.
38758         * include/math.h: Likewise.
38759         * include/net/if.h: Likewise.
38760         * include/netdb.h: Likewise.
38761         * include/netinet/in.h: Likewise.
38762         * include/pthread.h: Likewise.
38763         * include/pwd.h: Likewise.
38764         * include/regex.h: Likewise.
38765         * include/sched.h: Likewise.
38766         * include/search.h: Likewise.
38767         * include/setjmp.h: Likewise.
38768         * include/signal.h: Likewise.
38769         * include/stdio.h: Likewise.
38770         * include/stdlib.h: Likewise.
38771         * include/string.h: Likewise.
38772         * include/sys/cdefs.h: Likewise.
38773         * include/sys/mman.h: Likewise.
38774         * include/sys/msg.h: Likewise.
38775         * include/sys/resource.h: Likewise.
38776         * include/sys/select.h: Likewise.
38777         * include/sys/socket.h: Likewise.
38778         * include/sys/stat.h: Likewise.
38779         * include/sys/statvfs.h: Likewise.
38780         * include/sys/time.h: Likewise.
38781         * include/sys/times.h: Likewise.
38782         * include/sys/uio.h: Likewise.
38783         * include/sys/utsname.h: Likewise.
38784         * include/sys/wait.h: Likewise.
38785         * include/termios.h: Likewise.
38786         * include/time.h: Likewise.
38787         * include/ulimit.h: Likewise.
38788         * include/unistd.h: Likewise.
38789         * include/utime.h: Likewise.
38790         * include/wchar.h: Likewise.
38791         * include/wctype.h: Likewise.
38792         * include/wordexp.h: Likewise.
38793
38794         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
38795
38796         * time/time.h: TIME_UTC must be a macro.
38797         Make timespec_get available for ISO C11 only as well.
38798
38799 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
38800
38801         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
38802         Reported by Peng Haitao <penght@cn.fujitsu.com>.
38803
38804 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38805
38806         * configure.in: Use -o not -a in test for unsupported multi-arch.
38807
38808 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38809
38810         * manual/texinfo.tex: Update to version 2012-01-19.16.
38811
38812 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38813
38814         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
38815
38816 2012-02-24  Roland McGrath  <roland@hack.frob.com>
38817
38818         [BZ #13738]
38819         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
38820         * manual/fdl-1.3.texi: New file.
38821         * manual/fdl-1.1.texi: File removed.
38822
38823         [BZ #13738]
38824         * manual/libc.texinfo (FDL_VERSION): New @set.
38825         Use it for mention of FDL in cover text.
38826         (Documentation License): Use it in @include file name.
38827
38828 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38829             Roland McGrath  <roland@hack.frob.com>
38830
38831         [BZ #5461]
38832         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
38833         (not LONG_LONG_MAX and LONG_LONG_MIN.
38834         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
38835         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
38836         name.
38837         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
38838
38839 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38840
38841         [BZ #2547]
38842         [BZ #11365]
38843         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
38844         manipulate bits before adding and subtracting TWO23[sx].
38845         * math/libm-test.inc (nearbyint_test): Add more tests.
38846
38847 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38848
38849         [BZ #2548]
38850         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
38851         bits before adding and subtracting TWO23[sx].
38852         * math/libm-test.inc (rint_test): Add more tests.
38853         (rint_test_tonearest): Likewise.
38854         (rint_test_towardzero): Likewise.
38855         (rint_test_downward): Likewise.
38856         (rint_test_upward: Likewise.
38857
38858 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38859
38860         [BZ #10110]
38861         * include/stdc-predef.h: New file.  Extracted from features.h.
38862         * include/features.h: Include stdc-predef.h.
38863         * Makefile (headers): Add stdc-predef.h.
38864         * CONFORMANCE (Compiler limitations): Update.
38865
38866 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38867
38868         * manual/libc.texinfo (VERSION, UPDATED): Revert.
38869
38870 2012-02-21  David S. Miller  <davem@davemloft.net>
38871
38872         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
38873         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38874
38875 2012-02-20  David S. Miller  <davem@davemloft.net>
38876
38877         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
38878         using a normal save/restore sequence, rather than allocating a
38879         dummy stack frame just to store a frame pointer and restore.
38880         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38881
38882 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38883
38884         * manual/install.texi: Fix stray word in line-wrapped comment.
38885
38886 2012-02-20  David S. Miller  <davem@davemloft.net>
38887
38888         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
38889         both binutils and gcc support GOTDATA.
38890
38891         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
38892         "rd %pc" in the PIC register setup sequences.
38893
38894         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
38895         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38896         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38897         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38898         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38899         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38900         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38901         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38902         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
38903         (SYSCALL_ERROR_HANDLER): Likewise.
38904         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38905         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38906         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
38907         (SYSCALL_ERROR_HANDLER): Likewise.
38908
38909         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
38910         (HAVE_GCC_GOTDATA): New.
38911         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
38912         relocation support in both binutils and gcc.
38913         * sysdeps/sparc/elf/configure: Regenerate.
38914
38915         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
38916         * sysdeps/sparc/sparc32/elf/configure: Delete.
38917         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
38918         * sysdeps/sparc/sparc64/elf/configure: Delete.
38919         * sysdeps/sparc/elf/configure.in: New file.
38920         * sysdeps/sparc/elf/configure: Generate.
38921
38922         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
38923         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
38924         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
38925         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
38926         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
38927
38928 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38929
38930         * manual/install.texi: Do not mention specific glibc version
38931         numbers.
38932         * manual/libc.texinfo (VERSION, UPDATED): Update.
38933         (@copying): Use @copyright{} and range of years.
38934
38935 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38936
38937         [BZ #13695]
38938         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
38939         [crti.S not in sysdirs] (generated): Do not append.
38940         [crti.S not in sysdirs] (omit-deps): Likewise.
38941         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
38942         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
38943         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
38944         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
38945         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
38946         Likewise.
38947         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
38948         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
38949         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
38950         * csu/defs.awk: Remove file.
38951         * sysdeps/generic/initfini.c: Likewise.
38952         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
38953         variable.
38954         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
38955         Likewise.
38956
38957 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38958
38959         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
38960         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
38961         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
38962         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
38963         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38964         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
38965         <bits/epoll.h>.
38966         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
38967         (__EPOLL_PACKED): Define to empty if not defined by
38968         <bits/epoll.h>.
38969         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
38970         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38971         bits/epoll.h.
38972
38973 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38974
38975         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
38976         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
38977         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
38978         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
38979         <bits/timerfd.h>.
38980         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
38981         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38982         bits/timerfd.h.
38983
38984 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38985
38986         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
38987         in C locale.
38988         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38989         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
38990         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
38991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38992
38993 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
38994
38995         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38996         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38997
38998 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
38999
39000         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
39001         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
39002         defined.
39003         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
39004         Likewise.
39005         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
39006         entry for 2.16.
39007
39008 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
39009
39010         * math/w_acos.c: Use non-signaling floating-point comparisons.
39011         * math/w_acosf.c: Likewise.
39012         * math/w_acosh.c: Likewise.
39013         * math/w_acoshf.c: Likewise.
39014         * math/w_acoshl.c: Likewise.
39015         * math/w_acosl.c: Likewise.
39016         * math/w_asin.c: Likewise.
39017         * math/w_asinf.c: Likewise.
39018         * math/w_asinl.c: Likewise.
39019         * math/w_atanh.c: Likewise.
39020         * math/w_atanhf.c: Likewise.
39021         * math/w_atanhl.c: Likewise.
39022         * math/w_exp2.c: Likewise.
39023         * math/w_exp2f.c: Likewise.
39024         * math/w_exp2l.c: Likewise.
39025         * math/w_j0.c: Likewise.
39026         * math/w_j0f.c: Likewise.
39027         * math/w_j0l.c: Likewise.
39028         * math/w_j1.c: Likewise.
39029         * math/w_j1f.c: Likewise.
39030         * math/w_j1l.c: Likewise.
39031         * math/w_jn.c: Likewise.
39032         * math/w_jnf.c: Likewise.
39033         * math/w_log.c: Likewise.
39034         * math/w_log10.c: Likewise.
39035         * math/w_log10f.c: Likewise.
39036         * math/w_log10l.c: Likewise.
39037         * math/w_log2.c: Likewise.
39038         * math/w_log2f.c: Likewise.
39039         * math/w_log2l.c: Likewise.
39040         * math/w_logf.c: Likewise.
39041         * math/w_logl.c: Likewise.
39042         * math/w_sqrt.c: Likewise.
39043         * math/w_sqrtf.c: Likewise.
39044         * math/w_sqrtl.c: Likewise.
39045         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39046         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
39047         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39048         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39049         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39050
39051 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39052
39053         [BZ #9739]
39054         * manual/string.texi (strnlen): Use correct parameter name in
39055         equivalent expression.
39056
39057 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39058
39059         [BZ #11174]
39060         * manual/users.texi (seteuid): Consistently use neweuid for
39061         argument name.
39062
39063 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39064
39065         [BZ #13704]
39066         * manual/nss.texi (Services in the NSS configuration): Correct
39067         list of services in example configuration file.
39068
39069 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
39070
39071         [BZ #11322]
39072         * manual/arith.texi: Remove statements about negative zero
39073         behaving identically to zero.
39074
39075 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39076
39077         [BZ #5993]
39078         * manual/install.texi: Do not document upgrading from libc5.
39079
39080 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39081
39082         [BZ #4596]
39083         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
39084
39085 2012-02-18  David S. Miller  <davem@davemloft.net>
39086
39087         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
39088         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
39089         %o7 across the call.
39090         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
39091         instead.
39092         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
39093         SETUP_PIC_REG_LEAF.
39094         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
39095         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
39096         * sysdeps/sparc/crtn.S: Likewise.
39097
39098 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
39099
39100         * aout/Makefile: Remove.
39101
39102 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
39103
39104         [BZ #13058]
39105         * manual/examples/argp-ex1.c (main): Format definition in GNU
39106         style.
39107         * manual/examples/argp-ex2.c (main): Likewise.
39108         * manual/examples/argp-ex3.c (main): Likewise.
39109         * manual/examples/argp-ex4.c (main): Likewise.
39110         * manual/examples/longopt.c (main): Use new-style prototype
39111         definition.
39112         * manual/examples/strncat.c (main): Specify return type and use
39113         (void) for arguments.
39114         * manual/examples/subopt.c (main): Use char **argv argument.
39115
39116 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39117
39118         [BZ #5077]
39119         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
39120         rounding modes.
39121
39122 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
39123
39124         [BZ #6907]
39125         * manual/string.texi (strchr): Change when strchrnul is
39126         recommended.
39127
39128 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
39129
39130         [BZ #174]
39131         * manual/locale.texi (setlocale): Document LOCPATH.
39132
39133 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39134
39135         [BZ #10210]
39136         * manual/process.texi (execle): Move @dots{} before last argument.
39137
39138 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
39139
39140         [BZ #12047]
39141         * manual/charset.texi (Generic Charset Conversion): Fix typo
39142         (LC_TYPE -> LC_CTYPE).
39143
39144 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
39145
39146         [BZ #5805]
39147         * manual/arith.texi (scalbn): Use @var{} on parameter names.
39148         (scalbnf): Likewise.
39149         (scalbnl): Likewise.
39150         (scalbln): Likewise.
39151         (scalblnf): Likewise.
39152         (scalblnl): Likewise.
39153         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
39154         (vwarnx): Likewise.
39155         (verr): Likewise.
39156         (verrx): Likewise.
39157         * manual/filesys.texi (telldir): Use braces around return type.
39158         * manual/llio.texi (mmap): Add space after comma.
39159         (mmap64): Likewise.
39160         * manual/math.texi (jn): Use @var{} on parameter names.
39161         (jnf): Likewise.
39162         (jnl): Likewise.
39163         (yn): Likewise.
39164         (ynf): Likewise.
39165         (ynl): Likewise.
39166         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
39167         line.
39168         * manual/resource.texi (ulimit): Use @dots{} instead of literal
39169         "...".
39170         (sched_get_priority_min): Remove semicolon on @deftypefun line.
39171         (sched_get_priority_max): Likewise.
39172         * manual/signal.texi (sigvec): Add space after comma.
39173         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
39174         names.
39175         (if_indextoname): Likewise.
39176         (if_freenameindex): Likewise.
39177         (sendto): Use ',' instead of '.' in prototype.
39178         * manual/startup.texi (syscall): Use @dots{} instead of literal
39179         "...".
39180         * manual/stdio.texi (__fpending): Separate initial words of
39181         paragraph from @deftypefun line.
39182         * manual/syslog.texi (syslog): Use @dots{} instead of literal
39183         "...".
39184         (vsyslog): Use @var{} on parameter names.
39185         * manual/terminal.texi (stty): Use @var{} on parameter names.
39186         * manual/users.texi (getutmp): Use @var{} on parameter names.
39187         (getutmpx): Likewise.
39188
39189 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39190
39191         [BZ #6884]
39192         * manual/stdio.texi (fopen): Fix typos in description of
39193         ",ccs=STRING".
39194
39195 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
39196
39197         [BZ #4026]
39198         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
39199         get clock_id definition.
39200
39201 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
39202
39203         [BZ #4822]
39204         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
39205         (madvise): Cast every argument to void on its own.
39206
39207 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39208
39209         [BZ #9902]
39210         * manual/startup.texi (Exit Status): Fix typo.
39211
39212 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39213
39214         [BZ #10140]
39215         * manual/examples/argp-ex1.c: Include <stdlib.h>.
39216         * manual/examples/argp-ex2.c: Likewise.
39217         * manual/examples/argp-ex3.c: Likewise.
39218
39219 2012-02-16  Richard Henderson  <rth@redhat.com>
39220
39221         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
39222         * sysdeps/s390/s390-32/initfini.c: Remove.
39223         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
39224         * sysdeps/s390/s390-64/initfini.c: Remove.
39225
39226 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39227
39228         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
39229         compiler output for sysdeps/generic/initfini.c.
39230         * sysdeps/sh/elf/initfini.c: Remove file.
39231
39232 2012-02-16  David S. Miller  <davem@davemloft.net>
39233
39234         [BZ #11494]
39235         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
39236
39237         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
39238         * sysdeps/sparc/crti.S: New file.
39239         * sysdeps/sparc/crtn.S: New file.
39240         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
39241         * sysdeps/sparc/sparc64/Makefile: Likewise.
39242
39243 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
39244
39245         [BZ #3335]
39246         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
39247
39248 2012-02-15  Roland McGrath  <roland@hack.frob.com>
39249
39250         [BZ #4822]
39251         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
39252
39253         * mach/devstream.c (cookie_io_functions_t): Macro removed.
39254         (write, read, close): Likewise.
39255         Patch by Aurelien Jarno <aurelien@aurel32.net>.
39256
39257 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
39258
39259         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
39260         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
39261         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
39262         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
39263         <bits/signalfd.h>.
39264         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
39265         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39266         bits/signalfd.h.
39267
39268 2012-02-14  Marek Polacek  <polacek@redhat.com>
39269
39270         * sysdeps/x86_64/crti.S: New file.
39271         * sysdeps/x86_64/crtn.S: New file.
39272         * sysdeps/x86_64/elf/initfini.c: Remove file.
39273
39274 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39275
39276         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
39277         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
39278         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
39279         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
39280         <bits/inotify.h>.
39281         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
39282         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39283         bits/inotify.h.
39284
39285 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39286
39287         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
39288         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
39289         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
39290         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
39291         <bits/eventfd.h>.
39292         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
39293         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39294         bits/eventfd.h.
39295
39296 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
39297
39298         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
39299         __feraiseexcept instead of feraiseexcept.
39300
39301         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
39302         nanosleep invocations.
39303         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
39304         strings, and add error checking for a nanosleep invocations.
39305
39306 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39307
39308         Replace FSF snail mail address with URLs, as per GNU coding standards.
39309         Most of the snail mail addresses were wrong anyway, and omitting
39310         them makes the source code easier to maintain.  Almost all of the
39311         changes are to license notices and to locale LC_IDENTIFICATION
39312         addresses, except for this one:
39313         * manual/libc.texinfo: In "Published by", give the FSF's URL,
39314         not its snail mail address.
39315
39316 2012-02-09  Richard Henderson  <rth@twiddle.net>
39317
39318         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
39319         of kernel-features.h.
39320
39321         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
39322
39323 2012-02-08  Marek Polacek  <polacek@redhat.com>
39324
39325         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
39326         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
39327         * sysdeps/gnu/_G_config.h: Likewise.
39328         * sysdeps/generic/_G_config.h: Likewise.
39329
39330 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
39331
39332         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
39333         tests.
39334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39335
39336         * sysdeps/powerpc/powerpc32/crti.S: New file.
39337         * sysdeps/powerpc/powerpc32/crtn.S: New file.
39338         * sysdeps/powerpc/powerpc64/crti.S: New file.
39339         * sysdeps/powerpc/powerpc64/crtn.S: New file.
39340
39341         * Makeconfig (have-initfini): Don't set.
39342         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
39343         * configure.in (nopic_initfini): Don't substitute.
39344         * config.h.in (HAVE_INITFINI): Don't #undef.
39345         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
39346         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
39347
39348 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
39349
39350         Support crti.S and crtn.S provided directly by architectures.
39351         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
39352         [crti.S in sysdirs] (omit-deps): Likewise.
39353         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
39354         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
39355         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
39356         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
39357         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
39358         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
39359         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
39360         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
39361         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
39362         compiler output for sysdeps/generic/initfini.c.
39363         * sysdeps/i386/elf/Makefile: Remove file.
39364         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
39365
39366 2012-02-07  Marek Polacek  <polacek@redhat.com>
39367
39368         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
39369         * sysdeps/gnu/_G_config.h: Likewise.
39370         * sysdeps/mach/hurd/_G_config.h: Likewise.
39371
39372 2012-02-07  Marek Polacek  <polacek@redhat.com>
39373
39374         * math/Makefile (tests): Add tst-CMPLX2.
39375         * math/tst-CMPLX2.c: New file.
39376
39377 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
39378
39379         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39380
39381         * math/libm-test.inc (jn_test): Add missing L suffix.
39382
39383 2012-02-06  Marek Polacek  <polacek@redhat.com>
39384
39385         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
39386         * sysdeps/i386/fpu/e_powf.S: Likewise.
39387         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
39388         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
39389         * sysdeps/i386/fpu/e_acosh.S: Likewise.
39390         * sysdeps/i386/fpu/e_pow.S: Likewise.
39391         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
39392         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
39393         * sysdeps/i386/fpu/s_expm1.S: Likewise.
39394         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
39395         * sysdeps/i386/fpu/e_log2.S: Likewise.
39396         * sysdeps/i386/fpu/e_log2l.S: Likewise.
39397         * sysdeps/i386/fpu/e_scalb.S: Likewise.
39398         * sysdeps/i386/fpu/e_powl.S: Likewise.
39399         * sysdeps/i386/fpu/s_log1p.S: Likewise.
39400         * sysdeps/i386/fpu/e_log10f.S: Likewise.
39401         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
39402         * sysdeps/i386/fpu/e_logl.S: Likewise.
39403         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
39404         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
39405         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
39406         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
39407         * sysdeps/i386/fpu/e_log2f.S: Likewise.
39408         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
39409         * sysdeps/i386/fpu/e_log.S: Likewise.
39410         * sysdeps/i386/fpu/s_cexp.S: Likewise.
39411         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
39412         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
39413         * sysdeps/i386/fpu/e_logf.S: Likewise.
39414         * sysdeps/i386/fpu/e_log10l.S: Likewise.
39415         * sysdeps/i386/fpu/e_atanh.S: Likewise.
39416         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
39417         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
39418         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
39419         * sysdeps/i386/fpu/e_log10.S: Likewise.
39420         * sysdeps/i386/fpu/s_frexp.S: Likewise.
39421         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
39422         * sysdeps/i386/fpu/s_asinh.S: Likewise.
39423         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
39424         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
39425         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
39426         * sysdeps/i386/asm-syntax.h: Likewise.
39427         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
39428         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
39429         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
39430         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
39431         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
39432         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
39433         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
39434         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
39435         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
39436         * sysdeps/powerpc/sysdep.h: Likewise.
39437         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
39438         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
39439
39440 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39441
39442         [BZ #411]
39443         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
39444
39445 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39446
39447         * sysdeps/i386/sysdep.h: Include <features.h>.
39448         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
39449         version.
39450
39451 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
39452
39453         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
39454         Define.
39455         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
39456         LOAD_PIC_REG_STR.
39457
39458 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39459
39460         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
39461         (SETUP_PIC_REG): Use GET_PC_THUNK.
39462         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
39463         macro.
39464
39465 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39466
39467         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
39468         for non-PIC compilation.
39469         (SETUP_PIC_REG): Add .p2align directive.
39470         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
39471         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
39472         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
39473         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
39474         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
39475         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
39476         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39477         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39478         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
39479         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
39480         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
39481         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
39482         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
39483         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
39484         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
39485         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39486         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39487         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
39488         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
39489         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
39490         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
39491         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39492         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
39493         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
39494         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
39495         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
39496         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
39497         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39498         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
39499         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
39500         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
39501         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
39502         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
39503         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
39504         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
39505         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
39506         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
39507         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
39508         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
39509         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
39510         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
39511
39512 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39513
39514         * math/tst-CMPLX.c: Include <stdio.h>.
39515
39516 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
39517
39518         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
39519         float.
39520         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39521         * sysdeps/sparc/bits/mathdef.h: Likewise.
39522
39523 2012-01-31  Marek Polacek  <polacek@redhat.com>
39524
39525         * libio/libio.h: Don't define _PARAMS.
39526         * locale/programs/config.h: Don't define PARAMS.
39527         * stdlib/strtol_l.c: Likewise.
39528         (__strtol_l): Remove PARAMS from the prototype.
39529
39530 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
39531
39532         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
39533         names.  Just use the correct names.  Remove unnecessary wrapper
39534         functions.
39535         * malloc/arena.c: Likewise.
39536         * malloc/hooks.c: Likewise.
39537
39538         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
39539         ARENA_TEST says not to.  Simplify test for creation of a new arena.
39540         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
39541
39542 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
39543
39544         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
39545         into tail calls.
39546         (update_get_addr): New function.
39547         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
39548         GET_ADDR_MODULE parameter.
39549
39550 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39551
39552         * crypt/cert.c: Remove __STDC__ conditionals.
39553         * crypt/crypt-entry.c: Likewise.
39554         * crypt/crypt_util.c: Likewise.
39555         * libio/filedoalloc.c: Likewise.
39556         * libio/fileops.c: Likewise.
39557         * libio/genops.c: Likewise.
39558         * libio/iofclose.c: Likewise.
39559         * libio/iofdopen.c: Likewise.
39560         * libio/iofopen.c: Likewise.
39561         * libio/iofopen64.c: Likewise.
39562         * libio/iogetdelim.c: Likewise.
39563         * libio/iopopen.c: Likewise.
39564         * libio/obprintf.c: Likewise.
39565         * libio/oldfileops.c: Likewise.
39566         * libio/oldiofclose.c: Likewise.
39567         * libio/oldiofdopen.c: Likewise.
39568         * libio/oldiofopen.c: Likewise.
39569         * libio/oldiopopen.c: Likewise.
39570         * libio/wfiledoalloc.c: Likewise.
39571         * libio/wgenops.c: Likewise.
39572         * locale/programs/xmalloc.c: Likewise.
39573         * misc/syslog.c: Likewise.
39574         * stdio-common/xbug.c: Likewise.
39575         * string/memchr.c: Likewise.
39576         * string/memcmp.c: Likewise.
39577         * string/memrchr.c: Likewise.
39578         * string/rawmemchr.c: Likewise.
39579         * sysdeps/posix/getcwd.c: Likewise.
39580         * time/strftime_l.c: Likewise.
39581
39582 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39583
39584         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
39585         * config.make.in (config-cflags-sse2avx): Define.
39586         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
39587         Fix typo.
39588
39589 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
39590
39591         * scripts/config.guess: Update from upstream config git repository.
39592         * scripts/config.sub: Likewise.
39593
39594 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
39595
39596         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
39597         (EM_NUM): Update.
39598         (R_TILEPRO_*, R_TILEGX_*): New macros.
39599
39600         * scripts/firstversions.awk: Fix bug in version range handling.
39601
39602         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
39603
39604         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
39605
39606         * include/sys/epoll.h: New file.
39607         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
39608         libc_hidden_def.
39609
39610 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
39611
39612         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
39613         Avoid unnecessary __WORDSIZE == 64 test.
39614         (fmaxf): Use VEX format if possible.
39615         (fmax): Likewise.
39616         (fminf): Likewise.
39617         (fmin): Likewise.
39618
39619         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
39620         * math/math_private.h: Remove libc_fegetround* and
39621         libc_fesetround*.
39622         * sysdeps/i386/configure.in: Check for -msse2avx.
39623         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
39624         also if SSE2AVX is defined.
39625         Remove libc_fegetround* and libc_fesetround*.
39626         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
39627         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
39628         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
39629         of HAS_YMM_USABLE.
39630         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39631         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39632         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39633         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39634         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39635
39636         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
39637
39638 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39639
39640         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
39641         size is not set.
39642         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
39643
39644 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
39645
39646         [BZ #13618]
39647         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
39648         relocation.
39649         * Makeconfig (libm): Define.
39650         * elf/Makefile: Add rules to build and run tst-relsort1.
39651         * elf/tst-relsort1.c: New file.
39652         * elf/tst-relsort1mod1.c: New file.
39653         * elf/tst-relsort1mod2.c: New file.
39654
39655 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
39656
39657         * math/s_ldexp.c: Remove __STDC__ conditionals.
39658         * math/s_ldexpf.c: Likewise.
39659         * math/s_ldexpl.c: Likewise.
39660         * math/s_nextafter.c: Likewise.
39661         * math/s_nexttowardf.c: Likewise.
39662         * math/s_significand.c: Likewise.
39663         * math/s_significandf.c: Likewise.
39664         * math/s_significandl.c: Likewise.
39665         * math/w_jnl.c: Likewise.
39666         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
39667         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
39668         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
39669         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
39670         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
39671         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
39672         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
39673         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
39674         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
39675         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
39676         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
39677         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39678         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
39679         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
39680         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
39681         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
39682         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
39683         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
39684         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
39685         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39686         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39687         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
39688         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
39689         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
39690         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
39691         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
39692         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
39693         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
39694         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
39695         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
39696         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
39697         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
39698         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
39699         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
39700         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
39701         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
39702         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
39703         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
39704         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
39705         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
39706         * sysdeps/ieee754/k_standard.c: Likewise.
39707         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39708         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
39709         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
39710         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
39711         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
39712         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
39713         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
39714         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
39715         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
39716         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
39717         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
39718         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
39719         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
39720         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
39721         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
39722         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
39723         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
39724         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
39725         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
39726         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
39727         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
39728         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
39729         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
39730         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
39731         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
39732         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
39733         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39734         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39735         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
39736         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
39737         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
39738         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
39739         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
39740         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39741         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
39742         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
39743         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
39744         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
39745         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
39746         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
39747         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
39748         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
39749         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
39750         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
39751         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
39752         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
39753         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
39754         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
39755         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
39756         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
39757         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
39758         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
39759         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
39760         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
39761         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
39762         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
39763         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
39764         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39765         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39766         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39767         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
39768         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
39769         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
39770         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39771         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
39772         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
39773         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39774         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39775         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39776         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39777         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39778         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39779         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39780         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39781         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39782         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39783         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39784         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39785         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39786         * sysdeps/ieee754/s_matherr.c: Likewise.
39787         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39788         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39789         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39790         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39791
39792 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39793
39794         * crypt/md5.h: Remove __STDC__ conditionals.
39795         * libio/libioP.h: Likewise.
39796         * locale/programs/config.h: Likewise.
39797         * sysdeps/generic/sysdep.h: Likewise.
39798         * sysdeps/i386/asm-syntax.h: Likewise.
39799         * sysdeps/s390/asm-syntax.h: Likewise.
39800         * sysdeps/unix/sysdep.h: Likewise.
39801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
39802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
39803
39804 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39805
39806         * libio/libio.h: Remove __STDC__ conditionals.
39807         * malloc/obstack.h: Likewise.
39808         * math/complex.h: Likewise.
39809         * math/math.h: Likewise.
39810         * sysdeps/generic/_G_config.h: Likewise.
39811         * sysdeps/gnu/_G_config.h: Likewise.
39812         * sysdeps/mach/hurd/_G_config.h: Likewise.
39813         * sysdeps/powerpc/bits/mathdef.h: Likewise.
39814         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39815         * sysdeps/sparc/bits/mathdef.h: Likewise.
39816
39817 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
39818
39819         [BZ #13583]
39820         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
39821         Clean up HAS_* macros.
39822         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
39823         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
39824         possible.
39825         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
39826         HAS_AVX.
39827         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39828         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39829         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39830         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39831         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39832
39833 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
39834
39835         * elf/tst-unique3.cc (gets): Remove declaration.
39836         * elf/tst-unique3lib.cc (gets): Likewise.
39837         * elf/tst-unique3lib2.cc (gets): Likewise.
39838         * elf/tst-unique4.cc (gets): Likewise.
39839
39840 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
39841
39842         * include/stdio.h: Add C++ protection.  Add gets declarations and
39843         definitions.
39844         * debug/tst-chk1.c: Don't declare gets here.
39845         * stdio-common/tst-gets.c: Likewise.
39846
39847 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39848
39849         * posix/glob: Remove directory.
39850
39851 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39852
39853         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
39854
39855 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
39856
39857         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
39858         of the non-standard EPFNOSUPPORT.
39859
39860 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39861
39862         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
39863         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
39864         ANYWHERE set to 1 only on KERN_NO_SPACE error.
39865
39866 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
39867
39868         * wcsmbs/uchar.h: Test __STDC_VERSION__.
39869
39870 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
39871
39872         * nscd/aicache.c (addhstaiX): Do not cache negative results of
39873         transient errors.
39874         * nscd/grpcache.c (cache_addgr): Likewise.
39875         * nscd/hstcache.c (cache_addhst): Likewise.
39876         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39877         * nscd/pwdcache.c (cache_addpw): Likewise.
39878         * nscd/servicescache.c (cache_addserv): Likewise.
39879
39880 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
39881
39882         * malloc/malloc.c: Various cleanups.
39883         * malloc/hooks.c: Likewise.
39884
39885         * stdlib/Makefile (tests): Add bug-fmtmsg1.
39886         * stdlib/bug-fmtmsg1.c: New file.
39887
39888         * stdlib/fmtmsg.c (init): Add missing unlock.
39889         Patch by Peng Haitao <penght@cn.fujitsu.com>.
39890
39891 2012-01-12  Marek Polacek  <polacek@redhat.com>
39892
39893         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
39894         and _GNU_SOURCE.
39895
39896 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
39897
39898         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
39899         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
39900         macro to ensure uniqueness of label name.
39901         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39902         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39903
39904 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
39905
39906         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
39907
39908         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
39909         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
39910         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
39911         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
39912
39913 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
39914
39915         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
39916
39917         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
39918         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
39919         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
39920
39921         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
39922
39923         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
39924         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
39925         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
39926         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
39927
39928         * math/bits/math-finite.h: Add ldexp support.
39929
39930 2012-01-10  Marek Polacek  <polacek@redhat.com>
39931
39932         * locale/programs/localedef.h (show_archive_content): Add noreturn
39933         attribute.
39934
39935 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
39936
39937         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
39938
39939 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39940
39941         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
39942
39943         * io/Makefile (headers): Add bits/poll2.h.
39944
39945 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
39946
39947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
39948         typo #include statement.
39949
39950 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39951
39952         * include/sys/cdefs.h: Define __attribute_alloc_size.
39953         * catgets/gencat.c: Add alloc_size attribute and apply consistently
39954         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
39955         * elf/pldd.c: Likewise.
39956         * iconv/iconv_charmap.c: Likewise.
39957         * iconv/iconvconfig.c: Likewise.
39958         * iconv/strtab.c: Likewise.
39959         * locale/programs/locale.c: Likewise.
39960         * locale/programs/localedef.h: Likewise.
39961         * locale/programs/simple-hash.c: Likewise.
39962         * nscd/nscd.h: Likewise.
39963         * nss/makedb.c: Likewise.
39964         * sysdeps/generic/ldconfig.h: Likewise.
39965         * locale/programs/localedef.c: Remove xmalloc prototype.
39966         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
39967
39968 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
39969
39970         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
39971         appropriate.
39972
39973 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39974
39975         * math/Makefile (tests): Add tst-CMPLX.
39976         * math/tst-CMPLX.c: New file.
39977
39978         * math/complex.h (CMPLXL): Fix typo.
39979
39980         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
39981         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
39982         GLIBC_2.16.
39983         * debug/tst-chk1.c: Add poll and ppoll tests.
39984         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
39985         * include/sys/poll.h: Add hidden proto for ppoll.
39986         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
39987         * sysdeps/mach/hurd/ppoll.c: Likewise.
39988         * io/ppoll.c: Likewise.
39989         * debug/poll_chk.c: New file.
39990         * debug/ppoll_chk.c: New file.
39991         * include/bits/poll2.h: New file.
39992         * io/bits/poll2.h: New file.
39993
39994         [BZ #1350]
39995         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
39996
39997         * configure.in: static is always set to yes.  Remove.
39998         * config.make.in: Don't set build-static.
39999         * Makeconfig: Remove use of build-static.
40000         * dlfcn/Makefile: Likewise.
40001         * elf/Makefile: Likewise.
40002         * math/Makefile: Likewise.
40003         * misc/Makefile: Likewise.
40004         * nptl/Makefile: Likewise.
40005         * sysdeps/mach/hurd/Makefile: Likewise.
40006
40007         * configure.in: PWD_P is not used anymore.
40008         * config.make.in: Remove PWD_P entry.
40009
40010         * configure.in: Remove last remnants of RANLIB.
40011         No need to check for signed size_t anymore.
40012         Don't set libc_commonpagesize and libc_relro_required here for Alpha
40013         and IA-64.
40014         Remove __builtin_expect test because we require at least gcc 3.4.
40015         * aclocal.m4: Likewise.
40016
40017         * wcsmbs/mbrtoc16.c: Implement using towc function.
40018         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
40019         * wcsmbs/wcsmbsload.c: Likewise.
40020         * iconv/gconv_simple.c: Likewise.
40021         * iconv/gconv_int.h: Likewise.
40022         * iconv/gconv_builtin.h: Likewise.
40023         * iconv/iconv_prog.c: Remove CHAR16 handling.
40024
40025         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
40026
40027         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
40028
40029         * configure.in: Remove --with-elf and --enable-bounded options.
40030         Dont set base_machine for ia64.  More non-ELF conditions removed.
40031         Remove testing and setting of leading underscore information.
40032         * config.make.in (build-bounded): Set to no.
40033         * config.h.in: Remove NO_UNDERSCORES entry.
40034         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
40035         them.
40036         * csu/start.c: Remove !NO_UNDERSCORE code.
40037         * locale/localeinfo.h: Likewise.
40038         * sysdeps/generic/machine-gmon.h: Likewise.
40039         * sysdeps/generic/sysdep.h: Likewise.
40040         * sysdeps/i386/sysdep.h: Likewise.
40041         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40042         * sysdeps/mach/sysdep.h: Likewise.
40043         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40044         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40045         * sysdeps/sh/sysdep.h: Likewise.
40046         * sysdeps/sparc/sparc32/alloca.S: Likewise.
40047         * sysdeps/unix/i386/sysdep.S: Likewise.
40048         * sysdeps/unix/sparc/start.c: Likewise.
40049         * sysdeps/unix/sparc/sysdep.S: Likewise.
40050         * sysdeps/unix/sparc/sysdep.h: Likewise.
40051         * sysdeps/unix/start.c: Likewise.
40052         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40053         * sysdeps/x86_64/sysdep.h: Likewise.
40054
40055 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
40056
40057         [BZ #13553]
40058         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
40059         for non-gcc.
40060         * argp/argp-fmtstream.h: Use const instead __const.
40061         * argp/argp.h: Likewise.
40062         * assert/assert.h: Likewise.
40063         * bits/fenv.h: Likewise.
40064         * bits/sched.h: Likewise.
40065         * bits/sigset.h: Likewise.
40066         * bits/sigthread.h: Likewise.
40067         * catgets/nl_types.h: Likewise.
40068         * conform/data/pthread.h-data: Likewise.
40069         * crypt/crypt-private.h: Likewise.
40070         * crypt/crypt.h: Likewise.
40071         * crypt/crypt_util.c: Likewise.
40072         * ctype/ctype.h: Likewise.
40073         * debug/execinfo.h: Likewise.
40074         * debug/mbsnrtowcs_chk.c: Likewise.
40075         * debug/mbsrtowcs_chk.c: Likewise.
40076         * debug/wcsnrtombs_chk.c: Likewise.
40077         * debug/wcsrtombs_chk.c: Likewise.
40078         * debug/wcstombs_chk.c: Likewise.
40079         * dirent/dirent.h: Likewise.
40080         * dlfcn/dlfcn.h: Likewise.
40081         * elf/neededtest4.c: Likewise.
40082         * grp/grp.h: Likewise.
40083         * gshadow/gshadow.h: Likewise.
40084         * iconv/gconv.h: Likewise.
40085         * iconv/gconv_int.h: Likewise.
40086         * iconv/gconv_simple.c: Likewise.
40087         * iconv/iconv.h: Likewise.
40088         * iconv/loop.c: Likewise.
40089         * iconv/skeleton.c: Likewise.
40090         * include/aio.h: Likewise.
40091         * include/aliases.h: Likewise.
40092         * include/argz.h: Likewise.
40093         * include/arpa/inet.h: Likewise.
40094         * include/assert.h: Likewise.
40095         * include/dirent.h: Likewise.
40096         * include/dlfcn.h: Likewise.
40097         * include/execinfo.h: Likewise.
40098         * include/fcntl.h: Likewise.
40099         * include/fenv.h: Likewise.
40100         * include/glob.h: Likewise.
40101         * include/grp.h: Likewise.
40102         * include/libintl.h: Likewise.
40103         * include/mntent.h: Likewise.
40104         * include/netdb.h: Likewise.
40105         * include/pwd.h: Likewise.
40106         * include/rpc/netdb.h: Likewise.
40107         * include/sched.h: Likewise.
40108         * include/search.h: Likewise.
40109         * include/shadow.h: Likewise.
40110         * include/signal.h: Likewise.
40111         * include/stdio.h: Likewise.
40112         * include/stdlib.h: Likewise.
40113         * include/string.h: Likewise.
40114         * include/sys/socket.h: Likewise.
40115         * include/sys/stat.h: Likewise.
40116         * include/sys/statfs.h: Likewise.
40117         * include/sys/statvfs.h: Likewise.
40118         * include/sys/syslog.h: Likewise.
40119         * include/sys/time.h: Likewise.
40120         * include/sys/uio.h: Likewise.
40121         * include/time.h: Likewise.
40122         * include/unistd.h: Likewise.
40123         * include/utmp.h: Likewise.
40124         * include/wchar.h: Likewise.
40125         * include/wctype.h: Likewise.
40126         * inet/aliases.h: Likewise.
40127         * inet/arpa/inet.h: Likewise.
40128         * inet/netinet/ether.h: Likewise.
40129         * inet/netinet/in.h: Likewise.
40130         * intl/libintl.h: Likewise.
40131         * io/bits/fcntl2.h: Likewise.
40132         * io/fcntl.h: Likewise.
40133         * io/ftw.h: Likewise.
40134         * io/sys/poll.h: Likewise.
40135         * io/sys/stat.h: Likewise.
40136         * io/sys/statfs.h: Likewise.
40137         * io/sys/statvfs.h: Likewise.
40138         * io/utime.h: Likewise.
40139         * libio/bits/stdio.h: Likewise.
40140         * libio/bits/stdio2.h: Likewise.
40141         * libio/libio.h: Likewise.
40142         * libio/libioP.h: Likewise.
40143         * libio/stdio.h: Likewise.
40144         * locale/lc-ctype.c: Likewise.
40145         * locale/locale.h: Likewise.
40146         * login/utmp.h: Likewise.
40147         * malloc/arena.c: Likewise.
40148         * malloc/malloc.c: Likewise.
40149         * malloc/malloc.h: Likewise.
40150         * malloc/mcheck.c: Likewise.
40151         * malloc/mtrace.c: Likewise.
40152         * math/bits/mathcalls.h: Likewise.
40153         * math/fenv.h: Likewise.
40154         * math/math_private.h: Likewise.
40155         * misc/bits/error.h: Likewise.
40156         * misc/bits/syslog.h: Likewise.
40157         * misc/err.h: Likewise.
40158         * misc/error.h: Likewise.
40159         * misc/fstab.h: Likewise.
40160         * misc/mntent.h: Likewise.
40161         * misc/regexp.h: Likewise.
40162         * misc/search.h: Likewise.
40163         * misc/sgtty.h: Likewise.
40164         * misc/sys/mman.h: Likewise.
40165         * misc/sys/syslog.h: Likewise.
40166         * misc/sys/uio.h: Likewise.
40167         * misc/sys/xattr.h: Likewise.
40168         * misc/ttyent.h: Likewise.
40169         * nis/rpcsvc/ypclnt.h: Likewise.
40170         * nss/nss.h: Likewise.
40171         * posix/bits/unistd.h: Likewise.
40172         * posix/fnmatch.h: Likewise.
40173         * posix/glob.h: Likewise.
40174         * posix/sched.h: Likewise.
40175         * posix/spawn.h: Likewise.
40176         * posix/sys/wait.h: Likewise.
40177         * posix/unistd.h: Likewise.
40178         * posix/wordexp.h: Likewise.
40179         * pwd/pwd.h: Likewise.
40180         * resolv/netdb.h: Likewise.
40181         * resource/sys/resource.h: Likewise.
40182         * rt/aio.h: Likewise.
40183         * rt/bits/mqueue2.h: Likewise.
40184         * rt/mqueue.h: Likewise.
40185         * shadow/shadow.h: Likewise.
40186         * signal/signal.h: Likewise.
40187         * socket/send.c: Likewise.
40188         * socket/sendto.c: Likewise.
40189         * socket/sys/socket.h: Likewise.
40190         * stdio-common/printf.h: Likewise.
40191         * stdlib/bits/stdlib.h: Likewise.
40192         * stdlib/fmtmsg.h: Likewise.
40193         * stdlib/monetary.h: Likewise.
40194         * stdlib/stdlib.h: Likewise.
40195         * stdlib/ucontext.h: Likewise.
40196         * streams/stropts.h: Likewise.
40197         * string/argz.h: Likewise.
40198         * string/bits/string2.h: Likewise.
40199         * string/string.h: Likewise.
40200         * string/strings.h: Likewise.
40201         * sunrpc/rpc/auth.h: Likewise.
40202         * sunrpc/rpc/auth_des.h: Likewise.
40203         * sunrpc/rpc/clnt.h: Likewise.
40204         * sunrpc/rpc/netdb.h: Likewise.
40205         * sunrpc/rpc/pmap_clnt.h: Likewise.
40206         * sunrpc/rpc/xdr.h: Likewise.
40207         * sysdeps/generic/inttypes.h: Likewise.
40208         * sysdeps/generic/net/if.h: Likewise.
40209         * sysdeps/generic/sys/swap.h: Likewise.
40210         * sysdeps/gnu/net/if.h: Likewise.
40211         * sysdeps/gnu/utmpx.h: Likewise.
40212         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
40213         * sysdeps/i386/i486/bits/string.h: Likewise.
40214         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
40215         * sysdeps/s390/bits/string.h: Likewise.
40216         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
40217         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
40218         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
40219         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
40220         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
40221         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
40222         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
40223         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
40224         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
40225         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
40226         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
40227         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
40228         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
40229         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
40230         * sysdeps/unix/sysv/linux/readv.c: Likewise.
40231         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
40232         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
40233         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40234         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
40235         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
40236         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40237         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
40238         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
40239         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
40240         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
40241         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
40242         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
40243         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40244         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
40245         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
40246         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
40247         * sysvipc/sys/ipc.h: Likewise.
40248         * sysvipc/sys/msg.h: Likewise.
40249         * sysvipc/sys/sem.h: Likewise.
40250         * sysvipc/sys/shm.h: Likewise.
40251         * termios/termios.h: Likewise.
40252         * time/sys/time.h: Likewise.
40253         * time/time.h: Likewise.
40254         * wcsmbs/bits/wchar2.h: Likewise.
40255         * wcsmbs/uchar.h: Likewise.
40256         * wcsmbs/wchar.h: Likewise.
40257         * wctype/wctype.h: Likewise.
40258
40259         [BZ #13551]
40260         * Makeconfig: Remove all but ELF support including AIX support.
40261         * Makerules: Likewise.
40262         * config.h.in: Likewise.
40263         * config.make.in: Likewise.
40264         * configure: Likewise.
40265         * configure.in: Likewise.
40266         * csu/Makefile: Likewise.
40267         * csu/version.c: Likewise.
40268         * debug/Makefile: Likewise.
40269         * dlfcn/Makefile: Likewise.
40270         * elf/Makefile: Likewise.
40271         * extra-lib.mk: Likewise.
40272         * iconv/Makefile: Likewise.
40273         * include/libc-symbols.h: Likewise.
40274         * include/shlib-compat.h: Likewise.
40275         * resolv/Makefile: Likewise.
40276         * resolv/res_libc.c: Likewise.
40277         * rt/Makefile: Likewise.
40278         * sysdeps/i386/asm-syntax.h: Likewise.
40279         * sysdeps/i386/sysdep.h: Likewise.
40280         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40281         * sysdeps/mach/sysdep.h: Likewise.
40282         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
40283         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
40284         * sysdeps/s390/asm-syntax.h: Likewise.
40285         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40286         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40287         * sysdeps/sh/sysdep.h: Likewise.
40288         * sysdeps/unix/sparc/sysdep.h: Likewise.
40289         * sysdeps/wordsize-32/divdi3.c: Likewise.
40290         * sysdeps/x86_64/sysdep.h: Likewise.
40291
40292         * argp/Versions: Remove _argp_unlock_xxx.
40293
40294         [BZ #13559]
40295         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
40296         * abilist/libBrokenLocale.abilist: Likewise.
40297         * abilist/libanl.abilist: Likewise.
40298         * abilist/libc.abilist: Likewise.
40299         * abilist/libcrypt.abilist: Likewise.
40300         * abilist/libdl.abilist: Likewise.
40301         * abilist/libm.abilist: Likewise.
40302         * abilist/libnsl.abilist: Likewise.
40303         * abilist/libpthread.abilist: Likewise.
40304         * abilist/libresolv.abilist: Likewise.
40305         * abilist/librt.abilist: Likewise.
40306         * abilist/libthread_db.abilist: Likewise.
40307         * abilist/libutil.abilist: Likewise.
40308         * abilist/libnss_db.abilist: New file.
40309
40310         * scripts/abilist.awk: Add support for indirect functions.
40311
40312         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
40313
40314         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
40315
40316         * shlib-versions: Remove entries for ports architectures.
40317
40318         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
40319         files in ports.
40320         * elf/stackguard-macros.h: Remove support for IA-64.
40321         * elf/tst-auditmod1.c: Likewise.
40322         * sysdeps/generic/ldsodefs.h: Likewise.
40323
40324         * sysdeps/unix/sysv/linux/configure.in: Ports should define
40325         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
40326         configure files.
40327
40328         [BZ #13552]
40329         * configure.in: Remove --enable-omitfp support.
40330         * FAQ.in: Adjust.
40331         * config.make.in: Likewise.
40332         * Makeconfig: Likewise.
40333         * manual/install.texi: Likewise.
40334
40335         In case anyone cares, the IA-64 architecture could move to ports.
40336         * sysdeps/ia64/*: Removed.
40337         * sysdeps/unix/sysv/linux/ia64/*: Removed.
40338         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
40339
40340         [BZ #13555]
40341         * configure.in: Remove entries for unsupported architectures.
40342
40343         [BZ #13533]
40344         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
40345         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
40346         routines.
40347         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
40348         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
40349         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
40350         fall back to using wcrtomb.
40351         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
40352         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
40353         renaming.
40354         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
40355         * wcsmbs/tst-c16c32-1.c: New file.
40356
40357         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
40358         local variable.
40359
40360         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
40361
40362         * elf/tst-unique3.cc: Add explicit declaration of gets.
40363         * elf/tst-unique3lib.cc: Likewise.
40364         * elf/tst-unique3lib2.cc: Likewise.
40365         * elf/tst-unique4.cc: Likewise.
40366
40367         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
40368
40369 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
40370
40371         [BZ #13566]
40372         * assert/assert.h (static_assert): Don't define for C++.
40373         * libio/stdio.h (gets): Do declare for C++ <= C++11.
40374         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
40375
40376 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
40377
40378         * iconv/loop.c (single loop): Fix assertion in storing of
40379         remaining bytes.
40380
40381         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
40382
40383 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
40384
40385         * posix/getconf.c: Update copyright year.
40386         * nss/getent.c: Likewise.
40387         * nss/makedb.c: Likewise.
40388         * iconv/iconvconfig.c: Likewise.
40389         * iconv/iconv_prog.c: Likewise.
40390         * elf/ldconfig.c: Likewise.
40391         * elf/pldd.c: Likewise.
40392         * elf/sotruss.ksh: Likewise.
40393         * catgets/gencat.c: Likewise.
40394         * csu/version.c: Likewise.
40395         * elf/ldd.bash.in: Likewise.
40396         * elf/sprof.c (print_version): Likewise.
40397         * locale/programs/locale.c: Likewise.
40398         * locale/programs/localedef.c: Likewise.
40399         * login/programs/pt_chown.c: Likewise.
40400         * nscd/nscd.c (print_version): Likewise.
40401         * debug/xtrace.sh: Likewise.
40402         * malloc/memusage.sh: Likewise.
40403         * malloc/mtrace.pl: Likewise.
40404         * debug/catchsegv.sh: Likewise.
40405
40406 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
40407
40408         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
40409         pure attribute.
40410
40411 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
40412
40413         [BZ #13533]
40414         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
40415         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
40416         transformations.
40417         * iconv/gconv_int.h: Likewise.
40418         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
40419         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
40420         from libc for GLIBC_2.16.
40421         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
40422         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
40423         * wcsmbs/uchar.h: Really define mbstate_t.
40424         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
40425         * wcsmbs/c16rtomb.c: New file.
40426         * wcsmbs/mbrtoc16.c: New file.
40427         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
40428         for C/POSIX locale.
40429         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
40430         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
40431
40432         * wcsmbs/wchar.h: Add missing __restrict.
40433
40434 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40435
40436         [BZ #13532]
40437         * time/Makefile (routines): Add timespec_get.
40438         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
40439         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
40440         timespec for ISO C11.
40441         * time/timespec_get.c: New file.
40442         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
40443         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
40444
40445         [BZ #13531]
40446         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
40447         * stdlib/stdlib.h: Declare aligned_alloc.
40448         * Versions.def: Add GLIBC_2.16 for libc.
40449         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
40450
40451         [BZ 13527]
40452         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
40453         ISO C11.
40454
40455         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
40456         code.
40457
40458         [BZ #13528]
40459         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
40460
40461         [BZ #13529]
40462         * assert/assert.h (static_assert): Define.
40463
40464         * version.h: Update for 2.16 development version.
40465
40466         [BZ #13526]
40467         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
40468         _ISOC11_SOURCE.
40469
40470         * version.h (RELEASE): Bump for 2.15 release.
40471         * include/features.h (__GLIBC_MINOR__): Bump to 15.
40472
40473         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
40474         Patch by Marek Polacek <mpolacek@redhat.com>.
40475
40476         * bits/byteswap.h: Protect long long constants with __extension__.
40477         * sysdeps/i386/bits/byteswap.h: Likewise.
40478         * sysdeps/ia64/bits/byteswap.h: Likewise.
40479         * sysdeps/s390/bits/byteswap.h: Likewise.
40480         * sysdeps/x86_64/bits/byteswap.h: Likewise.
40481
40482 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40483
40484         [BZ #13540]
40485         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
40486         destination buffer.
40487         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
40488
40489 2011-12-23  Marek Polacek  <polacek@redhat.com>
40490
40491         * elf/dl-addr.c (determine_info): Add inline keyword.
40492         * elf/tst-auditmod4b.c (check_avx): Likewise.
40493         * elf/tst-auditmod6b.c (check_avx): Likewise.
40494         * elf/tst-auditmod6c.c (check_avx): Likewise.
40495         * elf/tst-auditmod7b.c (check_avx): Likewise.
40496
40497 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40498
40499         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
40500         !__SSE_MATH__.
40501
40502 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40503
40504         [BZ #13540]
40505         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
40506         processing for last bytes.
40507
40508 2011-08-06  Bruno Haible  <bruno@clisp.org>
40509
40510         [BZ #13061]
40511         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
40512         U+0385, not to U+1FEE.
40513
40514         [BZ #13062]
40515         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
40516         entry for U+00A5 U+0301.
40517
40518 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40519
40520         [BZ #13166]
40521         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
40522         buffer for the output is too small.
40523
40524         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
40525         optimization.
40526
40527         [BZ #13185]
40528         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
40529         SSE flags if possible.
40530
40531 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40532
40533         [BZ #13540]
40534         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
40535         processing for last bytes.
40536
40537 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
40538
40539         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
40540         (syscall-list-default-options, syscall-list-default-condition)
40541         (syscall-list-includes): Define.
40542         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
40543         list of ABIs and options and #if conditions for each ABI.  Do not
40544         handle common syscalls between ABIs specially.
40545         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
40546         Remove.
40547         (syscall-list-variants, syscall-list-32bit-options)
40548         (syscall-list-32bit-condition, syscall-list-64bit-options)
40549         (syscall-list-64bit-condition): Define.
40550         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
40551         (syscall-list-variants, syscall-list-32bit-options)
40552         (syscall-list-32bit-condition, syscall-list-64bit-options)
40553         (syscall-list-64bit-condition): Define.
40554         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
40555         Remove.
40556         (syscall-list-variants, syscall-list-32bit-options)
40557         (syscall-list-32bit-condition, syscall-list-64bit-options)
40558         (syscall-list-64bit-condition): Define.
40559         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
40560         Remove.
40561         (syscall-list-variants, syscall-list-32bit-options)
40562         (syscall-list-32bit-condition, syscall-list-64bit-options)
40563         (syscall-list-64bit-condition): Define.
40564
40565 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40566
40567         * locale/iso-639.def: Add brx entry.
40568
40569         [BZ #13328]
40570         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
40571         Proposed by Mariusz_Cukr <marcukr@op.pl>.
40572
40573         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
40574         __feraiseexcept_renamed.
40575
40576 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40577
40578         [BZ #13538]
40579         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
40580         EPOLLET with unsigned values.
40581         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40582         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40583
40584         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
40585         to large cancellation.
40586         * math/s_cacoshf.c: Likewise.
40587         * math/s_cacoshl.c: Likewise.
40588
40589 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
40590
40591         [BZ #13305]
40592         [BZ #12786]
40593         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
40594         * math/s_cacoshf.c: Likewise.
40595         * math/s_cacoshl.c: Likewise.
40596
40597 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40598
40599         [BZ #13439]
40600         * iconv/gconv.h: Define __GCONV_SWAP.
40601         * iconvdata/unicode.c: The swap bit must be stored in __flags.
40602         * iconvdata/utf-16.c: Likewise.
40603         * iconvdata/utf-32.c: Likewise.
40604
40605 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
40606
40607         [BZ #13524]
40608         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
40609         numerator after shifting it by one limb.
40610
40611 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
40612
40613         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
40614         under [__USE_EXTERN_INLINES].
40615
40616 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40617
40618         [BZ #13446]
40619         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
40620
40621 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40622
40623         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
40624         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
40625         optimized code.
40626         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
40627         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
40628         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
40629         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
40630         for strncasecmp/strncasecmp_l compilation.
40631         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
40632         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
40633
40634 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
40635
40636         [BZ #13484]
40637         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
40638         of __asm__.
40639
40640 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40641
40642         [BZ #13506]
40643         * time/tzfile.c (__tzfile_read): Check values from file header.
40644
40645 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
40646
40647         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
40648         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
40649         * powerpc/powerpc32/dl-start.S: Likewise.
40650         * powerpc/powerpc32/elf/start.S: Likewise.
40651         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40652         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
40653         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
40654         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
40655         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
40656         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
40657         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
40658         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
40659         * powerpc/powerpc32/fpu/s_round.S: Likewise.
40660         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
40661         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
40662         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
40663         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
40664         * powerpc/powerpc32/memset.S: Likewise.
40665         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
40666         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
40667         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
40668         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
40669         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
40670         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
40671         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
40672         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
40673         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
40674         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
40675         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
40676         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40677         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40678
40679 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40680
40681         * math/libm-test.inc: Added more nearbyint tests.
40682         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
40683         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
40684         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
40685         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
40686
40687 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
40688
40689         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
40690         FD_CLOEXEC.
40691
40692 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40693
40694         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
40695         Add wcscpy-ssse3 wcscpy-c.
40696         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
40697         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
40698         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
40699         * sysdeps/x86_64/wcschr.S: New file.
40700         * sysdeps/x86_64/wcsrchr.S: New file.
40701         * string/test-strcmp.c: Remove checking of wcscmp function for
40702         wrong alignments.
40703         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
40704         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
40705         wcsrchr-sse2 wcsrchr-c.
40706         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
40707         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
40708         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
40709         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
40710         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
40711         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
40712         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
40713         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
40714         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
40715         * wcsmbc/wcschr.c (WCSCHR): New macro.
40716
40717 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40718
40719         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
40720         * wcsmbs/test-wcsrchr.c: New file.
40721         * string/test-strrchr.c: Add wcsrchr support.
40722         (WIDE): New macro.
40723         * wcsmbs/test-wcscpy.c: New file.
40724         * string/test-strcpy.c: Add wcscpy support.
40725         (WIDE): New macro.
40726
40727 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
40728
40729         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
40730         the inner loop.
40731
40732 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
40733
40734         [BZ #13472]
40735         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
40736
40737 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
40738
40739         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
40740         Minor optimizations.
40741
40742         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
40743         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
40744         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
40745
40746 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
40747
40748         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
40749         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
40750         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
40751         for gcc to avoid warnings.
40752         * inet/Makefile (tests): Add tst-checks.
40753         * inet/tst-checks.c: New file.
40754
40755         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
40756         warning.
40757
40758         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
40759         __wmemcmp_sse2.
40760
40761         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
40762         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
40763
40764         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
40765
40766 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
40767
40768         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
40769         problem.
40770
40771         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
40772
40773 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
40774
40775         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
40776         conditional on GCC version.
40777         (__arch_compare_and_exchange_val_8_acq)
40778         (__arch_compare_and_exchange_val_16_acq)
40779         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
40780         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
40781         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
40782
40783 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
40784
40785         * sysdeps/sh/backtrace.c: New file.
40786
40787 2011-12-02  Andreas Schwab  <schwab@redhat.com>
40788
40789         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
40790         parenthesis.
40791
40792 2011-12-01  Andreas Schwab  <schwab@redhat.com>
40793
40794         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
40795         falling back to utime.
40796
40797 2011-11-30  Andreas Schwab  <schwab@redhat.com>
40798
40799         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
40800         expectations for float.
40801
40802 2011-11-29  Andreas Schwab  <schwab@redhat.com>
40803
40804         * locale/weight.h (findidx): Add parameter len.
40805         * locale/weightwc.h (findidx): Likewise.
40806         * posix/fnmatch_loop.c (FCT): Adjust caller.
40807         * posix/regcomp.c (build_equiv_class): Likewise.
40808         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
40809         * posix/regexec.c (check_node_accept_bytes): Likewise.
40810         * string/strcoll_l.c (STRCOLL): Likewise.
40811         * string/strxfrm_l.c (STRXFRM): Likewise.
40812
40813 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
40814
40815         * Makefile.in: Remove CVSOPT handling.
40816         * configure.in: Remove use of AC_REVISION.
40817         * iconvdata/Makefile (distribute): No need to filter out CVS.
40818         * scripts/list-sources.sh: Remove CVS, subversion and monotone
40819         handling.
40820
40821 2011-11-16  Andreas Schwab  <schwab@redhat.com>
40822
40823         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
40824         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
40825         [USE_AS_STRNCASECMP_L]: Likewise.
40826         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
40827         NO_TLS_DIRECT_SEG_REFS.
40828         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
40829         Fix argument offsets for non-PIC.
40830         [USE_AS_STRNCASECMP_L]: Likewise.
40831         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
40832         NO_TLS_DIRECT_SEG_REFS.
40833
40834 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40835
40836         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
40837         O_CLOEXEC.
40838         * locale/loadlocale.c (_nl_load_locale): Likewise.
40839
40840 2011-11-15  Andreas Schwab  <schwab@redhat.com>
40841
40842         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
40843         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
40844         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
40845         (SYSCALL_GETTIME): Set errno on error.
40846
40847         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
40848         count references to noai6ai_cached.
40849
40850 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40851
40852         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
40853
40854         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
40855         FD_CLOEXEC for /proc/self/maps.
40856
40857         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
40858         FD_CLOEXEC for /proc/meminfo.
40859
40860         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
40861         gai.conf.
40862
40863         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
40864         FD_CLOEXEC for given file.
40865
40866         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
40867
40868         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
40869         FD_CLOEXEC for /etc/hosts.
40870         (_gethtent): Likewise.
40871
40872         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
40873
40874         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
40875         cancellation and set FD_CLOEXEC for /etc/netgroup.
40876
40877         * nss/nss_files/files-key.c (search): Don't allow cancellation when
40878         reading /etc/publickey.
40879
40880         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
40881         allow cancellation when reading /etc/group.
40882
40883         * nss/nss_files/files-alias.c (internal_setent): Don't allow
40884         cancellation.
40885         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
40886
40887         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
40888         when using data file.
40889
40890         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
40891
40892         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
40893         (write_nis_obj): Use "c" and "e" in fopen.
40894
40895         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
40896
40897         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
40898
40899         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
40900
40901         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
40902
40903         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
40904         locale.alias.
40905
40906         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
40907
40908         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
40909
40910         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
40911
40912         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
40913         file parsing and set FD_CLOEXEC.
40914
40915 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40916
40917         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
40918
40919 2011-11-14  Andreas Schwab  <schwab@redhat.com>
40920
40921         * malloc/arena.c (arena_get2): Don't call reused_arena when
40922         _int_new_arena failed.
40923
40924 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40925
40926         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
40927         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
40928         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
40929         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40930         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40931         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
40932         to compile strcasecmp and strncasecmp.
40933         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
40934         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
40935
40936         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
40937
40938 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
40939
40940         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
40941         locale-defines.sym to gen-as-const-headers.
40942         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
40943         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
40944         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
40945         to compile strcasecmp and strncasecmp.
40946         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
40947         strcasecmp_l and strncasecmp_l.
40948         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
40949         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
40950         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
40951         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
40952         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
40953         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
40954         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
40955         * sysdeps/i386/i686/multiarch/strncase.S: New file.
40956         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
40957         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
40958         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
40959
40960 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
40961
40962         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
40963         result of SYSDEP_GETTIME_CPU to retval.
40964         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
40965         parameter list to macro.  Remove trailing semicolon.  Adjust users.
40966
40967         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
40968         variable.
40969
40970         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
40971         mantissa words.
40972         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
40973
40974         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
40975         from unused variable.
40976
40977         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
40978         DWARF definitions.
40979         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
40980         for assembling.
40981
40982         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
40983         over namespaces.
40984
40985         * sunrpc/rpc_prot.c (rejected): Fix case value.
40986
40987         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
40988         unsigned long long int to avoid warnings in shift.
40989
40990         * posix/regex_internal.c (re_string_reconstruct): Actually use result
40991         of use of trans.
40992         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
40993         variable tmp.
40994
40995         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
40996         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
40997         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
40998
40999         * nis/nis_table.c (nis_list): Use variable of correct type for
41000         result of __follow_path call.
41001
41002 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41003
41004         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
41005         of math functions ceil, trunc, floor, round, and sqrt, when
41006         avaliable on the platform.
41007         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
41008         name clash.
41009         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41010         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41011         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41012
41013 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
41014
41015         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
41016         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
41017
41018 2011-11-11  Roland McGrath  <roland@hack.frob.com>
41019
41020         * include/unistd.h: Fix __readlink return type.
41021         Reported by Chris Metcalf <cmetcalf@tilera.com>.
41022
41023 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
41024
41025         * stdlib/ucontext.h: Undo last change for makecontext.
41026
41027 2011-11-11  Andreas Schwab  <schwab@redhat.com>
41028
41029         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
41030
41031         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
41032         * setjmp/setjmp.h: Mark functions as non-leaf.
41033         * setjmp/bits/setjmp2.h: Likewise.
41034         * stdlib/ucontext.h: Likewise.
41035
41036 2011-11-10  Andreas Schwab  <schwab@redhat.com>
41037
41038         * malloc/arena.c (_int_new_arena): Don't increment narenas.
41039         (reused_arena): Don't check arena limit.
41040         (arena_get2): Atomically check arena limit.
41041
41042 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
41043
41044         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
41045         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
41046
41047         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
41048         instructions.
41049
41050 2011-11-07  Andreas Schwab  <schwab@redhat.com>
41051
41052         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
41053         handler when locking.
41054
41055         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41056         Fix size of allocated buffer.
41057
41058 2011-11-04  Andreas Schwab  <schwab@redhat.com>
41059
41060         [BZ #10103]
41061         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
41062         declarations for long double functions.
41063         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
41064
41065         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
41066
41067 2011-11-03  Andreas Schwab  <schwab@redhat.com>
41068
41069         * nscd/nscd.c (main): Don't start AVC thread until credentials are
41070         installed.
41071
41072         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
41073         is disabled.
41074
41075 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41076
41077         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
41078
41079 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
41080
41081         * include/alloca.h (stackinfo_alloca_round): Define.
41082         (extend_alloca): Use it.
41083         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
41084         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
41085         here.
41086
41087         * scripts/check-local-headers.sh: Ignore libaudit.h.
41088
41089         * nscd/Makefile (extra-objs): Make recursively expanded.
41090
41091 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
41092
41093         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
41094         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
41095
41096         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
41097         * posix/tst-rfc3484-2.c: Likewise.
41098         * posix/tst-rfc3484-3.c: Likewise.
41099
41100         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
41101         process_vm_writev.
41102         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
41103         process_vm_writev.
41104         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
41105         process_vm_writev from libc using GLIBC_2.15 version.
41106
41107         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
41108
41109 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
41110
41111         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
41112         stack usage.
41113
41114 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
41115
41116         [BZ #13367]
41117         * nss/getent.c (initgroups_keys): Show error message in case no group
41118         names are given.
41119
41120         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
41121         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
41122         __bump_nl_timestamp.
41123         * nscd/connections (nscd_init): When host database is served open
41124         netlink socket and request notification about configuration changes.
41125         (main_loop_poll): Track netlink file descriptor and bump timestamp
41126         in case data becomes available.
41127         (main_loop_epoll): Likewise.
41128         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
41129         (database_pers_head): Add extra_data fileds.
41130         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
41131         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
41132         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
41133         Adjust caller.
41134         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
41135         in6ai data, call __free_in6ai.
41136         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
41137         Add -DHAVE_NETLINK.
41138         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
41139         interface information.  Reuse previous data if netlink timestamp
41140         is not changed.
41141         (__bump_nl_timestamp): New function.
41142         (__free_in6ai): New function.
41143
41144 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
41145
41146         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
41147         close_not_cancel_no_status here.
41148         (__check_pf): Reorganize code a bit to not call close twice if OOM.
41149
41150 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41151
41152         [BZ #13276]
41153         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
41154         return value.
41155
41156         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
41157         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
41158         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
41159
41160 2011-07-03  Andreas Jaeger  <aj@suse.de>
41161
41162         [BZ #10709]
41163         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
41164         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
41165         * math/libm-test.inc (sin_test): Add test case.
41166
41167 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41168
41169         [BZ #13337]
41170         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
41171         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41172
41173         * elf/chroot_canon.c (chroot_canon): Cleanups.
41174
41175         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
41176
41177         [BZ #13335]
41178         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
41179         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41180
41181         * string/test-strchr.c: Make usable for strchrnul testing.
41182         * string/test-strchrnul.c: New file.
41183         * string/Makefile (strop-tests): Add strchrnul.
41184
41185         * po/it.po: Update from translation team.
41186         * po/es.po: Likewise.
41187
41188 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
41189
41190         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
41191         the three constants needed as parameters.  Drop the others.
41192         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
41193         __m128i_strloadu_tolower.
41194         Create and initialize variable zero and use it in all the places
41195         where _mm_setzero_si128 was used.
41196
41197         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
41198         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
41199         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
41200         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
41201         anymore.
41202         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
41203         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
41204         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
41205         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
41206         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
41207         __mpranred, __mptan.
41208         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
41209         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
41210         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
41211         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
41212         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
41213         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
41214         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
41215         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
41216         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
41217
41218 2011-10-28  Andreas Schwab  <schwab@redhat.com>
41219
41220         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
41221         redefine if SHARED.
41222         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
41223
41224         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
41225         wide char related routines to wcsmbs subdir.
41226
41227 2011-10-27  Andreas Schwab  <schwab@redhat.com>
41228
41229         [BZ #13344]
41230         * misc/sys/cdefs.h (__THROWNL): Define.
41231         * posix/unistd.h: Use __THREADNL instead of __THREAD
41232         for memory synchronization functions.
41233
41234 2011-10-26  Roland McGrath  <roland@hack.frob.com>
41235
41236         [BZ #13349]
41237         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
41238         doesn't exist.
41239         * manual/stdio.texi (Obstack Streams): Node removed.
41240
41241 2011-10-26  Andreas Schwab  <schwab@redhat.com>
41242
41243         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
41244         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41245         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41246
41247         * math/math_private.h (math_force_eval): Allow non-addressable
41248         arguments.
41249         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
41250
41251 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41252
41253         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
41254         file is not needed.
41255
41256         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
41257         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
41258         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
41259         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41260         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41261         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41262         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41263         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
41264         Add AVX variants.
41265         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
41266         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
41267         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
41268         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
41269         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
41270         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
41271         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
41272         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
41273         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
41274         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
41275         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
41276         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
41277         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
41278         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
41279         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
41280         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
41281         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
41282         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
41283         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
41284
41285         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
41286         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
41287
41288         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
41289         place.  Use VEX encoding when compiling for AVX.
41290
41291 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41292
41293         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
41294         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
41295
41296         * string/test-strchr.c (do_test): Don't generate NUL bytes.
41297
41298 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41299
41300         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
41301         useless if() expression.
41302         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41303         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
41304         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
41305         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41306         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
41307         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41308         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41309         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41310         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
41311         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41312         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41313         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41314         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
41315         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41316         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
41317         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41318         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41319         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41320         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
41321
41322         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
41323
41324 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41325
41326         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
41327         condition.
41328         * elf/dl-fini.c (_dl_sort_fini): Likewise.
41329
41330 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41331
41332         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
41333         .text section.  Avoid duplicate constants.
41334         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
41335         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41336         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41337         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41338         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41339         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41340         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41341         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41342         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
41343         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
41344         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
41345         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
41346         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
41347         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
41348         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
41349         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
41350         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
41351         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
41352         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
41353         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41354         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
41355         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
41356         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
41357         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
41358         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
41359         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
41360         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
41361         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
41362         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
41363         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
41364         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
41365         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
41366         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
41367         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
41368         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
41369         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
41370         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
41371         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
41372         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
41373         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
41374         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
41375         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
41376         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
41377         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
41378         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
41379
41380 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
41381
41382         * sysdeps/x86_64/dla.h: Move to ...
41383         * sysdeps/x86_64/fpu/dla.h: ...here.
41384         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
41385         situations.  Use __builtin_fma only for gcc 4.6 and up.
41386
41387         * config.make.in: Add have-mfma4 entry.
41388         * configure.in: Substitute libc_cv_cc_fma4.
41389         * math/Makefile (dbl-only-routines): Add sincostab.
41390         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
41391         Use __sincostab not sincos.
41392         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
41393         name is a macro.
41394         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41395         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41396         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41397         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
41398         using __copysign.
41399         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
41400         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
41401         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
41402         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
41403         and __inv.
41404         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
41405         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
41406         __copysign.
41407         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
41408         define aliases when function name is a macro.
41409         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
41410         sysdeps/ieee754/dbl-64/sincos.tbl.
41411         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
41412         fma4-enabled routines.
41413         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
41414         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
41415         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
41416         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
41417         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
41418         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
41419         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
41420         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
41421         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
41422         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
41423         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
41424         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
41425         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
41426         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
41427         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
41428         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
41429         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
41430         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
41431         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
41432         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
41433         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
41434         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
41435         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
41436         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
41437         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
41438         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
41439         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
41440         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
41441         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
41442         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
41443
41444         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
41445         rename.
41446         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41447         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41448         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41449         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41450         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41451         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41452         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41453         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41454
41455 2011-10-24  Andreas Schwab  <schwab@redhat.com>
41456
41457         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
41458
41459 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41460
41461         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
41462
41463         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
41464         prediction.
41465         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
41466
41467         * string/strnlen.c: Don't define STRNLEN, reverse logic.
41468         Remove unused variable magic_bits.
41469         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
41470
41471         * string/strnlen.c: Define and use STRNLEN macro.
41472         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
41473         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
41474         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
41475         * wcsmbs/wcslen.c: Define and use WCSLEN.
41476         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
41477         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
41478         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
41479         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
41480         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
41481         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
41482         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41483
41484 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41485
41486         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41487         strnlen-sse2-no-bsf.
41488         Rename strlen-no-bsf to strlen-sse2-no-bsf.
41489         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
41490         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
41491         Add strnlen support.
41492         (USE_AS_STRNLEN): New macro.
41493         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
41494         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
41495         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
41496         * sysdeps/x86_64/wcslen.S: New file.
41497
41498 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
41499
41500         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
41501         XMM-moves are used for copying on small sizes.
41502
41503 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41504
41505         * wcsmbs/Makefile (strop-tests): Add wcschr.
41506         * wcsmbs/test-wcschr.c: New file.
41507         * string/test-strchr.c: Update.
41508         Add wcschr support.
41509         (WIDE): New macro.
41510
41511 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41512
41513         * wcsmbs/Makefile (strop-tests): Add wcslen.
41514         * wcsmbs/test-wcslen.c: New file.
41515         * string/test-strlen.c: Update.
41516         Add wcslen support.
41517         (WIDE): New macro.
41518
41519 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41520
41521         * po/it.po: Update from translation team.
41522
41523 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41524
41525         * sysdeps/x86_64/wcscmp.S: Update.
41526         Fix wrong comparison semantics.
41527         wcscmp shall use signed comparison not unsigned.
41528         Don't use substraction to avoid overflow bug.
41529         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
41530         * wcsmbc/wcscmp.c: Likewise.
41531         * string/test-strcmp.c: Likewise.
41532         Add new tests to check cases with negative values.
41533
41534 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41535
41536         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
41537         * sysdeps/x86_64/dla.h: ...here.  New file.
41538         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
41539         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41540         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41541         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41542         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41543         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41544         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41545         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41546         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41547
41548 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
41549
41550         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
41551         __ynl_finite aliases.
41552
41553 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41554
41555         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41556
41557         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
41558         define DLA_FMA.
41559         [DLA_FMA] (EMULV): Use DLA_FMA.
41560         [DLA_FMA] (MUL12): Use EMULV.
41561         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
41562         that are not needed.
41563         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41564         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41565         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41566         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41567         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41568         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41569         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41570
41571 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
41572
41573         * math/s_nan.c: Undef __nan.
41574         * math/s_nanf.c: Undef __nanf.
41575         * math/s_nanl.c: Undef __nanl.
41576         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
41577         "math_private.h".
41578
41579 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41580
41581         * math/s_catan.c: Add branch predictions.
41582         * math/s_catanf.c: Likewise.
41583         * math/s_catanh.c: Likewise.
41584         * math/s_catanhf.c: Likewise.
41585         * math/s_catanhl.c: Likewise.
41586         * math/s_catanl.c: Likewise.
41587         * math/s_cexp.c: Likewise.
41588         * math/s_cexpf.c: Likewise.
41589         * math/s_cexpl.c: Likewise.
41590         * math/s_clog.c: Likewise.
41591         * math/s_clog10.c: Likewise.
41592         * math/s_clog10f.c: Likewise.
41593         * math/s_clog10l.c: Likewise.
41594         * math/s_clogf.c: Likewise.
41595         * math/s_clogl.c: Likewise.
41596         * math/s_csqrt.c: Likewise.
41597         * math/s_csqrtf.c: Likewise.
41598         * math/s_csqrtl.c: Likewise.
41599         * math/s_ctanf.c: Likewise.
41600         * math/s_ctanh.c: Likewise.
41601         * math/s_ctanhf.c: Likewise.
41602         * math/s_ctanhl.c: Likewise.
41603         * math/s_ctanl.c: Likewise.
41604
41605         * math/math_private.h: Define __nan, __nanf, __nanl.
41606         * math/s_cacosh.c: Include <math_private.h>.
41607         * math/s_cacoshl.c: Likewise.
41608         * math/s_casinh.c: Likewise.
41609         * math/s_casinhf.c: Likewise.
41610         * math/s_casinhl.c: Likewise.
41611         * math/s_ccos.c: Rely entire on ccosh.
41612         * math/s_ccosf.c: Rely entire on ccoshf.
41613         * math/s_ccosl.c: Rely entirely on ccoshl.
41614         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
41615         Remove tests for FE_INVALID.
41616         * math/s_ccoshf.c: Likewise.
41617         * math/s_ccoshl.c: Likewise.
41618         * math/s_csin.c: Likewise.
41619         * math/s_csinf.c: Likewise.
41620         * math/s_csinh.c Likewise.
41621         * math/s_csinhf.c: Likewise.
41622         * math/s_csinhl.c: Likewise.
41623         * math/s_csinl.c: Likewise.
41624         * math/s_ctan.c: Likewise.
41625         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
41626         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
41627         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
41628
41629 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
41630
41631         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
41632         compilation problems.
41633
41634         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
41635         __builtin_expect.
41636
41637 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
41638
41639         * sysdeps/i386/configure.in: Test for -mfma4 option.
41640         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
41641         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
41642         COMMON_CPUID_INDEX_80000001.
41643         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
41644         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
41645         use it if FMA3 is not supported.
41646         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
41647
41648         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
41649         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
41650
41651 2011-10-20  Andreas Schwab  <schwab@redhat.com>
41652
41653         [BZ #12892]
41654         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
41655         it would create a cycle with a link time dependency.
41656
41657 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
41658
41659         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
41660         instruction.
41661         * string/Makefile (strop-tests): Add rawmemchr.
41662         * string/test-rawmemchr.c: New file.
41663
41664         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
41665         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
41666         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
41667         when compiling str{,n}casecmp and when AVX is available.  Hook up
41668         new optimized code in initializers.
41669
41670 2011-10-19  Andreas Schwab  <schwab@redhat.com>
41671
41672         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
41673         __feraiseexcept instead of feraiseexcept.
41674
41675 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
41676
41677         * math/math_private.h: Define defaults for libc_fetestexcept and
41678         libc_feupdateenv.
41679         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
41680         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
41681         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41682         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41683         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
41684         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41685         libc_fetestexcept and libc_feupdateenv.
41686
41687         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
41688         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
41689         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
41690         * sysdeps/x86_64/fpu/math_private.h: Define special version of
41691         libc_feholdexcept_setround.
41692
41693         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
41694         Add s_nearbyint-c and s_nearbyintf-c.
41695         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
41696         nearbyintf inlines.
41697         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
41698         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
41699         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
41700         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
41701
41702         * math/math_private.h: Define defaults for libc_fegetround,
41703         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
41704         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
41705         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
41706         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
41707         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
41708         standard functions.
41709         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41710         Remove comments and hacks for old compiler versions.
41711         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41712         libc_fegetround, libc_fesetround, libc_feholdexcept, and
41713         libc_feholdexceptl.
41714
41715 2011-10-18  Andreas Schwab  <schwab@redhat.com>
41716
41717         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
41718         (__feraiseexcept_renamed): Add __NTH.
41719         (feraiseexcept): Add __NTH.  Rename local variables to fix
41720         namespace violations.
41721
41722 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
41723
41724         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
41725
41726         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
41727
41728         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
41729         recently added interfaces.
41730         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
41731
41732         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
41733         about macro parameter expansion.
41734
41735         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
41736         __NO_MATH_INLINES is defined.  Cleanups.
41737
41738         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
41739         and __floorf is target has SSE4.1.
41740         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
41741         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
41742         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
41743         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
41744
41745         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
41746         name.
41747         (floorf): Likewise.
41748
41749         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
41750
41751 2011-10-17  Andreas Schwab  <schwab@redhat.com>
41752
41753         * misc/sys/cdefs.h: Fix last change.
41754
41755         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
41756         database lookup.
41757
41758 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
41759
41760         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
41761
41762         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
41763         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41764         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
41765         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41766         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41767         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
41768         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41769         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41770         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
41771         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
41772         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
41773         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
41774         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
41775         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
41776         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
41777         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
41778         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
41779         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
41780         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
41781         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
41782         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
41783         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
41784
41785         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
41786         ceil, ceilf, floor, floorf.
41787
41788         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
41789         Perform IRELATIVE relocations last.
41790
41791         * elf/do-rel.h: Add another parameter nrelative, replacing the
41792         local variable with the same name.  Change name of the function
41793         to end in Rel or Rela (uppercase).
41794         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
41795         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
41796         elf_dynamic_do_##reloc function.
41797
41798 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41799
41800         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
41801         is sufficient, at least on modern CPUs.
41802
41803         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
41804
41805         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
41806         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
41807
41808         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
41809         __expl_finite.
41810         * math/bits/math-finite.h: Add entries for exp.
41811         * math/e_expl.c: Add __*_finite alias.
41812         * sysdeps/i386/fpu/e_exp.S: Likewise.
41813         * sysdeps/i386/fpu/e_expf.S: Likewise.
41814         * sysdeps/i386/fpu/e_expl.c: Likewise.
41815         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41816         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41817         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
41818         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
41819         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
41820         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
41821         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
41822
41823         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
41824         is sufficient, at least on modern CPUs.
41825
41826         * ctype/ctype-info.c (__ctype_init): Define.
41827         * include/ctype.h (__ctype_init): Declare.
41828         (__ctype_b_loc): The variable is always initialized.
41829         (__ctype_toupper_loc): Likewise.
41830         (__ctype_tolower_loc): Likewise.
41831         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
41832         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
41833
41834 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
41835
41836         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
41837
41838         * configure.in: Also look in $cxxmachine/include for C++ system
41839         headers.
41840
41841 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41842
41843         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
41844         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
41845         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
41846         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
41847         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
41848         (USE_AS_WMEMCMP): New macro.
41849         Fixing indents.
41850         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
41851         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
41852         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
41853         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
41854         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41855         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
41856         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
41857         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
41858         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
41859         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
41860         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
41861         (USE_AS_WMEMCMP): New macro.
41862         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
41863         * sysdeps/string/test-memcmp.c: Update.
41864         Fix simple_wmemcmp.
41865         Add new tests.
41866         * wcsmbs/wmemcmp.c: Update.
41867         (WMEMCMP): New macro.
41868         Fix overflow bug.
41869
41870 2011-10-12  Andreas Jaeger  <aj@suse.de>
41871
41872         [BZ #13268]
41873         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
41874
41875 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41876
41877         * libio/iofwide.c (do_length): Avoid warning.
41878
41879         * ctype/ctype.h (__isctype_f): Add missing __THROW.
41880
41881 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
41882
41883         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
41884
41885         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
41886         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
41887         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
41888         * sysdeps/i386/i686/fpu/e_log.S: New file.
41889         * sysdeps/i386/i686/fpu/e_logf.S: New file.
41890         * sysdeps/i386/i686/fpu/e_logl.S: New file.
41891
41892         * ctype/ctype.h: Add support for inlined isXXX functions when
41893         compiling C++ code.
41894
41895 2011-10-14  Andreas Schwab  <schwab@redhat.com>
41896
41897         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41898
41899         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
41900
41901 2011-10-13  Roland McGrath  <roland@hack.frob.com>
41902
41903         [BZ #13291]
41904         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
41905
41906 2011-10-13  Andreas Schwab  <schwab@redhat.com>
41907
41908         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
41909         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
41910         feraiseexcept.
41911
41912         * sysdeps/x86_64/memrchr.S: Check for zero size.
41913
41914         * string/stratcliff.c: Add memrchr tests.
41915
41916 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41917
41918         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41919         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
41920         rawmemchr-sse2 rawmemchr-sse2-bsf.
41921         * sysdeps/i386/i686/multiarch/memchr.S: New file.
41922         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
41923         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
41924         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
41925         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
41926         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
41927         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
41928         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
41929         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
41930         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
41931         * string/memrchr.c (MEMRCHR): New macro.
41932
41933 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
41934
41935         Add integration with gcc's -ffinite-math-only and optimize wrapper
41936         functions in libm.
41937         * Versions.def: Define GLIBC_2.15 version for libm.
41938         * math/Makefile (headers): Add bits/math-finite.h.
41939         * math/bits/math-finite.h: New file.
41940         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
41941         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
41942         * math/e_acoshl.c: Add __*_finite alias.
41943         * math/e_acosl.c: Likewise.
41944         * math/e_asinl.c: Likewise.
41945         * math/e_atan2l.c: Likewise.
41946         * math/e_atanhl.c: Likewise.
41947         * math/e_coshl.c: Likewise.
41948         * math/e_exp10.c: Likewise.
41949         * math/e_exp10f.c: Likewise.
41950         * math/e_exp10l.c: Likewise.
41951         * math/e_exp2l.c: Likewise.
41952         * math/e_fmodl.c: Likewise.
41953         * math/e_gammal_r.c: Likewise.
41954         * math/e_hypotl.c: Likewise.
41955         * math/e_j0l.c: Likewise.
41956         * math/e_j1l.c: Likewise.
41957         * math/e_jnl.c: Likewise.
41958         * math/e_lgammal_r.c: Likewise.
41959         * math/e_log10l.c: Likewise.
41960         * math/e_log2l.c: Likewise.
41961         * math/e_logl.c: Likewise.
41962         * math/e_powl.c: Likewise.
41963         * math/e_sinhl.c: Likewise.
41964         * math/e_sqrtl.c: Likewise.
41965         * math/e_scalb.c: Completely rewritten and optimized.
41966         * math/e_scalbf.c: Likewise.
41967         * math/e_scalbl.c: Likewise.
41968         * math/w_acos.c: Likewise.
41969         * math/w_acosf.c: Likewise.
41970         * math/w_acosl.c: Likewise.
41971         * math/w_acosh.c: Likewise.
41972         * math/w_acoshf.c: Likewise.
41973         * math/w_acoshl.c: Likewise.
41974         * math/w_asin.c: Likewise.
41975         * math/w_asinf.c: Likewise.
41976         * math/w_asinl.c: Likewise.
41977         * math/w_atan2.c: Likewise.
41978         * math/w_atan2f.c: Likewise.
41979         * math/w_atan2l.c: Likewise.
41980         * math/w_atanh.c: Likewise.
41981         * math/w_atanhf.c: Likewise.
41982         * math/w_atanhl.c: Likewise.
41983         * math/w_exp10.c: Likewise.
41984         * math/w_exp10f.c: Likewise.
41985         * math/w_exp10l.c: Likewise.
41986         * math/w_fmod.c: Likewise.
41987         * math/w_fmodf.c: Likewise.
41988         * math/w_fmodl.c: Likewise.
41989         * math/w_j0.c: Likewise.
41990         * math/w_j0f.c: Likewise.
41991         * math/w_j0l.c: Likewise.
41992         * math/w_j1.c: Likewise.
41993         * math/w_j1f.c: Likewise.
41994         * math/w_j1l.c: Likewise.
41995         * math/w_jn.c: Likewise.
41996         * math/w_jnf.c: Likewise.
41997         * math/w_log.c: Likewise.
41998         * math/w_logf.c: Likewise.
41999         * math/w_logl.c: Likewise.
42000         * math/w_log10.c: Likewise.
42001         * math/w_log10f.c: Likewise.
42002         * math/w_log10l.c: Likewise.
42003         * math/w_log2.c: Likewise.
42004         * math/w_log2f.c: Likewise.
42005         * math/w_log2l.c: Likewise.
42006         * math/w_pow.c: Likewise.
42007         * math/w_powf.c: Likewise.
42008         * math/w_powl.c: Likewise.
42009         * math/w_remainder.c: Likewise.
42010         * math/w_remainderf.c: Likewise.
42011         * math/w_remainderl.c: Likewise.
42012         * math/w_scalb.c: Likewise.
42013         * math/w_scalbf.c: Likewise.
42014         * math/w_scalbl.c: Likewise.
42015         * math/w_sqrt.c: Likewise.
42016         * math/w_sqrtf.c: Likewise.
42017         * math/w_sqrtl.c: Likewise.
42018         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
42019         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
42020         used.
42021         * math/math_private.h: Declare __kernel_standard_f.
42022         * math/w_cosh.c: Remove cruft and optimize a bit.
42023         * math/w_coshf.c: Likewise.
42024         * math/w_coshl.c: Likewise.
42025         * math/w_exp2.c: Likewise.
42026         * math/w_exp2f.c: Likewise.
42027         * math/w_exp2l.c: Likewise.
42028         * math/w_hypot.c: Likewise.
42029         * math/w_hypotf.c: Likewise.
42030         * math/w_hypotl.c: Likewise.
42031         * math/w_lgamma.c: Likewise.
42032         * math/w_lgamma_r.c: Likewise.
42033         * math/w_lgammaf.c: Likewise.
42034         * math/w_lgammaf_r.c: Likewise.
42035         * math/w_lgammal.c: Likewise.
42036         * math/w_lgammal_r.c: Likewise.
42037         * math/w_sinh.c: Likewise.
42038         * math/w_sinhf.c: Likewise.
42039         * math/w_sinhl.c: Likewise.
42040         * math/w_tgamma.c: Likewise.
42041         * math/w_tgammaf.c: Likewise.
42042         * math/w_tgammal.c: Likewise.
42043         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
42044         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
42045         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
42046         Minor optimizations.  Pretty printing.  Remove cruft.
42047         * sysdeps/i386/fpu/e_acosf.S: Likewise.
42048         * sysdeps/i386/fpu/e_acosh.S: Likewise.
42049         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
42050         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
42051         * sysdeps/i386/fpu/e_acosl.c: Likewise.
42052         * sysdeps/i386/fpu/e_asin.S: Likewise.
42053         * sysdeps/i386/fpu/e_asinf.S: Likewise.
42054         * sysdeps/i386/fpu/e_atan2.S: Likewise.
42055         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
42056         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
42057         * sysdeps/i386/fpu/e_atanh.S: Likewise.
42058         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
42059         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
42060         * sysdeps/i386/fpu/e_exp10.S: Likewise.
42061         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
42062         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
42063         * sysdeps/i386/fpu/e_exp2.S: Likewise.
42064         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
42065         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
42066         * sysdeps/i386/fpu/e_fmod.S: Likewise.
42067         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
42068         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
42069         * sysdeps/i386/fpu/e_hypot.S: Likewise.
42070         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
42071         * sysdeps/i386/fpu/e_log.S: Likewise.
42072         * sysdeps/i386/fpu/e_log10.S: Likewise.
42073         * sysdeps/i386/fpu/e_log10f.S: Likewise.
42074         * sysdeps/i386/fpu/e_log10l.S: Likewise.
42075         * sysdeps/i386/fpu/e_log2.S: Likewise.
42076         * sysdeps/i386/fpu/e_log2f.S: Likewise.
42077         * sysdeps/i386/fpu/e_log2l.S: Likewise.
42078         * sysdeps/i386/fpu/e_logf.S: Likewise.
42079         * sysdeps/i386/fpu/e_logl.S: Likewise.
42080         * sysdeps/i386/fpu/e_pow.S: Likewise.
42081         * sysdeps/i386/fpu/e_powf.S: Likewise.
42082         * sysdeps/i386/fpu/e_powl.S: Likewise.
42083         * sysdeps/i386/fpu/e_remainder.S: Likewise.
42084         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
42085         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
42086         * sysdeps/i386/fpu/e_scalb.S: Likewise.
42087         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
42088         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
42089         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
42090         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
42091         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
42092         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42093         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
42094         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42095         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42096         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42097         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42098         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42099         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42100         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42101         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42102         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42103         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
42104         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42105         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42106         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42107         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42108         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42109         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42110         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42111         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42112         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42113         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
42114         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
42115         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
42116         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
42117         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
42118         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
42119         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
42120         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
42121         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
42122         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
42123         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
42124         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42125         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
42126         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
42127         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
42128         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
42129         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
42130         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
42131         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
42132         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
42133         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
42134         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
42135         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
42136         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
42137         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
42138         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
42139         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
42140         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
42141         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
42142         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
42143         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
42144         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
42145         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42146         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
42147         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
42148         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
42149         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
42150         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
42151         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
42152         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
42153         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
42154         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
42155         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
42156         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
42157         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
42158         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
42159         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
42160         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
42161         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
42162         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
42163         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
42164         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
42165         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
42166         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
42167         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
42168         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
42169         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
42170         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
42171         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
42172         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
42173         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
42174         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
42175         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
42176         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
42177         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
42178         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42179         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
42180         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
42181         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
42182         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
42183         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
42184         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
42185         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
42186         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
42187         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
42188         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
42189         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
42190         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
42191         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
42192         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
42193         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
42194         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
42195         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
42196         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
42197         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
42198         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
42199         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
42200         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
42201         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
42202         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
42203         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
42204         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
42205         (__isnanf): Likewise.
42206         (__isinf_ns): Likewise.
42207         (__isinf_nsf): Likewise.
42208         (__finite): Likewise.
42209         (__finitef): Likewise.
42210         (__ieee754_sqrt): Define as macro.
42211         (__ieee754_sqrtf): Define as macro.
42212         (__ieee754_sqrtl): Define as macro.
42213         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
42214         inlined copy.
42215         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
42216         __FINITE_MATH_ONLY__ consistent.
42217         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
42218
42219 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
42220
42221         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
42222         of rawmemchr.
42223
42224         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
42225
42226 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
42227
42228         * po/ja.po: Update from translation team.
42229
42230 2011-10-08  Roland McGrath  <roland@hack.frob.com>
42231
42232         * locale/programs/locarchive.c (prepare_address_space): New function.
42233         (create_archive, enlarge_archive, open_archive): Use it.
42234
42235         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
42236         inside [SHARED], where it is used.
42237
42238         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
42239
42240         * nss/getent.c (netgroup_keys): Remove unused variable.
42241         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
42242
42243 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
42244
42245         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
42246         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
42247         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
42248         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
42249         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
42250         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
42251         * math/Makefile (libm-calls): Add s_isinf_ns.
42252         * math/divtc3.c: Use __isinf_nsl instead of isinf.
42253         * math/multc3.c: Likewise.
42254         * math/s_casin.c: Likewise.
42255         * math/s_casinf.c: Likewise.
42256         * math/s_casinl.c: Likewise.
42257         * math/s_ccos.c: Likewise.
42258         * math/s_ccosf.c: Likewise.
42259         * math/s_ccosl.c: Likewise.
42260         * math/s_ctan.c: Likewise.
42261         * math/s_ctanf.c: Likewise.
42262         * math/s_ctanh.c: Likewise.
42263         * math/s_ctanhf.c: Likewise.
42264         * math/s_ctanhl.c: Likewise.
42265         * math/s_ctanl.c: Likewise.
42266         * math/w_fmod.c: Likewise.
42267         * math/w_fmodf.c: Likewise.
42268         * math/w_fmodl.c: Likewise.
42269         * math/w_remainder.c: Likewise.
42270         * math/w_remainderf.c: Likewise.
42271         * math/w_remainderl.c: Likewise.
42272         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
42273         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
42274         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
42275         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
42276         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
42277         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
42278         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
42279         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
42280
42281         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
42282         of the number.
42283         * stdio-common/printf_fphex.c: Likewise.
42284         * stdio-common/printf_size.c: Likewise.
42285
42286         * math/e_exp10.c: Include math_private.h using <...> not "...".
42287         * math/e_exp10f.c: Likewise.
42288         * math/e_exp10l.c: Likewise.
42289         * math/e_exp2l.c: Likewise.
42290         * math/e_j0l.c: Likewise.
42291         * math/e_j1l.c: Likewise.
42292         * math/e_jnl.c: Likewise.
42293         * math/e_lgammal_r.c: Likewise.
42294         * math/e_rem_pio2l.c: Likewise.
42295         * math/e_scalb.c: Likewise.
42296         * math/e_scalbf.c: Likewise.
42297         * math/e_scalbl.c: Likewise.
42298         * math/k_cosl.c: Likewise.
42299         * math/k_sinl.c: Likewise.
42300         * math/k_tanl.c: Likewise.
42301         * math/s_cacoshf.c: Likewise.
42302         * math/s_catan.c: Likewise.
42303         * math/s_catanf.c: Likewise.
42304         * math/s_catanh.c: Likewise.
42305         * math/s_catanhf.c: Likewise.
42306         * math/s_catanhl.c: Likewise.
42307         * math/s_catanl.c: Likewise.
42308         * math/s_ccosh.c: Likewise.
42309         * math/s_ccoshf.c: Likewise.
42310         * math/s_ccoshl.c: Likewise.
42311         * math/s_cexp.c: Likewise.
42312         * math/s_cexpf.c: Likewise.
42313         * math/s_cexpl.c: Likewise.
42314         * math/s_clog.c: Likewise.
42315         * math/s_clog10.c: Likewise.
42316         * math/s_clog10f.c: Likewise.
42317         * math/s_clog10l.c: Likewise.
42318         * math/s_clogf.c: Likewise.
42319         * math/s_clogl.c: Likewise.
42320         * math/s_csin.c: Likewise.
42321         * math/s_csinf.c: Likewise.
42322         * math/s_csinh.c: Likewise.
42323         * math/s_csinhf.c: Likewise.
42324         * math/s_csinhl.c: Likewise.
42325         * math/s_csinl.c: Likewise.
42326         * math/s_csqrt.c: Likewise.
42327         * math/s_csqrtf.c: Likewise.
42328         * math/s_csqrtl.c: Likewise.
42329         * math/s_ctan.c: Likewise.
42330         * math/s_ctanf.c: Likewise.
42331         * math/s_ctanh.c: Likewise.
42332         * math/s_ctanhf.c: Likewise.
42333         * math/s_ctanhl.c: Likewise.
42334         * math/s_ctanl.c: Likewise.
42335         * math/s_ldexp.c: Likewise.
42336         * math/s_ldexpf.c: Likewise.
42337         * math/s_ldexpl.c: Likewise.
42338         * math/s_significand.c: Likewise.
42339         * math/s_significandf.c: Likewise.
42340         * math/s_significandl.c: Likewise.
42341         * math/w_acos.c: Likewise.
42342         * math/w_acosf.c: Likewise.
42343         * math/w_acosh.c: Likewise.
42344         * math/w_acoshf.c: Likewise.
42345         * math/w_acoshl.c: Likewise.
42346         * math/w_acosl.c: Likewise.
42347         * math/w_asin.c: Likewise.
42348         * math/w_asinf.c: Likewise.
42349         * math/w_asinl.c: Likewise.
42350         * math/w_atan2.c: Likewise.
42351         * math/w_atan2f.c: Likewise.
42352         * math/w_atan2l.c: Likewise.
42353         * math/w_atanh.c: Likewise.
42354         * math/w_atanhf.c: Likewise.
42355         * math/w_atanhl.c: Likewise.
42356         * math/w_cosh.c: Likewise.
42357         * math/w_coshf.c: Likewise.
42358         * math/w_coshl.c: Likewise.
42359         * math/w_dremf.c: Likewise.
42360         * math/w_exp10.c: Likewise.
42361         * math/w_exp10f.c: Likewise.
42362         * math/w_exp10l.c: Likewise.
42363         * math/w_exp2.c: Likewise.
42364         * math/w_exp2f.c: Likewise.
42365         * math/w_fmod.c: Likewise.
42366         * math/w_fmodf.c: Likewise.
42367         * math/w_fmodl.c: Likewise.
42368         * math/w_hypot.c: Likewise.
42369         * math/w_hypotf.c: Likewise.
42370         * math/w_hypotl.c: Likewise.
42371         * math/w_j0.c: Likewise.
42372         * math/w_j0f.c: Likewise.
42373         * math/w_j0l.c: Likewise.
42374         * math/w_j1.c: Likewise.
42375         * math/w_j1f.c: Likewise.
42376         * math/w_j1l.c: Likewise.
42377         * math/w_jn.c: Likewise.
42378         * math/w_jnf.c: Likewise.
42379         * math/w_jnl.c: Likewise.
42380         * math/w_lgamma.c: Likewise.
42381         * math/w_lgamma_r.c: Likewise.
42382         * math/w_lgammaf.c: Likewise.
42383         * math/w_lgammaf_r.c: Likewise.
42384         * math/w_lgammal.c: Likewise.
42385         * math/w_lgammal_r.c: Likewise.
42386         * math/w_log.c: Likewise.
42387         * math/w_log10.c: Likewise.
42388         * math/w_log10f.c: Likewise.
42389         * math/w_log10l.c: Likewise.
42390         * math/w_log2.c: Likewise.
42391         * math/w_log2f.c: Likewise.
42392         * math/w_log2l.c: Likewise.
42393         * math/w_logf.c: Likewise.
42394         * math/w_logl.c: Likewise.
42395         * math/w_pow.c: Likewise.
42396         * math/w_powf.c: Likewise.
42397         * math/w_powl.c: Likewise.
42398         * math/w_remainder.c: Likewise.
42399         * math/w_remainderf.c: Likewise.
42400         * math/w_remainderl.c: Likewise.
42401         * math/w_scalb.c: Likewise.
42402         * math/w_scalbf.c: Likewise.
42403         * math/w_scalbl.c: Likewise.
42404         * math/w_sinh.c: Likewise.
42405         * math/w_sinhf.c: Likewise.
42406         * math/w_sinhl.c: Likewise.
42407         * math/w_sqrt.c: Likewise.
42408         * math/w_sqrtf.c: Likewise.
42409         * math/w_sqrtl.c: Likewise.
42410         * math/w_tgamma.c: Likewise.
42411         * math/w_tgammaf.c: Likewise.
42412         * math/w_tgammal.c: Likewise.
42413
42414         * po/ja.po: Update from translation team.
42415
42416 2011-09-29  Andreas Jaeger  <aj@suse.de>
42417
42418         [BZ #13179]
42419         * sunrpc/netname.c (netname2host): Fix logic.
42420
42421         [BZ #6779]
42422         [BZ #6783]
42423         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
42424         correctly.
42425         * math/w_remainder.c (__remainder): Likewise.
42426         * math/w_remainderf.c (__remainderf): Likewise.
42427         * math/libm-test.inc (remainder_test): Add test cases.
42428
42429 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42430
42431         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
42432         sdiv_qrnnd.
42433
42434 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42435
42436         * string/test-memcmp.c: Avoid unncessary #defines.
42437         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42438
42439 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42440
42441         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
42442         Use new sse2 version for core i3 - i7 as it's faster
42443         than sse42 version.
42444         (bit_Prefer_PMINUB_for_stringop): New.
42445         * sysdeps/x86_64/rawmemchr.S: Update.
42446         Replace with faster SSE2 version.
42447         * sysdeps/x86_64/memrchr.S: New file.
42448         * sysdeps/x86_64/memchr.S: Update.
42449         Replace with faster SSE2 version.
42450
42451 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
42452
42453         * elf/dl-load.c (lose): Add cast to avoid warning.
42454
42455 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42456
42457         * po/ca.po: Update from translation team.
42458
42459         * inet/getnetgrent_r.c: Hook up nscd.
42460         * nscd/Makefile (routines): Add nscd_netgroup.
42461         (nscd-modules): Add netgroupcache.
42462         (CFLAGS-netgroupcache.c): Define.
42463         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
42464         (cache_search): Add const to second parameter.
42465         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
42466         INNETGR.
42467         (dbs): Add netgrdb entry.
42468         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
42469         (verify_persistent_db): Handle netgrdb.
42470         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
42471         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
42472         GETFDNETGR.
42473         (netgroup_response_header): Define.
42474         (innetgroup_response_header): Define.
42475         (datahead): Add netgroup_response_header and innetgroup_response_header
42476         elements.
42477         * nscd/nscd.conf: Add entries for netgroup cache.
42478         * nscd/nscd.h (dbtype): Add netgrdb.
42479         (_PATH_NSCD_NETGROUP_DB): Define.
42480         (netgroup_iov_disabled): Declare.
42481         (xmalloc, xcalloc, xrealloc): Move declarations here.
42482         (cache_search): Adjust prototype.
42483         Add netgroup-related prototypes.
42484         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
42485         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
42486         (__nscd_innetgr): Declare.
42487         * nscd/selinux.c (perms): Use access_vector_t as element type and
42488         add netgroup-related initializers.
42489         * nscd/netgroupcache.c: New file.
42490         * nscd/nscd_netgroup.c: New file.
42491         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
42492         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
42493         For four parameters use innetgr.
42494         * nss/nss_files/files-init.c: Add definition and callback for netgr.
42495         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
42496         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
42497         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
42498
42499         * nscd/connections.c (register_traced_file): Don't register file
42500         for disabled databases.
42501
42502 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
42503
42504         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
42505
42506         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
42507         from tree and freeing node.
42508
42509 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
42510
42511         * nss/nsswitch.c (__nss_database_lookup): Handle
42512         nss_parse_service_list out of memory case.
42513
42514 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
42515
42516         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
42517         out of memory case.
42518
42519 2011-10-04  Andreas Schwab  <schwab@redhat.com>
42520
42521         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
42522         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
42523         pass it down.
42524         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
42525         elf_machine_rela, elf_machine_lazy_rel.
42526         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
42527         (ELF_DYNAMIC_DO_REL): Likewise.
42528         (ELF_DYNAMIC_DO_RELA): Likewise.
42529         (ELF_DYNAMIC_RELOCATE): Likewise.
42530         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
42531         to ELF_DYNAMIC_DO_REL.
42532         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
42533         (dl_main): In trace mode always set __RTLD_NOIFUNC.
42534         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
42535         elf_machine_rela.
42536         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
42537         skip_ifunc, don't call ifunc function if non-zero.
42538         (elf_machine_rela): Likewise.
42539         (elf_machine_lazy_rel): Likewise.
42540         (elf_machine_lazy_rela): Likewise.
42541         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
42542         (elf_machine_lazy_rel): Likewise.
42543         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
42544         Likewise.
42545         (elf_machine_lazy_rel): Likewise.
42546         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42547         Likewise.
42548         (elf_machine_lazy_rel): Likewise.
42549         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
42550         (elf_machine_lazy_rel): Likewise.
42551         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
42552         (elf_machine_lazy_rel): Likewise.
42553         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
42554         (elf_machine_lazy_rel): Likewise.
42555         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
42556         (elf_machine_lazy_rel): Likewise.
42557         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
42558         (elf_machine_lazy_rel): Likewise.
42559         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
42560         (elf_machine_lazy_rel): Likewise.
42561
42562 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
42563
42564         * nss/nss_files/files-init.c (_nss_files_init): Use static
42565         initialization for all the *_traced_file variables.
42566
42567 2011-09-28  Andreas Schwab  <schwab@redhat.com>
42568
42569         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42570
42571 2011-09-27  Roland McGrath  <roland@hack.frob.com>
42572
42573         [BZ #13226]
42574         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
42575
42576 2011-09-27  Andreas Schwab  <schwab@redhat.com>
42577
42578         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
42579         Reread the line before reparsing it.
42580
42581 2011-09-26  Andreas Schwab  <schwab@redhat.com>
42582
42583         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
42584
42585 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
42586             Maxim Kuvyrkov  <maxim@codesourcery.com>
42587             Joseph Myers  <joseph@codesourcery.com>
42588
42589         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
42590         if needed for __stack_chk_guard.
42591
42592 2011-09-19  Roland McGrath  <roland@hack.frob.com>
42593
42594         * sysdeps/posix/spawni.c (script_execute): Always define it.
42595         It will be optimized away if unused.
42596         (maybe_script_execute): New function.
42597         (__spawni): Call it.
42598
42599         * Makerules: Don't include tls.make.
42600         (config-tls): Always set to thread.
42601         * tls.make.c: File removed.
42602
42603 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
42604
42605         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
42606         * config.make.in (CPPFLAGS-config): New substituted variable.
42607
42608 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42609
42610         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
42611
42612         [BZ #13192]
42613         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
42614         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
42615
42616 2011-09-15  Roland McGrath  <roland@hack.frob.com>
42617
42618         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
42619         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
42620         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
42621         (CALL_FAIL): Likewise.
42622         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
42623         (CALL_FAIL): Macro removed.
42624         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
42625
42626 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42627
42628         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
42629         for __FINITE_MATH_ONLY__ == 1.
42630
42631 2011-09-15  Andreas Schwab  <schwab@redhat.com>
42632
42633         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
42634         __ieee754_sqrt instead of sqrt.
42635         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
42636         __ieee754_sqrtf instead of sqrtf.
42637         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
42638         __floorf instead of floorf.
42639         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
42640         __floorf, __truncf instead of floorf, truncf.
42641
42642 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
42643
42644         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
42645
42646         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
42647         __extern_always_inline.
42648         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
42649         32-bit.
42650
42651 2011-09-14  Andreas Schwab  <schwab@redhat.com>
42652
42653         * elf/rtld.c (dl_main): Also relocate in dependency order when
42654         doing symbol dependency testing.
42655
42656 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
42657
42658         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42659         Always define `refsym'.
42660
42661 2011-09-13  Andreas Schwab  <schwab@redhat.com>
42662
42663         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
42664         (__FD_ELT): Renamed from __FDELT.
42665         * misc/bits/select2.h (__FD_ELT): Likewise.
42666         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
42667         __FD_MASK instead of __FDELT, __FDMASK.
42668         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42669         Likewise.
42670         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42671         Likewise.
42672
42673         * elf/Makefile (gen-ldd): Fix pattern.
42674
42675         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
42676         (init_tls): Likewise.
42677
42678 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
42679
42680         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
42681
42682 2011-09-12  Andreas Schwab  <schwab@redhat.com>
42683
42684         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
42685         `struct cmsghdr *' instead of `void *'.
42686         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
42687         Likewise.
42688
42689 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
42690
42691         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
42692         if non-absolute.
42693         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
42694         ldd_rewrite_script.
42695
42696 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
42697
42698         * configure.in: Remove --with-tls option.
42699         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
42700         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
42701         out in case it is missing.
42702         * sysdeps/ia64/elf/configure.in: Likewise.
42703         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
42704         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
42705         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
42706         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
42707         * sysdeps/sh/elf/configure.in: Likewise.
42708         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
42709         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
42710         * sysdeps/x86_64/elf/configure.in: Likewise.
42711         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
42712         * sysdeps/mach/hurd/tls.h: Likewise.
42713
42714         [BZ #13067]
42715         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
42716
42717         [BZ #13090]
42718         * configure.in: Fix use of AC_INIT.
42719
42720         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
42721
42722 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
42723
42724         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
42725         __set_errno.
42726         * malloc/hooks.c: Likewise.
42727
42728         [BZ #11929]
42729         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
42730         variables statically.
42731         (narenas): Initialize.
42732         (list_lock): Initialize.
42733         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
42734         initializtion of main_arena and list_lock.  Small cleanups.
42735         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
42736         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
42737         Add initializers to main_arena and mp_.
42738         (malloc_state): Remove pagesize member.  Change all users to use
42739         GLRO(dl_pagesize).
42740
42741         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
42742         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
42743         is always initialized.
42744
42745         * malloc/malloc.c: Removed unused configurations and dead code.
42746         * malloc/arena.c: Likewise.
42747         * malloc/hooks.c: Likewise.
42748         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
42749
42750         * include/tls.h: Removed.  USE___THREAD must always be defined.
42751         * bits/libc-tsd.h: Don't handle !USE___THREAD.
42752         * elf/dl-libc.c: Likewise.
42753         * elf/dl-tsd.c: Likewise.
42754         * include/errno.h: Likewise.
42755         * include/netdb.h: Likewise.
42756         * include/resolv.h: Likewise.
42757         * inet/herrno-loc.c: Likewise.
42758         * inet/herrno.c: Likewise.
42759         * malloc/arena.c: Likewise.
42760         * malloc/hooks.c: Likewise.
42761         * malloc/malloc.c: Likewise.
42762         * resolv/res-state.c: Likewise.
42763         * resolv/res_libc.c: Likewise.
42764         * sysdeps/i386/dl-machine.h: Likewise.
42765         * sysdeps/ia64/dl-machine.h: Likewise.
42766         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42767         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42768         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42769         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42770         * sysdeps/sh/dl-machine.h: Likewise.
42771         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42772         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42773         * sysdeps/unix/i386/sysdep.S: Likewise.
42774         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
42775         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
42776         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
42777         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
42778         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
42779         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
42780         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
42781         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
42782         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42783         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
42784         * sysdeps/unix/x86_64/sysdep.S: Likewise.
42785         * sysdeps/x86_64/dl-machine.h: Likewise.
42786         * tls.make.c: Likewise.
42787
42788         * configure.in: Remove --with-__thread option.  Make tests for
42789         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
42790         tls_model attribute fail if no support is available.  Remove
42791         USE_IN_LIBIO.
42792         * Makeconfig: Adjust for dropped configure option.  All features are
42793         now mandatory.
42794         * Makerules: Likewise.
42795         * Versions.def: Likewise.
42796         * argp/argp-fmtstream.c: Likewise.
42797         * argp/argp-fmtstream.h: Likewise.
42798         * argp/argp-help.c: Likewise.
42799         * assert/assert.c: Likewise.
42800         * config.h.in: Likewise.
42801         * config.make.in: Likewise.
42802         * configure: Likewise.
42803         * configure.in: Likewise.
42804         * csu/Versions: Likewise.
42805         * csu/init.c: Likewise.
42806         * elf/tst-audit2.c: Likewise.
42807         * elf/tst-tls10.c: Likewise.
42808         * elf/tst-tls10.h: Likewise.
42809         * elf/tst-tls11.c: Likewise.
42810         * elf/tst-tls12.c: Likewise.
42811         * elf/tst-tls14.c: Likewise.
42812         * elf/tst-tlsmod11.c: Likewise.
42813         * elf/tst-tlsmod12.c: Likewise.
42814         * elf/tst-tlsmod13.c: Likewise.
42815         * elf/tst-tlsmod13a.c: Likewise.
42816         * elf/tst-tlsmod14a.c: Likewise.
42817         * elf/tst-tlsmod15b.c: Likewise.
42818         * elf/tst-tlsmod16a.c: Likewise.
42819         * elf/tst-tlsmod16b.c: Likewise.
42820         * elf/tst-tlsmod7.c: Likewise.
42821         * elf/tst-tlsmod8.c: Likewise.
42822         * elf/tst-tlsmod9.c: Likewise.
42823         * gmon/gmon.c: Likewise.
42824         * grp/fgetgrent_r.c: Likewise.
42825         * grp/putgrent.c: Likewise.
42826         * hurd/fopenport.c: Likewise.
42827         * include/libc-symbols.h: Likewise.
42828         * include/tls.h: Likewise.
42829         * intl/gettextP.h: Likewise.
42830         * intl/loadinfo.h: Likewise.
42831         * locale/global-locale.c: Likewise.
42832         * locale/localeinfo.h: Likewise.
42833         * mach/devstream.c: Likewise.
42834         * malloc/arena.c: Likewise.
42835         * malloc/set-freeres.c: Likewise.
42836         * misc/err.c: Likewise.
42837         * misc/getttyent.c: Likewise.
42838         * misc/mntent_r.c: Likewise.
42839         * posix/getopt.c: Likewise.
42840         * posix/wordexp.c: Likewise.
42841         * pwd/fgetpwent_r.c: Likewise.
42842         * resolv/Versions: Likewise.
42843         * resolv/res_hconf.c: Likewise.
42844         * shadow/fgetspent_r.c: Likewise.
42845         * shadow/putspent.c: Likewise.
42846         * stdio-common/printf_fphex.c: Likewise.
42847         * stdio-common/tmpfile.c: Likewise.
42848         * stdlib/abort.c: Likewise.
42849         * stdlib/fmtmsg.c: Likewise.
42850         * sunrpc/auth_unix.c: Likewise.
42851         * sunrpc/clnt_perr.c: Likewise.
42852         * sunrpc/clnt_tcp.c: Likewise.
42853         * sunrpc/clnt_udp.c: Likewise.
42854         * sunrpc/clnt_unix.c: Likewise.
42855         * sunrpc/openchild.c: Likewise.
42856         * sunrpc/svc_simple.c: Likewise.
42857         * sunrpc/svc_tcp.c: Likewise.
42858         * sunrpc/svc_udp.c: Likewise.
42859         * sunrpc/svc_unix.c: Likewise.
42860         * sunrpc/xdr.c: Likewise.
42861         * sunrpc/xdr_array.c: Likewise.
42862         * sunrpc/xdr_rec.c: Likewise.
42863         * sunrpc/xdr_ref.c: Likewise.
42864         * sunrpc/xdr_stdio.c: Likewise.
42865
42866 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42867
42868         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42869
42870 2011-07-03  Andreas Jaeger  <aj@suse.de>
42871
42872         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
42873         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
42874         regenerate with gen-libm-tests.pl.
42875
42876 2010-05-12  Petr Baudis  <pasky@suse.cz>
42877
42878         [BZ #11589]
42879         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
42880         around j0() zero points by switching to j1().
42881         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42882         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42883         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
42884         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42885
42886 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42887
42888         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
42889         instead of 0.
42890         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
42891         instead of 0.
42892         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
42893         Patch in part by Pavel Roskin <proski@gnu.org>.
42894
42895         [BZ #13138]
42896         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
42897         realloc.
42898         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
42899         Free memory block if necessary.
42900
42901         [BZ #12847]
42902         * libio/genops.c (INTDEF): For string streams the _lock pointer can
42903         be NULL.  Don't lock in this case.
42904
42905 2011-09-09  Roland McGrath  <roland@hack.frob.com>
42906
42907         * elf/elf.h (ELFOSABI_GNU): New macro.
42908         (ELFOSABI_LINUX): Define to that.
42909
42910 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
42911
42912         * string/strncat.c (strncat): Undef the symbol in case it has been
42913         defined in bits/string.h.
42914
42915 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42916
42917         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
42918
42919         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
42920         link map.
42921
42922 2011-08-17  Andreas Jaeger  <aj@suse.de>
42923
42924         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
42925
42926 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42927             Ian Lance Taylor  <iant@google.com>
42928
42929         * math/libm-test.inc (lround_test): New testcase.
42930         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
42931
42932 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
42933
42934         * Makefile: Remove support for automatic cvs check-ins.
42935         * Makerules: Likewise.
42936         * config.make.in: Likewise.
42937         * configure.in: Likewise.
42938         * intl/Makefile: Likewise.
42939         * locale/Makefile: Likewise.
42940         * po/Makefile: Likewise.
42941         * posix/Makefile: Likewise.
42942         * sysdeps/gnu/Makefile: Likewise.
42943         * sysdeps/mach/hurd/Makefile: Likewise.
42944         * sysdeps/sparc/sparc32/Makefile: Likewise.
42945
42946         [BZ #13118]
42947         * posix/Makefile (bug-regex32-ENV): Define.
42948         Patch by John Stanley <jpsinthemix@verizon.net>.
42949
42950         * misc/Makefile (headers): Add bits/select2.h.
42951         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
42952         * misc/bits/select2.h: New file.
42953         * include/bits/select2.h: New file.
42954         * debug/Makefile (routines): Add fdelt_chk.
42955         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
42956         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
42957         FD_ISSET.
42958         * debug/fdelt_chk.c: New file.
42959
42960         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
42961         * wcsmbs/test-wmemcmp.c: Likewise.
42962         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
42963         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
42964
42965 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42966
42967         * string/Makefile (strop-tests): Add memcmp.
42968         * string/test-wmemcmp.c: New file.
42969         * string/test-memcmp.c: Add wmemcmp support.
42970
42971 2011-09-08  Roland McGrath  <roland@hack.frob.com>
42972
42973         [BZ #13153]
42974         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
42975         2011-07-19 change.
42976
42977         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
42978         garbage value in a __mach_port_mod_refs call in the cases of the
42979         task-self and thread-self ports.
42980
42981 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42982
42983         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
42984
42985 2011-09-08  Andreas Schwab  <schwab@redhat.com>
42986
42987         * elf/dl-load.c (lose): Check for non-null L.
42988
42989 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42990
42991         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
42992
42993         * elf/dl-libc.c (dlerror_run): Pass back error code from
42994         dl_catch_error.
42995
42996         [BZ #13123]
42997         * elf/dl-load.c (lose): Free l_origin if it is valid.
42998
42999         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
43000         names.
43001         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
43002         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43003         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43004         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43005         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
43006         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
43007
43008 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43009
43010         * sysdeps/powerpc/fpu/e_hypot.c: New file.
43011         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
43012         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
43013         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
43014         * sysdeps/powerpc/fpu/k_cosf.c: New file.
43015         * sysdeps/powerpc/fpu/k_sinf.c: New file.
43016         * sysdeps/powerpc/fpu/s_cosf.c: New file.
43017         * sysdeps/powerpc/fpu/s_sinf.c: New file.
43018         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
43019         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
43020
43021 2011-08-15  Alan Modra  <amodra@gmail.com>
43022
43023         [BZ #13092]
43024         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
43025         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
43026         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
43027         ppc_mcount to static-only-routines.
43028         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
43029         __mcount_internal.
43030         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
43031         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
43032
43033 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
43034
43035         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
43036         for finite and infinity parameters.
43037
43038 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
43039
43040         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
43041         and add nop instructions for throughput optimization.
43042         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43043
43044 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
43045
43046         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
43047         aligned copy for power7 with vector-scalar instructions.
43048         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43049
43050 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
43051
43052         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
43053         AVX check.
43054
43055 2011-09-07  Andreas Schwab  <schwab@redhat.com>
43056
43057         [BZ #13144]
43058         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
43059         last change.
43060
43061 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43062
43063         * sysdeps/unix/sysv/linux/x86_64/init-first.c
43064         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
43065         syscall wrapper around clock_gettime in __vdso_clock_gettime.
43066         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
43067         clock_gettime.
43068
43069 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43070
43071         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
43072         Forgot to demangle the pointer.
43073
43074         * sysdeps/i386/sysdep.h: Define atom_text_section.
43075         * sysdeps/x86_64/sysdep.h: Likewise.
43076         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
43077         section with atom_text_section.
43078         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43079         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43080         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
43081         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43082         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
43083
43084         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
43085         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
43086         already be defined.  Change to take two parameters and don't assign
43087         result to variable.  Adjust all users.
43088         Define INTERNAL_GETTIME if not already defined.
43089         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
43090         call.
43091         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
43092         HAVE_CLOCK_GETTIME_VSYSCALL.
43093         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
43094
43095         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
43096         gettimeofday vsyscall, just use time.
43097
43098 2011-09-06  Andreas Schwab  <schwab@redhat.com>
43099
43100         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
43101         <errno.h>.
43102
43103 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43104
43105         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
43106         syscall on x86-64.
43107         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
43108         syscall.
43109         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
43110         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
43111         syscall if possible.
43112
43113 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43114
43115         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
43116         e_ident.  Don't pass to find_mapsXX.
43117         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
43118
43119 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43120
43121         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43122         strchr-sse2-no-bsf strrchr-sse2-no-bsf
43123         * sysdeps/x86_64/multiarch/strchr.S: Update.
43124         Check bit_slow_BSF bit.
43125         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43126         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
43127         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
43128
43129 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43130
43131         [BZ #13134]
43132         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
43133         before glibc 2.15.
43134         (tryshell): Define.
43135         (__spawni): Change last parameter to be flag.  Test
43136         SPAWN_XFLAGS_USE_PATH flag to use path or not.
43137         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
43138         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
43139         * posix/spawni.c: Likewise.
43140         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
43141         * posix/spawnp.c: Likewise.  Change normal version to use
43142         SPAWN_XFLAGS_USE_PATH.
43143         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
43144         SPAWN_XFLAGS_TRY_SHELL.
43145
43146         [BZ #13150]
43147         * posix/glob.h: Remove gcc 1.x support.
43148
43149         [BZ #13068]
43150         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
43151
43152 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43153
43154         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43155         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
43156         strrchr-sse2-bsf
43157         * sysdeps/i386/i686/multiarch/strchr.S: New file.
43158         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
43159         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
43160         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
43161         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
43162         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
43163
43164 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43165
43166         * sysdeps/x86_64/wcscmp.S: New file.
43167
43168         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
43169         wcscmp-c wcscmp-sse2
43170         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
43171         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
43172         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
43173         * wcsmbs/wcscmp.c: Allow renaming.
43174
43175 2011-09-05  David S. Miller  <davem@davemloft.net>
43176
43177         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
43178         stack slot, rather than the struct return pointer slot.
43179         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
43180         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
43181         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
43182         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
43183
43184 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43185
43186         * po/ja.po: Update from translation team.
43187
43188         [BZ #13144]
43189         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
43190         kernel in 64-bit binaries.
43191
43192 2011-09-01  David S. Miller  <davem@davemloft.net>
43193
43194         * elf/elf.h (HWCAP_SPARC_*): Move to..
43195         * sysdeps/sparc/sysdep.h: this new file and add new values.
43196         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
43197         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
43198         _DL_HWCAP_COUNT to 24.
43199         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
43200         entries.
43201         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
43202         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
43203         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
43204         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
43205         instead of magic constants.
43206         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
43207
43208 2011-08-31  David S. Miller  <davem@davemloft.net>
43209
43210         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
43211         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
43212         Reimplement to do errno handling inline.
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/sparc64/sysdep.h: Include
43218         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
43219         (PSEUDO): Reimplement to do errno handling inline.
43220         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
43221         (SYSCALL_ERROR_HANDLER): New macro.
43222         (__SYSCALL_STRING): Do not do errno handling in asm.
43223         (__CLONE_SYSCALL_STRING): Delete.
43224         (__INTERNAL_SYSCALL_STRING): Delete.
43225         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
43226         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
43227         i386.
43228         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
43229         (inline_syscall*): Add 'err' argument.
43230         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
43231         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
43232         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
43233         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
43234
43235         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
43236         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
43237
43238 2011-08-30  Andreas Schwab  <schwab@redhat.com>
43239
43240         * elf/rtld.c (dl_main): Relocate objects in dependency order.
43241
43242 2011-08-29  Jiri Olsa <jolsa@redhat.com>
43243
43244         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
43245         directive.
43246
43247 2011-08-24  David S. Miller  <davem@davemloft.net>
43248
43249         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
43250
43251 2011-08-24  Andreas Schwab  <schwab@redhat.com>
43252
43253         * elf/Makefile: Add rules to build and run unload8 test.
43254         * elf/unload8.c: New file.
43255         * elf/unload8mod1.c: New file.
43256         * elf/unload8mod1x.c: New file.
43257         * elf/unload8mod2.c: New file.
43258         * elf/unload8mod3.c: New file.
43259
43260         * elf/dl-close.c (_dl_close_worker): Reset private search list if
43261         it wasn't used.
43262
43263 2011-08-23  David S. Miller  <davem@davemloft.net>
43264
43265         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
43266         subtract stack bias.
43267         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
43268         %sp not %fp in calculations.
43269         (_JMPBUF_UNWINDS_ADJ): Likewise.
43270
43271         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
43272         (aio_suspend): Call it to force an exception region around the
43273         AIO_MISC_WAIT() invocation.
43274
43275 2011-08-23  Andreas Schwab  <schwab@redhat.com>
43276
43277         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
43278         backslash.
43279
43280 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
43281
43282         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
43283         protection macro.
43284         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
43285         and <dl-machine.h>.
43286         (Elf64_FuncDesc): Remove.
43287
43288 2011-08-22  David S. Miller  <davem@davemloft.net>
43289
43290         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
43291         sigaltstack check, add missing cfi directives.
43292         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
43293         missing cfi directives, and sigaltstack handling.
43294
43295 2011-08-16  Andreas Schwab  <schwab@redhat.com>
43296
43297         [BZ #11724]
43298         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
43299         object is seen twice.
43300         * elf/dl-fini.c (_dl_sort_fini): Likewise.
43301
43302         * elf/Makefile (distribute): Add tst-initorder2.c.
43303         (tests): Add tst-initorder2.
43304         (modules-names): Add tst-initorder2a tst-initorder2b
43305         tst-initorder2c tst-initorder2d.  Add rules to build them.
43306         ($(objpfx)tst-initorder2.out): New rule.
43307         * elf/tst-initorder2.c: New file.
43308         * elf/tst-initorder2.exp: New file.
43309
43310 2011-08-22  Andreas Schwab  <schwab@redhat.com>
43311
43312         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
43313
43314         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
43315         dependencies back to end of function.
43316
43317         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
43318         $(elfobjdir)/ld.so.
43319
43320 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
43321
43322         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
43323         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
43324         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
43325         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
43326         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
43327         of __vdso_gettimeofday.
43328         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
43329         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
43330         attribute_hidden.
43331         (_libc_vdso_platform_setup): Remove initialization of
43332         __vdso_gettimeofday and __vdso_time.
43333
43334 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43335
43336         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
43337         and fgetc_unlocked.
43338         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
43339         getc_unlocked.
43340
43341         * elf/dl-open.c (add_to_global): Report additions to the global scope
43342         for LD_DEBUG=scopes.
43343         (dl_open_worker): Also print scope of newly loaded dependencies.
43344         (_dl_show_scope): Indicate if there is no scope.
43345
43346         [BZ #13114]
43347         * stdio-common/Makefile (tests): Add bug24.
43348         * stdio-common/bug24.c: New file.
43349
43350 2011-08-19  Andreas Jaeger  <aj@suse.de>
43351
43352         [BZ #13114]
43353         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
43354         non-existant file when using close-on-exec mode.
43355
43356 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43357
43358         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
43359         the very first instruction.
43360
43361         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
43362         the CFI state in the end.
43363         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
43364         inclusion of dl-trampoline.h.
43365         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
43366
43367 2011-08-19  Andreas Schwab  <schwab@redhat.com>
43368
43369         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
43370         expectations for long double.
43371
43372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
43373         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
43374
43375 2011-08-14  David S. Miller  <davem@davemloft.net>
43376
43377         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
43378         artificual limit depends upon the system page size.
43379
43380 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43381
43382         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
43383         * resolv/Makefile: Define CFLAGS-libresolv.
43384
43385 2011-08-17  Andreas Schwab  <schwab@redhat.com>
43386
43387         * nss/makedb.c (compute_tables): Make variables used in nested
43388         function static.
43389
43390 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43391
43392         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
43393         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
43394         if buffer was too small.
43395
43396         * elf/pldd.c (main): Attach to all threads in the process.
43397         Rewrite /proc handling to use *at functions.
43398
43399 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
43400
43401         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
43402         specifies first scope to show.
43403         (dl_open_worker): Update callers.  Move printing scope of new
43404         object to before the relocation.
43405         * elf/rtld.c (dl_main): Update _dl_show_scope call.
43406         * sysdeps/generic/ldsodefs.h: Update declaration.
43407
43408         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
43409         string for the scope number.
43410
43411 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
43412
43413         * nscd/servicescache.c (cache_addserv): Make sure written is always
43414         initialized.
43415
43416 2011-08-14  Roland McGrath  <roland@hack.frob.com>
43417
43418         * sysdeps/i386/i486/bits/atomic.h
43419         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
43420         statement expression, so as to suppress "set but not used" warning.
43421         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
43422
43423         * string/strncat.c (STRNCAT): Use prototype definition.
43424
43425         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
43426         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
43427         -Iprograms here.
43428         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
43429         (localedef-modules): Add localedef.
43430         (locale-modules): Add locale.
43431
43432         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
43433         * elf/rtld.c (dl_main): Invert order of assignment in last change,
43434         to avoid a warning.
43435
43436 2011-08-14  David S. Miller  <davem@davemloft.net>
43437
43438         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
43439         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
43440
43441 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
43442
43443         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
43444         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
43445         * elf/rtld.c (dl_main): Set l_name of vDSO.
43446         Call _dl_show_scope when DL_DEBUG_SCOPES.
43447         (process_dl_debug): Recognize scopes flag and also set it for all.
43448         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
43449         Declare _dl_show_scope.
43450
43451         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
43452         (do_dlopen): Pass caller_dlopen to dl_open.
43453         (__libc_dlopen_mode): Initialize caller_dlopen.
43454
43455         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
43456         of libc.  Make tolower call locale-independent.  Optimize a bit by
43457         using isdigit instead of isalnum.
43458         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
43459
43460 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
43461
43462         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
43463         was a dependency or dynamically loaded.
43464
43465 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
43466
43467         * intl/l10nflist.c: Allow architecture-specific pop function.
43468         * sysdeps/x86_64/l10nflist.c: New file.
43469
43470         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
43471         classification.
43472
43473 2011-08-10  Andreas Schwab  <schwab@redhat.com>
43474
43475         * include/dirent.h: Add libc_hidden_proto for scandirat and
43476         scandirat64.  Don't declare __scandirat64.
43477         * dirent/scandirat.c: Add libc_hidden_def.
43478         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
43479         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
43480
43481 2011-08-10  David S. Miller  <davem@davemloft.net>
43482
43483         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
43484         enum.
43485         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43486         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43487         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43488
43489 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
43490
43491         * Versions.def [libc]: Add GLIBC_2.15.
43492         * dirent/Makefile (routines): Add scandirat and scandirat64.
43493         * dirent/Versions [libc]: Export scandirat and scandirat64 for
43494         GLIBC_2.15.
43495         * dirent/dirent.h: Declare scandirat and scandirat64.
43496         * dirent/scandirat.c: New file.
43497         * dirent/scandirat64.c: New file.
43498         * sysdeps/wordsize-64/scandirat.c: New file.
43499         * sysdeps/wordsize-64/scandirat64.c: New file.
43500         * dirent/opendir.c: Define opendirat.
43501         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
43502         using scandirat.
43503         * dirent/scandir64.c: Adjust for scandir.c change.
43504         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
43505         __scandirat64, and __scandir_cancel_handler.
43506         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
43507         additional parameter and use openat instead of open (outside of ld.so).
43508         Add new __opendir as wrapper around __opendirat.
43509         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
43510         here without requiring old scandirat implementation.
43511
43512 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
43513
43514         * dirent/scandir.c (cancel_handler): Renamed to
43515         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
43516         defined.  Adjust users.
43517         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
43518         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
43519
43520 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
43521
43522         * string/test-string.h (IMPL): Use __STRING to expand name and then
43523         stringify it.
43524
43525         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
43526         of cleanups.
43527
43528 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43529
43530         * string/Makefile: Update.
43531         (strop-tests): Append strncat.
43532         * string/test-wcscmp.c: New file.
43533         New comprehensive test for wcscmp.
43534         * string/test-strcmp.c: Update.
43535         (WIDE): New define.
43536
43537 2011-07-22  Andreas Schwab  <schwab@redhat.com>
43538
43539         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
43540         line.
43541
43542 2011-07-26  Andreas Schwab  <schwab@redhat.com>
43543
43544         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43545         encoding to ACE if AI_IDN.
43546
43547 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
43548
43549         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
43550         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
43551
43552 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43553
43554         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
43555         Fix overflow bug in strncat.
43556         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
43557
43558         * string/test-strncat.c: Update.
43559         Add new tests for checking overflow bugs.
43560
43561 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43562
43563         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43564         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
43565         * sysdeps/i386/i686/multiarch/strcat.S: New file.
43566         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
43567         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
43568         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
43569         * sysdeps/i386/i686/multiarch/strncat.S: New file.
43570         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
43571         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
43572
43573         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
43574         (USE_AS_STRCAT): Define.
43575         Add strcat and strncat support.
43576         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43577
43578 2011-07-25  Andreas Schwab  <schwab@redhat.com>
43579
43580         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
43581         __n bigger than INT_MAX+1.
43582         (__strncmp_g): Likewise.
43583
43584 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
43585
43586         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
43587         * libio/stido.h: Likewise.
43588
43589         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
43590         (AF_NFC): Define.
43591         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
43592         (AF_NFC): Define.
43593
43594         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
43595         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43596         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43597         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
43598         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43599
43600         [BZ #13021]
43601         * scripts/test-installation.pl: Don't expect libnss_test1 to be
43602         installed.
43603
43604         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
43605         typo.
43606         (_dl_x86_64_save_sse): Likewise.
43607
43608 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
43609
43610         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
43611         OSXSAVE.
43612         (_dl_x86_64_save_sse): Likewise.
43613
43614         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
43615
43616         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
43617
43618 2011-07-21  Andreas Schwab  <schwab@redhat.com>
43619
43620         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
43621         change.
43622         (_dl_x86_64_save_sse): Use correct AVX check.
43623
43624 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43625
43626         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
43627         bug in strncpy/strncat.
43628         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
43629
43630 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
43631
43632         * string/tester.c (test_strcat): Add tests for different alignments
43633         of source and destination.
43634         (test_strncat): Likewise.
43635
43636 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43637
43638         [BZ #12852]
43639         * posix/glob.c (glob): Check passed in values before using them in
43640         expressions to avoid some overflows.
43641         (glob_in_dir): Likewise.
43642
43643         [BZ #13007]
43644         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
43645         check for AVX enablement so that we don't crash with old kernels and
43646         new hardware.
43647         * elf/tst-audit4.c: Add same checks here.
43648         * elf/tst-audit6.c: Likewise.
43649
43650         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
43651
43652 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
43653
43654         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
43655
43656 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43657
43658         * po/cs.po: Update from translation team.
43659         * po/bg.po: Likewise.
43660
43661 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
43662
43663         * misc/sys/cdefs.h: Add support for const attribute.
43664         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
43665         to gnu_dev_{major,minor,makedev} functions.
43666
43667 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
43668
43669         * intl/dcigettext.c (get_output_charset): Add missing bracket.
43670
43671 2011-07-20  Andreas Schwab  <schwab@redhat.com>
43672
43673         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
43674         strlen results.
43675
43676 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43677
43678         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
43679         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
43680         register in order to avoid conflicts with the soft frame pointer
43681         being held in r11 when necessary.
43682         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
43683         (INTERNAL_VSYSCALL_NCS): Likewise.
43684
43685 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
43686
43687         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
43688         * elf/dl-fini.c (_dl_fini): Adjust caller.
43689         * elf/dl-close.c (_dl_close_worker): Likewise.
43690         * sysdeps/generic/ldsodefs.h: Adjust declaration.
43691
43692 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43693
43694         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
43695         "aux_cache->nlibs < 0".
43696
43697         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
43698         in the reload-count case.
43699
43700 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43701
43702         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43703         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
43704         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
43705         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
43706         * sysdeps/x86_64/multiarch/strcat.S: New file.
43707         * sysdeps/x86_64/multiarch/strncat.S: New file.
43708         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
43709         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
43710         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
43711         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
43712         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
43713         (USE_AS_STRCAT): Define.
43714         Add strcat and strncat support.
43715         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43716         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
43717         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
43718         * string/strncat.c: Update.
43719         (USE_AS_STRNCAT): Define.
43720         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43721         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
43722         and i7.
43723         * sysdeps/x86_64/multiarch/init-arch.h
43724         (bit_Prefer_PMINUB_for_stringop): New.
43725         (index_Prefer_PMINUB_for_stringop): Likewise.
43726         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
43727         bit_Prefer_PMINUB_for_stringop.
43728
43729 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43730
43731         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
43732         buffer64.
43733         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
43734         of casting of buffer.
43735         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
43736         buffer32 and buffer64.
43737         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
43738         writes instead of casting of buffer.
43739         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
43740         buffer32.
43741         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
43742         casting of buffer.
43743
43744 2011-07-19  Andreas Schwab  <schwab@redhat.com>
43745
43746         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
43747
43748 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43749
43750         * nscd/nscd.c (termination_handler): Don't do anything for a database
43751         if it has not yet been initialized.
43752
43753 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43754
43755         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43756
43757 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43758
43759         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43760
43761 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43762
43763         * po/nl.po: Update from translation team.
43764         * po/sv.po: Likewise.
43765
43766 2011-07-16  Roland McGrath  <roland@hack.frob.com>
43767
43768         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
43769         now disallowed by GCC.
43770
43771         * configure.in (use-default-link): Default to yes if a test -shared
43772         link meets our qualifications.
43773         * configure: Regenerated.
43774
43775         * config.make.in (output-format): New variable.
43776         * configure.in: Check for ld --print-output-format support.
43777         * configure: Regenerated.
43778         * Makerules ($(common-objpfx)format.lds)
43779         [$(output-format) != unknown]: Just use $(output-format),
43780         instead of the linker-script munging.
43781
43782 2011-07-14  Roland McGrath  <roland@hack.frob.com>
43783
43784         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
43785         of $(common-objpfx)shlib.lds.
43786         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
43787
43788         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
43789         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
43790
43791         * configure.in (-z relro check): Adjust test code to add a large
43792         writable data section after it.
43793         * configure: Regenerated.
43794
43795 2011-07-11  Roland McGrath  <roland@hack.frob.com>
43796
43797         * configure.in (-z relro check): Fix test code to make the variable
43798         truly const.
43799         * configure: Regenerated.
43800
43801 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
43802
43803         * nscd/nscd.h (struct traced_file): Define.
43804         (struct database_dyn): Remove inotify_descr, reset_res, and filename
43805         elements.  Add traced_files.
43806         (inotify_fd): Declare.
43807         (register_traced_file): Declare.
43808         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
43809         (inotify_fd): Export.
43810         (resolv_conf_descr): Remove.
43811         (nscd_init): Move inotify descriptor creation to main.
43812         Don't register files for notification here.
43813         (register_traced_file): New function.
43814         (invalidate_cache): Don't use reset_res to determine whether to call
43815         res_init, go through the list of registered files.
43816         (main_loop_poll): The inotify descriptors are now stored in the
43817         structures for the traced files.
43818         (main_loop_epoll): Likewise
43819         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
43820         to __nss_disable_nscd.
43821         * nscd/cache.c (prune_cache): There is no single inotify descriptor
43822         for a database anymore.  Check the records for all the registered
43823         files instead.
43824         * nss/Makefile (libnss_files-routines): Add files-init.
43825         (libnss_db-routines): Add db-init.
43826         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
43827         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
43828         * nss/nss_db/db-init.c: New file.
43829         * nss/nss_files/files-init.c: New file.
43830         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
43831         __nss_lookup_function.
43832         (__nss_lookup_function): Call nss_load_library.
43833         (nss_load_all_libraries): New function.
43834         (__nss_disable_nscd): Take parameter with callback function for files
43835         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
43836         used for the cached services.
43837         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
43838         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
43839         options for features to all the files in nscd.
43840
43841         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
43842
43843 2011-07-10  Roland McGrath  <roland@hack.frob.com>
43844
43845         * csu/elf-init.c (__libc_csu_init): Comment typo.
43846
43847 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
43848
43849         * po/pl.po: Update from translation team.
43850         * po/ja.po: Likewise.
43851         * po/ru.po: Likewise.
43852         * po/ko.po: Likewise.
43853         * po/fr.po: Likewise.
43854
43855 2011-07-09  Roland McGrath  <roland@hack.frob.com>
43856
43857         * configure.in (.ctors/.dtors header and trailer check):
43858         Use an empirical test on a built program.
43859         * configure: Regenerated.
43860
43861         * configure.in (-z relro check): Use an empirical test on a built DSO.
43862         Detect, but do not require, on ia64.
43863         * configure: Regenerated.
43864
43865         * configure.in (READELF): Find it with AC_CHECK_TOOL.
43866         Update tests that use readelf to use $READELF instead.
43867         * configure: Regenerated.
43868
43869 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
43870
43871         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
43872         if the result is not used.
43873
43874 2011-07-05  Andreas Jaeger  <aj@suse.de>
43875
43876         [BZ#9696]
43877         * stdlib/tst-strtod.c: Add testcase.
43878
43879 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
43880
43881         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
43882         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
43883         The latter has a higher limit.  Take additional parameter to pass to
43884         the new function.
43885         (__pathconf): Pass file to __statfs_link_max.
43886         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
43887         __statfs_link_max.
43888         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
43889         __statfs_link_max.
43890
43891         [BZ #12868]
43892         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
43893         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
43894         Handle Lustre.
43895         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
43896         (__statfs_filesize_max): Likewise.
43897         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
43898
43899 2011-07-05  Andreas Jaeger  <aj@suse.de>
43900
43901         * resolv/res_comp.c (dn_skipname): Remove unused variable.
43902
43903 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
43904
43905         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
43906         `status' variable.
43907         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
43908         Likewise.
43909
43910 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
43911
43912         * Makefile (strop-tests): Add strncat.
43913         * string/test-strncat.c: New file.
43914
43915 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
43916
43917         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
43918
43919 2011-06-21  Andreas Jaeger  <aj@suse.de>
43920
43921         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
43922         Copy rule from iconvdata/Makefile.
43923
43924 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43925
43926         [BZ #12922]
43927         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
43928         but no long options are defined, just return 'W'.
43929
43930 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
43931
43932         [BZ #9696]
43933         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
43934
43935 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43936
43937         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
43938         netgroups to read.
43939         (innetgr): Likewise.
43940
43941 2011-07-05  Roland McGrath  <roland@hack.frob.com>
43942
43943         * config.make.in (install_root): Default to $(DESTDIR).
43944
43945 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
43946
43947         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
43948
43949 2011-07-02  Roland McGrath  <roland@hack.frob.com>
43950
43951         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
43952
43953         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
43954         containing directory rather than embedding absolute directory names.
43955
43956         * scripts/check-local-headers.sh: Rewritten using awk.
43957         Match by word, not by line.  Print error messages for matches.
43958         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
43959
43960         * Makerules [shlib-lds-flags empty]:
43961         ($(common-objpfx)libc_pic.opts): New target.
43962         ($(common-objpfx)libc_pic.os.clean): New target.
43963         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
43964
43965         * config.make.in (OBJCOPY): New variable.
43966         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
43967         * configure: Regenerated.
43968
43969         * config.make.in (use-default-link): New variable.
43970         * configure.in (use_default_link): Grok --with-default-link to set it.
43971         * configure: Regenerated.
43972         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
43973         (shlib-lds, shlib-lds-flags): Define to empty.
43974
43975         * Makerules (shlib-lds): New variable.
43976         (shlib-lds-flags): New variable.
43977         (build-shlib, build-moduile, build-module-asneeded): Use it.
43978         ($(common-objpfx)libc.so): Use $(shlib-lds).
43979         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
43980         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
43981
43982         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
43983         DT_FLAGS/DT_FLAGS_1 with zero flags.
43984
43985         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
43986         linker script munging.
43987
43988 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
43989
43990         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
43991         as 128-bit value.
43992         * crypt/sha512.c (sha512_process_block): Perform total addition using
43993         128-bit if possible.
43994         (__sha512_finish_ctx): Likewise.
43995         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
43996         as 64-bit value.
43997         * crypt/sha256.c (SWAP64): Define.
43998         (sha256_process_block): Perform total addition using 64-bit if
43999         possible.
44000         (__sha256_finish_ctx): Likewise.
44001
44002 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
44003
44004         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
44005         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44006         * nscd/hstcache.c (cache_addhst): Likewise.
44007         * nscd/grpcache.c (cache_addgr): Likewise.
44008         * nscd/aicache.c (addhstaiX): Likewise
44009         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
44010
44011 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
44012
44013         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
44014         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44015         * nscd/hstcache.c (cache_addhst): Likewise.
44016         * nscd/grpcache.c (cache_addgr): Likewise.
44017         * nscd/aicache.c (addhstaiX): Likewise
44018
44019 2011-07-01  Andreas Schwab  <schwab@redhat.com>
44020
44021         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
44022         domain only when needed.
44023
44024 2011-06-30  Andreas Schwab  <schwab@redhat.com>
44025
44026         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
44027         is always restored.
44028
44029 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
44030
44031         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
44032         are re-adding the entry.
44033         * nscd/servicescache.c (cache_addserv): Likewise.
44034
44035 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
44036
44037         * sysdeps/generic/dl-irel.h: fix protection against multiple
44038         inclusions.
44039         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
44040
44041 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
44042
44043         [BZ #12935]
44044         * malloc/memusage.sh: Fix quoting in message.
44045         * debug/xtrace.sh: Likewise.
44046
44047         * configure.in: Remove support for --experimental-malloc option, make
44048         it the default.
44049         * config.make.in: Likewise.
44050         * malloc/Makefile: Likewise.
44051
44052 2011-06-27  Andreas Schwab  <schwab@redhat.com>
44053
44054         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
44055         two-byte characters.
44056
44057 2011-06-27  Roland McGrath  <roland@hack.frob.com>
44058
44059         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
44060         AC_CACHE_CHECK invocation.
44061         * configure: Regenerated.
44062
44063         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
44064
44065 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
44066
44067         [BZ #12350]
44068         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
44069         bit from old_res_options.
44070
44071         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
44072
44073         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
44074         value type for setfct.
44075
44076 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
44077
44078         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44079         __gettimeofday instead of gettimeofday.
44080
44081 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
44082
44083         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
44084
44085 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
44086
44087         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
44088
44089         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
44090         info.
44091
44092 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44093
44094         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44095         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44096         strcpy-sse2-unaligned strncpy-sse2-unaligned
44097         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
44098         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
44099         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
44100         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
44101         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
44102         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
44103         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
44104         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
44105         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
44106         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
44107         (STRCPY): Support SSE2 and SSSE3 versions.
44108
44109 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
44110
44111         [BZ #12874]
44112         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
44113         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
44114         kernels which artificially limit size of requests.
44115
44116 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44117
44118         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44119         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44120         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
44121         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
44122         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
44123         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
44124         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
44125         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
44126         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
44127         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
44128         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
44129         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
44130         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
44131         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
44132         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
44133         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44134         Enable unaligned load optimization for Intel Core i3, i5 and i7
44135         processors.
44136         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
44137         Define.
44138         (index_Fast_Unaligned_Load): Define.
44139         (HAS_FAST_UNALIGNED_LOAD): Define.
44140
44141 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
44142
44143         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
44144
44145 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44146
44147         [BZ #12907]
44148         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
44149         until it is clear that the information is realy needed.
44150         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
44151
44152 2011-06-22  Andreas Schwab  <schwab@redhat.com>
44153
44154         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
44155
44156 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44157
44158         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44159         /sys/devices/system/cpu/online if it is usable.
44160
44161         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
44162         reading the information from the /proc filesystem to once a second.
44163
44164 2011-06-21  Andreas Jaeger  <aj@suse.de>
44165
44166         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
44167         NULL after inclusion of kernel headers.
44168
44169 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
44170
44171         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
44172         calls to internal_setent.
44173
44174         [BZ #12885]
44175         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
44176         addresses using gethostbyname4_r ignore IPv4 addresses.
44177
44178         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
44179         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
44180
44181         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
44182
44183 2011-06-20  David S. Miller  <davem@davemloft.net>
44184
44185         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
44186         inclusions.
44187         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
44188
44189         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
44190         (elf_irel): Use it.
44191         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
44192         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
44193         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
44194         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
44195         * sysdeps/x86_64/dl-irel.h: Likewise.
44196
44197         * elf/dl-runtime.c: Use elf_ifunc_invoke.
44198         * elf/dl-sym.c: Likewise.
44199
44200 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44201
44202         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
44203         need to dereference resplen2.
44204
44205 2011-06-14  Andreas Schwab  <schwab@redhat.com>
44206
44207         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
44208
44209 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44210
44211         * Makeconfig: Define vardbdir and inst_vardbdir.
44212         * nss/Makefile: Add rules to install db-Makefile.
44213
44214         * nss/nss_db/db-XXX.c: Cleanup.
44215
44216         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
44217         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
44218         GLIBC_PRIVATE.
44219         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
44220         * nss/makedb.c: Implement -g option to specify that value strings
44221         are generated and should not be added to table iterated over for
44222         get*ent calls.
44223         * nss/nss_db/db-initgroups.c: New file.
44224
44225         * nss/getent.c: Add support for initgroups lookups through getgrouplist
44226         interface.
44227
44228         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
44229         (internal_getgrouplist): Adjust to name change.
44230         Update use_initgroups_entry if this is not the first call.
44231         * nss/databases.def: Add initgroups entry.
44232
44233         * nss/makedb.c (compute_tables): Check result of multiple hash table
44234         sizes to minimize maximum chain length.
44235
44236 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
44237
44238         * Versions.def: Add entry for libnss_db.
44239         * shlib-versions: Likewise.
44240         * nss/Makefile: Add rules to build libnss_db.
44241         * nss/Versions: Add libnss_db information.  Organize libnss_files
44242         entries better.
44243         * nss/db-Makefile: Add gshadow support.  Change rules for the new
44244         makedb progra.  Some minor improvements to generate smaller files.
44245         * nss/nss_db/nss_db.h: Move NSS database header data structures to
44246         here from...
44247         * nss/makedb.c: ...here.
44248         Improve database format to be smaller and require less memory at
44249         runtime.
44250         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
44251         db anymore.
44252         * nss/nss_db/db-netgrp.c: Likewise.
44253         * nss/nss_db/db-open.c: Likewise.
44254         * nss/nss_files/flies-XXX.x: Adjust comments.
44255         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
44256         * nss/nss_files/files-grp.c: Likewise.
44257         * nss/nss_files/files-hosts.c: Likewise.
44258         * nss/nss_files/files-network.c: Likewise.
44259         * nss/nss_files/files-proto.c: Likewise.
44260         * nss/nss_files/files-pwd.c: Likewise.
44261         * nss/nss_files/files-rpc.c: Likewise.
44262         * nss/nss_files/files-service.c: Likewise.
44263         * nss/nss_files/files-sgrp.c: Likewise.
44264         * nss/nss_files/files-spwd.c: Likewise.
44265         * nss/nss_db/db-alias.c: Removed.
44266         * nss/nss_db/dummy-db.h: Removed.
44267
44268 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
44269
44270         * nss/makedb.c: Rewritten to not use database library.
44271         * nss/Makefile: Update to build new makedb program.
44272
44273 2011-06-14  Andreas Jaeger  <aj@suse.de>
44274
44275         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
44276         memset declaration.
44277
44278 2011-06-10  Andreas Schwab  <schwab@redhat.com>
44279
44280         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
44281         tmpbuf.
44282
44283 2011-06-10  Roland McGrath  <roland@hack.frob.com>
44284
44285         * Makerules (shlib.lds): Fail if the linker script comes out empty.
44286         * elf/Makefile ($(objpfx)ld.so): Likewise.
44287
44288         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
44289         Don't list ld.so twice in dependencies.
44290
44291         * posix/bug-regex31.c: Include <stdlib.h>.
44292
44293         * nscd/hstcache.c (cache_addhst): Remove unused variable.
44294
44295         * nis/nss_compat/compat-spwd.c
44296         (getspent_next_nss_netgr): Remove unused variable.
44297         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
44298
44299         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
44300         nonmembers" output to use the right array.
44301
44302         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
44303
44304         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
44305
44306         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
44307         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
44308         * catgets/gencat.c (read_input_file): Likewise.
44309         * locale/programs/locarchive.c (enlarge_archive): Likewise.
44310
44311         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
44312         variable definition inside #if's controlling its use.
44313
44314         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
44315
44316         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
44317
44318         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
44319
44320         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
44321         unreachable code.
44322
44323         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
44324
44325         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
44326         * configure: Regenerated.
44327
44328         * Makerules: Revert last change.
44329         * elf/Makefile: Likewise.
44330
44331 2011-06-09  Roland McGrath  <roland@hack.frob.com>
44332
44333         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
44334         * elf/Makefile ($(objpfx)librtld.os): Likewise.
44335         (reloc-link): Likewise.
44336
44337 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
44338
44339         * elf/Makefile: Add rules to build pldd.
44340         * elf/pldd.c: New file.
44341         * elf/pldd-xx.c: New file.
44342
44343 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
44344
44345         * version.h: Update for 2.15 development version.
44346
44347 2011-06-07  David S. Miller  <davem@davemloft.net>
44348
44349         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
44350         ifuncs.
44351         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
44352         elf_machine_lazy_rel): Likewise.
44353         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44354         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
44355         elf_machine_lazy_rel): Likewise.
44356         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
44357         dl_hwcap via passed in argument.
44358         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
44359         Likewise.
44360
44361 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44362
44363         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
44364
44365 2011-06-06  Roland McGrath  <roland@hack.frob.com>
44366
44367         [BZ #12849]
44368         * manual/fdl-1.1.texi: New file, verbatim from:
44369         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
44370         * manual/lgpl-2.1.texi: New file, verbatim from:
44371         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
44372         * manual/Makefile (licenses): New variable, list those new file names.
44373         (texis): Use it.
44374         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
44375
44376         * manual/fdl.texi: File removed.
44377         * manual/lesser.texi: File removed.
44378         * manual/libc.texinfo (Copying, Documentation License):
44379         Use new @include file names, put @appendix directive before @include.
44380
44381 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
44382
44383         [BZ #12841]
44384         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
44385         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
44386         (mq_open): Add __NTH.
44387
44388 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
44389
44390         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44391         Assume Intel Core i3/i5/i7 processor if AVX is available.
44392
44393 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44394
44395         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
44396         typo.
44397
44398 2011-05-31  Andreas Schwab  <schwab@redhat.com>
44399
44400         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
44401         memory.  Use alloca_account.  Fix memory leak when retrying.
44402
44403 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44404
44405         * version.h (RELEASE): Bump for 2.14 release.
44406         * include/features.h (__GLIBC_MINOR__): Bump to 14.
44407
44408         * config.make.in (RANLIB): Remove entry.
44409
44410 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
44411
44412         * po/Makefile (po-sed-cmd): Add ksh to extensions.
44413         (libc.pot): Work around missing support for .ksh extension in xgettext.
44414
44415         [BZ #12684]
44416         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
44417         if both request failed.
44418         (send_dg): In case of server errors clear resplen or *resplen2.
44419
44420         [BZ #12454]
44421         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
44422         when there are multiple maps.
44423         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
44424         (_dl_fini): Remove test here.
44425
44426         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
44427
44428 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
44429
44430         [BZ #12350]
44431         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
44432         bit from old_res_options.
44433         (gaih_inet): Likewise.
44434
44435         [BZ #11099]
44436         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
44437         as signed.
44438
44439         * resolv/res_init.c (res_setoptions): Make the code more compact.
44440
44441         [BZ #11558]
44442         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
44443         set RES_USEVC.
44444
44445         [BZ #11634]
44446         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
44447
44448         * malloc/malloc.h: Mark malloc hook variables as deprecated.
44449
44450         [BZ #11781]
44451         * malloc/malloc.h: Declare malloc hook variables as volatile.
44452
44453         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
44454         in last patch.
44455
44456         [BZ #11799]
44457         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
44458         raise in the comment.
44459         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
44460         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
44461         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
44462
44463 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
44464
44465         [BZ #12811]
44466         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
44467         grow the buffers more if it already has to be sufficient.
44468         (build_wcs_upper_buffer): Likewise.
44469         * posix/regexec.c (check_matching): Likewise.
44470         (clean_state_log_if_needed): Likewise.
44471         (extend_buffers): Don't enlarge buffers beyond size of the input
44472         buffer.
44473         Patches mostly by Emil Wojak <emil@wojak.eu>.
44474         * posix/bug-regex32.c: New file.
44475         * posix/Makefile (tests): Add bug-regex32.
44476
44477         * locale/findlocale.c (_nl_find_locale): Return right away if
44478         _nl_explode_name failed.
44479         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
44480
44481         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
44482
44483         * debug/xtrace.sh: Unify messages.
44484         * malloc/memusage.sh: Likewise.
44485
44486         [BZ #12813]
44487         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
44488         time symbol from vDSO.  Substitute with vsyscall if not available.
44489         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
44490         __vdso_time.
44491
44492         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
44493         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
44494         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
44495         Add sendmmsg and internal_sendmmsg.
44496         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
44497         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
44498         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
44499
44500         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
44501         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
44502         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
44503
44504 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
44505
44506         [BZ #12813]
44507         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
44508         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
44509         available.
44510         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
44511         __vdso_getcpu.
44512
44513         [BZ #12814]
44514         * iconvdata/Makefile (tests): Add bug-iconv9.
44515         * iconvdata/bug-iconv9.c: New file.
44516
44517 2011-05-27  Andreas Schwab  <schwab@redhat.com>
44518
44519         [BZ #12814]
44520         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
44521
44522 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
44523
44524         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44525         (struct user_regs_struct): Change intcs field back to cs.
44526
44527 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
44528
44529         * po/ja.po: Update from translation team.
44530
44531 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
44532
44533         [BZ #12795]
44534         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
44535         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
44536
44537 2011-05-20  Andreas Schwab  <schwab@redhat.com>
44538
44539         * stdlib/longlong.h: Update from GCC.
44540
44541 2011-05-23  Andreas Schwab  <schwab@redhat.com>
44542
44543         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
44544         parameter name.
44545         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
44546         Add parameter name.
44547         (__sysconf): Pass it down.
44548
44549 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
44550
44551         [BZ #12671]
44552         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
44553         some situations.
44554         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44555         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
44556         add in in __libc_use_alloca calls.  Adjust callers.
44557         (glob): Use malloc in some situations.
44558
44559         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
44560         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
44561         pltexit.
44562
44563 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
44564
44565         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
44566         and CLOCK_BOOTTIME_ALARM.
44567
44568         [BZ #12782]
44569         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
44570         is returned.
44571
44572         * string/_strerror.c (__strerror_r): Print negative errors as signed
44573         numbers.
44574
44575         [BZ #12777]
44576         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
44577         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
44578         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
44579
44580         * configure.in: Fix typo in redirection and correct removal of test
44581         files in two cases.
44582
44583         [BZ #12788]
44584         * locale/setlocale.c (new_composite_name): Fix test to check for
44585         identical name of all categories.
44586
44587         [BZ #12792]
44588         * libio/filedoalloc.c (local_isatty): New function.
44589         (_IO_file_doallocate): Use local_isatty.
44590         * stdio-common/perror.c (perror): In case a new stream is used
44591         forward the stream error.
44592         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
44593         error flag.
44594
44595 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
44596
44597         [BZ #11869]
44598         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
44599         alloca.
44600         * include/alloca.h (extend_alloca_account): Define.
44601
44602         [BZ #11857]
44603         * posix/regex.h: Fix comments with documentation of user-accessible
44604         fields after compilation and describe correct free'ing of pattern
44605         after re_compile_pattern.
44606         Patch by Reuben Thomas <rrt@sc3d.org>.
44607
44608 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
44609
44610         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
44611         and -mno-altivec to prevent the compiler from using Altivec and/or
44612         VSX instructions when the corresponding registers are not available.
44613
44614 2011-05-19  Andreas Schwab  <schwab@redhat.com>
44615
44616         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
44617
44618 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
44619
44620         * libio/freopen.c (freopen): Use __dup2, not dup2.
44621         * libio/freopen64.c (freopen64): Likewise.
44622
44623 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
44624
44625         [BZ #12775]
44626         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
44627         * math/Makefile (tests): Add test-powl.
44628         (CFLAGS-test-powl.c): Define.
44629         * math/test-powl.c: New file.
44630
44631 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
44632
44633         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
44634
44635 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
44636
44637         [BZ #11837]
44638         * iconvdata/gb18030.c: Update to GB18020-2005.
44639
44640 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
44641
44642         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
44643         RE_SYNTAX_POSIX_AWK): Update to match recent development.
44644         Patch by Aharon Robbins <arnold@skeeve.com>.
44645
44646         [BZ #11892]
44647         * stdlib/putenv.c (putenv): Don't always create copy of the variable
44648         on the stack.
44649
44650         [BZ #11895]
44651         * misc/pselect.c (__pselect): Handle timeout value errors hidden
44652         through underflows.
44653
44654         [BZ #12766]
44655         * misc/error.c (error_at_line): Ensure file_name and old_file_name
44656         point to strings before performing equality test for error_one_per_line
44657         mode.
44658
44659         [BZ #11697]
44660         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
44661
44662         [BZ #11820]
44663         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44664         (struct user_fpregs_struct): Avoid __uint*_t types.
44665
44666         [BZ #6420]
44667         * malloc/mtrace.c (tr_where): Add additional parameter to point to
44668         symbol info.  Use it instead of calling _dl_addr locally.
44669         (lock_and_info): New function.
44670         (tr_freehook): Call lock_and_info and pass symbol info as additional
44671         parameter to tr_where.
44672         (tr_mallochook): Likewise.
44673         (tr_reallochook): Likewise.
44674         (tr_memalignhook): Likewise.
44675
44676         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
44677         used and couldn't be at all thread-safe.
44678
44679 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
44680
44681         * libio/freopen.c (freopen): Don't close old file descriptor
44682         before the new one is opened.  Instead dup the new file descriptor
44683         to the old one after the new stream is created.
44684         * libio/freopen64.c (freopen64): Likewise.
44685         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
44686         * libio/fileops.c (_IO_new_file_close_it): Handle new
44687         _IO_FLAGS2_NOCLOSE flag.
44688         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
44689         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
44690         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
44691         _IO_FLAGS2_NOCLOSE flag.
44692         * include/unistd.h: Add hidden_proto for dup3.
44693         Define __have_dup3.
44694         * io/dup3.c: Define hidden symbol.
44695         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
44696
44697         [BZ #7101]
44698         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
44699         when an incomplete long option is used.
44700         * posix/tst-getopt_long1.c: New file.
44701         * posix/Makefile (tests): Add tst-getopt_long1.
44702
44703         [BZ #10138]
44704         * scripts/config.guess: Update from autoconf-2.68.
44705         * scripts/config.sub: Likewise.
44706
44707         [BZ #10157]
44708         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
44709         tests into ...
44710         (has_cpuclock): ...this.  New function.
44711         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
44712         macro here based on has_cpuclock code.
44713
44714         [BZ #10149]
44715         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44716         First byte (not low byte) is now always NUL.
44717         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
44718
44719         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44720         Use non-cancelable interfaces.
44721
44722         [BZ #9809]
44723         * locale/iso-639.def: Add entry for Sorani.
44724
44725         [BZ #11901]
44726         * include/stdlib.h: Move include protection to the right place.
44727         Define abort_msg_s.  Declare __abort_msg with it.
44728         * stdlib/abort.c (__abort_msg): Adjust type.
44729         * assert/assert.c (__assert_fail_base): New function.  Majority
44730         of code from __assert_fail.  Allocate memory for __abort_msg with
44731         mmap.
44732         (__assert_fail): Now call __assert_fail_base.
44733         * assert/assert-perr.c: Remove bulk of implementation.  Use
44734         __assert_fail_base.
44735         * include/assert.hL Declare __assert_fail_base.
44736         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
44737         mmap.
44738         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
44739
44740 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
44741
44742         [BZ #11952]
44743         [BZ #12453]
44744         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
44745         until all modules are registered in the DTV.
44746         * elf/Makefile: Add rules to build and run tst-tls19.
44747         * elf/tst-tls19.c: New file.
44748         * elf/tst-tls19mod1.c: New file.
44749         * elf/tst-tls19mod2.c: New file.
44750         * elf/tst-tls19mod3.c: New file.
44751         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
44752
44753         [BZ #12083]
44754         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
44755         correctly.
44756
44757         [BZ #12601]
44758         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
44759         two-byte sequence errors.
44760         * iconvdata/Makefile (tests): Add bug-iconv8.
44761         * iconvdata/bug-iconv8.c: New file.
44762
44763         [BZ #12626]
44764         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
44765         buf2 definition.
44766
44767         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
44768
44769         [BZ #12432]
44770         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
44771         (dummy_getcfa): New function.
44772         (init): Get _Unwind_GetCFA address, use dummy if not found.
44773         (backtrace_helper): In recursion check, also check whether CFA changes.
44774         (__backtrace): Completely initialize arg.
44775
44776         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
44777         storing incomplete byte sequence in state object.  Avoid testing for
44778         guaranteed too small input if we know there is enough data available.
44779
44780 2011-05-11  Andreas Schwab  <schwab@redhat.com>
44781
44782         * Makeconfig (+link-pie): Indent.
44783         * Rules (binaries-pie): Define if $(have-fpie) and
44784         $(build-shared).
44785         (binaries-shared): Also filter out $(binaries-pie).
44786         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
44787         * nscd/Makefile (others-pie): Add nscd.
44788         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
44789         ($(objpfx)nscd): Remove command override.
44790         * login/Makefile (others-pie): Add pt_chown.
44791         ($(objpfx)pt_chown): Remove command override.
44792         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
44793         remove command overrides.
44794
44795 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
44796
44797         * libio/tst_putwc.c: Fix error messages.
44798
44799         [BZ #12724]
44800         * libio/fileops.c (_IO_new_file_close_it): Always flush when
44801         currently writing and seek to current position when not.
44802         * libio/Makefile (tests): Add bug-fclose1.
44803         * libio/bug-fclose1.c: New file.
44804
44805 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
44806
44807         [BZ #12511]
44808         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
44809         don't set DF_1_NODELETE here.
44810         (do_lookup_x): When entering new entry test for copy relocation
44811         and if necessary set DF_1_NODELETE flag.
44812         * elf/tst-unique4.cc: New file.
44813         * elf/tst-unique4.h: New file.
44814         * elf/tst-unique4lib.cc: New file.
44815         * elf/Makefile: Add rules to build and run tst-unique4.
44816         Patch by Piotr Bury <pbury@goahead.com>.
44817
44818 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44819
44820         [BZ #12052]
44821         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
44822
44823         [BZ #12625]
44824         * misc/mntent_r.c (addmntent): Flush the stream after the output
44825
44826         [BZ #12393]
44827         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
44828         (is_trusted_path_normalize): Skip initial colon.  Append slash
44829         to empty buffer.  Duplicate is_trusted_path code but allow
44830         constructed patch to be prefix.
44831         (is_dst): Allow $ORIGIN followed by /.
44832         (_dl_dst_substitute): Correct clearing of check_for_trusted.
44833         Correct testing of result of is_trusted_path_normalize
44834         (decompose_rpath): Fix warning.
44835
44836 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
44837
44838         [BZ #11257]
44839         * grp/initgroups.c (internal_getgrouplist): When we found the service
44840         list through the initgroups entry in nsswitch.conf do not always
44841         continue on a successful lookup.  Don't always use the
44842         __nss_group_database value if it is set.
44843         * nss/nsswitch.conf (initgroups): Change action for successful db
44844         lookup to continue for compatibility.
44845
44846 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
44847
44848         [BZ #11532]
44849         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
44850         and CP774 modules.
44851         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
44852         and CP774 modules.
44853         * iconvdata/tst-tables.sh: Likewise.
44854         * iconvdata/cp770.c: New file.
44855         * iconvdata/cp771.c: New file.
44856         * iconvdata/cp772.c: New file.
44857         * iconvdata/cp773.c: New file.
44858         * iconvdata/cp774.c: New file.
44859         * iconvdata/testdata/CP770: New file.
44860         * iconvdata/testdata/CP770..UTF8: New file.
44861         * iconvdata/testdata/CP771: New file.
44862         * iconvdata/testdata/CP771..UTF8: New file.
44863         * iconvdata/testdata/CP772: New file.
44864         * iconvdata/testdata/CP772..UTF8: New file.
44865         * iconvdata/testdata/CP773: New file.
44866         * iconvdata/testdata/CP773..UTF8: New file.
44867         * iconvdata/testdata/CP774: New file.
44868         * iconvdata/testdata/CP774..UTF8: New file.
44869
44870         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
44871         END CHARMAP line.
44872         * iconvdata/gen-8bit-gap.sh: Likewise.
44873         * iconvdata/gen-8bit.sh: Likewise.
44874
44875         * locale/iso-639.def: Add ary entry.
44876
44877         [BZ #11258]
44878         * locale/C-translit.h.in: Add U20A1 transliteration.
44879
44880         [BZ #12178]
44881         * locale/iso-639.def: Add wae entry.
44882         Patch by Kevin Bortis <bortis@translate-wae.ch>.
44883
44884         [BZ #12545]
44885         * locale/programs/localedef.c (construct_output_path): Use ssize_t
44886         for n.
44887
44888         [BZ #12711]
44889         * locale/C-translit.h.in: Add entry for U20B9.
44890         Patch by pravin.d.s@gmail.com.
44891
44892 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
44893
44894         [BZ #12713]
44895         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
44896         ENAMETOOLONG use generic getcwd.
44897         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
44898         in rtld.  Use *stat64.
44899         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
44900         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
44901         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
44902         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
44903         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
44904         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
44905         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
44906         __fstatat64 macros.
44907         * include/dirent.h: Add libc_hidden_proto for rewinddir.
44908         * dirent/rewinddir.c: Add libc_hidden_def.
44909         * sysdeps/mach/hurd/rewinddir.c: Likewise.
44910         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
44911
44912         * include/dirent.h (__alloc_dir): Add flags parameter.
44913         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
44914         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
44915         __alloc_dir.
44916         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
44917         from fdopendir if O_CLOEXEC is already set.
44918
44919 2011-03-15  Alan Modra  <amodra@gmail.com>
44920
44921         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
44922         l_tls_firstbyte_offset non-zero.  Save padding offset in
44923         l_tls_firstbyte_offset for later use.
44924         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
44925         freeing static tls block.
44926
44927 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
44928
44929         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
44930         where #ifdef was intended.  The intent is to prevent ARG_MAX from
44931         being defined by the kernel headers.
44932
44933 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
44934
44935         [BZ #12734]
44936         * resolv/resolv.h: Define RES_NOTLDQUERY.
44937         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
44938         no-tld-query and set RES_NOTLDQUERY.
44939         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
44940         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
44941         modern BIND to search name as TLD unless forbidden.
44942
44943 2011-05-07  Petr Baudis  <pasky@suse.cz>
44944             Ulrich Drepper  <drepper@gmail.com>
44945
44946         [BZ #12393]
44947         * elf/dl-load.c (fillin_rpath): Move trusted path check...
44948         (is_trusted_path): ...to here.
44949         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
44950         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
44951         using is_trusted_path_normalize() in setuid scripts.
44952
44953 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
44954
44955         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
44956         __BEGIN/__END_DECLS.
44957
44958 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
44959
44960         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
44961         NSS_STATUS_NOTFOUND if no record was found.
44962
44963 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44964
44965         * sunrpc/Makefile (headers): Add rpc/netdb.h.
44966         (headers-not-in-tirpc): Remove rpc/netdb.h
44967         * resolv/netdb.h: Revert last change.
44968
44969 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
44970
44971         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
44972         circular dependency between libgcc.a and libc.a.
44973
44974 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44975
44976         * resolv/netdb.h: Don't include <rpc/netdb.h>.
44977         * nis/Makefile: Don't install rpcsvc/*.
44978         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
44979         instead of <rpc/types.h>.
44980         (MAXHOSTNAMELEN): Define.
44981
44982 2011-05-03  Andreas Schwab  <schwab@redhat.com>
44983
44984         * elf/ldconfig.c (add_dir): Don't crash on empty path.
44985
44986 2011-04-28  Maciej Babinski  <mbabinski@google.com>
44987
44988         [BZ #12714]
44989         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
44990         gethostbyname4_r when IPv6 results are possible.
44991
44992 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
44993
44994         [BZ #12723]
44995         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
44996         _PC_PIPE_BUF handling.
44997
44998 2011-04-30  Bruno Haible  <bruno@clisp.org>
44999
45000         [BZ #12717]
45001         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
45002         * resolv/netdb.h (getnameinfo): Change type of flags parameter
45003         to 'int'.
45004         * inet/getnameinfo.c (getnameinfo): Likewise.
45005
45006 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
45007
45008         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
45009         to groups setting in database lookup.
45010         * nss/nsswitch.conf: Add initgroups entry.
45011
45012 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
45013
45014         [BZ #12685]
45015         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
45016         mode string.
45017         Patch by Eric Blake <eblake@redhat.com>.
45018
45019 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
45020
45021         * sunrpc/Makefile (need-export-routines): Add svc_run.
45022         (routines): Remove svc_run.
45023         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
45024         * sunrpc/clnt_perr.c (clnt_perrno): Export.
45025         * sunrpc/svc_run.c (svc_run): Likewise.
45026         * sunrpc/svc_udp.c (svcudp_create): Likewise.
45027
45028 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
45029
45030         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
45031         problem in reallocation in last patch.
45032
45033 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
45034
45035         * sunrpc/Makefile: Move inclusion of Rules.
45036
45037 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45038
45039         * nss/nss_files/files-initgroups.c: New file.
45040         * nss/Makefile (libnss_files-routines): Add files-initgroups.
45041         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
45042         _nss_files_initgroups_dyn.
45043
45044 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
45045
45046         * elf/elf.h (R_ARM_IRELATIVE): Define.
45047
45048 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45049
45050         * po/ru.po: Update from translation team.
45051
45052 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45053
45054         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
45055         dependencies.
45056
45057 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
45058
45059         [BZ #12653]
45060         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
45061         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
45062         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
45063         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
45064         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
45065
45066 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
45067
45068         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
45069         differing bytes.
45070         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
45071         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
45072         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
45073
45074 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45075
45076         [BZ #12420]
45077         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
45078         storing it.
45079         * stdlib/bug-getcontext.c: New file.
45080         * stdlib/Makefile: Add rules to build and run bug-getcontext.
45081
45082 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45083
45084         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
45085         instructions into .machine "z9-109".
45086         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
45087         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
45088
45089 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45090
45091         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
45092         between environment variables and auxiliary vector.
45093
45094 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
45095
45096         * Makefile: Add rules to build linkobj/libc.so.
45097         * include/libc-symbols.h: Define libc_hidden_nolink.
45098         * include/rpc/auth.h: Mark functions which are to be hidden.
45099         * include/rpc/auth_des.h: Likewise.
45100         * include/rpc/auth_unix.h: Likewise.
45101         * include/rpc/clnt.h: Likewise.
45102         * include/rpc/des_crypt.h: Likewise.
45103         * include/rpc/key_prot.h: Likewise.
45104         * include/rpc/pmap_clnt.h: Likewise.
45105         * include/rpc/pmap_prot.h: Likewise.
45106         * include/rpc/pmap_rmt.h: Likewise.
45107         * include/rpc/rpc_msg.h: Likewise.
45108         * include/rpc/svc.h: Likewise.
45109         * include/rpc/svc_auth.h: Likewise.
45110         * include/rpc/xdr.h: Likewise.
45111         * nis/Makefile: Link all DSOs against linkobj/libc.so.
45112         * nss/Makefile: Likewise.
45113         * sunrpc/Makefile: Don't install headers.  Build library with normal
45114         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
45115         * sunrpc/auth_des.c: Hide exported symbols by default, export some
45116         for the compat linking library.  Remove use of INTDEF/INTUSE.
45117         * sunrpc/auth_none.c: Likewise.
45118         * sunrpc/auth_unix.c: Likewise.
45119         * sunrpc/authdes_prot.c: Likewise.
45120         * sunrpc/authuxprot.c: Likewise.
45121         * sunrpc/clnt_gen.c: Likewise.
45122         * sunrpc/clnt_perr.c: Likewise.
45123         * sunrpc/clnt_raw.c: Likewise.
45124         * sunrpc/clnt_simp.c: Likewise.
45125         * sunrpc/clnt_tcp.c: Likewise.
45126         * sunrpc/clnt_udp.c: Likewise.
45127         * sunrpc/clnt_unix.c: Likewise.
45128         * sunrpc/des_crypt.c: Likewise.
45129         * sunrpc/des_soft.c: Likewise.
45130         * sunrpc/get_myaddr.c: Likewise.
45131         * sunrpc/key_call.c: Likewise.
45132         * sunrpc/key_prot.c: Likewise.
45133         * sunrpc/netname.c: Likewise.
45134         * sunrpc/pm_getmaps.c: Likewise.
45135         * sunrpc/pm_getport.c: Likewise.
45136         * sunrpc/pmap_clnt.c: Likewise.
45137         * sunrpc/pmap_prot.c: Likewise.
45138         * sunrpc/pmap_prot2.c: Likewise.
45139         * sunrpc/pmap_rmt.c: Likewise.
45140         * sunrpc/publickey.c: Likewise.
45141         * sunrpc/rpc_cmsg.c: Likewise.
45142         * sunrpc/rpc_common.c: Likewise.
45143         * sunrpc/rpc_dtable.c: Likewise.
45144         * sunrpc/rpc_prot.c: Likewise.
45145         * sunrpc/rpc_thread.c: Likewise.
45146         * sunrpc/rtime.c: Likewise.
45147         * sunrpc/svc.c: Likewise.
45148         * sunrpc/svc_auth.c: Likewise.
45149         * sunrpc/svc_authux.c: Likewise.
45150         * sunrpc/svc_raw.c: Likewise.
45151         * sunrpc/svc_run.c: Likewise.
45152         * sunrpc/svc_simple.c: Likewise.
45153         * sunrpc/svc_tcp.c: Likewise.
45154         * sunrpc/svc_udp.c: Likewise.
45155         * sunrpc/svc_unix.c: Likewise.
45156         * sunrpc/svcauth_des.c: Likewise.
45157         * sunrpc/xcrypt.c: Likewise.
45158         * sunrpc/xdr.c: Likewise.
45159         * sunrpc/xdr_array.c: Likewise.
45160         * sunrpc/xdr_float.c: Likewise.
45161         * sunrpc/xdr_intXX_t.c: Likewise.
45162         * sunrpc/xdr_mem.c: Likewise.
45163         * sunrpc/xdr_rec.c: Likewise.
45164         * sunrpc/xdr_ref.c: Likewise.
45165         * sunrpc/xdr_sizeof.c: Likewise.
45166         * sunrpc/xdr_stdio.c: Likewise.
45167
45168 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
45169
45170         [BZ #12650]
45171         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
45172         * sysdeps/ia64/dl-tls.h: Likewise.
45173         * sysdeps/powerpc/dl-tls.h: Likewise.
45174         * sysdeps/s390/dl-tls.h: Likewise.
45175         * sysdeps/sh/dl-tls.h: Likewise.
45176         * sysdeps/sparc/dl-tls.h: Likewise.
45177         * sysdeps/x86_64/dl-tls.h: Likewise.
45178         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
45179
45180 2011-03-14  Andreas Schwab  <schwab@redhat.com>
45181
45182         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
45183         rpath element also skip the following colon.
45184         (expand_dynamic_string_token): Add is_path parameter and pass
45185         down to DL_DST_REQUIRED and _dl_dst_substitute.
45186         (decompose_rpath): Call expand_dynamic_string_token with
45187         non-zero is_path.  Ignore empty rpaths.
45188         (_dl_map_object_from_fd): Call expand_dynamic_string_token
45189         with zero is_path.
45190
45191 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
45192
45193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
45194         Make cancelable.
45195
45196 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
45197
45198         [BZ #12655]
45199         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
45200         Patch by Filipe David Manana <fdmanana@apache.org>.
45201
45202 2011-04-07  Andreas Schwab  <schwab@redhat.com>
45203
45204         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
45205         Maintain aligned stack.
45206         (CHECK_RSP): Remove unused macro.
45207
45208 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
45209
45210         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
45211         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
45212
45213 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
45214
45215         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
45216
45217         * include/features.h: Mention __USE_XOPEN2K8 in comment.
45218
45219 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
45220
45221         [BZ #12518]
45222         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
45223         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
45224         * sysdeps/x86_64/memmove.c: New file.
45225         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
45226         (memcpy): Renamed to ...
45227         (__new_memcpy): This.
45228         (memcpy): Provide GLIBC_2_14 memcpy.
45229         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
45230         (memcpy): Provide GLIBC_2_2_5 memcpy.
45231
45232 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45233
45234         [BZ #12631]
45235         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
45236
45237 2011-03-30  Andreas Schwab  <schwab@redhat.com>
45238
45239         * misc/syncfs.c: New file.
45240         * misc/Makefile (routines): Add syncfs.
45241         * posix/unistd.h: Declare syncfs.
45242         * sysdeps/unix/syscalls.list: Add syncfs.
45243
45244 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45245
45246         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
45247         open_by_handle_at.
45248         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
45249         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45250         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45251         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45252         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45253         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
45254         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45255
45256 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45257
45258         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
45259         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45260         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
45261         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45262         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45263         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45264         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45265
45266         * io/Makefile: Compile fallocate.c, fallocate64.c, and
45267         sync_file_range.c with -fexceptions.
45268         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
45269         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
45270         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
45271         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
45272         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
45273         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
45274         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
45275         sync_file_range as cancellation point
45276         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
45277         now a wrapper around __call_sync_file_range with cancellation handling.
45278         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
45279         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
45280         function name to __call_sync_file_range.
45281         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
45282         Add call_sync_file_range.
45283
45284 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45285
45286         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
45287         bits/timex.h.
45288
45289 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45290
45291         * iconv/iconv.h: Fix typo in comment.
45292         * io/fcntl.h: Likewise.
45293         * libio/stdio.h: Likewise.
45294         * posix/spawn.h: Likewise.
45295         * posix/unistd.h: Likewise.
45296         * stdlib/stdlib.h: Likewise.
45297         * time/time.h: Likewise.
45298         * wcsmbs/wchar.h: Likewise.
45299
45300         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
45301         open_by_handle): Add.
45302         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
45303         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
45304         Augment a few comments.
45305         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45306         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45307         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45308         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45309         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45310         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
45311         open_by_handle.
45312
45313         * io/fcntl.h (AT_EMPTY_PATH): Define.
45314
45315 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
45316
45317         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
45318         * sysdeps/unix/sysv/linux/bits/time.h: New file.
45319         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
45320         to...
45321         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
45322         * Versions.def: Add GLIBC_2.14.
45323         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
45324         Export.
45325
45326 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
45327
45328         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
45329         round counter.
45330         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45331
45332 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
45333
45334         [BZ #12597]
45335         * string/test-strncmp.c (do_page_test): New function.
45336         (check2): Likewise.
45337         (test_main): Call check2.
45338         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
45339
45340 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
45341
45342         [BZ #12587]
45343         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
45344         Handle cache information in CPU leaf 4.
45345         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45346
45347 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
45348
45349         [BZ #12583]
45350         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
45351         character representation.
45352         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
45353
45354 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
45355
45356         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
45357         END(__isnan) to END(__isnanf) to match function entry point/label
45358         EALIGN(__isnanf,...).
45359
45360 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
45361
45362         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
45363
45364 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
45365
45366         [BZ #12510]
45367         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
45368         copy from the symbol referenced in the relocation to initialize the
45369         used variable.
45370         Patch by Piotr Bury <pbury@goahead.com>.
45371         * elf/Makefile: Add rules to build and tst-unique3.
45372         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
45373         * elf/tst-unique3.cc: New file.
45374         * elf/tst-unique3.h: New file.
45375         * elf/tst-unique3lib.cc: New file.
45376         * elf/tst-unique3lib2.cc: New file.
45377
45378         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
45379
45380 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
45381
45382         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
45383         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
45384         to _start.
45385
45386 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
45387
45388         * elf/dl-load.c (_dl_map_object): If we are looking for the first
45389         to-be-loaded object along a path to loader is ld.so.
45390
45391 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45392             Ulrich Drepper  <drepper@gmail.com>
45393
45394         * sysdeps/x86_64/memset.S: After aligning destination, code
45395         branches to different locations depending on the value of
45396         misalignment, when multiarch is enabled. Fix this.
45397
45398 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45399
45400         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
45401         Set _x86_64_preferred_memory_instruction for AMD processsors.
45402         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45403         Set bit_Prefer_SSE_for_memop for AMD processors.
45404
45405 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
45406
45407         * libio/fmemopen.c (fmemopen): Optimize a bit.
45408
45409 2011-03-03  Andreas Schwab  <schwab@redhat.com>
45410
45411         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
45412
45413 2011-03-03  Roland McGrath  <roland@redhat.com>
45414
45415         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
45416
45417 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
45418
45419         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
45420         __bzero_ultra1 instead of __memset_ultra1.
45421
45422 2011-02-23  Andreas Schwab  <schwab@redhat.com>
45423             Ulrich Drepper  <drepper@gmail.com>
45424
45425         [BZ #12509]
45426         * include/link.h (struct link_map): Add l_orig_initfini.
45427         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
45428         returning unsuccessfully.
45429         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
45430         close of a file loaded at startup, restore the original l_initfini
45431         list.
45432         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
45433         list, store the pointer.
45434         * elf/Makefile ($(objpfx)noload-mem): New rule.
45435         (noload-ENV): Define.
45436         (tests): Add $(objpfx)noload-mem.
45437         * elf/noload.c: Include <memcheck.h>.
45438         (main): Call mtrace.  Close all opened handles.
45439
45440 2011-02-17  Andreas Schwab  <schwab@redhat.com>
45441
45442         [BZ #12454]
45443         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
45444         dependencies are missing.
45445
45446 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45447
45448         Fix __if_freereq crash: Unlike the generic version which uses free,
45449         Hurd needs munmap.
45450         * sysdeps/mach/hurd/ifreq.h: New file.
45451
45452 2011-01-27  Petr Baudis  <pasky@suse.cz>
45453             Ulrich Drepper  <drepper@gmail.com>
45454
45455         [BZ 12445]#
45456         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
45457         to extend_alloca().
45458         * stdio-common/bug23.c: New file.
45459         * stdio-common/Makefile (tests): Add bug23.
45460
45461 2010-09-28  Andreas Schwab  <schwab@redhat.com>
45462             Ulrich Drepper  <drepper@gmail.com>
45463
45464         [BZ #12489]
45465         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
45466         before performing relro protection.  At old place add assertion
45467         to make sure nothing changed.
45468
45469 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
45470             Glauber de Oliveira Costa  <glommer@gmail.com>
45471
45472         * elf/elf.h: Add new ARM TLS relocs.
45473
45474 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
45475
45476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
45477         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
45478         cast from r3.
45479         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
45480         'tests' variable.
45481         * sysdeps/wordsize-64/tst-writev.c: New file.
45482
45483 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
45484
45485         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
45486         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
45487         insns in _dl_start to prevent a TOC reference before relocs are
45488         resolved.
45489
45490 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
45491
45492         [BZ #12469]
45493         * Makeconfig: Remove RANLIB definition.
45494         * Makerules: Don't use RANLIB.
45495         * aclocal.m4: Remove ranlib test.
45496         * configure.in: No need to check for ranlib.
45497         * elf/rtld-Rules: Don't use RANLIB.
45498
45499 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45500
45501         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
45502         protection macro.
45503         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
45504         inclusion protection macro.
45505
45506         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
45507         SIGRTMIN and SIGRTMAX and print information in that case only when
45508         SIGRTMIN is defined.
45509
45510 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
45511
45512         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
45513         arginfo fn returning -1.
45514
45515         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
45516         and thousands string is zero terminated.
45517
45518 2011-02-03  Andreas Schwab  <schwab@redhat.com>
45519
45520         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
45521         sysdeps/unix/sysv/linux/bits/socket.h.
45522
45523 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45524
45525         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
45526         (__CPU_COUNT): Remove old macros.
45527         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
45528         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
45529         (__CPU_ALLOC, __CPU_FREE): Add macros.
45530         (__sched_cpualloc, __sched_cpufree): Add declarations.
45531
45532 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
45533
45534         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
45535         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
45536         * nscd/aicache.c (addhstaiX): Return timeout of added value.
45537         (readdhstai): Return value of addhstaiX call.
45538         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
45539         (addgrbyX): Return value returned by cache_addgr.
45540         (readdgrbyname): Return value returned by addgrbyX.
45541         (readdgrbygid): Likewise.
45542         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
45543         (addpwbyX): Return value returned by cache_addpw.
45544         (readdpwbyname): Return value returned by addhstbyX.
45545         (readdpwbyuid): Likewise.
45546         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
45547         (addservbyX): Return value returned by cache_addserv.
45548         (readdservbyname): Return value returned by addservbyX:
45549         (readdservbyport): Likewise.
45550         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
45551         (addhstbyX): Return value returned by cache_addhst.
45552         (readdhstbyname): Return value returned by addhstbyX.
45553         (readdhstbyaddr): Likewise.
45554         (readdhstbynamev6): Likewise.
45555         (readdhstbyaddrv6): Likewise.
45556         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
45557         (readdinitgroups): Return value returned by addinitgroupsX.
45558         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
45559         (prune_cache): Keep track of timeout value of re-added entries.
45560         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
45561         * nscd/nscd.h: Adjust prototypes of readd* functions.
45562
45563 2011-02-04  Roland McGrath  <roland@redhat.com>
45564
45565         * nis/nis_server.c (nis_servstate): Use the right name for 0.
45566         (nis_stats): Likewise.
45567         * nis/nis_modify.c (nis_modify): Likewise.
45568         * nis/nis_remove.c (nis_remove): Likewise.
45569         * nis/nis_add.c (nis_add): Likewise.
45570
45571         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
45572
45573         * posix/fnmatch_loop.c: Add some consts.
45574
45575         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
45576
45577 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
45578
45579         [BZ #12460]
45580         * config.make.in (config-cflags-novzeroupper): Define.
45581         * configure.in: Substitute libc_cv_cc_novzeroupper.
45582         * elf/Makefile (AVX-CFLAGS): Define.
45583         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
45584         (CFLAGS-tst-auditmod4a.c): Likewise.
45585         (CFLAGS-tst-auditmod4b.c): Likewise.
45586         (CFLAGS-tst-auditmod6b.c): Likewise.
45587         (CFLAGS-tst-auditmod6c.c): Likewise.
45588         (CFLAGS-tst-auditmod7b.c): Likewise.
45589         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
45590
45591 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
45592
45593         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
45594         function to the callback.
45595         Patch partly by Jiri Olsa <jolsa@redhat.com>.
45596
45597 2011-02-02  Andreas Schwab  <schwab@redhat.com>
45598
45599         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
45600         of errno.
45601
45602 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
45603
45604         [BZ #11724]
45605         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
45606         of constructors.
45607         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
45608         of destructors.
45609         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
45610
45611         [BZ #11724]
45612         * elf/Makefile: Add rules to build and run new test.
45613         * elf/tst-initorder.c: New file.
45614         * elf/tst-initorder.exp: New file.
45615         * elf/tst-initordera1.c: New file.
45616         * elf/tst-initordera2.c: New file.
45617         * elf/tst-initordera3.c: New file.
45618         * elf/tst-initordera4.c: New file.
45619         * elf/tst-initorderb1.c: New file.
45620         * elf/tst-initorderb2.c: New file.
45621         * elf/tst-order-a1.c: New file.
45622         * elf/tst-order-a2.c: New file.
45623         * elf/tst-order-a3.c: New file.
45624         * elf/tst-order-a4.c: New file.
45625         * elf/tst-order-b1.c: New file.
45626         * elf/tst-order-b2.c: New file.
45627         * elf/tst-order-main.c: New file.
45628         New test case by George Gensure <werkt0@gmail.com>.
45629
45630 2010-10-01  Andreas Schwab  <schwab@redhat.com>
45631
45632         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
45633         decoding ACE if AI_CANONIDN.
45634
45635 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
45636
45637         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
45638
45639 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
45640
45641         * version.h (RELEASE): Bump for 2.13 release.
45642         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
45643
45644         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
45645
45646         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
45647         MADV_NOHUGEPAGE.
45648         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
45649         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
45650         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
45651         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
45652         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
45653         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45654
45655         * posix/getconf.c: Update copyright year.
45656         * catgets/gencat.c: Likewise.
45657         * csu/version.c: Likewise.
45658         * debug/catchsegv.sh: Likewise.
45659         * debug/xtrace.sh: Likewise.
45660         * elf/ldconfig.c: Likewise.
45661         * elf/ldd.bash.in: Likewise.
45662         * elf/sprof.c (print_version): Likewise.
45663         * iconv/iconv_prog.c: Likewise.
45664         * iconv/iconvconfig.c: Likewise.
45665         * locale/programs/locale.c: Likewise.
45666         * locale/programs/localedef.c: Likewise.
45667         * malloc/memusage.sh: Likewise.
45668         * malloc/mtrace.pl: Likewise.
45669         * nscd/nscd.c (print_version): Likewise.
45670         * nss/getent.c: Likewise.
45671
45672         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
45673         PF_CAIF, and PF_ALG.
45674         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
45675
45676 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
45677
45678         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
45679         (modules-names): Use them.
45680         (ifunc-test-modules, ifunc-pie-tests): Define.
45681         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
45682         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
45683         (test-extras): Likewise.
45684         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
45685         $(compile-command.c).
45686         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
45687         (all-built-dso): Define.
45688         (check-textrel.out, check-execstack.out): Depend on it.
45689
45690         * configure.in: Don't override --enable-multi-arch.
45691
45692 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
45693
45694         [BZ #6812]
45695         * nscd/hstcache.c (tryagain): Define.
45696         (cache_addhst): Return tryagain not notfound for temporary errors.
45697         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
45698         failed.
45699
45700 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
45701
45702         [BZ #10563]
45703         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
45704         to make the syscall.
45705         * sysdeps/unix/sysv/linux/setgroups.c: New file.
45706
45707         [BZ #12378]
45708         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
45709         and fall back to matching as normal character if the string ends before
45710         the matching ']' is found.  This is what POSIX requires.
45711         * posix/testfnm.c: Adjust test result.
45712         * posix/globtest.sh: Adjust test result.  Add new test.
45713         * posix/tst-fnmatch.input: Likewise.
45714         * posix/tst-fnmatch2.c: Add new test.
45715
45716 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
45717
45718         * elf/Makefile (check-execstack): Revert last change.  Depend on
45719         check-execstack.h.
45720         (check-execstack.h): New target.
45721         (generated): Add check-execstack.h.
45722         * elf/check-execstack.c: Include "check-execstack.h".
45723         (main): Revert last change.
45724         (handle_file): Return zero if GNU_STACK is absent and
45725         DEFAULT_STACK_PERMS doesn't include PF_X.
45726
45727 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
45728
45729         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
45730         in child fails because the descriptor is already closed.
45731         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
45732         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
45733         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
45734
45735         [BZ #12397]
45736         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
45737         syscall.
45738
45739         [BZ #10484]
45740         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
45741         temporary buffer used to handle multi lookups locally.
45742         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
45743
45744 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45745
45746         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
45747         loader is ld.so.
45748
45749 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
45750
45751         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
45752         alignment for SSE2.
45753
45754 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45755
45756         [BZ #12394]
45757         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
45758         characters.  When rounding increased number of integer digits recompute
45759         number of groups.
45760         * stdio-common/tst-grouping.c: New file.
45761         * stdio-common/Makefile: Add rules to build and run tst-grouping.
45762
45763 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
45764
45765         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
45766         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
45767
45768         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
45769         void.
45770         * bits/select.h: Likewise.
45771
45772 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
45773
45774         * po/ja.po: Update from translation team.
45775
45776 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
45777
45778         [BZ #11155]
45779         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
45780         implementation just like for lxstat, fxstatat, et al.
45781
45782 2010-12-27  Jim Meyering  <meyering@redhat.com>
45783
45784         [BZ #12348]
45785         * posix/regexec.c (build_trtable): Return failure indication upon
45786         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45787
45788 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
45789
45790         [BZ #12201]
45791         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
45792         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
45793         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
45794         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
45795
45796         [BZ #12207]
45797         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
45798
45799         [BZ #12204]
45800         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
45801         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
45802
45803 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
45804
45805         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
45806         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
45807         script has SORT_BY_INIT_PRIORITY.
45808         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
45809         NO_CTORS_DTORS_SECTIONS is defined.
45810         * elf/soinit.c: Likewise.
45811         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
45812         NO_CTORS_DTORS_SECTIONS is defined.
45813         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
45814         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
45815         * sysdeps/sh/init-first.c: Likewise.
45816         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
45817
45818 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
45819
45820         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
45821         always use the slow path.
45822
45823 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
45824
45825         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
45826         similar rule which adds the sysdep directories to the header search in
45827         order to pick up the correct platform stackinfo.h.
45828         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
45829         perform test if it is, otherwise return successfully without testing.
45830         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
45831         DEFAULT_STACK_PERMS define in stackinfo.h.
45832         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
45833         defined in stackinfo.h.
45834         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
45835         DEFAULT_STACK_PERMS defined in stackinfo.h.
45836         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
45837         * sysdeps/ia64/stackinfo.h: Likewise.
45838         * sysdeps/s390/stackinfo.h: Likewise.
45839         * sysdeps/sh/stackinfo.h: Likewise.
45840         * sysdeps/sparc/stackinfo.h: Likewise.
45841         * sysdeps/x86_64/stackinfo.h: Likewise.
45842         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
45843         PF_X for powerpc64.  Retain PF_X for powerpc32.
45844
45845 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
45846
45847         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
45848         accurately.
45849         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
45850         GETDENTS_64BIT_ALIGNED.
45851
45852 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
45853
45854         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
45855
45856 2010-12-10  Andreas Schwab  <schwab@redhat.com>
45857
45858         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
45859         _GNU_SOURCE.
45860
45861         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
45862         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
45863         Remove __restrict.
45864         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
45865         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
45866
45867 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
45868
45869         [BZ #11655]
45870         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
45871         are initialized.
45872
45873 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
45874
45875         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
45876
45877 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
45878
45879         * po/it.po: Update from translation team.
45880
45881 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
45882
45883         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
45884         unused codes.
45885
45886 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
45887
45888         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
45889
45890 2010-11-24  Andreas Schwab  <schwab@redhat.com>
45891
45892         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
45893         specially.
45894         (gaih_getanswer_slice): Likewise.
45895
45896 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
45897
45898         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
45899
45900 2010-05-31  Petr Baudis  <pasky@suse.cz>
45901
45902         [BZ #11149]
45903         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
45904         silently even in the chroot mode.
45905
45906 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
45907
45908         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
45909         last patch a bit.  Pretty printing
45910
45911 2010-05-31  Petr Baudis <pasky@suse.cz>
45912
45913         [BZ #10085]
45914         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
45915         initialization of skip_initgroups_dyn.
45916
45917 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
45918
45919         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
45920         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45921
45922 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
45923
45924         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
45925
45926 2010-11-11  Andreas Schwab  <schwab@redhat.com>
45927
45928         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
45929         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
45930         (tst-fnmatch-ENV): Set MALLOC_TRACE.
45931         ($(objpfx)tst-fnmatch-mem): New rule.
45932         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
45933         * posix/tst-fnmatch.c (main): Call mtrace.
45934
45935 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
45936
45937         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45938         Support Intel processor model 6 and model 0x2c.
45939
45940 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
45941
45942         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
45943           signed comparison.
45944
45945 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
45946
45947         [BZ #12205]
45948         * string/test-strncasecmp.c (check_result): New function.
45949         (do_one_test): Use it.
45950         (check1): New function.
45951         (test_main): Use it.
45952         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
45953         Support strcasecmp and strncasecmp.
45954
45955 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
45956
45957         [BZ #12194]
45958         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
45959         * sysdeps/x86_64/bits/byteswap.h: Likewise.
45960
45961 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
45962
45963         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
45964         IFUNC support.
45965         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45966         memset-x86-64.
45967         * sysdeps/x86_64/multiarch/bzero.S: New file.
45968         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
45969         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
45970         * sysdeps/x86_64/multiarch/memset.S: New file.
45971         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
45972         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45973         Set bit_Prefer_SSE_for_memop for Intel processors.
45974         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
45975         Define.
45976         (index_Prefer_SSE_for_memop): Define.
45977         (HAS_PREFER_SSE_FOR_MEMOP): Define.
45978
45979 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
45980
45981         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
45982         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
45983
45984 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
45985
45986         [BZ #12191]
45987         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45988         (__x86_64_raw_data_cache_size_half): Likewise.
45989         (__x86_64_raw_shared_cache_size): Likewise.
45990         (__x86_64_raw_shared_cache_size_half): Likewise.
45991
45992         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45993         (__x86_64_raw_data_cache_size_half): Likewise.
45994         (__x86_64_raw_shared_cache_size): Likewise.
45995         (__x86_64_raw_shared_cache_size_half): Likewise.
45996         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
45997         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
45998         and __x86_64_raw_shared_cache_size_half.  Round
45999         __x86_64_data_cache_size_half, __x86_64_data_cache_size
46000         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
46001         to multiple of 256 bytes.
46002
46003 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
46004
46005         [BZ #12167]
46006         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
46007         of inacessible symlinks.  Verify result of symlink before returning it.
46008         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
46009         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
46010
46011 2010-10-28  Erich Ritz  <erichritz@gmail.com>
46012
46013         * math/math.h (isinf): Fix typo in comment.
46014
46015 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
46016
46017         * po/da.po: Update from translation team.
46018
46019 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
46020
46021         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
46022         is added to the list.
46023
46024 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46025             Ulrich Drepper  <drepper@gmail.com>
46026
46027         * elf/dl-object.c (_dl_new_object): Don't append the new object to
46028         the global list here.  Move code to...
46029         (_dl_add_to_namespace_list): ...here.  New function.
46030         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
46031         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
46032         * elf/dl-load.c (lose): Don't remove the element from the list.
46033         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
46034         (_dl_map_object): Likewise.
46035
46036 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
46037
46038         [BZ #12159]
46039         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
46040         into all bytes of SSE register.
46041         Patch by Richard Li <richardpku@gmail.com>.
46042
46043 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
46044
46045         [BZ #12140]
46046         * malloc/malloc.c (_int_free): Fill correct number of bytes when
46047         perturbing.
46048
46049 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
46050
46051         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
46052         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
46053         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
46054         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
46055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
46056         submachine.
46057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
46058
46059 2010-10-22  Andreas Schwab  <schwab@redhat.com>
46060
46061         * include/dlfcn.h (__RTLD_SECURE): Define.
46062         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
46063         mode & __RTLD_SECURE instead.
46064         (open_path): Rename preloaded parameter to secure.
46065         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
46066         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
46067         * elf/dl-deps.c (openaux): Likewise.
46068         * elf/rtld.c (struct map_args): Remove is_preloaded.
46069         (map_doit): Don't use it.
46070         (dl_main): Likewise.
46071         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
46072         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
46073
46074 2010-09-09  Andreas Schwab  <schwab@redhat.com>
46075
46076         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
46077         (sysd-rules-targets): Remove duplicates.
46078         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
46079         rtld-%.$o dependency.
46080
46081 2010-10-18  Andreas Schwab  <schwab@redhat.com>
46082
46083         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
46084         _dl_map_object do it.
46085
46086 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
46087
46088         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
46089         fast fma builtins, define the macros in the C99 standard.
46090         (FP_FAST_FMAF): Likewise.
46091         (FP_FAST_FMAL): Likewise.
46092         * sysdeps/x86_64/bits/mathdef.h: Likewise.
46093
46094         * bits/mathdef.h: Update copyright year.
46095         * sysdeps/powerpc/bits/mathdef.h: Likewise.
46096
46097 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
46098
46099         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
46100         builtins, define the macros in the C99 standard.
46101         (FP_FAST_FMAF): Likewise.
46102         (FP_FAST_FMAL): Likewise.
46103         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
46104         multiply/add.
46105         (FP_FAST_FMAF): Likewise.
46106
46107 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
46108
46109         [BZ #3268]
46110         * math/libm-test.inc (fma_test): Some new testcases.
46111         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
46112         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
46113         y and infinite z.  Do multiplication by C already in long double.
46114         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
46115         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
46116         y and infinite z.  Do bitwise or of inexact bit into u.d.
46117         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
46118         * sysdeps/i386/fpu/s_fmaf.S: Removed.
46119         * sysdeps/i386/fpu/s_fma.S: Removed.
46120         * sysdeps/i386/fpu/s_fmal.S: Removed.
46121
46122 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
46123
46124         [BZ #3268]
46125         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
46126         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
46127         computation is not scheduled after fetestexcept.  Fix value
46128         of minimum denormal long double.
46129
46130 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
46131
46132         [BZ #3268]
46133         * math/libm-test.inc (fma_test): Add some more tests.
46134         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
46135         correctly.
46136
46137 2010-10-15  Andreas Schwab  <schwab@redhat.com>
46138
46139         * scripts/data/localplt-s390-linux-gnu.data: New file.
46140         * scripts/data/localplt-s390x-linux-gnu.data: New file.
46141
46142 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
46143
46144         [BZ #3268]
46145         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
46146         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
46147         instead of dbl-64.
46148         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
46149         inlines.
46150         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
46151         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
46152         if one of x and y is very large and the other is subnormal.
46153         * sysdeps/s390/fpu/s_fmaf.c: New file.
46154         * sysdeps/s390/fpu/s_fma.c: New file.
46155         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
46156         * sysdeps/powerpc/fpu/s_fma.S: New file.
46157         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
46158         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
46159         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
46160
46161 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
46162
46163         [BZ #3268]
46164         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
46165         fma tests.
46166         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
46167         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
46168         * sysdeps/i386/i686/multiarch/s_fma.c: Include
46169         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
46170         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
46171         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
46172         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
46173
46174 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
46175
46176         [BZ #12078]
46177         * posix/regcomp.c (parse_branch): One more memory leak plugged.
46178         * posix/bug-regex31.input: Add test case.
46179
46180 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46181
46182         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
46183         * posix/bug-regex31.input: New file.
46184
46185         [BZ #12078]
46186         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
46187         (parse_sub_exp): Fix last change, use postorder.
46188
46189         * posix/bug-regex31.c: New file.
46190         * posix/Makefile: Add rules to build and run bug-regex31.
46191
46192         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
46193
46194         [BZ #12078]
46195         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
46196
46197         [BZ #12108]
46198         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
46199         to have entries in sys_siglist.
46200
46201         [BZ #12093]
46202         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
46203         be NULL.
46204
46205 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
46206
46207         [BZ #3268]
46208         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
46209         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
46210         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
46211         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
46212         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
46213         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
46214         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
46215         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
46216         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
46217         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
46218         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
46219         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
46220         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
46221         * math/ftestexcept.c (fetestexcept): Likewise.
46222         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
46223         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
46224         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
46225         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
46226         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
46227         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
46228         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
46229
46230 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46231
46232         [BZ #12107]
46233         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
46234         newline.
46235
46236 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
46237
46238         * string/bug-strstr1.c: New file.
46239         * string/Makefile: Add rules to build and run bug-strstr1.
46240
46241 2010-10-05  Eric Blake  <eblake@redhat.com>
46242
46243         [BZ #12092]
46244         * string/str-two-way.h (two_way_long_needle): Always clear memory
46245         when skipping input due to the shift table.
46246
46247 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
46248
46249         [BZ #12005]
46250         * malloc/mcheck.c: Handle large requests.
46251
46252         [BZ #12077]
46253         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
46254         for strncmp and strncasecmp.
46255         * string/stratcliff.c: Add tests for strcmp and strncmp.
46256         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
46257
46258 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
46259
46260         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
46261         __set_fpscr.
46262
46263 2010-09-30  Andreas Jaeger  <aj@suse.de>
46264
46265         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
46266         (CGROUP_SUPER_MAGIC): Define.
46267         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46268         Handle btrfs and cgroup file systems.
46269         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
46270         Likewise.
46271
46272 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
46273
46274         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
46275         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
46276
46277 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46278
46279         [BZ #12067]
46280         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
46281         trying to locate the ELF header.
46282
46283 2010-09-27  Andreas Schwab  <schwab@redhat.com>
46284
46285         [BZ #11611]
46286         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
46287         Mask out sign-bit copies when constructing f_fsid.
46288
46289 2010-09-24  Petr Baudis <pasky@suse.cz>
46290
46291         * debug/stack_chk_fail_local.c: Add missing licence exception.
46292         * debug/warning-nop.c: Likewise.
46293
46294 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
46295
46296         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
46297         implementing getdents64 using getdents syscall, set d_type if
46298         __ASSUME_GETDENTS32_D_TYPE.
46299
46300 2010-09-16  Andreas Schwab  <schwab@redhat.com>
46301
46302         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
46303         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
46304
46305 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
46306
46307         [BZ #12037]
46308         * posix/unistd.h: Undo change of feature selection for ftruncate from
46309         2010-01-11.
46310
46311 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
46312
46313         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
46314         detection.
46315
46316 2010-09-20  Andreas Schwab  <schwab@redhat.com>
46317
46318         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
46319         fanotify_mark.
46320         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46321
46322 2010-09-14  Andreas Schwab  <schwab@redhat.com>
46323
46324         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
46325         variables after CHECK_SP call.
46326         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
46327
46328 2010-09-13  Andreas Schwab  <schwab@redhat.com>
46329             Ulrich Drepper  <drepper@redhat.com>
46330
46331         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
46332         re-relocationg ld.so.
46333         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
46334         _dl_init_paths call.
46335         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
46336         here anymore.
46337
46338 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
46339
46340         * resolv/res_init.c (__res_vinit): Count the default server we added.
46341
46342 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
46343             Ulrich Drepper  <drepper@redhat.com>
46344
46345         [BZ #11968]
46346         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
46347         (____longjmp_chk): Use %ebx for saving value across system call.
46348         Add unwind info.
46349
46350 2010-09-06  Andreas Schwab  <schwab@redhat.com>
46351
46352         * manual/Makefile: Don't mix pattern rules with normal rules.
46353
46354 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
46355
46356         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
46357         operation.
46358         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
46359         * libio/iofopncook.c (_IO_cookie_init): Likewise.
46360         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
46361         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
46362         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46363         Likewise.
46364
46365 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
46366
46367         [BZ #11979]
46368         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
46369         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
46370
46371 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
46372
46373         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
46374         * sysdeps/x86_64/addmul_1.S: Likewise.
46375         * sysdeps/x86_64/lshift.S: Likewise.
46376         * sysdeps/x86_64/mul_1.S: Likewise.
46377         * sysdeps/x86_64/rshift.S: Likewise.
46378         * sysdeps/x86_64/sub_n.S: Likewise.
46379         * sysdeps/x86_64/submul_1.S: Likewise.
46380
46381 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46382
46383         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
46384         Define __sched_param instead of SCHED_* and sched_param when
46385         <bits/sched.h> is included with __need_schedparam defined.
46386         * bits/sched.h [__need_schedparam]
46387         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
46388         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
46389         (__defined_schedparam): Define to 1.
46390         (__sched_param): New structure, identical to sched_param.
46391         (__need_schedparam): Undefine.
46392
46393 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
46394
46395         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
46396         (epoll_create1): Declare.
46397
46398         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
46399
46400 2010-08-31  Andreas Schwab  <schwab@redhat.com>
46401
46402         [BZ #7066]
46403         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
46404         shifting retval into place.
46405
46406 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
46407
46408         * nis/rpcsvc/nis.h: Update copyright notice.
46409         * nis/rpcsvc/nis.x: Likewise.
46410         * nis/rpcsvc/nis_callback.h: Likewise.
46411         * nis/rpcsvc/nis_callback.x: Likewise.
46412         * nis/rpcsvc/nis_object.x: Likewise.
46413         * nis/rpcsvc/nis_tags.h: Likewise.
46414         * nis/rpcsvc/yp.h: Likewise.
46415         * nis/rpcsvc/yp.x: Likewise.
46416         * nis/rpcsvc/ypupd.h: Likewise.
46417         * nis/yp_xdr.c: Likewise.
46418         * nis/ypupdate_xdr.c: Likewise.
46419
46420         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
46421         mainly the body of pmap_getport.  Add parameters to specify timeouts.
46422         (pmap_getport): Use __libc_rpc_getport.
46423         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
46424         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
46425         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
46426
46427 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
46428
46429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
46430         fanotify_mark.
46431
46432 2010-08-27  Roland McGrath  <roland@redhat.com>
46433
46434         * sysdeps/i386/i686/multiarch/Makefile
46435         (CFLAGS-varshift.c): New variable.
46436
46437 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
46438
46439         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
46440         * sysdeps/i386/i686/multiarch/varshift.c: New file.
46441
46442         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
46443
46444         * sysdeps/x86_64/strlen.S: Minimal code improvement.
46445
46446 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
46447
46448         * sysdeps/x86_64/strlen.S: Unroll the loop.
46449         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46450         strlen-sse2 strlen-sse2-bsf.
46451         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
46452         __strlen_no_bsf if bit_Slow_BSF is set.
46453         (__strlen_sse42): Removed.
46454         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
46455         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
46456
46457 2010-08-25  Roland McGrath  <roland@redhat.com>
46458
46459         * sysdeps/x86_64/multiarch/varshift.S: File removed.
46460         * sysdeps/x86_64/multiarch/varshift.c: New file.
46461         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
46462         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
46463         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
46464         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
46465
46466 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
46467
46468         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46469         strlen-sse2 strlen-sse2-bsf.
46470         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
46471         __strlen_sse2_bsf if bit_Slow_BSF is unset.
46472         (__strlen_sse2): Removed.
46473         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
46474         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
46475         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
46476         bit_Slow_BSF for Atom.
46477         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
46478         (index_Slow_BSF): Define.
46479         (HAS_SLOW_BSF): Define.
46480
46481 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
46482
46483         [BZ #10851]
46484         * resolv/res_init.c (__res_vinit): When no server address at all
46485         is given default to loopback.
46486
46487 2010-08-24  Roland McGrath  <roland@redhat.com>
46488
46489         * configure.in: Remove config-name.h generation.
46490         * configure: Regenerated.
46491         * config-name.in: File removed.
46492         * scripts/config-uname.sh: New file.
46493         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
46494         ($(objdir)config-name.h): New target.
46495
46496         * sunrpc/rpc_parse.h: Avoid nested comment.
46497
46498 2010-08-24  Richard Henderson  <rth@redhat.com>
46499             Ulrich Drepper  <drepper@redhat.com>
46500             H.J. Lu  <hongjiu.lu@intel.com>
46501
46502         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
46503         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
46504         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
46505         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
46506         _mm_alignr_epi8 with _mm_loadu_si128.
46507         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
46508         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
46509         (__m128i_shift_right): Removed.
46510         * sysdeps/i386/i686/multiarch/varshift.h: New file.
46511         * sysdeps/i386/i686/multiarch/varshift.S: New file.
46512         * sysdeps/x86_64/multiarch/varshift.h: New file.
46513         * sysdeps/x86_64/multiarch/varshift.S: New file.
46514
46515 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
46516
46517         * configure.in: Move assembler checks to before sysdep dir checking.
46518
46519 2010-08-20  Petr Baudis  <pasky@suse.cz>
46520
46521         * LICENSES: Sync the sunrpc license.
46522
46523 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
46524
46525         * sunrpc/auth_des.c: Update copyright notice once again.
46526         * sunrpc/auth_none.c: Likewise.
46527         * sunrpc/auth_unix.c: Likewise.
46528         * sunrpc/authdes_prot.c: Likewise.
46529         * sunrpc/authuxprot.c: Likewise.
46530         * sunrpc/bindrsvprt.c: Likewise.
46531         * sunrpc/clnt_gen.c: Likewise.
46532         * sunrpc/clnt_perr.c: Likewise.
46533         * sunrpc/clnt_raw.c: Likewise.
46534         * sunrpc/clnt_simp.c: Likewise.
46535         * sunrpc/clnt_tcp.c: Likewise.
46536         * sunrpc/clnt_udp.c: Likewise.
46537         * sunrpc/clnt_unix.c: Likewise.
46538         * sunrpc/des_crypt.c: Likewise.
46539         * sunrpc/des_soft.c: Likewise.
46540         * sunrpc/get_myaddr.c: Likewise.
46541         * sunrpc/getrpcport.c: Likewise.
46542         * sunrpc/key_call.c: Likewise.
46543         * sunrpc/key_prot.c: Likewise.
46544         * sunrpc/openchild.c: Likewise.
46545         * sunrpc/pm_getmaps.c: Likewise.
46546         * sunrpc/pm_getport.c: Likewise.
46547         * sunrpc/pmap_clnt.c: Likewise.
46548         * sunrpc/pmap_prot.c: Likewise.
46549         * sunrpc/pmap_prot2.c: Likewise.
46550         * sunrpc/pmap_rmt.c: Likewise.
46551         * sunrpc/rpc/auth.h: Likewise.
46552         * sunrpc/rpc/auth_unix.h: Likewise.
46553         * sunrpc/rpc/clnt.h: Likewise.
46554         * sunrpc/rpc/des_crypt.h: Likewise.
46555         * sunrpc/rpc/key_prot.h: Likewise.
46556         * sunrpc/rpc/netdb.h: Likewise.
46557         * sunrpc/rpc/pmap_clnt.h: Likewise.
46558         * sunrpc/rpc/pmap_prot.h: Likewise.
46559         * sunrpc/rpc/pmap_rmt.h: Likewise.
46560         * sunrpc/rpc/rpc.h: Likewise.
46561         * sunrpc/rpc/rpc_des.h: Likewise.
46562         * sunrpc/rpc/rpc_msg.h: Likewise.
46563         * sunrpc/rpc/svc.h: Likewise.
46564         * sunrpc/rpc/svc_auth.h: Likewise.
46565         * sunrpc/rpc/types.h: Likewise.
46566         * sunrpc/rpc/xdr.h: Likewise.
46567         * sunrpc/rpc_clntout.c: Likewise.
46568         * sunrpc/rpc_cmsg.c: Likewise.
46569         * sunrpc/rpc_common.c: Likewise.
46570         * sunrpc/rpc_cout.c: Likewise.
46571         * sunrpc/rpc_dtable.c: Likewise.
46572         * sunrpc/rpc_hout.c: Likewise.
46573         * sunrpc/rpc_main.c: Likewise.
46574         * sunrpc/rpc_parse.c: Likewise.
46575         * sunrpc/rpc_parse.h: Likewise.
46576         * sunrpc/rpc_prot.c: Likewise.
46577         * sunrpc/rpc_sample.c: Likewise.
46578         * sunrpc/rpc_scan.c: Likewise.
46579         * sunrpc/rpc_scan.h: Likewise.
46580         * sunrpc/rpc_svcout.c: Likewise.
46581         * sunrpc/rpc_tblout.c: Likewise.
46582         * sunrpc/rpc_util.c: Likewise.
46583         * sunrpc/rpc_util.h: Likewise.
46584         * sunrpc/rpcinfo.c: Likewise.
46585         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
46586         * sunrpc/rpcsvc/key_prot.x: Likewise.
46587         * sunrpc/rpcsvc/klm_prot.x: Likewise.
46588         * sunrpc/rpcsvc/mount.x: Likewise.
46589         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
46590         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
46591         * sunrpc/rpcsvc/rex.x: Likewise.
46592         * sunrpc/rpcsvc/rstat.x: Likewise.
46593         * sunrpc/rpcsvc/rusers.x: Likewise.
46594         * sunrpc/rpcsvc/sm_inter.x: Likewise.
46595         * sunrpc/rpcsvc/spray.x: Likewise.
46596         * sunrpc/rpcsvc/yppasswd.x: Likewise.
46597         * sunrpc/rtime.c: Likewise.
46598         * sunrpc/svc.c: Likewise.
46599         * sunrpc/svc_auth.c: Likewise.
46600         * sunrpc/svc_authux.c: Likewise.
46601         * sunrpc/svc_raw.c: Likewise.
46602         * sunrpc/svc_run.c: Likewise.
46603         * sunrpc/svc_simple.c: Likewise.
46604         * sunrpc/svc_tcp.c: Likewise.
46605         * sunrpc/svc_udp.c: Likewise.
46606         * sunrpc/svc_unix.c: Likewise.
46607         * sunrpc/svcauth_des.c: Likewise.
46608         * sunrpc/xcrypt.c: Likewise.
46609         * sunrpc/xdr.c: Likewise.
46610         * sunrpc/xdr_array.c: Likewise.
46611         * sunrpc/xdr_float.c: Likewise.
46612         * sunrpc/xdr_mem.c: Likewise.
46613         * sunrpc/xdr_rec.c: Likewise.
46614         * sunrpc/xdr_ref.c: Likewise.
46615         * sunrpc/xdr_sizeof.c: Likewise.
46616         * sunrpc/xdr_stdio.c: Likewise.
46617
46618         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
46619         handling.
46620
46621 2010-08-19  Andreas Schwab  <schwab@redhat.com>
46622
46623         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
46624
46625 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
46626
46627         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
46628         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
46629         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
46630         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
46631         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
46632         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
46633         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
46634         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
46635         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
46636         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
46637         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
46638         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
46639         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
46640         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
46641
46642 2010-07-26  Anton Blanchard  <anton@samba.org>
46643
46644         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
46645         * malloc/arena.c (heap_trim): Likewise.
46646
46647 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
46648
46649         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
46650         here.  Not...
46651         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
46652         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
46653
46654 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
46655
46656         * sysdeps/i386/elf/Makefile: New file.
46657
46658 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46659
46660         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
46661         from fanotify_init.
46662         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
46663         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46664
46665 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
46666
46667         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
46668         of strncasecmp_l.
46669         * sysdeps/multiarch/strcmp.S: Likewise.
46670
46671 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
46672
46673         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46674         strncase_l-nonascii.
46675         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46676         Add strncase_l-ssse3.
46677         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
46678         * sysdeps/x86_64/strcmp.S: Likewise.
46679         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
46680         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
46681         * sysdeps/x86_64/strncase.S: New file.
46682         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
46683         * sysdeps/x86_64/strncase_l.S: New file.
46684         * string/Makefile (strop-tests): Add strncasecmp.
46685         * string/test-strncasecmp.c: New file.
46686
46687         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
46688         warning.
46689
46690         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
46691         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
46692
46693 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46694
46695         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
46696
46697 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
46698
46699         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
46700         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
46701         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
46702
46703 2010-05-01  Alan Modra  <amodra@gmail.com>
46704
46705         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
46706         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
46707         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
46708         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
46709         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
46710         tidying.  Don't tail-call __sigjmp_save for static lib.
46711         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
46712         save location.
46713         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
46714         (CALL_MCOUNT): Add eh info, and nop after bl.
46715         (TAIL_CALL_SYSCALL_ERROR): New macro.
46716         (PSEUDO_RET): Use it.
46717         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
46718         Correct save location of integer regs and cr.
46719         (_dl_profile_resolve): Correct cr save location.  Delete nops
46720         after bl when SHARED.  Reduce cfi size a little by better
46721         placement of cfi directives.
46722         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
46723         make a stack frame.  Instead use parm save area as a temp.
46724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
46725         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
46726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
46727         Don't make a stack frame for parent, use parm save area.
46728         Increase child stack frame to 112 bytes.  Don't save unused reg,
46729         and adjust reg usage.  Set up cfi on error recovery and
46730         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
46731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
46732         (__makecontext): Add dummy nop after jump to exit.
46733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
46734         Use correct parm save area and cr save, reduce stack frame.
46735         Correct cfi for possible PSEUDO_RET frame setup.
46736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
46737         Branch to local label emitted by PSEUDO_RET rather than
46738         __syscall_error.
46739
46740 2010-08-12  Andreas Schwab  <schwab@redhat.com>
46741
46742         [BZ #11904]
46743         * locale/programs/locale.c (print_assignment): New function.
46744         (show_locale_vars): Use it.
46745
46746 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
46747
46748         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
46749         field.
46750         (struct statfs64): Likewise.
46751         (_STATFS_F_FLAGS): Define.
46752         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
46753         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46754         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
46755         (ST_VALID): Define locally.
46756         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
46757         __statvfs_getflags, use the provided value.
46758         * sysdeps/unix/sysv/linux/kernel-features.h: Define
46759         __ASSUME_STATFS_F_FLAGS.
46760
46761         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
46762
46763         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
46764         Add sys/fanotify.h.
46765         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
46766         fanotify_mask for GLIBC_2.13.
46767         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
46768         fanotify_init and fanotify_mark.
46769         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46770         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
46771
46772         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
46773         Add prlimit.
46774         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
46775         prlimit64 for GLIBC_2.13.
46776         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
46777         prlimit64.
46778         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
46779         syscall.
46780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
46781         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46782         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
46783         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
46784         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
46785         add prlimit alias.
46786         * sysdeps/unix/sysv/linux/prlimit.c: New file.
46787
46788         [BZ #11903]
46789         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
46790         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
46791
46792         * nss/Makefile: Add rules to build and run tst-nss-test1.
46793         * shlib-versions: Add entry for libnss_test1.
46794         * nss/nss_test1.c: New file.
46795         * nss/tst-nss-test1.c: New file.
46796
46797         * nss/nsswitch.c (__nss_database_custom): Define new variable.
46798         (__nss_configure_lookup): Set appropriate entry in
46799         __nss_configure_lookup to true.
46800         * nss/nsswitch.h: Define enum with indeces of databases in
46801         databases and __nss_database_custom arrays.  Declare
46802         __nss_database_custom.
46803         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
46804         to avoid using nscd when custom rules are installed.
46805         * nss/getXXbyYY_r.c: Likewise.
46806         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
46807
46808         * nss/nss_files/files-parse.c: Whitespace fixes.
46809
46810 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
46811
46812         [BZ #11883]
46813         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
46814         * posix/fnmatch_loop.c: Likewise.
46815
46816 2010-07-17  Andi Kleen  <ak@linux.intel.com>
46817
46818         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
46819         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
46820         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
46821         * Versions.def [GLIBC_2.13]: Add.
46822
46823 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
46824
46825         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46826         Also fail if tpwd after pwuid call is NULL.
46827
46828 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46829
46830         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
46831         when converting to ms.
46832
46833 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46834
46835         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
46836         EOPNOTSUPP errors with ENOTTY.
46837         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
46838         EOPNOTSUPP errors with ENOTTY.
46839
46840 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
46841
46842         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46843         Add strcasecmp_l-ssse3.
46844         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
46845         strcasecmp.
46846         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
46847         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
46848         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
46849
46850 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
46851
46852         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
46853
46854         * string/Makefile (strop-tests): Add strcasecmp.
46855         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46856         strcasecmp_l-nonascii.
46857         (gen-as-const-headers): Add locale-defines.sym.
46858         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
46859         * sysdeps/x86_64/strcasecmp.S: New file.
46860         * sysdeps/x86_64/strcasecmp_l.S: New file.
46861         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
46862         * sysdeps/x86_64/locale-defines.sym: New file.
46863         * string/test-strcasecmp.c: New file.
46864
46865         * string/test-strcasestr.c: Test both ends of the range of characters.
46866         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
46867
46868 2010-07-29  Roland McGrath  <roland@redhat.com>
46869
46870         [BZ #11856]
46871         * manual/locale.texi (Yes-or-No Questions): Fix example code.
46872
46873 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
46874
46875         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
46876         for ld.so.
46877
46878 2010-07-27  Andreas Schwab  <schwab@redhat.com>
46879
46880         * manual/memory.texi (Malloc Tunable Parameters): Document
46881         M_PERTURB.
46882
46883 2010-07-26  Roland McGrath  <roland@redhat.com>
46884
46885         [BZ #11840]
46886         * configure.in (-fgnu89-inline check): Set and substitute
46887         gnu89_inline, not libc_cv_gnu89_inline.
46888         * configure: Regenerated.
46889         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
46890
46891 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
46892
46893         * string/test-strnlen.c: New file.
46894         * string/Makefile (strop-tests): Add strnlen.
46895         * string/tester.c (test_strnlen): Add a few more test cases.
46896         * string/tst-strlen.c: Better error reporting.
46897
46898         * sysdeps/x86_64/strnlen.S: New file.
46899
46900 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
46901
46902         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
46903         lower-latency instructions.
46904
46905 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
46906
46907         * string/test-strcasestr.c: New file.
46908         * string/test-strstr.c: New file.
46909         * string/Makefile (strop-tests): Add strstr and strcasestr.
46910         * string/str-two-way.h: Don't undefine MAX.
46911         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
46912
46913 2010-07-21  Andreas Schwab  <schwab@redhat.com>
46914
46915         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46916         strcasestr-nonascii.
46917         (CFLAGS-strcasestr-nonascii.c): Define.
46918         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
46919         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
46920         Remove unused attribute.
46921
46922 2010-07-20  Roland McGrath  <roland@redhat.com>
46923
46924         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
46925         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
46926         ld.so.cache was broken.  With it, there is no way to disable dsocaps
46927         like LD_HWCAP_MASK can disable hwcaps.
46928
46929 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46930
46931         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
46932
46933 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
46934
46935         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
46936         call in strcasestr.
46937         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
46938         __strcasestr_sse42_nonascii.
46939         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
46940         strcasestr-nonascii.c.
46941         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
46942
46943 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
46944
46945         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
46946         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
46947         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
46948         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
46949
46950 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
46951
46952         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
46953         fcntl.
46954
46955 2010-07-06  Andreas Schwab  <schwab@redhat.com>
46956
46957         [BZ #11577]
46958         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
46959         dl_signal_cerror.
46960
46961 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
46962
46963         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
46964         _PC_PIPE_BUF using F_GETPIPE_SZ.
46965
46966 2010-07-05  Roland McGrath  <roland@redhat.com>
46967
46968         * manual/arith.texi (Rounding Functions): Fix rint description
46969         implicit in round description.
46970
46971 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
46972
46973         * elf/Makefile: Fix linking for a few tests to make recent linker
46974         happy.
46975
46976 2010-06-30  Andreas Schwab  <schwab@redhat.com>
46977
46978         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
46979         $(common-objpfx)libc_nonshared.a.
46980
46981 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
46982
46983         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
46984         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
46985         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46986         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46987         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
46988         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
46989         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46990         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
46992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
46993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
46994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
46996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
46998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
46999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
47000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
47001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
47003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
47005         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
47006         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
47007         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
47008         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
47009         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
47010         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
47011         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
47012         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
47013         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
47014         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
47015         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
47016         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
47017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
47018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
47019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
47020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
47021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
47022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
47023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
47024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
47025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
47026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
47027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
47028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
47029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
47030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
47031
47032 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
47033
47034         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
47035         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
47036         * string/memmove.c (memmove): Renamed to ...
47037         (MEMMOVE): ...this.  Default to memmove.
47038         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
47039         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
47040         (END_CHK): Define.
47041         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47042         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
47043         mempcpy-ssse3-back memmove-ssse3-back.
47044         * sysdeps/x86_64/multiarch/bcopy.S: New file .
47045         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
47046         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
47047         * sysdeps/x86_64/multiarch/memcpy.S: New file.
47048         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
47049         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
47050         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
47051         * sysdeps/x86_64/multiarch/memmove.c: New file.
47052         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
47053         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
47054         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
47055         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
47056         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
47057         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
47058         Define.
47059         (index_Fast_Copy_Backward): Define.
47060         (HAS_ARCH_FEATURE): Define.
47061         (HAS_FAST_REP_STRING): Define.
47062         (HAS_FAST_COPY_BACKWARD): Define.
47063
47064 2010-06-21  Andreas Schwab  <schwab@redhat.com>
47065
47066         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47067         Restore proper fallback handling.
47068
47069 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
47070
47071         [BZ #11701]
47072         * posix/group_member.c (__group_member): Correct checking loop.
47073
47074         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
47075         OOM in getpwuid_r correctly.  Return error number when the caller
47076         should return, otherwise -1.
47077         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
47078         call returning > 0 value.
47079         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
47080
47081 2010-06-07  Andreas Schwab  <schwab@redhat.com>
47082
47083         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
47084         libc_nonshared.a from targets in modules-names.
47085
47086 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
47087
47088         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
47089         requires it.
47090
47091 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
47092
47093         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
47094         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
47095         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
47096         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
47097
47098 2010-06-02  Andreas Schwab  <schwab@redhat.com>
47099
47100         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
47101
47102 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
47103
47104         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
47105         and F_GETPIPE_SZ.
47106         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
47107         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
47108         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
47109         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
47110         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
47111         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
47112
47113 2010-06-14  Roland McGrath  <roland@redhat.com>
47114
47115         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
47116
47117 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
47118
47119         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
47120         __REDIRECT followed by __THROW.
47121         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
47122         * posix/getopt.h (getopt): Likewise.
47123
47124 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47125
47126         * hurd/lookup-at.c (__file_name_lookup_at): Accept
47127         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
47128         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
47129         in AT_FLAGS.
47130         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
47131         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
47132
47133 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
47134
47135         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
47136
47137 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
47138
47139         [BZ #11640]
47140         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47141         Properly check family and model.
47142
47143 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
47144
47145         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
47146
47147 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
47148
47149         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
47150
47151 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
47152
47153         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
47154         symbol reference.
47155
47156 2010-05-19  Andreas Schwab  <schwab@redhat.com>
47157
47158         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
47159         symbol reference.
47160
47161 2010-05-21  Andreas Schwab  <schwab@redhat.com>
47162
47163         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
47164         and internal_recvmmsg.
47165         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
47166         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
47167         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
47168         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
47169
47170         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
47171         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
47172         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
47173
47174 2010-05-20  Andreas Schwab  <schwab@redhat.com>
47175
47176         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
47177
47178 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
47179
47180         POWER7 optimizations.
47181         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
47182         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
47183
47184 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
47185
47186         * version.h: Update for 2.13 development version.
47187
47188 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
47189
47190         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
47191         exceptions.  Return 0.
47192
47193 2010-05-07  Roland McGrath  <roland@redhat.com>
47194
47195         * elf/ldconfig.c (main): Add a const.
47196
47197 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
47198
47199         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
47200         (args_options): Add no-idn option.
47201         (ahosts_keys_int): Add idn_flags to ai_flags.
47202         (parse_option): Handle 'i' option to clear idn_flags.
47203
47204         * malloc/malloc.c (_int_free): Possible race in the most recently
47205         added check.  Only act on the data if no current modification
47206         happened.
47207
47208 See ChangeLog.17 for earlier changes.