Rewrite feupdateenv
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2014-06-24  Wilco  <wdijkstr@arm.com>
2
3         [BZ #16918]
4         * sysdeps/arm/feupdateenv.c (feupdateenv):
5         Rewrite to reduce FPSCR accesses and fix return value.
6
7 2014-06-24  Wilco  <wdijkstr@arm.com>
8
9         * sysdeps/arm/fclrexcpt.c (feclearexcept):
10         Optimize to avoid unnecessary FPSCR writes.
11         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
12         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
13         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
14         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
15
16 2014-06-24  Wilco  <wdijkstr@arm.com>
17
18         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
19         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
20         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
21         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
22         Call libc_fetestexcept_vfp.
23         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
24         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
25         __SOFTFP__ ifdef so that they can be built for softfp.
26
27 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28
29         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
30         argument type signed char.
31
32         * Makerules (check-abi): Dump diff of symlist if the test
33         fails.
34
35 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36
37         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
38         using abort.
39
40         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
41         Remove unused variable ST.
42
43 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
44
45         [BZ #16354]
46         [BZ #17061]
47         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
48         small arguments before calling __expm1.
49         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
50         small arguments before calling __expm1f.
51         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
52         small arguments before calling __expm1l.
53         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
54         Likewise.
55         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
56         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
57         spurious underflow for some cosh tests.
58         * math/auto-libm-test-out: Regenerated.
59         * sysdeps/i386/fpu/libm-test-ulps: Update.
60
61         [BZ #17050]
62         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
63         (__ieee754_y1): Set errno if return value overflows.
64         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
65         (__ieee754_y1f): Set errno if return value overflows.
66         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
67         (__ieee754_y1l): Set errno if return value overflows.
68         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
69         (__ieee754_y1l): Set errno if return value overflows.
70         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
71         * math/auto-libm-test-out: Regenerated.
72
73         * math/gen-auto-libm-tests.c: Document use of
74         ignore-zero-inf-sign.
75         (input_flag_type): Add value flag_ignore_zero_inf_sign.
76         (input_flags): Add ignore-zero-inf-sign.
77         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
78         * math/gen-libm-test.pl (generate_testfile): Handle
79         ignore-zero-inf-sign.
80         * math/auto-libm-test-in: Mark some cpow tests with
81         ignore-zero-inf-sign and some with xfail-rounding.
82         * math/auto-libm-test-out: Regenerated.
83         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
84         * sysdeps/i386/fpu/libm-test-ulps: Update.
85         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
86
87         [BZ #16315]
88         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
89         overflowing or underflowing operations take place with sign of
90         result.
91         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
92         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
93         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
94         (__ieee754_pow): Recompute overflowing and underflowing results in
95         original rounding mode.
96         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
97         (__powl_helper): Allow negative argument X and scale negated value
98         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
99         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
100         overflowing or underflowing operations take place with sign of
101         result.
102         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
103         Include <math.h>.
104         * math/auto-libm-test-in: Add more tests of pow.
105         * math/auto-libm-test-out: Regenerated.
106         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
107         (pow_tonearest_test_data): Remove.
108         (pow_test_tonearest): Likewise.
109         (pow_towardzero_test_data): Likewise.
110         (pow_test_towardzero): Likewise.
111         (pow_downward_test_data): Likewise.
112         (pow_test_downward): Likewise.
113         (pow_upward_test_data): Likewise.
114         (pow_test_upward): Likewise.
115         (main): Don't call removed functions.
116         * sysdeps/i386/fpu/libm-test-ulps: Update.
117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
118
119 2014-06-23  Roland McGrath  <roland@hack.frob.com>
120
121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
122         Moved ...
123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
125         Moved ...
126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
128         Moved ...
129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
131         Moved ...
132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
134         File removed.
135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
136         File removed.
137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
138         File removed.
139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
140         File removed.
141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
142         File removed.
143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
144         File removed.
145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
146         File removed.
147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
148         File removed.
149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
150         File removed.
151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
152         File removed.
153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
154         File removed.
155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
156         File removed.
157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
158         Moved ...
159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
161         Moved ...
162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
163         ... here.
164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
165         Moved ...
166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
168         Moved ...
169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
171         Moved ...
172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
174         Moved ...
175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
177         Moved ...
178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
180         Moved ...
181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
183         Moved ...
184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
187         ... here.
188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
189         Moved ...
190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
192         Moved ...
193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
194         ... here.
195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
196         Moved ...
197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
198         ... here.
199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
200         Moved ...
201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
202         ... here.
203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
204         Moved ...
205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
207         Moved ...
208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
212         Moved ...
213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
214         ... here.
215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
216         Moved ...
217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
218         ... here.
219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
220         Moved ...
221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
223         Moved ...
224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
226         Moved ...
227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
229         Moved ...
230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
232         Moved ...
233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
234         ... here.
235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
236         Moved ...
237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
239         Moved ...
240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
242         Moved ...
243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
245         Moved ...
246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
250         Moved ...
251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
253         Moved ...
254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
256         Moved ...
257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
258         ... here.
259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
260         Moved ...
261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
262         ... here.
263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
264         Moved ...
265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
266         ... here.
267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
268         Moved ...
269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
271         Moved ...
272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
274         Moved ...
275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
277         Moved ...
278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
279         ... here.
280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
281         Moved ...
282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
283         ... here.
284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
285         Moved ...
286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
287         ... here.
288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
289         Moved ...
290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
292         Moved ...
293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
294
295 2014-06-23  Will Newton  <will.newton@linaro.org>
296             Wilco  <wdijkstr@arm.com>
297
298         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
299         implementation.  Include get-rounding-mode.h.
300         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
301         [!libc_feholdsetround_noex_ctx]: Define
302         libc_feholdsetround_noex_ctx.
303         [!libc_feholdsetround_noexf_ctx]: Define
304         libc_feholdsetround_noexf_ctx.
305         [!libc_feholdsetround_noexl_ctx]: Define
306         libc_feholdsetround_noexl_ctx.
307         (libc_feholdsetround_ctx): New function.
308         (libc_feresetround_ctx): New function.
309         (libc_feholdsetround_noex_ctx): New function.
310         (libc_feresetround_noex_ctx): New function.
311
312 2014-06-23  Roland McGrath  <roland@hack.frob.com>
313
314         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
315         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
316         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
317         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
318         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
319         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
320
321         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
322         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
323         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
324         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
325         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
326         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
327         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
328         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
329         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
330         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
331         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
332         Moved ...
333         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
334         ... here.
335         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
336         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
337         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
338         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
339         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
340         Moved ...
341         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
342         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
343         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
344         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
345         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
346         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
347         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
348         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
349         Moved ...
350         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
351         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
352         Moved ...
353         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
354         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
355         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
356         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
357         Moved ...
358         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
359         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
360         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
361         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
362         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
363         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
364         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
365         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
366         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
367         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
368         Moved ...
369         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
370         ... here.
371         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
372         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
373         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
374         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
375         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
376         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
377         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
378         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
379         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
380         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
381         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
382         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
383         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
384         Moved ...
385         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
386         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
387         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
388         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
389         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
390         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
391         Moved ...
392         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
393         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
394         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
395         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
396         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
397
398         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
399         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
400         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
401         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
402         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
403         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
404         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
405         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
406         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
407         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
408         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
409         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
410         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
411         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
412         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
413         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
414         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
415         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
416         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
417         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
418         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
419         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
420         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
421         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
422         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
423         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
424         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
425         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
426
427 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
428
429         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
430         (FALLOC_FL_COLLAPSE_RANGE): New macro.
431         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
432         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
433         (IPV6_PMTUDISC_INTERFACE): Likewise.
434         (IPV6_PMTUDISC_OMIT): Likewise.
435
436 2014-06-23  Andreas Schwab  <schwab@suse.de>
437
438         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
439         Remove unused errout label.
440
441 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
442
443         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
444         macro: hardware supports Vector Crypto instructions.
445
446 2014-06-23  Will Newton  <will.newton@linaro.org>
447
448         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
449         rather than __builtin_expect.
450
451         * elf/dl-lookup.c (undefined_msg): Remove variable.
452         (_dl_lookup_symbol_x): Replace undefined_msg with string
453         literal.
454
455         * elf/dl-lookup.c (do_lookup_unique): New function.
456         (do_lookup_x): Move STB_GNU_UNIQUE handling code
457         to a separate function.
458
459 2014-06-23  Andreas Schwab  <schwab@suse.de>
460
461         [BZ #17079]
462         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
463         before reading the next line.
464
465 2014-06-23  Will Newton  <will.newton@linaro.org>
466
467         * test-skeleton.c (signal_handler): Use printf and %m
468         rather than perror.  Use printf rather than fprintf to
469         stderr.  Use puts rather than fputs to stderr.
470         (main): Likewise.
471
472 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
473
474         * nscd/nscd.c (thread_info_t): Remove typedef.
475         (thread_info): Remove variable.
476
477 2014-06-21  Allan McRae  <allan@archlinux.org>
478
479         * NEWS: Mention CVE-2014-4043.
480
481 2014-06-20  Roland McGrath  <roland@hack.frob.com>
482
483         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
484         * nptl/smp.h: ... here.
485
486         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
487
488         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
489         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
490         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
491         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
492
493         * nptl/allocatestack.c: Include <stack-aliasing.h>.
494         * nptl/stack-aliasing.h: New file.
495         * sysdeps/i386/i686/stack-aliasing.h: New file.
496         * sysdeps/i386/i686/nptl/Makefile: File removed.
497         * sysdeps/x86_64/stack-aliasing.h: New file.
498         * sysdeps/x86_64/nptl/Makefile
499         (CFLAGS-pthread_create.c): Variable removed.
500
501         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
502         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
503         old file.
504         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
505         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
506         old file.
507
508 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
509
510         * sysdeps/unix/sysv/linux/arm/kernel-features.h
511         (__ASSUME_SIGFRAME_V2): Remove macro.
512         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
513         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
514         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
515         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
516         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
517         Declare as function.  Remove conditional macro definitions.
518         (__default_rt_sa_restorer): Likewise.
519         (__default_sa_restorer_v1): Remove declaration.
520         (__default_sa_restorer_v2): Likewise.
521         (__default_rt_sa_restorer_v1): Likewise.
522         (__default_rt_sa_restorer_v2): Likewise.
523         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
524         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
525         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
526
527 2014-06-20  Roland McGrath  <roland@hack.frob.com>
528
529         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
530         (libpthread-routines): Add sysdep.
531         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
532         * sysdeps/unix/sysv/linux/sparc/Versions
533         (libpthread: GLIBC_2.3.3): New version set.
534         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
535         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
536         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
537         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
538         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
539         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
540         Moved ...
541         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
542         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
543         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
544         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
545         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
546         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
547         * sysdeps/sparc/nptl/sem_init.c: ... here.
548         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
549         * sysdeps/sparc/nptl/sem_post.c: ... here.
550         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
551         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
552         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
553         * sysdeps/sparc/nptl/sem_wait.c: ... here.
554         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
555         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
556         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
557         (libpthread-routines): Add cpu_relax.
558         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
559         File removed.
560         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
561         (librt: GLIBC_2.3.3): New version set.
562         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
563         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
564         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
565         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
566         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
567         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
568         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
569         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
570         Moved ...
571         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
572         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
573         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
574         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
575         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
576         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
577         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
578         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
579         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
580         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
581         Moved ...
582         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
583         Update #include.
584         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
585         Moved ...
586         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
587         Update #include.
588         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
589         Moved ...
590         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
591         Update #include.
592         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
593         Moved ...
594         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
595         Update #include.
596         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
597         Moved ...
598         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
599         Update #include.
600         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
601         Moved ...
602         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
603         Update #include.
604         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
605         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
606         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
607         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
608         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
609         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
610         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
611         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
612         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
613         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
614         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
615         Moved ...
616         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
617         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
618         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
619         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
620         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
621
622 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
623
624         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
625         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
626         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
627         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
628         * nscd/nscd.c: Likewise.
629         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
630         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
631         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
632         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
633
634         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
635         <kernel-features.h>.
636         (init_mq_netlink): Remove conditional have_sock_cloexec
637         definitions.  Remove code conditional on have_sock_cloexec < 0.
638         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
639         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
640         * sysdeps/unix/sysv/linux/opensock.c: Do not include
641         <kernel-features.h>.
642         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
643         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
644
645 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
646
647         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
648         Add tests for memset_chk and memset.
649
650         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
651         with AVX2_Usable.
652
653 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
654
655         [BZ #16046]
656         * elf/tst-dl-iter-static.c: New file.
657         * elf/Makefile (tests-static): Add tst-dl-iter-static.
658
659         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
660         error.
661
662 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
663
664         * sysdeps/unix/sysv/linux/kernel-features.h
665         (__ASSUME_F_GETOWN_EX): Remove macro.
666         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
667         <kernel-features.h>.
668         (miss_F_GETOWN_EX): Remove variable or macro.
669         (do_fcntl): Do not check miss_F_GETOWN_EX.
670         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
671
672         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
673         Remove macro.
674         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
675         [!__ASSUME_AT_RANDOM]: Remove conditional code.
676         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
677
678         * sysdeps/unix/sysv/linux/kernel-features.h
679         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
680         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
681         [ADJ_OFFSET_SS_READ]: Make code unconditional.
682         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
683
684 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
685
686         [BZ #17075]
687         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
688         Fix calculation of the symbol's value.
689         * sysdeps/arm/tst-armtlsdescloc.c: New file.
690         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
691         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
692         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
693         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
694         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
695         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
696         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
697         (modules-names): Add `tst-armtlsdescmod',
698         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
699         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
700         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
701         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
702         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
703         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
704         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
705         ($(objpfx)tst-armtlsdescloc): New dependency.
706         ($(objpfx)tst-armtlsdescextnow): Likewise.
707         ($(objpfx)tst-armtlsdescextlazy): Likewise.
708         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
709         TLS scheme support.
710         * sysdeps/arm/configure: Regenerate.
711
712 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
713
714         * include/fcntl.h (__atfct_seterrno): Remove prototype.
715         (__atfct_seterrno_2): Likewise.
716         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
717         <kernel-features.h>.
718         (__ASSUME_ATFCTS): Do not undefine and redefine.
719         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
720         (__have_atfcts): Remove conditional definition.
721         (__fxstatat([__NR_fstatat64]: Make code unconditional.
722         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
723         unreachable if [__ASSUME_ATFCTS].
724         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
725         not undefine and redefine.
726         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
727         <kernel-features.h>.
728         (faccessat) [__NR_faccessat]: Make code unconditional.
729         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
730         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
731         <kernel-features.h>.
732         (fchmodat) [__NR_fchmodat]: Make code unconditional.
733         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
734         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
735         <kernel-features.h>.
736         (fchownat) [__NR_fchownat]: Make code unconditional.
737         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
738         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
739         <kernel-features.h>.
740         (futimesat) [__NR_futimesat]: Make code unconditional.
741         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
742         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
743         <kernel-features.h>.
744         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
745         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
746         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
747         <kernel-features.h>.
748         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
749         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
750         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
751         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
752         <kernel-features.h>.
753         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
754         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
755         * sysdeps/unix/sysv/linux/linkat.c: Do not include
756         <kernel-features.h>.
757         (linkat) [__NR_linkat]: Make code unconditional.
758         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
759         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
760         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
761         <kernel-features.h>.
762         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
763         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
764         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
765         <kernel-features.h>.
766         (mkdirat) [__NR_mkdirat]: Make code unconditional.
767         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
768         * sysdeps/unix/sysv/linux/openat.c: Do not include
769         <kernel-features.h>.
770         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
771         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
772         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
773         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
774         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
775         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
776         <kernel-features.h>.
777         (readlinkat) [__NR_readlinkat]: Make code unconditional.
778         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
779         result of INLINE_SYSCALL directly, not via int variable.
780         * sysdeps/unix/sysv/linux/renameat.c: Do not include
781         <kernel-features.h>.
782         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
783         (renameat) [__NR_renameat]: Make code unconditional.
784         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
785         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
786         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
787         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
788         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
789         (__ASSUME_ATFCTS): Do not undefine and redefine.
790         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
791         <kernel-features.h>.
792         (symlinkat) [__NR_symlinkat]: Make code unconditional.
793         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
794         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
795         <kernel-features.h>.
796         (unlinkat) [__NR_unlinkat]: Make code unconditional.
797         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
798         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
799         (__ASSUME_ATFCTS): Do not undefine and redefine.
800         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
801         <kernel-features.h>.
802         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
803         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
804         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
805         <kernel-features.h>.
806         (__xmknodat) [__NR_mknodat]: Make code unconditional.
807         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
808
809 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
810
811         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
812
813 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
814
815         [BZ #17069]
816         * posix/regcomp.c (parse_reg_exp): Deallocate partially
817         constructed tree before returning error.
818         * posix/bug-regexp36.c: Expand test case.
819
820 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
821
822         [BZ #6803]
823         * math/libm-test.inc (scalbln_test_date):
824         Add errno expectations.
825         * math/w_scalblnf.c: New File.
826         Add wrapper which checks for setting errno to ERANGE.
827         Add weak_alias for corresponding scalbln function.
828         * math/w_scalbln.c: Likewise.
829         * math/w_scalblnl.c: Likewise.
830         * math/Makefile (libm-calls): Add w_scalbln.
831         * sysdeps/ieee754/flt-32/s_scalblnf.c:
832         Remove weak_alias for corresponding scalbln function.
833         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
834         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
835         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
836         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
837         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
838         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
839         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
840         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
841         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
842         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
843         Remove long_double_symbol for scalblnl function in libm, libc.
844         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
845         Add wrapper which checks for setting errno to ERANGE.
846         Add long_double_symbol for scalblnl function in libm, libc.
847         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
848         Remove long_double_symbol for scalblnl in libm.
849         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
850         Add wrapper which checks for setting errno to ERANGE.
851         Add long_double_symbol for scalblnl function in libm.
852         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
853         Do not use wrapper because of own implementation.
854
855 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
856
857         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
858         3 bytes for __pad1 for x32.
859         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
860
861 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
862             H.J. Lu  <hongjiu.lu@intel.com>
863
864         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
865         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
866         * sysdeps/x86_64/multiarch/memset.S: Likewise.
867         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
868         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
869
870 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
871
872         [BZ #17069]
873         * posix/regcomp.c (parse_expression): Deallocate partially
874         constructed tree before returning error.
875         * posix/Makefile.c (tests): Add bug-regex36.
876         (generated): Add bug-regex36.mtrace.
877         (tests-special): Add $(objpfx)bug-regex36-mem.out
878         (bug-regex36-ENV): New variable.
879         ($(objpfx)bug-regex36-mem.out): New rule.
880         * posix/bug-regex36.c: New file.
881
882 2014-06-19  Will Newton  <will.newton@linaro.org>
883
884         * malloc/malloc.c (systrim): If extra is zero then return
885         early.
886
887 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
888
889         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
890
891 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
892
893         * sysdeps/aarch64/strchr.S: New file.
894
895 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
896
897         [BZ #17022]
898         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
899         from arguments -2 or below.
900         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
901         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
902
903 2014-06-18  Andreas Schwab  <schwab@suse.de>
904
905         [BZ #17062]
906         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
907         of a bracket expr not to run off the end of the string.
908         * posix/Makefile (tests): Add tst-fnmatch3.
909         * posix/tst-fnmatch3.c: New file.
910
911 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
912
913         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
914         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
915         [$(cross-compiling) = no]: Likewise.
916         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
917         [$(cross-compiling) = no]: Likewise.
918
919 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
920
921         [BZ #17031]
922         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
923         double, adjusted for any remainder from the high double.
924         * math/libm-test.inc (nearbyint): Add tests.
925         (rint): Likewise.
926
927 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
928
929         * nptl/sysdeps/powerpc/Makefile: Moved ...
930         * sysdeps/powerpc/nptl/Makefile: ... here.
931         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
932         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
933         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
934         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
935         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
936         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
937         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
938         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
939         * nptl/sysdeps/powerpc/tls.h: Moved ...
940         * sysdeps/powerpc/nptl/tls.h: ... here.
941
942 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
943
944         [BZ #16681]
945         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
946         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
947         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
948         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
949         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
950         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
951         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
952         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
953         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
954
955 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
956
957         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
958
959 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
960
961         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
962         defined operator.
963
964         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
965         $TIMEOUTFACTOR.
966
967 2014-06-16  Florian Weimer  <fweimer@redhat.com>
968
969         [BZ #17058]
970         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
971         non-executed part of the test.
972
973 2014-06-16  Andreas Schwab  <schwab@suse.de>
974
975         * string/bits/string2.h (strdup, strndup): Update feature guard.
976
977 2014-06-14  David S. Miller  <davem@davemloft.net>
978
979         * sysdeps/sparc/fpu/libm-test-ulps: Update.
980
981 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
982
983         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
984         that was previously under [RESET_PID].
985         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
986
987         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
988         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
989         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
990         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
991         (__libc_vfork): New strong alias.
992         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
993
994 2014-06-14 Andi Kleen  <ak@linux.intel.com>
995
996         * sysdeps/generic/elide.h: New file.
997
998 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
999
1000         * Makefile (installed-headers): Adjust path of pthread.h header.
1001
1002 2014-06-13  Roland McGrath  <roland@hack.frob.com>
1003
1004         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
1005         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
1006         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
1007         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
1008
1009         * nptl/sysdeps/s390/Makefile: Moved ...
1010         * sysdeps/s390/nptl/Makefile: ... here.
1011         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
1012         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
1013         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
1014         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
1015         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
1016         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
1017         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
1018         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
1019         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
1020         * sysdeps/s390/nptl/pthreaddef.h: ... here.
1021         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
1022         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
1023         * nptl/sysdeps/s390/tls.h: Moved ...
1024         * sysdeps/s390/nptl/tls.h: ... here.
1025
1026         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
1027         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
1028
1029 2014-06-13  David S. Miller  <davem@davemloft.net>
1030
1031         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
1032         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
1033         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
1034         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
1035         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
1036         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
1037         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
1038         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
1039         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
1040         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
1041         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1042         Remove RESET_PID cpp guards.
1043         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1044         Remove RESET_PID cpp guards.
1045         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
1046
1047 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
1048
1049         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
1050         __sp to uintptr_t.
1051
1052 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1053
1054         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
1055         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
1056         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
1057         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
1058         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
1059         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
1060         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
1061         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
1062         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
1063         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
1064         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
1065         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
1066         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
1067         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
1068         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
1069         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
1070         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
1071         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
1072         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
1073         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
1074
1075         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
1076         (pthread_rwlock_rdlock): Add elision.
1077         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
1078         (pthread_rwlock_wrlock): Add elision.
1079         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
1080         (pthread_rwlock_trywrlock): Add elision.
1081         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
1082         (pthread_rwlock_tryrdlock): Add elision.
1083         * nptl/pthread_rwlock_unlock.c: Include elide.h.
1084         (pthread_rwlock_tryrdlock): Add elision unlock.
1085         * nptl/sysdeps/pthread/pthread.h:
1086         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
1087         (PTHREAD_RWLOCK_INITIALIZER,
1088         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
1089         Handle new elision field.
1090         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
1091         * sysdeps/arm/nptl/bits/pthreadtypes.h
1092         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1093         * sysdeps/sh/nptl/bits/pthreadtypes.h
1094         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1095         * sysdeps/tile/nptl/bits/pthreadtypes.h
1096         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1097         * sysdeps/a/nptl/bits/pthreadtypes.h
1098         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1099         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
1100         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1101         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
1102         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1103         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
1104         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1105         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
1106         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1107         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
1108         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1109         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
1110         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1111         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
1112         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1113         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
1114         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1115         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
1116         (elision_init): Set try_xbegin to zero when no RTM.
1117         * sysdeps/x86/nptl/bits/pthreadtypes.h
1118         (pthread_rwlock_t): Change __pad1 to __rwelision.
1119         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1120
1121 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1122
1123         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
1124         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
1125         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
1126         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
1127
1128 2014-06-13  Meador Inge  <meadori@codesourcery.com>
1129
1130         [BZ #16996]
1131         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
1132         that the cached result has been set before returning it.
1133
1134 2014-06-12  Roland McGrath  <roland@hack.frob.com>
1135
1136         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
1137         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
1138         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
1139         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
1140         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
1141         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
1142
1143         * nptl/sysdeps/sparc/Makefile: Moved ...
1144         * sysdeps/sparc/nptl/Makefile: ... here.
1145         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
1146         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
1147         * nptl/sysdeps/sparc/tls.h: Moved ...
1148         * sysdeps/sparc/nptl/tls.h: ... here.
1149         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
1150         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
1151         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
1152         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
1153         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
1154         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
1155         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
1156         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
1157         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
1158         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
1159         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
1160         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
1161         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
1162         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
1163         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
1164         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
1165         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
1166         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
1167         Update #include.
1168         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
1169         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
1170         Update #include.
1171         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
1172         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
1173         Update #include.
1174         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
1175         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
1176         Update #include.
1177
1178         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1179
1180         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
1181         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
1182
1183         * sysdeps/pthread/posix-timer.h: Include <list.h>.
1184         (struct list_links): Type removed.
1185         (struct thread_node, struct timer_node): Replace struct list_links
1186         with struct list_head.
1187         (list_unlink_ip): Likewise.
1188         * sysdeps/pthread/timer_routines.c
1189         (timer_free_list, thread_free_list, thread_active_list): Likewise.
1190         (list_append, list_insbefore): Likewise.
1191         (list_init): Function removed.
1192         (thread_init, init_module): Use INIT_LIST_HEAD instead.
1193         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
1194         * sysdeps/pthread/Makefile: ... here, new file.
1195
1196         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
1197         * sysdeps/nptl/Implies: ... here.
1198         * sysdeps/unix/sysv/linux/Implies: Add nptl.
1199         * nptl/sysdeps/pthread/list.h: Moved ...
1200         * include/list.h: ... here.
1201         * nptl/sysdeps/pthread/createthread.c: Moved ...
1202         * nptl/createthread.c: ... here.
1203         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
1204         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
1205         * nptl/pt-longjmp.c: ... here.
1206         * nptl/sysdeps/pthread/Makefile: Moved ...
1207         * sysdeps/nptl/Makefile: ... here.
1208         * nptl/sysdeps/pthread/Subdirs: Moved ...
1209         * sysdeps/nptl/Subdirs: ... here.
1210         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
1211         * sysdeps/nptl/aio_misc.h: ... here.
1212         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
1213         * sysdeps/nptl/bits/libc-lock.h: ... here.
1214         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
1215         * sysdeps/nptl/bits/libc-lockP.h: ... here.
1216         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
1217         * sysdeps/nptl/bits/stdio-lock.h: ... here.
1218         * nptl/sysdeps/pthread/configure: Moved ...
1219         * sysdeps/nptl/configure: ... here.
1220         * nptl/sysdeps/pthread/configure.ac: Moved ...
1221         * sysdeps/nptl/configure.ac: ... here.
1222         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
1223         * sysdeps/nptl/gai_misc.h: ... here.
1224         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
1225         * sysdeps/nptl/librt-cancellation.c: ... here.
1226         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
1227         * sysdeps/nptl/malloc-machine.h: ... here.
1228         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
1229         * sysdeps/nptl/pthread-functions.h: ... here.
1230         * nptl/sysdeps/pthread/pthread.h: Moved ...
1231         * sysdeps/nptl/pthread.h: ... here.
1232         * nptl/sysdeps/pthread/setxid.h: Moved ...
1233         * sysdeps/nptl/setxid.h: ... here.
1234         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
1235         * sysdeps/nptl/sigfillset.c: ... here.
1236         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
1237         * sysdeps/nptl/tcb-offsets.h: ... here.
1238         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
1239         * sysdeps/nptl/tst-mqueue8x.c: ... here.
1240         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
1241         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
1242         * nptl/sysdeps/pthread/allocalim.h: Moved ...
1243         * sysdeps/pthread/allocalim.h: ... here.
1244         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
1245         * sysdeps/pthread/bits/sigthread.h: ... here.
1246         * nptl/sysdeps/pthread/flockfile.c: Moved ...
1247         * sysdeps/pthread/flockfile.c: ... here.
1248         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
1249         * sysdeps/pthread/ftrylockfile.c: ... here.
1250         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
1251         * sysdeps/pthread/funlockfile.c: ... here.
1252         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
1253         * sysdeps/pthread/posix-timer.h: ... here.
1254         * nptl/sysdeps/pthread/timer_create.c: Moved ...
1255         * sysdeps/pthread/timer_create.c: ... here.
1256         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
1257         * sysdeps/pthread/timer_delete.c: ... here.
1258         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
1259         * sysdeps/pthread/timer_getoverr.c: ... here.
1260         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
1261         * sysdeps/pthread/timer_gettime.c: ... here.
1262         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
1263         * sysdeps/pthread/timer_routines.c: ... here.
1264         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
1265         * sysdeps/pthread/timer_settime.c: ... here.
1266         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
1267         * sysdeps/pthread/tst-timer.c: ... here.
1268         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
1269         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
1270
1271         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
1272         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
1273
1274         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
1275         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
1276         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
1277         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
1278         Update #include target.
1279         * nptl/sysdeps/i386/i686/Makefile: Moved ...
1280         * sysdeps/i386/i686/nptl/Makefile: ... here.
1281         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
1282         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
1283         Update #include target.
1284         * nptl/sysdeps/i386/i686/tls.h: Moved ...
1285         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
1286         * nptl/sysdeps/i386/Makefile: Moved ...
1287         * sysdeps/i386/nptl/Makefile: ... here.
1288         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
1289         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
1290         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
1291         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
1292         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
1293         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
1294         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
1295         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
1296         * sysdeps/i386/nptl/pthreaddef.h: ... here.
1297         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
1298         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
1299         * nptl/sysdeps/i386/tls.h: Moved ...
1300         * sysdeps/i386/nptl/tls.h: ... here.
1301
1302         * sysdeps/sh/Makefile [$(subdir) = csu]
1303         (gen-as-const-headers): Add tcb-offsets.sym.
1304         * nptl/sysdeps/sh/Makefile: File removed.
1305         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
1306         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
1307         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
1308         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
1309         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
1310         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
1311         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
1312         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
1313         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
1314         * sysdeps/sh/nptl/pthreaddef.h: ... here.
1315         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
1316         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
1317         * nptl/sysdeps/sh/tls.h: Moved ...
1318         * sysdeps/sh/nptl/tls.h: ... here.
1319         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
1320         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
1321         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
1322         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
1323         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
1324         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
1325         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
1326         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
1327         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
1328         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
1329         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
1330         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
1331         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
1332         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
1333         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
1334         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
1335         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
1336         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
1337         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
1338         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
1339         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
1340         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
1341         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
1342         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
1343         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
1344         Moved ...
1345         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
1346         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
1347         Moved ...
1348         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
1349         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
1350         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
1351         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
1352         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
1353         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
1354         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
1355         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
1356         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
1357         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
1358         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
1359         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
1360         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
1361         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
1362         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
1363         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
1364         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
1365         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
1366         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
1367
1368 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
1369
1370         * posix/spawn_faction_addopen.c: Include string.h.
1371
1372 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1373
1374         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
1375         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
1376         * nptl/sysdeps/x86_64/Makefile: Moved ...
1377         * sysdeps/x86_64/nptl/Makefile: ... here.
1378         * nptl/sysdeps/x86_64/configure: Moved ...
1379         * sysdeps/x86_64/nptl/configure: ... here.
1380         * nptl/sysdeps/x86_64/configure.ac: Moved ...
1381         * sysdeps/x86_64/nptl/configure.ac: ... here.
1382         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
1383         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
1384         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
1385         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
1386         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
1387         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
1388         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
1389         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
1390         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
1391         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
1392         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
1393         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
1394         * nptl/sysdeps/x86_64/tls.h: Moved ...
1395         * sysdeps/x86_64/nptl/tls.h: ... here.
1396         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
1397         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
1398         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
1399         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
1400
1401         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
1402
1403 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1404
1405         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1406
1407 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
1408
1409         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
1410         type.
1411         [POSIX] (off_t): Likewise.
1412         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
1413         [POSIX] (S_ISBLK): Require macro.
1414         [POSIX] (S_ISCHR): Likewise.
1415         [POSIX] (S_ISDIR): Likewise.
1416         [POSIX] (S_ISFIFO): Likewise.
1417         [POSIX] (S_ISREG): Likewise.
1418         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
1419         optional-macro.
1420         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
1421         type.
1422         [POSIX] (time_t): Likewise.
1423         [POSIX] (timer_t): Likewise.
1424
1425 2014-06-11  Florian Weimer  <fweimer@redhat.com>
1426
1427         [BZ #17048]
1428         * posix/spawn_int.h (struct __spawn_action): Make the path string
1429         non-const to support deallocation.
1430         * posix/spawn_faction_addopen.c
1431         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
1432         * posix/spawn_faction_destroy.c
1433         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
1434         path in all spawn_do_open actions.
1435         * posix/tst-spawn.c (do_test): Exercise the copy operation in
1436         posix_spawn_file_actions_addopen.
1437
1438 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
1439
1440         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
1441         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
1442         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
1443         conditional code always true.
1444         (__libc_vfork): New alias.
1445
1446 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1447
1448         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1449         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
1450
1451         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
1452
1453         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1454         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
1455
1456         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1457         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
1458
1459         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1460         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
1461
1462 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1463
1464         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
1465         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
1466         multiarch strcmp for PPC64.
1467         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
1468         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
1469         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
1470         multiarch optimizations.
1471         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1472         (__libc_ifunc_impl_list): Likewise.
1473
1474 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1475
1476         * benchtests/scripts/validate_benchout.py: New script.
1477         * benchtests/Makefile (bench-func): Call it.
1478         * benchtests/scripts/benchout.schema.json: New file.
1479
1480 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
1481
1482         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
1483         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
1484         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
1485         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
1486         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
1487         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
1488         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
1489         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
1490         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
1491         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
1492         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
1493         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
1494         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
1495         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
1496         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
1497         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
1498         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
1499         Moved ...
1500         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
1501         ... here.
1502         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
1503         Moved ...
1504         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
1505         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
1506         Moved ...
1507         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
1508         ... here.
1509         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
1510         Moved ...
1511         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
1512         ... here.
1513         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
1514         Moved ...
1515         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
1516         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
1517         Moved ...
1518         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
1519         ... here.
1520         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
1521         Moved ...
1522         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
1523         ... here.
1524         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
1525         Moved ...
1526         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
1527         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
1528         Moved ...
1529         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
1530         ... here.
1531         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
1532         Moved ...
1533         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
1534         ... here.
1535         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
1536         Moved ...
1537         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
1538         ... here.
1539         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
1540         Moved ...
1541         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
1542         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
1543         Moved ...
1544         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
1545         ... here.
1546         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
1547         Moved ...
1548         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
1549         ... here.
1550         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
1551         Moved ...
1552         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
1553         ... here.
1554         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
1555         Moved ...
1556         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
1557         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
1558         Moved ...
1559         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
1560         ... here.
1561         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
1562         Moved ...
1563         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
1564         ... here.
1565         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
1566         Moved ...
1567         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
1568         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
1569         Moved ...
1570         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
1571         ... here.
1572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
1573         Moved ...
1574         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
1575         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
1576         Moved ...
1577         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
1578         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
1579         Moved ...
1580         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
1581         ... here.
1582         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
1583         Moved ...
1584         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
1585         ... here.
1586         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
1587         Moved ...
1588         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
1589         ... here.
1590         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
1591         Moved ...
1592         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
1593         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
1594         Moved ...
1595         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
1596         ... here.
1597         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
1598         Moved ...
1599         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
1600         ... here.
1601         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
1602         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
1603         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
1604         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
1605         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
1606         Moved ...
1607         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
1608         ... here.
1609         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
1610         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
1611         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
1612         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
1613         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
1614         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
1615         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
1616         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
1617         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
1618         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
1619         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
1620         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
1621         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
1622         Moved ...
1623         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
1624         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
1625         Moved ...
1626         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
1627         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
1628         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
1629         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
1630         Moved ...
1631         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
1632         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
1633         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
1634         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
1635         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
1636         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
1637         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
1638
1639 2014-06-10  Wilco  <wdijkstr@arm.com>
1640
1641         * math/test-fenv-return.c: New file.
1642         * math/Makefile: Add new test test-fenv-return.
1643
1644 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
1645
1646         [BZ #17042]
1647         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
1648         when x - 1 is zero.
1649         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
1650         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1651         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
1652         0.0L for an argument of 1.0L.
1653         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
1654         Likewise.
1655         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
1656         value when x - 1 is zero.
1657         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
1658         * sysdeps/i386/fpu/libm-test-ulps: Update.
1659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1660
1661 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
1662
1663         [BZ #15119]
1664         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
1665
1666 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1667
1668         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
1669         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
1670
1671 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1672
1673         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1674         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
1675
1676         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1677         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
1678
1679         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1680         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
1681
1682         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1683         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
1684
1685         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
1686         if not already defined.
1687         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
1688         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
1689         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
1690         (TLS_INIT_TP): Use it.
1691         (TLS_DEFINE_INIT_TP): New macro.
1692         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
1693
1694 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
1695
1696         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
1697         constant.
1698         [POSIX] (IXANY): Likewise.
1699         [POSIX] (OLCUC): Likewise.
1700         [POSIX || POSIX2008] (CBAUD): Do not allow.
1701         [POSIX || POSIX2008] (DEFECHO): Likewise.
1702         [POSIX || POSIX2008] (ECHOCTL): Likewise.
1703         [POSIX || POSIX2008] (ECHOKE): Likewise.
1704         [POSIX || POSIX2008] (ECHOPRT): Likewise.
1705         [POSIX || POSIX2008] (EXTA): Likewise.
1706         [POSIX || POSIX2008] (EXTB): Likewise.
1707         [POSIX || POSIX2008] (FLUSHO): Likewise.
1708         [POSIX || POSIX2008] (LOBLK): Likewise.
1709         [POSIX || POSIX2008] (PENDIN): Likewise.
1710         [POSIX || POSIX2008] (SWTCH): Likewise.
1711         [POSIX || POSIX2008] (VDISCARD): Likewise.
1712         [POSIX || POSIX2008] (VDSUSP): Likewise.
1713         [POSIX || POSIX2008] (VLNEXT): Likewise.
1714         [POSIX || POSIX2008] (VREPRINT): Likewise.
1715         [POSIX || POSIX2008] (VSTATUS): Likewise.
1716         [POSIX || POSIX2008] (VWERASE): Likewise.
1717         (B*): Change to B[0123456789]*.
1718         * conform/data/time.h-data [POSIX || UNIX98]
1719         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
1720         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
1721         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
1722         [POSIX] (tm_*): Do not allow.
1723
1724 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
1725
1726         * Makefile (install): Don't set LANGUAGE.
1727         * Makefile.in (install): Likewise.
1728         * assert/Makefile (test-assert-ENV): Remove variable.
1729         (test-assert-perr-ENV): Likewise.
1730         * elf/Makefile (neededtest4-ENV): Likewise.
1731         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1732         [$(cross-compiling) = no]: Don't set LANGUAGE.
1733         * io/ftwtest-sh (LANG): Remove variable.
1734         * libio/Makefile (tst-widetext-ENV): Likewise.
1735         * manual/install.texi (Running make install): Don't refer to
1736         environment settings for make install.
1737         * INSTALL: Regenerated.
1738         * nptl/tst-tls6.sh: Don't set LANG.
1739         * posix/globtest.sh (LANG): Remove variable.
1740         * string/Makefile (tester-ENV): Likewise.
1741         (inl-tester-ENV): Likewise.
1742         (noinl-tester-ENV): Likewise.
1743         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1744         [$(cross-compiling) = no]: Don't set LANGUAGE.
1745         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
1746         without explicit environment settings.
1747
1748 2014-06-06  Roland McGrath  <roland@hack.frob.com>
1749
1750         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
1751         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
1752         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
1753         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
1754
1755 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
1756
1757         * crypt/crypt-private.h [DOS]: Add some includes taken from the
1758         other files in the crypt directory.
1759         * crypt/crypt.c: Remove duplicate includes.
1760         * crypt/crypt-entry.c: Likewise.
1761         * crypt/crypt_util.c: Likewise.
1762
1763 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
1764
1765         * Makeconfig (run-program-env): New variable.
1766         (run-program-prefix-before-env): Likewise.
1767         (run-program-prefix-after-env): Likewise.
1768         (run-program-prefix): Define in terms of new variables.
1769         (built-program-cmd-before-env): New variable.
1770         (built-program-cmd-after-env): Likewise.
1771         (built-program-cmd): Define in terms of new variables.
1772         (test-program-prefix-before-env): New variable.
1773         (test-program-prefix-after-env): Likewise.
1774         (test-program-prefix): Define in terms of new variables.
1775         (test-program-cmd-before-env): New variable.
1776         (test-program-cmd-after-env): Likewise.
1777         (test-program-cmd): Define in terms of new variables.
1778         * Rules (make-test-out): Use $(run-program-env).
1779         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
1780         (help): Do not mention environment variables.  Mention
1781         --timeoutfactor option.
1782         (timeoutfactor): New variable.
1783         (blacklist_exports): Remove function.
1784         (exports): Remove variable.
1785         (command): Do not include ${exports}.
1786         * manual/install.texi (Configuring and compiling): Do not mention
1787         test wrappers preserving environment variables.  Mention that last
1788         assignment to a variable must take precedence.
1789         * INSTALL: Regenerated.
1790         * benchtests/Makefile (run-bench): Use $(run-program-env).
1791         * catgets/Makefile ($(objpfx)test1.cat): Use
1792         $(built-program-cmd-before-env), $(run-program-env) and
1793         $(built-program-cmd-after-env).
1794         ($(objpfx)test2.cat): Do not specify environment variables
1795         explicitly.
1796         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
1797         $(run-program-env) and $(built-program-cmd-after-env).
1798         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
1799         $(run-program-env) and $(test-program-cmd-after-env).
1800         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
1801         explicitly.
1802         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
1803         run_program_env and test_program_cmd_after_env arguments.
1804         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
1805         * elf/tst-pathopt.sh: Use run_program_env argument.
1806         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
1807         $(test-wrapper-env) and $(run-program-env).
1808         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
1809         run_program_env arguments.
1810         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
1811         * intl/Makefile ($(objpfx)tst-gettext.out): Use
1812         $(test-program-prefix-before-env), $(run-program-env) and
1813         $(test-program-prefix-after-env).
1814         ($(objpfx)tst-gettext2.out): Likewise.
1815         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
1816         run_program_env and test_program_prefix_after_env arguments.
1817         * intl/tst-gettext2.sh: Likewise.
1818         * intl/tst-gettext4.sh: Do not set environment variables
1819         explicitly.
1820         * intl/tst-gettext6.sh: Likewise.
1821         * intl/tst-translit.sh: Likewise.
1822         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
1823         $(test-program-prefix-before-env), $(run-program-env) and
1824         $(test-program-prefix-after-env).
1825         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
1826         run_program_env and test_program_prefix_after_env arguments.
1827         * math/Makefile (run-regen-ulps): Use $(run-program-env).
1828         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
1829         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
1830         explicitly with each use of ${test_wrapper_env}.
1831         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
1832         $(test-program-prefix-before-env), $(run-program-env) and
1833         $(test-program-prefix-after-env).
1834         * posix/tst-getconf.sh: Do not set environment variables
1835         explicitly.
1836         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
1837         run_program_env and test_program_prefix_after_env arguments.
1838         * stdio-common/tst-printf.sh: Do not set environment variables
1839         explicitly.
1840         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
1841         $(test-program-prefix-before-env), $(run-program-env) and
1842         $(test-program-prefix-after-env).
1843         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
1844         run_program_env and test_program_prefix_after_env arguments.
1845         Split $test calls into $test_pre and $test.
1846         * timezone/Makefile (build-testdata): Use
1847         $(built-program-cmd-before-env), $(run-program-env) and
1848         $(built-program-cmd-after-env).
1849
1850 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1851
1852         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
1853         strlen for non SHARED builds.
1854
1855 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1856
1857         * nptl/allocatestack.c (check_list): Inlined function...
1858         (__reclaim_stacks): ... here.
1859
1860 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1861
1862         [BZ #15698]
1863         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
1864         memory overrun.
1865
1866 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
1867
1868         * Rules (make-test-out): Include
1869         LOCPATH=$(common-objpfx)localedata in default environment.
1870         * debug/Makefile (tst-chk1-ENV): Remove variable.
1871         (tst-chk2-ENV): Likewise.
1872         (tst-chk3-ENV): Likewise.
1873         (tst-chk4-ENV): Likewise.
1874         (tst-chk5-ENV): Likewise.
1875         (tst-chk6-ENV): Likewise.
1876         (tst-lfschk1-ENV): Likewise.
1877         (tst-lfschk2-ENV): Likewise.
1878         (tst-lfschk3-ENV): Likewise.
1879         (tst-lfschk4-ENV): Likewise.
1880         (tst-lfschk5-ENV): Likewise.
1881         (tst-lfschk6-ENV): Likewise.
1882         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
1883         (tst-iconv7-ENV): Likewise.
1884         * intl/Makefile (LOCPATH-ENV): Likewise.
1885         (tst-codeset-ENV): Likewise.
1886         (tst-gettext3-ENV): Likewise.
1887         (tst-gettext5-ENV): Likewise.
1888         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
1889         (tst-fopenloc-ENV): Likewise.
1890         (tst-fgetws-ENV): Remove variable.
1891         (tst-ungetwc1-ENV): Likewise.
1892         (tst-ungetwc2-ENV): Likewise.
1893         (bug-ungetwc2-ENV): Likewise.
1894         (tst-swscanf-ENV): Likewise.
1895         (bug-ftell-ENV): Likewise.
1896         (tst-fgetwc-ENV): Likewise.
1897         (tst-fseek-ENV): Likewise.
1898         (tst-ftell-partial-wide-ENV): Likewise.
1899         (tst-ftell-active-handler-ENV): Likewise.
1900         (tst-ftell-append-ENV): Likewise.
1901         * posix/Makefile (tst-fnmatch-ENV): Likewise.
1902         (tst-regexloc-ENV): Likewise.
1903         (bug-regex1-ENV): Likewise.
1904         (tst-regex-ENV): Likewise.
1905         (tst-regex2-ENV): Likewise.
1906         (bug-regex5-ENV): Likewise.
1907         (bug-regex6-ENV): Likewise.
1908         (bug-regex17-ENV): Likewise.
1909         (bug-regex18-ENV): Likewise.
1910         (bug-regex19-ENV): Likewise.
1911         (bug-regex20-ENV): Likewise.
1912         (bug-regex22-ENV): Likewise.
1913         (bug-regex23-ENV): Likewise.
1914         (bug-regex25-ENV): Likewise.
1915         (bug-regex26-ENV): Likewise.
1916         (bug-regex30-ENV): Likewise.
1917         (bug-regex32-ENV): Likewise.
1918         (bug-regex33-ENV): Likewise.
1919         (bug-regex34-ENV): Likewise.
1920         (bug-regex35-ENV): Likewise.
1921         (tst-rxspencer-ENV): Likewise.
1922         (tst-rxspencer-no-utf8-ENV): Likewise.
1923         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
1924         (tst-sscanf-ENV): Likewise.
1925         (tst-swprintf-ENV): Likewise.
1926         (tst-swscanf-ENV): Likewise.
1927         (test-vfprintf-ENV): Likewise.
1928         (scanf13-ENV): Likewise.
1929         (bug14-ENV): Likewise.
1930         (tst-grouping-ENV): Likewise.
1931         * stdlib/Makefile (tst-strtod-ENV): Likewise.
1932         (tst-strtod3-ENV): Likewise.
1933         (tst-strtod4-ENV): Likewise.
1934         (tst-strtod5-ENV): Likewise.
1935         (testmb2-ENV): Likewise./
1936         * string/Makefile (tst-strxfrm-ENV): Likewise.
1937         (tst-strxfrm2-ENV): Likewise.
1938         (bug-strcoll1-ENV): Likewise.
1939         (test-strcasecmp-ENV): Likewise.
1940         (test-strncasecmp-ENV): Likewise.
1941         * time/Makefile (tst-strptime-ENV): Likewise.
1942         (tst-ftime_l-ENV): Likewise.
1943         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
1944         (tst-mbrtowc-ENV): Likewise.
1945         (tst-wcrtomb-ENV): Likewise.
1946         (tst-mbrtowc2-ENV): Likewise.
1947         (tst-c16c32-1-ENV): Likewise.
1948         (tst-mbsnrtowcs-ENV): Likewise.
1949
1950 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1951
1952         * manual/resource.texi (How to get information about the memory
1953         subsystem?): Fix typo.
1954         Reported by Peon de la Parra Ivan <peon@keba.com>
1955
1956 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
1957
1958         [BZ #16882]
1959         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
1960         (pthread_spin_lock): Branch out of spin loop to proper location.
1961         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
1962         (pthread_spin_lock): Likewise.
1963
1964         * nptl/tst-spin4.c: New test.
1965         * nptl/Makefile (tests): Add tst-spin4.
1966
1967 2014-06-03  Andreas Schwab  <schwab@suse.de>
1968
1969         [BZ #15946]
1970         * resolv/res_send.c (send_dg): Reload file descriptor after
1971         calling reopen.
1972
1973 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
1974
1975         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1976
1977 2014-06-03  Richard Henderson  <rth@redhat.com>
1978
1979         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
1980         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
1981         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
1982         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
1983         in the SAVE_PID block.
1984         (__libc_vfork): New alias.
1985         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
1986
1987         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
1988         child in registers, not on the stack.  Remove RESET_PID conditionals.
1989         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
1990
1991 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1992
1993         * sysdeps/aarch64/libm-test-ulps: Regenerate.
1994
1995 2014-06-03  Wilco  <wdijkstr@arm.com>
1996
1997         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
1998         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
1999         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2000         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
2001         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
2002         Likewise.
2003
2004 2014-06-03  Wilco  <wdijkstr@arm.com>
2005
2006         * sysdeps/aarch64/fpu/math_private.h
2007         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
2008         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
2009         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
2010         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2011         Fix declarations.
2012
2013 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2014
2015         * crypt/crypt-private.h: Include ufc-crypt.h.
2016         (__b64_from_24bit): Declare extern.
2017         * crypt/crypt_util.c(__b64_from_24bit): New function.
2018         (b64t): New static const variable.
2019         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
2020         (b64t): Remove variable.
2021         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
2022         * crypt/sha256-crypt.c: Include crypt-private.h.
2023         (b64t): Remove variable.
2024         (__sha256_crypt_r): Remove b64_from_24bit and replace
2025         with __b64_from_24bit.
2026         * crypt/sha512-crypt.c: Likewise.
2027
2028 2014-06-02  Roland McGrath  <roland@hack.frob.com>
2029
2030         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
2031         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
2032         Label the code __libc_vfork rather than __vfork.
2033         [!NOT_IN_libc] (vfork): Define as weak alias.
2034         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
2035         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
2036         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
2037
2038 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2039
2040         * malloc/malloc.c (malloc_info): Fix format specifier for
2041         n_mmaps.
2042
2043 2014-06-02  Wilco  <wdijkstr@arm.com>
2044
2045         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
2046         FPCR write.
2047
2048 2014-06-02  Wilco  <wdijkstr@arm.com>
2049
2050         [BZ #17009]
2051         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
2052         Rewrite to reduce FPCR/FPSR accesses.
2053
2054 2014-06-01  David S. Miller  <davem@davemloft.net>
2055
2056         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2057
2058 2014-05-31  David S. Miller  <davem@davemloft.net>
2059
2060         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
2061         to occur in round to nearest mode when |x| >= 2.0
2062
2063 2014-05-30  Richard Henderson  <rth@twiddle.net>
2064
2065         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
2066         (PSEUDO_RET_NOERRNO): Remove.
2067         (ret): Don't redefine.
2068         (ret_NOERRNO): Define in terms of ret.
2069         (ret_ERRVAL): Likewise.
2070
2071         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
2072         use of PSEUDO_RET; perform the error check directly.
2073
2074 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
2075
2076         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
2077         with __int128_t.
2078
2079 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2080
2081         * malloc/malloc (malloc_info): Fix formatting.
2082
2083 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2084             Roland McGrath  <roland@hack.frob.com>
2085
2086         * malloc/malloc (malloc_info): Also print mmapped statistics.
2087
2088 2014-05-30  Roland McGrath  <roland@hack.frob.com>
2089
2090         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
2091         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
2092
2093 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
2094
2095         * malloc/malloc.c (malloc_info): Inline mi_arena.
2096
2097 2014-05-29  Richard Henderson  <rth@twiddle.net>
2098
2099         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
2100         Remove comma before expanding ASM_ARGS_##nr.
2101         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
2102         Make _x0 a strict output; make _x8 a strict input; adjust expansion
2103         of ASM_ARGS_##nr.
2104         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
2105         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
2106         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
2107         (ASM_ARGS_1): Add leading comma.
2108
2109         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
2110         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
2111         to __errno_location.
2112         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
2113         Remove the expected plt for __errno_location.
2114
2115         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2116         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
2117         call to __read_tp.
2118
2119         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2120         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
2121         it and break it down.
2122         (DOCARGS_0, DOCARGS_1): Do nothing.
2123         (DOCARGS_2): Update to store into the new stack frame.
2124         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
2125         (UNDOCARGS_1): Update to restore from the new stack frame.
2126         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
2127         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
2128
2129         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2130         (SINGLE_THREAD_P): New parameter for result regno.
2131         (PSEUDO): Update to match; use cbz instead of beq.
2132
2133         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2134         Use ENTRY to define the _nocancel entry point.  Share the syscall
2135         and syscall error check paths with the cancel path.
2136         (PSEUDO_END): New.
2137
2138         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
2139         whitespace; tabs before and after asm mnemonics.
2140
2141 2014-05-29  Eric Wong  <normalperson@yhbt.net>
2142
2143         [BZ #15132]
2144         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2145         Call fstat64 or stat64 internally, depending on arguments passed.
2146         Replace stat buffer argument with file descriptor argument.
2147         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
2148         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
2149         Pass fd to __internal_statvfs instead of calling fstat64.
2150         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
2151         Pass fd to __internal_statvfs64 instead of calling fstat64.
2152         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
2153         Pass -1 to __internal_statvfs instead of calling stat64.
2154         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
2155         Pass -1 to __internal_statvfs64 instead of calling stat64.
2156
2157 2014-05-28  Roland McGrath  <roland@hack.frob.com>
2158
2159         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
2160         that was previously under [RESET_PID].
2161         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
2162
2163         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
2164         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
2165
2166 2014-05-27  Roland McGrath  <roland@hack.frob.com>
2167
2168         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
2169
2170         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
2171         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
2172
2173 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
2174
2175         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
2176
2177 2014-05-27  Andreas Schwab  <schwab@suse.de>
2178
2179         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
2180         TLS_INIT_TP macro.
2181         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2182         * elf/rtld.c (init_tls, dl_main): Likewise.
2183         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
2184         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
2185         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
2186         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
2187         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
2188         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2189         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
2190         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
2191         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
2192         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
2193         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
2194         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
2195         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
2196         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
2197         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
2198         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
2199         * sysdeps/generic/tls.h: Update description.
2200
2201 2014-05-27  Will Newton  <will.newton@linaro.org>
2202
2203         [BZ #16990]
2204         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
2205         and restore r2 rather than just restoring.
2206
2207 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2208
2209         [BZ #16724]
2210         * libio/tst-ftell-append.c: New test case.
2211         * libio/Makefile (tests): Add test case.
2212         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
2213         append mode.
2214         * libio/wfileops.c (do_ftell_wide): Likewise.
2215
2216 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2217
2218         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2219
2220         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
2221         ...
2222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
2223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
2224         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
2225         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
2226         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
2227         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
2228         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
2229         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
2230         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
2231         Moved ...
2232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
2233         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
2234         Moved ...
2235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
2236         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
2237         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
2238         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
2239         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
2240         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
2241         ...
2242         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
2243         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
2244         Moved ...
2245         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
2246         here.
2247         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
2248         ...
2249         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
2250         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
2251         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
2252
2253         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
2254         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
2255         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
2256         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
2257
2258         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
2259         merge into ...
2260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
2261         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
2262         ...
2263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
2264         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
2265         ...
2266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
2267         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2268         Moved ...
2269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
2270         here.
2271         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2272         Moved ...
2273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
2274         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2275         Moved ...
2276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
2277
2278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
2279         conditional [RESET_PID].
2280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
2281         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
2282         removed.
2283         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
2284         removed.
2285
2286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
2287         <tcb-offsets.h>.
2288         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2289         (__libc_vfork): New strong alias.
2290         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
2291         removed.
2292         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
2293         Removed.
2294
2295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
2296         <tcb-offsets.h>.
2297         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
2298         (__libc_vfork): New strong alias.
2299         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
2300         removed.
2301         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
2302         removed.
2303
2304 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
2305
2306         * malloc/malloc.c (mi_arena): New function.
2307         (malloc_info): Remove nested function mi_arena. Call non-nosted
2308         function mi_arena.
2309
2310 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2311
2312         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
2313         by insrwi.
2314         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2315         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2316         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
2317         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
2318         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
2319         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
2320         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
2321
2322 2014-05-26  Andreas Schwab  <schwab@suse.de>
2323
2324         [BZ #16984]
2325         * locale/programs/repertoire.c (repertoire_read): Add slash
2326         between I18NPATH element and file name.
2327         * locale/programs/locfile.c (locfile_read): Likewise.
2328
2329 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2330
2331         * nptl/pthread_mutexattr_settype.c
2332         (__pthread_mutexattr_settype):
2333         Disable lock elision for PTHREAD_MUTEX_NORMAL.
2334
2335 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2336
2337         * nptl/tst-mutex5 (do_test):
2338         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
2339
2340 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2341
2342         * benchtests/README: Document 'init' directive.
2343         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
2344         BENCH_INIT.
2345         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
2346         (parse_file): Recognize 'init' directive.
2347
2348 2014-05-26  Kyle McMartin  <kyle@redhat.com>
2349
2350         [BZ #16796]
2351         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
2352         alignment of struct pthread.
2353
2354 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2355
2356         [BZ #16878]
2357         * nscd/netgroupcache.c (addgetnetgrentX): Look for
2358         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2359         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
2360         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2361
2362 2014-05-25  Richard Henderson  <rth@twiddle.net>
2363
2364         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2365         (SINGLE_THREAD_P_PIC): Remove.
2366         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
2367         (SINGLE_THREAD_P_PIC): Remove.
2368
2369         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
2370         branch to syscall error ...
2371         (PSEUDO): ... here.
2372         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
2373         from __local_syscall_error to .Lsyscall_error.
2374         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
2375         (SYSCALL_ERROR): Update label name.
2376
2377         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2378         Do not use DOARGS/UNDOARGS.
2379         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
2380         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
2381         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
2382         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
2383         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
2384
2385         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
2386         block comment.
2387
2388         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
2389         define if !NOT_IN_libc.
2390         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
2391         define with non-default symbol versions.
2392
2393 2014-05-23  Richard Henderson  <rth@twiddle.net>
2394
2395         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
2396         (vfork, __vfork): Define via compat_symbol.
2397
2398         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
2399         [!HAVE_IFUNC] (vfork_compat): Remove.
2400         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
2401
2402 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2403
2404         [BZ #16978]
2405         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
2406         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
2407         variable.
2408
2409 2014-05-23  Richard Henderson  <rth@twiddle.net>
2410
2411         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
2412         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
2413         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
2414         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
2415
2416         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
2417         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
2418         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
2419         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
2420         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
2421         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
2422         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
2423         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
2424         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
2425         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
2426         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
2427         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
2428         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
2429         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
2430         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
2431         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
2432         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
2433         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
2434         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
2435         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
2436         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
2437         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
2438         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
2439         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
2440         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
2441         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
2442         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
2443         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
2444         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
2445         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
2446         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
2447         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
2448         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
2449         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
2450         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
2451         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
2452         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
2453         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
2454         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
2455         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
2456         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
2457         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
2458         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
2459         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
2460         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
2461         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
2462         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
2463         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
2464         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
2465         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
2466         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
2467         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
2468         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
2469         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
2470         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
2471         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
2472
2473         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
2474         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
2475         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
2476         before exiting on error.
2477         (__libc_vfork): New strong alias.
2478         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
2479         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
2480
2481         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
2482         that was previously under [RESET_PID].
2483         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
2484
2485         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
2486
2487 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2488
2489         [BZ #16977]
2490         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
2491         value when x - 1 is zero.
2492         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
2493         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
2494         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
2495         0.0L for an argument of 1.0L.
2496         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
2497         Likewise.
2498         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
2499         value when x - 1 is zero.
2500         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
2501         * sysdeps/i386/fpu/libm-test-ulps: Update.
2502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2503
2504 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
2505
2506         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
2507         alphasort and versionsort.
2508
2509 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2510
2511         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
2512         macro.
2513         [copysignf]: Likewise.
2514
2515 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2516
2517         * crypt/md5-crypt.c: Fix formatting.
2518
2519 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2520
2521         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
2522         (b64_from_24bit): New function.
2523
2524 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2525
2526         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
2527         libc_hidden_builtin_def to ifunc.
2528         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
2529         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
2530
2531 2014-05-21  Roland McGrath  <roland@hack.frob.com>
2532
2533         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
2534         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
2535
2536 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
2537
2538         * nscd/Depend (linuxthreads): Remove.
2539         (nptl): Add.
2540         * resolv/Depend (linuxthreads): Remove.
2541         * rt/Depend (linuxthreads): Remove.
2542
2543         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
2544         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
2545         $(common-objpfx)elf/.
2546         (link-libc-before-gnulib): Likewise.
2547         (elfobjdir): Remove variable.
2548         * Makefile (install): Use $(elf-objpfx) instead of
2549         $(common-objpfx)elf/.
2550         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
2551         $(elfobjdir)/.
2552         (link-libc-deps): Likewise.
2553         ($(common-objpfx)libc.so): Likewise.
2554         ($(common-objpfx)linkobj/libc.so): Likewise.
2555         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
2556         instead of $(common-objpfx)elf/.
2557         (symbolic-link-list): Likewise.
2558         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2559         [$(cross-compiling) = no]: Likewise.
2560         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
2561         $(elfobjdir)/.
2562         (static-gnulib-arch): Likewise.
2563         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2564         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
2565         $(common-objpfx)elf/.
2566
2567 2014-05-21  Richard Henderson  <rth@redhat.com>
2568
2569         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2570         (SINGLE_THREAD_P): Use the correct width load.  Fold
2571         into the ldr offset.
2572
2573         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
2574         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
2575
2576 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
2577
2578         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
2579         (libgcc_s_resume): Use __attribute_used__.
2580         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
2581         Likewise.
2582
2583 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2584
2585         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
2586         optimization when used with float constants.
2587
2588         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2589
2590 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
2591
2592         [BZ #16915]
2593         * locale/nl_langinfo_l.c: Make direct reference to every
2594         _nl_current_CATEGORY symbol.
2595         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
2596         (tests-static): Add tst-langinfo-static.
2597         (tests-special): Add tst-langinfo-static.out.
2598         ($(objpfx)tst-langinfo.out): Redirect output.
2599         ($(objpfx)tst-langinfo-static.out): New.
2600         * localedata/tst-langinfo.sh: Send output to stdout.
2601         * localedata/tst-langinfo-static.c: New file.
2602
2603         [BZ #16965]
2604         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
2605         when the shift amount is modulo the limb size.
2606
2607 2014-05-20  Richard Henderson  <rth@redhat.com>
2608
2609         [BZ #16967]
2610         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
2611         Change type of sa_flags from unsigned int to int.
2612
2613         [BZ #16966]
2614         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
2615
2616         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
2617
2618 2014-05-20  Will Newton  <will.newton@linaro.org>
2619
2620         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2621         Test the return value of the system call in the nocancel case.
2622
2623 2014-05-20  Will Newton  <will.newton@linaro.org>
2624             Yvan Roux  <yvan.roux@linaro.org>
2625
2626         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
2627         #include of asm/ptrace.h.
2628         (PTRACE_GET_THREAD_AREA): Remove #undef.
2629         (PTRACE_GETHBPREGS): Likewise.
2630         (PTRACE_SETHBPREGS): Likewise.
2631         (struct user_regs_struct): New structure.
2632         (struct user_fpsimd_struct): New structure.
2633         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
2634         #include of asm/ptrace.h and second #include of sys/user.h.
2635         (PTRACE_GET_THREAD_AREA): Remove #undef.
2636         (PTRACE_GETHBPREGS): Likewise.
2637         (PTRACE_SETHBPREGS): Likewise.
2638         (ELF_NGREG): Use new struct user_regs_struct.
2639         (elf_fpregset_t): Use new struct user_fpsimd_struct.
2640
2641 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2642
2643         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
2644         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
2645
2646 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2647
2648         [BZ #16958]
2649         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
2650         membar to avoid block loads/stores to overlap previous stores.
2651
2652 2014-05-17  Richard Henderson  <rth@redhat.com>
2653
2654         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
2655         Create the __##syscall_name##_nocancel entry point.
2656         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
2657         Remove; let the sysdep-cancel.h code create it.
2658
2659 2014-05-17  David S. Miller  <davem@davemloft.net>
2660
2661         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
2662         Protect with __USE_GNU.
2663         (TIOCSET_TEMPT): Likewise.
2664         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
2665         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
2666         these are already provided in bits/ioctl-types.h
2667
2668 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2669
2670         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
2671         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
2672
2673         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
2674         Use wait4 regardless of [__NR_waitpid].
2675
2676 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2677
2678         PR libgcc/60166
2679         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
2680         (_FP_NANSIGN_Q): Set the quiet bit.
2681
2682 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
2683
2684         * benchtests/Makefile
2685         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
2686         not $(common-objpfx)math/libm.so.
2687         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
2688         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
2689         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
2690         $(common-objpfx)dlfcn/libdl.so.
2691         ($(objpfx)tst-audit8): Depend on $(libm), not
2692         $(common-objpfx)math/libm.so.
2693         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
2694         not $(common-objpfx)dlfcn/libdl.so.
2695         * math/Makefile
2696         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2697         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
2698         [$(build-shared) = yes].
2699         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
2700         $(common-objpfx)nptl/libpthread.so.
2701         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
2702         $(common-objpfx)math/libm.so$(libm.so-version) or
2703         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
2704         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
2705         $(common-objpfx)dlfcn/libdl.so.
2706         * setjmp/Makefile (link-libm): Remove variable.
2707         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
2708         * stdio-common/Makefile (link-libm): Remove variable.
2709         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
2710         * stdlib/Makefile (link-libm): Remove variable.
2711         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
2712         ($(objpfx)tst-strtod-round): Likewise.
2713         ($(objpfx)tst-tininess): Likewise.
2714         ($(objpfx)tst-strtod-underflow): Likewise.
2715         ($(objpfx)tst-strtod6): Likewise.
2716         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
2717         $(libdl), not $(common-objpfx)nptl/libpthread.so and
2718         $(common-objpfx)dlfcn/libdl.so.
2719
2720 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2721
2722         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
2723         BSD terminal modes definitions.
2724
2725 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2726
2727         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
2728         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
2729
2730         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
2731         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
2732         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
2733         Don't do #include_next.
2734         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
2735         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
2736         Don't do #include_next.
2737         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
2738         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
2739         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
2740         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
2741
2742 2014-05-16  Allan McRae  <allan@archlinux.org>
2743
2744         * po/sv.po: Update Swedish translation from translation project.
2745
2746         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
2747         in sed expression.
2748
2749 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
2750
2751         [BZ #16917]
2752         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
2753         errno if the TIOCGPTN ioctl fails with an error different than
2754         EINVAL.
2755         * login/tst-ptsname.c: New file.
2756         * login/Makefile (tests): Add tst-ptsname.
2757
2758         [BZ #16943]
2759         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
2760         and prlimit64.
2761
2762 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2763
2764         [BZ #16849]
2765         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
2766         herrno to return EAI_AGAIN.
2767
2768 2014-05-14  Roland McGrath  <roland@hack.frob.com>
2769
2770         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
2771         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
2772         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
2773         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
2774         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
2775         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
2776         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
2777         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
2778         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
2779         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
2780         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
2781         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
2782         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
2783         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
2784         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
2785         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
2786         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
2787         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
2788         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
2789         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
2790         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
2791         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
2792         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
2793         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
2794         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
2795         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
2796         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
2797         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
2798         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
2799         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
2800         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
2801         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
2802         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
2803         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
2804         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2805         Moved ...
2806         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
2807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
2808         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
2809         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
2810         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
2811         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
2812         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
2813         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
2814         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
2815         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
2816         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
2817         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
2818         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
2819         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
2820         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
2821         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
2822         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
2823         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
2824         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
2825         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
2826         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
2827         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
2828         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
2829         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
2830         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
2831         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
2832         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
2833         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2834         Moved ...
2835         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
2836         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
2837         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
2838         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
2839         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
2840         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
2841         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
2842         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
2843         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
2844         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
2845         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
2846         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
2847         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
2848         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
2849         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
2850         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
2851         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
2852         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
2853         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
2854         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2855         Moved ...
2856         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
2857         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
2858         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
2859
2860         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
2861         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
2862         (libpthread-sysdep_routines): Add elision-related stuff here instead.
2863         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
2864         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
2865         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
2866         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
2867         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
2868         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
2869         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
2870         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
2871         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
2872         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
2873         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
2874         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
2875         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
2876         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
2877         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
2878         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
2879         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
2880         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
2881         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
2882         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
2883         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
2884         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
2885         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
2886         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
2887         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
2888         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
2889         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
2890         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
2891
2892         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
2893         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
2894
2895         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
2896         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
2897         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
2898         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
2899         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
2900         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
2901         Moved ...
2902         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
2903         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
2904         Moved ...
2905         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
2906         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
2907         Moved ...
2908         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
2909         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
2910         Moved ...
2911         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
2912         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
2913         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
2914         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
2915         Moved ...
2916         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
2917         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
2918         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
2919         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
2920         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
2921         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
2922         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
2923         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
2924         Moved ...
2925         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
2926         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2927         Moved ...
2928         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2929         ... here.
2930         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
2931         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
2932         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
2933         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
2934         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2935         Moved ...
2936         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2937         ... here.
2938         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
2939         Moved ...
2940         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
2941         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
2942         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
2943         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
2944         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
2945         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2946         Moved ...
2947         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
2948         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2949         Moved ...
2950         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
2951         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
2952         Moved ...
2953         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
2954         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2955         Moved ...
2956         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
2957         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
2958         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
2959         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2960         Moved ...
2961         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
2962         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
2963         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
2964         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
2965         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
2966         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
2967         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
2968         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2969         Moved ...
2970         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
2971         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2972         Moved ...
2973         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2974         ... here.
2975         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
2976         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
2977         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
2978         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
2979         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2980         Moved ...
2981         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2982         ... here.
2983         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
2984         Moved ...
2985         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
2986         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
2987         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
2988         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
2989         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
2990         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
2991         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
2992         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
2993         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
2994         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
2995         Moved ...
2996         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
2997         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
2998         Moved ...
2999         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
3000         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
3001         Moved ...
3002         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
3003         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
3004         Moved ...
3005         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
3006         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
3007         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
3008         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
3009         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
3010         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
3011         Moved ...
3012         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
3013         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
3014         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
3015         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
3016         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
3017         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
3018         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
3019         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
3020         Moved ...
3021         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
3022         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3023         Moved ...
3024         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3025         ... here.
3026         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
3027         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
3028         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
3029         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
3030         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3031         Moved ...
3032         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3033         ... here.
3034         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
3035         Moved ...
3036         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
3037         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
3038         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
3039         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
3040         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
3041         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
3042         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
3043         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
3044         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
3045         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
3046         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
3047
3048         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
3049         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
3050
3051         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
3052         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
3053
3054         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
3055         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
3056         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
3057         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
3058         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
3059         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
3060         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
3061         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
3062         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
3063         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
3064         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
3065         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
3066         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
3067         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
3068         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
3069         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
3070         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
3071         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3072         Moved ...
3073         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
3074         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
3075         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
3076         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3077         Moved ...
3078         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
3079         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
3080         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
3081         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
3082         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
3083         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
3084         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
3085         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3086         Moved ...
3087         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
3088         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3089         Moved ...
3090         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
3091         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
3092         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
3093         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
3094         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
3095         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
3096         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
3097         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
3098         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
3099         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
3100         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
3101         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
3102         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
3103         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
3104         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
3105         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
3106         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
3107
3108         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
3109         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
3110         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
3111         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
3112         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
3113
3114         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
3115         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
3116         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
3117         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
3118         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
3119         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
3120         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
3121         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
3122         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
3123         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
3124
3125         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
3126         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
3127
3128         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
3129         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
3130         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
3131         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
3132         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
3133         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
3134         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
3135         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
3136         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
3137         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
3138         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
3139         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
3140         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
3141         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
3142         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
3143         Update #include.
3144         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
3145         Likewise.
3146         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
3147         Likewise.
3148         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
3149         Likewise.
3150         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
3151         Likewise.
3152         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
3153         Likewise.
3154         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
3155         Likewise.
3156         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
3157         Likewise.
3158         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
3159         Likewise.
3160         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
3161         Likewise.
3162         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
3163         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
3164         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
3165         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
3166         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
3167         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
3168         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
3169         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
3170         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
3171         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
3172         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
3173         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
3174         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
3175         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
3176         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
3177
3178         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
3179         that was previously under [RESET_PID].
3180         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3181         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
3182         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
3183
3184         * sysdeps/i386/nptl/Implies: New file.
3185         * sysdeps/x86_64/nptl/Implies: New file.
3186         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
3187         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
3188         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
3189         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
3190
3191         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
3192         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3193         (__libc_vfork): New strong alias.
3194         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
3195         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
3196
3197         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
3198         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3199         (__libc_vfork): New strong alias.
3200         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
3201         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
3202
3203         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
3204         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3205         (__libc_vfork): New strong alias.
3206         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
3207         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
3208         * nptl/pt-vfork.c: New file.
3209         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
3210         (libpthread: GLIBC_2.20): New version set (empty).
3211
3212 2014-05-14  Will Newton  <will.newton@linaro.org>
3213
3214         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
3215         rather than #if.
3216
3217 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3218
3219         [BZ #16564]
3220         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
3221         arguments with exponent 65 or above.
3222         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
3223         arguments 0x1p113L or above.
3224         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
3225         to arguments 0x1p107L or above.
3226         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
3227         positive arguments with exponent 65 or above.
3228         * math/auto-libm-test-in: Add more tests of log1p.
3229         * math/auto-libm-test-out: Regenerated.
3230
3231         [BZ #16928]
3232         * math/s_cacos.c (__cacos): Ensure zero real part of result from
3233         non-finite arguments is +0.
3234         * math/s_cacosf.c (__cacosf): Likewise.
3235         * math/s_cacosl.c (__cacosl): Likewise.
3236         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
3237         * sysdeps/i386/fpu/libm-test-ulps: Update.
3238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3239
3240         [BZ #16927]
3241         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
3242         value.
3243         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
3244         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
3245         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
3246         for explicit high bit of mantissa when testing for argument equal
3247         to 1.
3248         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
3249         * sysdeps/i386/fpu/libm-test-ulps: Update.
3250         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3251
3252         [BZ #16516]
3253         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
3254         (__erf): Scale by 16 instead of 8 in potentially underflowing
3255         case.  Ensure exception if result actually underflows.
3256         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
3257         (__erff): Scale by 16 instead of 8 in potentially underflowing
3258         case.  Ensure exception if result actually underflows.
3259         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
3260         (efx8): Remove variable.
3261         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3262         case.  Ensure exception if result actually underflows.
3263         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
3264         (efx8): Remove variable.
3265         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3266         case.  Ensure exception if result actually underflows.
3267         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
3268         (efx8): Remove variable.
3269         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3270         case.  Ensure exception if result actually underflows.
3271         * math/auto-libm-test-in: Add more tests of erf.
3272         * math/auto-libm-test-out: Regenerated.
3273
3274 2014-05-14  Andreas Schwab  <schwab@suse.de>
3275
3276         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
3277         Remove code conditionalized on USE___THREAD.
3278
3279         * config.h.in (HAVE_PT_CHOWN): Define as 0.
3280         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
3281         not definedness.
3282
3283 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3284
3285         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
3286         Define unconditionally.
3287         (__ASSUME_O_CLOEXEC): Likewise.
3288         (__ASSUME_SOCK_CLOEXEC): Likewise.
3289         (__ASSUME_IN_NONBLOCK): Likewise.
3290         (__ASSUME_PIPE2): Likewise.
3291         (__ASSUME_EVENTFD2): Likewise.
3292         (__ASSUME_SIGNALFD4): Likewise.
3293         (__ASSUME_DUP3): Likewise.
3294         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
3295         (__ASSUME_DUP3): Do not define.
3296         (__ASSUME_EVENTFD2): Likewise.
3297         (__ASSUME_IN_NONBLOCK): Likewise.
3298         (__ASSUME_O_CLOEXEC): Likewise.
3299         (__ASSUME_PIPE2): Likewise.
3300         (__ASSUME_SIGNALFD4): Likewise.
3301         (__ASSUME_SOCK_CLOEXEC): Likewise.
3302         (__ASSUME_UTIMES): Undefine.
3303         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3304         (__ASSUME_UTIMES): Do not define.
3305         (__ASSUME_O_CLOEXEC): Likewise.
3306         (__ASSUME_SOCK_CLOEXEC): Likewise.
3307         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
3308         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
3309         0x020621].
3310         (__ASSUME_PIPE2): Likewise.
3311         (__ASSUME_EVENTFD2): Likewise.
3312         (__ASSUME_SIGNALFD4): Likewise.
3313         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
3314         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
3315         Do not define.
3316         (__ASSUME_EVENTFD2): Likewise.
3317         (__ASSUME_SIGNALFD4): Likewise.
3318         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3319         (__ASSUME_32BITUIDS): Likewise.
3320         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3321         (__ASSUME_IPC64): Likewise.
3322         (__ASSUME_ST_INO_64_BIT): Likewise.
3323         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
3324         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
3325         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3326         (__ASSUME_UTIMES): Do not define.
3327         (__ASSUME_PSELECT): Likewise.
3328         (__ASSUME_PPOLL): Likewise.
3329         (__ASSUME_O_CLOEXEC): Likewise.
3330         (__ASSUME_SOCK_CLOEXEC): Likewise.
3331         (__ASSUME_IN_NONBLOCK): Likewise.
3332         (__ASSUME_PIPE2): Likewise.
3333         (__ASSUME_EVENTFD2): Likewise.
3334         (__ASSUME_SIGNALFD4): Likewise.
3335         (__ASSUME_DUP3): Likewise.
3336         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3337         (__ASSUME_UTIMES): Likewise.
3338         (__ASSUME_O_CLOEXEC): Likewise.
3339         (__ASSUME_SOCK_CLOEXEC): Likewise.
3340         (__ASSUME_IN_NONBLOCK): Likewise.
3341         (__ASSUME_PIPE2): Likewise.
3342         (__ASSUME_EVENTFD2): Likewise.
3343         (__ASSUME_SIGNALFD4): Likewise.
3344         (__ASSUME_DUP3): Likewise.
3345         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3346         (__ASSUME_UTIMES): Likewise.
3347         (__ASSUME_O_CLOEXEC): Likewise.
3348         (__ASSUME_SOCK_CLOEXEC): Likewise.
3349         (__ASSUME_IN_NONBLOCK): Likewise.
3350         (__ASSUME_PIPE2): Likewise.
3351         (__ASSUME_EVENTFD2): Likewise.
3352         (__ASSUME_SIGNALFD4): Likewise.
3353         (__ASSUME_DUP3): Likewise.
3354         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
3355         Likewise.
3356         (__ASSUME_UTIMES): Likewise.
3357         (__ASSUME_EVENTFD2): Likewise.
3358         (__ASSUME_SIGNALFD4): Likewise.
3359         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3360         (__ASSUME_O_CLOEXEC): Likewise.
3361         (__ASSUME_SOCK_CLOEXEC): Likewise.
3362         (__ASSUME_IN_NONBLOCK): Likewise.
3363         (__ASSUME_PIPE2): Likewise.
3364         (__ASSUME_EVENTFD2): Likewise.
3365         (__ASSUME_SIGNALFD4): Likewise.
3366         (__ASSUME_DUP3): Likewise.
3367         (__ASSUME_UTIMES): Undefine.
3368
3369         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
3370         feclearexcept.  Remove symbol versioning code.
3371         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
3372         symbol versioning code.
3373         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
3374         symbol versioning code.
3375         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
3376         feupdateenv.  Remove symbol versioning code.
3377         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
3378         fegetexceptflag.  Remove symbol versioning code.
3379         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
3380         fesetexceptflag.  Remove symbol versioning code.
3381         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
3382         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
3383         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
3384         (__posix_fadvise64_l32): Remove prototype.
3385         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
3386         code.
3387
3388 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3389
3390         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
3391         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
3392         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
3393         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
3394
3395 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
3396
3397         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
3398         current working directory
3399
3400 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3401
3402         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
3403         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
3404         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
3405         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
3406         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
3407         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
3408         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
3409         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
3410         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
3411         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
3412         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
3413         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
3414         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
3415         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
3416         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
3417         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
3418         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
3419         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
3420         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
3421         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
3422         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
3423         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
3424         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
3425         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
3426         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
3427         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
3428         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
3429         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
3430         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
3431         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
3432         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
3433         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
3434         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
3435         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
3436         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
3437         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
3438         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
3439         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
3440         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
3441         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
3442         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
3443         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
3444
3445         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
3446         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
3447
3448         * sysdeps/unix/sysv/linux/arm/Makefile
3449         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
3450         Add rt-aeabi_unwind_cpp_pr1.
3451         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
3452         Add nptl-aeabi_unwind_cpp_pr1.
3453         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
3454         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
3455         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
3456         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
3457         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
3458         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
3459
3460         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
3461         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
3462         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
3463         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
3464
3465         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
3466         Deconditionalize the code that was previously under [RESET_PID].
3467         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
3468
3469         * sysdeps/generic/exit-thread.h: New file.
3470         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
3471         * include/unistd.h (__exit_thread): Remove declaration.
3472         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
3473         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
3474         * csu/libc-start.c: Include <exit-thread.h>.
3475         (LIBC_START_MAIN): Pass no argument to __exit_thread.
3476         * nptl/pthread_create.c: Include <exit-thread.h>.
3477         (start_thread): Call __exit_thread in place of __exit_thread_inline.
3478         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
3479         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
3480         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
3481         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
3482         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
3483         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
3484         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
3485         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
3486         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
3487         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
3488         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
3489         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
3490         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
3491         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
3492         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
3493         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
3494
3495 2014-05-13  Andreas Schwab  <schwab@suse.de>
3496
3497         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
3498
3499 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
3500
3501         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
3502         (__ASSUME_UTIMES): Do not condition on kernel version.
3503         (__ASSUME_PSELECT): Define unconditionally.
3504         (__ASSUME_PPOLL): Likewise.
3505         (__ASSUME_ATFCTS): Likewise.
3506         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
3507         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
3508         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
3509         (__ASSUME_UTIMENSAT): Define unconditionally.
3510         (__ASSUME_PRIVATE_FUTEX): Likewise.
3511         (__ASSUME_FALLOCATE): Likewise.
3512         (__ASSUME_O_CLOEXEC): Likewise.
3513         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
3514         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
3515         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
3516         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
3517         (__ASSUME_IN_NONBLOCK): Likewise.
3518         (__ASSUME_PIPE2): Likewise.
3519         (__ASSUME_EVENTFD2): Likewise.
3520         (__ASSUME_SIGNALFD4): Likewise.
3521         (__ASSUME_DUP3): Likewise.
3522         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3523         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
3524         (__ASSUME_AT_RANDOM): Likewise.
3525         (__ASSUME_PREADV): Likewise.
3526         (__ASSUME_PWRITEV): Likewise.
3527         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
3528         (__ASSUME_F_GETOWN_EX): Define unconditionally.
3529         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
3530         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3531         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
3532         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3533         (__ASSUME_O_CLOEXEC): Define unconditionally.
3534         (__ASSUME_PSELECT): Do not undefine conditionally.
3535         (__ASSUME_PPOLL): Likewise.
3536         (__ASSUME_ATFCTS): Likewise.
3537         (__ASSUME_SET_ROBUST_LIST): Likewise.
3538         (__ASSUME_UTIMENSAT): Likewise.
3539         (__ASSUME_FDATASYNC): Define unconditionally.
3540         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3541         (__ASSUME_SIGFRAME_V2): Likewise.
3542         )__ASSUME_EVENTFD2): Likewise.
3543         (__ASSUME_SIGNALFD4): Likewise.
3544         (__ASSUME_PSELECT): Do not undefine conditionally.
3545         (__ASSUME_PPOLL): Likewise.
3546         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3547         (__ASSUME_PSELECT): Define unconditionally.
3548         (__ASSUME_PPOLL): Likewise.
3549         (__ASSUME_O_CLOEXEC): Likewise.
3550         (__ASSUME_SOCK_CLOEXEC): Likewise.
3551         (__ASSUME_IN_NONBLOCK): Likewise.
3552         (__ASSUME_PIPE2): Likewise.
3553         (__ASSUME_EVENTFD2): Likewise.
3554         (__ASSUME_SIGNALFD4): Likewise.
3555         (__ASSUME_DUP3): Likewise.
3556         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3557         (__ASSUME_O_CLOEXEC): Likewise.
3558         (__ASSUME_SOCK_CLOEXEC): Likewise.
3559         (__ASSUME_IN_NONBLOCK): Likewise.
3560         (__ASSUME_PIPE2): Likewise.
3561         (__ASSUME_EVENTFD2): Likewise.
3562         (__ASSUME_SIGNALFD4): Likewise.
3563         (__ASSUME_DUP3): Likewise.
3564         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3565         (__ASSUME_EVENTFD2): Likewise.
3566         (__ASSUME_SIGNALFD4): Likewise.
3567         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3568
3569 2014-05-12  Andreas Schwab  <schwab@suse.de>
3570
3571         [BZ #16932]
3572         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
3573         (_nss_nis_gethostbyname4_r): Return error if item length is larger
3574         than maximum RPC packet size.
3575         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
3576         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3577         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
3578         (_nss_nis_getservbyport_r): Likewise.
3579
3580 2014-05-12  Will Newton  <will.newton@linaro.org>
3581
3582         * malloc/Makefile (tests): Add tst-mallopt.
3583         * malloc/tst-mallopt.c: New file.
3584
3585 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3586
3587         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
3588         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
3589
3590 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3591
3592         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
3593         (tst-tlsmod6.so): Likewise.
3594
3595 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3596
3597         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
3598
3599 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
3600
3601         [BZ #16064]
3602         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
3603         and <dl-procinfo.h>.
3604         (__fegetenv): Save SSE state in envp->__eip if supported.
3605         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
3606         envp->__eip if supported.
3607         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
3608         and <dl-procinfo.h>.
3609         (__fesetenv): Always set __eip, __cs_selector, __opcode,
3610         __data_offset and __data_selector in environment to 0.  Set SSE
3611         state if supported.
3612         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
3613         test-fenv-sse.
3614         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
3615         -mfpmath=sse.
3616         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
3617
3618 2014-05-09  Will Newton  <will.newton@linaro.org>
3619
3620         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
3621         and libc_relro_required for ARM.
3622         * sysdeps/arm/preconfigure: Regenerate.
3623
3624 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3625             Stefan Liebler  <stli@linux.vnet.ibm.com>
3626
3627         * config.make.in (enable-lock-elision): New Makefile variable.
3628         * configure.ac: Likewise.
3629         * configure: Regenerate.
3630         * sysdeps/s390/configure.ac:
3631         Add check for gcc transactions support.
3632         * sysdeps/s390/configure: Regenerate.
3633         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
3634         Build elision files if enabled.
3635         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
3636         Add lock elision support for s390.
3637         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
3638         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
3639         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
3640         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
3641         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
3642         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
3643         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
3644         Likewise.
3645         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
3646         Likewise.
3647         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
3648         Likewise.
3649         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
3650         Likewise.
3651         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
3652         (__lll_timedlock_elision, __lll_lock_elision)
3653         (__lll_unlock_elision, __lll_trylock_elision)
3654         (lll_timedlock_elision, lll_lock_elision)
3655         (lll_unlock_elision, lll_trylock_elision): Add.
3656         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3657         (pthread_mutex_t): Add lock elision support for s390.
3658
3659 2014-05-14  Wilco  <wdijkstr@arm.com>
3660
3661         * sysdeps/arm/fclrexcpt.c: Cleanup.
3662         * sysdeps/arm/fedisblxcpt.c: Cleanup.
3663         * sysdeps/arm/feenablxcpt.c: Cleanup.
3664         * sysdeps/arm/fegetenv.c: Cleanup.
3665         * sysdeps/arm/fegetexcept.c: Cleanup.
3666         * sysdeps/arm/fegetround.c: Cleanup.
3667         * sysdeps/arm/feholdexcpt.c: Cleanup.
3668         * sysdeps/arm/fesetenv.c: Cleanup.
3669         * sysdeps/arm/fesetround.c: Cleanup.
3670         * sysdeps/arm/feupdateenv.c: Cleanup.
3671         * sysdeps/arm/fgetexcptflg.c: Cleanup.
3672         * sysdeps/arm/fraiseexcpt.c: Cleanup.
3673         * sysdeps/arm/fsetexcptflg.c: Cleanup.
3674         * sysdeps/arm/ftestexcept.c: Cleanup.
3675         * sysdeps/arm/get-rounding-mode.h: Cleanup.
3676         * sysdeps/arm/setfpucw.c: Cleanup.
3677
3678 2014-05-09  Will Newton  <will.newton@linaro.org>
3679
3680         * sysdeps/arm/armv7/strcmp.S: New file.
3681         * NEWS: Mention addition of ARMv7 optimized strcmp.
3682
3683 2014-05-08  Roland McGrath  <roland@hack.frob.com>
3684
3685         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
3686         look for %.ac rather than %.in.
3687
3688         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
3689         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
3690         * sysdeps/mach/hurd/configure: Regenerated.
3691         * sysdeps/unix/sysv/linux/configure: Regenerated.
3692
3693         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
3694
3695 2014-05-07  Steve Ellcey  <sellcey@mips.com>
3696
3697         [BZ# 16922]
3698         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
3699         (LONG_SUB): Ditto.
3700         (PTR_SUB): Ditto.
3701
3702 2014-05-07  Andreas Schwab  <schwab@suse.de>
3703
3704         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
3705         when skipping over non-matching result from nscd.
3706
3707 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
3708
3709         [BZ #16876]
3710         * nptl/sockperf.c (client): Check socket return value.
3711
3712         [BZ #16877]
3713         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
3714         nscd security class.
3715
3716 2014-05-06  Roland McGrath  <roland@hack.frob.com>
3717
3718         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
3719         * sysdeps/arm/unwind.h: ... here.
3720
3721 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
3722
3723         [BZ# 16916]
3724         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
3725         Define.
3726
3727 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3728
3729         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
3730         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
3731         multiarch strncpy for PPC64.
3732         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
3733         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
3734         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
3735         multiarch optimizations.
3736         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3737         (__libc_ifunc_impl_list): Likewise.
3738         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
3739         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
3740         multiarch stpncpy for PPC64.
3741         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
3742         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
3743
3744 2014-05-06  Andreas Schwab  <schwab@suse.de>
3745
3746         [BZ #16912]
3747         * gmon/mcount.c (_MCOUNT_DECL): Use
3748         atomic_compare_and_exchange_bool_acq instead of
3749         catomic_compare_and_exchange_bool_acq.
3750
3751 2014-05-05  Roland McGrath  <roland@hack.frob.com>
3752
3753         * elf/Makefile (others, install-bin): Remove pldd.
3754         (pldd-modules): Variable removed.
3755         ($(objpfx)pldd): Target removed.
3756         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
3757         (others, install-bin): Append pldd here.
3758         ($(objpfx)pldd): New target.
3759
3760         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
3761         to 0, so the first #if test emitted later doesn't see it undefined.
3762         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
3763         * sysdeps/gnu/errlist.c: Regenerated.
3764
3765 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3766
3767         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3768         [libc_hidden_builtin_def]: Define to empty value.
3769         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
3770         [libc_hidden_builtin_def]: Likewise.
3771         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
3772         [libc_hidden_builtin_def]: Likewise.
3773         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
3774         [libc_hidden_builtin_def]: Likewise.
3775         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
3776         __redirect_memcpy and define ifunc as default hidden symbol.
3777         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
3778         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
3779
3780 2014-05-04  Adam Conrad  <adconrad@0c3.net>
3781
3782         * locale/iso-4217.def: Reintroduce XDR currency.
3783
3784 2014-05-04  Allan McRae  <allan@archlinux.org>
3785
3786         * po/eo.po: Update Esperanto translation from translation project.
3787
3788 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
3789
3790         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
3791         and FEATURE_INDEX_MAX to 1.
3792         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
3793
3794 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3795
3796         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
3797         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
3798         * iconvdata/big5.c (ONE_DIRECTION): Define.
3799         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
3800         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
3801         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
3802         * iconvdata/cp932.c (ONE_DIRECTION): Define.
3803         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
3804         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
3805         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
3806         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
3807         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
3808         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
3809         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
3810         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
3811         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
3812         * iconvdata/gbk.c (ONE_DIRECTION): Define.
3813         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
3814         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
3815         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
3816         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
3817         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
3818         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
3819         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
3820         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
3821         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
3822         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
3823         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
3824         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
3825         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
3826         * iconvdata/iso646.c (ONE_DIRECTION): Define.
3827         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
3828         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
3829         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
3830         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
3831         * iconvdata/johab.c (ONE_DIRECTION): Define.
3832         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
3833         * iconvdata/sjis.c (ONE_DIRECTION): Define.
3834         * iconvdata/t.61.c (ONE_DIRECTION): Define.
3835         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
3836         * iconvdata/tscii.c (ONE_DIRECTION): Define.
3837         * iconvdata/uhc.c (ONE_DIRECTION): Define.
3838         * iconvdata/unicode.c (ONE_DIRECTION): Define.
3839         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
3840         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
3841         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
3842
3843 2014-05-01  Roland McGrath  <roland@hack.frob.com>
3844
3845         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
3846         (_IO_JUMPS_OFFSET): Define to 0.
3847
3848         * nptl/sysdeps/pthread/bits/libc-lock.h
3849         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3850         (__libc_lock_define_initialized_recursive): Always define using
3851         initializer.  Modern compilers treat uninitialized (implicit zero) and
3852         explicit zero initializers the same (i.e. put the datum in bss).
3853
3854 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3855
3856         * nscd/nscd-client.h: Include <string.h>.
3857
3858 2014-05-01  David S. Miller  <davem@davemloft.net>
3859
3860         [BZ #16885]
3861         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
3862         multiple zero bytes exist at the end of a string.
3863         Reported by Aurelien Jarno <aurelien@aurel32.net>
3864
3865         * string/test-strcmp.c (check): Add explicit test for situations where
3866         there are multiple zero bytes after the first.
3867
3868 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3869
3870         [BZ #16890]
3871         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
3872         when compiling wprintf.
3873         * stdio-common/tstdiomisc.c (t3): New function.
3874         (main): Call it.
3875
3876 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3877
3878         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
3879         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
3880         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
3881         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
3882
3883 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3884
3885         * stdlib/longlong.h: Updated from GCC.
3886
3887 2014-05-01  Will Newton  <will.newton@linaro.org>
3888             Bernard Ogden  <bernie.ogden@linaro.org>
3889
3890         * NEWS: Update fixed bug list.
3891
3892         [BZ #15119]
3893         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
3894
3895 2014-04-30  David S. Miller  <davem@davemloft.net>
3896
3897         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
3898         (libc_feholdexcept_setround_sparc_ctx): New function.
3899         (libc_fesetenv_sparc_ctx): Likewise.
3900         (libc_feupdateenv_sparc_ctx): Likewise.
3901         (libc_feholdsetround_sparc_ctx): Likewise.
3902         (libc_feholdexcept_setround_ctx): Define.
3903         (libc_feholdexcept_setroundf_ctx): Likewise.
3904         (libc_feholdexcept_setroundl_ctx): Likewise.
3905         (libc_fesetenv_ctx): Likewise.
3906         (libc_fesetenvf_ctx): Likewise.
3907         (libc_fesetenvl_ctx): Likewise.
3908         (libc_feupdateenv_ctx): Likewise.
3909         (libc_feupdateenvf_ctx): Likewise.
3910         (libc_feupdateenvl_ctx): Likewise.
3911         (libc_feresetround_ctx): Likewise.
3912         (libc_feresetroundf_ctx): Likewise.
3913         (libc_feresetroundl_ctx): Likewise.
3914         (libc_feholdsetround_ctx): Likewise.
3915         (libc_feholdsetroundf_ctx): Likewise.
3916         (libc_feholdsetroundl_ctx): Likewise.
3917
3918         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3919         with __USE_GNU instead of XOPEN cpp guards.
3920
3921         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
3922         0.
3923
3924         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3925         with XOPEN cpp guards.
3926
3927 2014-04-30  Julian Brown  <julian@codesourcery.com>
3928
3929         [BZ #16888]
3930         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
3931         handling.
3932
3933 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
3934
3935         [BZ #9894]
3936         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
3937         Change to 2.6.32.
3938         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
3939         * sysdeps/unix/sysv/linux/configure: Regenerated.
3940         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
3941         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
3942         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
3943         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
3944         * README: Update reference to required Linux kernel version.
3945         * manual/install.texi (Linux): Update reference to required Linux
3946         kernel headers version.
3947         * INSTALL: Regenerated.
3948
3949         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
3950         header inclusion.
3951         [POSIX] (limits.h): Likewise.
3952         [POSIX] (math.h): Likewise.
3953         [POSIX] (sys/wait.h): Likewise.
3954         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
3955         function.
3956         [POSIX] (stddef.h): Do not allow header inclusion.
3957
3958 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3959
3960         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
3961
3962 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
3963
3964         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
3965         Return immediately after lll_futex_wake.
3966
3967 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3968
3969         [BZ #16791]
3970         * nscd/nscd-client.h (datahead_init_common): Initialize entire
3971         structure.
3972         (datahead_init_pos): Call datahead_init_common early.
3973         (datahead_init_neg): Likewise.
3974
3975         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
3976         datahead_init_neg): New functions.
3977         * nscd/aicache.c (addhstaiX): Use them.
3978         * nscd/grpcache.c (cache_addgr): Likewise.
3979         * nscd/hstcache.c (cache_addhst): Likewise.
3980         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3981         * nscd/netgroupcache.c (do_notfound): Likewise.
3982         (addgetnetgrentX): Likewise.
3983         (addinnetgrX): Likewise.
3984         * nscd/pwdcache.c (cache_addpw): Likewise.
3985         * nscd/servicescache.c (cache_addserv): Likewise.
3986
3987 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3988             Atsushi Onoe  <atsushi@onoe.org>
3989
3990         [BZ #14308]
3991         [BZ #12994]
3992         [BZ #13651]
3993         * resolv/res_query.c (__libc_res_nsearch): Return if at least
3994         one response is valid.
3995         * resolv/res_send.c (send_dg): Check for validity of other
3996         response if the current response is a referral.
3997
3998 2014-04-29  Steve Ellcey  <sellcey@mips.com>
3999
4000         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
4001
4002 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
4003
4004         [BZ #16823]
4005         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
4006         Always divide by positive zero when computing -Inf result.
4007         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
4008         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
4009
4010 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4011
4012         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
4013         FPSCR if value do not change.
4014         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4015         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
4016         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
4017         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
4018         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
4019         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
4020         function.
4021
4022 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
4023
4024         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
4025         * sysdeps/unix/sysv/linux/hppa: Move directory from
4026         ports/systeps/unix/sysv/linux/hppa.
4027         * README: Update listing for hppa-*-linux-gnu.
4028
4029 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
4030
4031         [BZ #16754]
4032         * manual/stdio.texi (Hook functions): Fix types of stream hook
4033         functions.
4034         [BZ #16854]
4035         * socket/sys/socket.h: Fix typo in comment.
4036
4037 2014-04-28  Wilco  <wdijkstr@arm.com>
4038
4039         * sysdeps/arm/fenv_private.h: New file.
4040         * sysdeps/arm/math_private.h: New file.
4041         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
4042
4043 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
4044
4045         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
4046         with __int128_t.
4047         (La_x86_64_retval): Likewise.
4048
4049 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
4050
4051         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
4052         fpsr if value didn't change.
4053         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
4054         to fpcr if value didn't change.
4055         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
4056         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
4057         fpsr or fpcr if value didn't change.
4058         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
4059         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
4060         fpcr if value didn't change.
4061         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
4062         to fpsr if value didn't change.
4063
4064 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4065
4066         * nptl/tst-sem3.c: Use test-skeleton.c
4067         (main): Rename to do_test.  Use return instead of
4068         exit.
4069         * nptl/tst-sem4.c: Use test-skeleton.c
4070         (main): Rename to do_test.
4071
4072 2014-04-22  David S. Miller  <davem@davemloft.net>
4073
4074         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
4075         (struct sigaction): New struct member __glibc_reserved0, change
4076         type of sa_flags to int.
4077
4078 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
4079
4080         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
4081         (COUNT_LEADING_ZEROS_0): Define for AArch64.
4082
4083 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4084
4085         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
4086         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
4087
4088 2014-04-22  Will Newton  <will.newton@linaro.org>
4089             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
4090
4091         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
4092         (__longjmp): Add longjmp and longjmp_target SystemTap
4093         probes.
4094         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
4095         (__sigsetjmp): Add setjmp SystemTap probe.
4096
4097 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
4098
4099         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
4100         match manual order.
4101
4102 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4103
4104         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
4105
4106         * sysdeps/powerpc/fpu/fenv_private.h
4107         (libc_feholdexcept_setroundl_ctx): Define to
4108         libc_feholdexcept_setround_ppc_ctx.
4109         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
4110         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
4111         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
4112         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
4113
4114 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4115
4116         * sysdeps/aarch64/math-tests.h: New file.
4117
4118 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
4119
4120         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
4121         New.
4122         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4123         Check and set bit_AVX2_Usable.
4124         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
4125         macro.
4126         (bit_AVX2): Likewise.
4127         (index_AVX2_Usable): Likewise.
4128         (CPUID_AVX2): Likewise.
4129         (HAS_AVX2): Likewise.
4130
4131 2014-04-17  Will Newton  <will.newton@linaro.org>
4132
4133         * manual/setjmp.texi (System V contexts): Add note that
4134         calling setcontext on a context created by a call to a
4135         signal handler is undefined.  Update text to note that
4136         setcontext from a signal handler is possible but not
4137         recommended.
4138
4139         [BZ #16629]
4140         * stdlib/tst-setcontext.c: Include signal.h.
4141         (main): Check that the signal stack before and
4142         after swapcontext is the same.
4143
4144         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
4145         Re-implement to restore registers in user code and avoid
4146         rt_sigreturn system call.
4147
4148 2014-04-17  Wilco  <wdijkstr@arm.com>
4149
4150         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
4151         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
4152         * math/test-fenv.c: Skip exception trap tests on targets which only
4153         support non-stop mode.
4154
4155 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4156             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4157
4158         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
4159         (libc_feholdsetround_aarch64_ctx)
4160         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
4161         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
4162         (libc_feresetround_ctx, libc_feresetroundf_ctx)
4163         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
4164         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
4165         (libc_feresetround_noexl_ctx): Define.
4166
4167 2014-04-16  Richard Henderson  <rth@redhat.com>
4168
4169         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
4170
4171         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
4172         unwind tables.
4173
4174         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
4175         const from the non-libc, non-ldso copy.
4176
4177         * sysdeps/alpha/libm-test-ulps: Regenerate.
4178
4179 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
4180             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4181
4182         * sysdeps/aarch64/fpu/math_private.h: New file.
4183
4184 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4185
4186         * sysdeps/aarch64/libm-test-ulps: Regenerate.
4187
4188 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
4189
4190         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
4191         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
4192         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
4193         Intel MPX bound registers before _dl_profile_fixup.
4194         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
4195         registers after _dl_profile_fixup.  Save and restore bound
4196         registers bnd0/bnd1 when calling _dl_call_pltexit.
4197         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
4198         (LR_BND_OFFSET): Likewise.
4199         (LRV_BND0_OFFSET): Likewise.
4200         (LRV_BND1_OFFSET): Likewise.
4201
4202 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4203
4204         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
4205         to...
4206         * sysdeps/mach/hurd/i386/tls.h: ... here.
4207         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
4208         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
4209         fields.
4210
4211 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4212
4213         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
4214
4215 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4216
4217         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4218
4219 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4220
4221         [BZ #14770]
4222         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
4223         * sysdeps/s390/configure: Regenerate.
4224
4225         [BZ #16824]
4226         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
4227         Set round-to-nearest internally to reduce error accumulation.
4228
4229 2014-04-16  Alan Modra  <amodra@gmail.com>
4230
4231         [BZ #16740]
4232         [BZ #16619]
4233         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
4234         * math/libm-test.inc (frexp_test_data): Add tests.
4235         * NEWS: Update fixed bug list.
4236
4237 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4238
4239         * benchtests/Makefile: Depend on libraries in build directory.
4240         (bench-math): Separate out math tests.
4241         (bench-pthread): Separate out pthread tests.
4242         (bench): Include math and pthread tests.
4243
4244 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
4245
4246         [BZ #16831]
4247         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
4248         _dl_debug_initialize.
4249
4250         * configure.ac: Remove SELinux header check.
4251         * configure: Regenerate.
4252         * nscd/selinux.c (perms): Array of const char* to permission names.
4253         (nscd_request_avc_has_perm): Call security_deny_unknown to find
4254         default policy. Call string_to_security_class and string_to_av_perm to
4255         translate strings. Enforce default policy and call avs_has_perm with
4256         results of translated strings.
4257
4258 2014-04-13  David S. Miller  <davem@davemloft.net>
4259
4260         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4261
4262 2014-04-12  Allan McRae  <allan@archlinux.org>
4263
4264         [BZ #16838]
4265         * manual/string.texi (Collation Functions): Fix qsort argument
4266         order in example.
4267         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4268
4269 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
4270
4271         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
4272         Make the test a no-op if there are no exceptions defined.
4273
4274 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
4275
4276         * elf/Makefile (tests): make tst-dlopen-aout conditional on
4277         enable-hardcoded-path-in-tests
4278
4279 2014-04-11  Will Newton  <will.newton@linaro.org>
4280
4281         * benchtests/Makefile (extra-objs): Add json-lib.o.
4282         (bench-func): Tidy up JSON output.
4283         * benchtests/bench-skeleton.c: Include json-lib.h.
4284         (main): Use JSON library functions to do output of
4285         benchmark results.
4286         * benchtests/bench-timing-type.c (main): Output the
4287         timing type simply, leaving formatting to the user.
4288         * benchtests/json-lib.c: New file.
4289         * benchtests/json-lib.h: Likewise.
4290
4291 2014-04-11  Torvald Riegel  <triegel@redhat.com>
4292
4293         [BZ #15215]
4294         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
4295         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
4296         memory barriers.  Add comments.
4297         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
4298         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
4299         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
4300         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
4301         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
4302         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
4303
4304 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
4305
4306         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
4307         * sysdeps/s390/s390-64/configure.ac: ... this ...
4308         * sysdeps/s390/configure.ac: ... to here.
4309         * sysdeps/s390/s390-32/configure: Delete file.
4310         * sysdeps/s390/s390-64/configure: Delete file.
4311         * sysdeps/s390/configure: Regenerate.
4312
4313 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
4314
4315         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
4316
4317 2014-04-11  Will Newton  <will.newton@linaro.org>
4318
4319         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
4320         to zero if it is not defined elsewhere.  (mtrim): Test
4321         the value of MALLOC_DEBUG with #if rather than #ifdef.
4322
4323 2014-04-10 Torvald Riegel  <triegel@redhat.com>
4324
4325         * benchtests/pthread_once-inputs: New file.
4326         * benchtests/pthread_once-source.c: New file.
4327         * benchtests/README: Update documentation.
4328
4329 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
4330             H.J. Lu  <hongjiu.lu@intel.com>
4331
4332         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
4333         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
4334         * sysdeps/x86_64/configure: Regenerated.
4335         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
4336         macro.
4337         (REGISTER_SAVE_RAX): Likewise.
4338         (REGISTER_SAVE_RCX): Likewise.
4339         (REGISTER_SAVE_RDX): Likewise.
4340         (REGISTER_SAVE_RSI): Likewise.
4341         (REGISTER_SAVE_RDI): Likewise.
4342         (REGISTER_SAVE_R8): Likewise.
4343         (REGISTER_SAVE_R9): Likewise.
4344         (REGISTER_SAVE_BND0): Likewise.
4345         (REGISTER_SAVE_BND1): Likewise.
4346         (REGISTER_SAVE_BND2): Likewise.
4347         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
4348         bound registers when calling _dl_fixup.
4349
4350 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4351
4352         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
4353         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
4354         of its definition.
4355         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
4356         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
4357         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
4358         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
4359         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
4360         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
4361         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
4362
4363 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
4364
4365         [BZ #15514]
4366         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
4367         pathconf(_PC_NAME_MAX).
4368
4369 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4370
4371         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
4372         Remove macro usage.
4373         (__PTHREAD_SPINS): Move definition to ...
4374         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4375         (__PTHREAD_SPINS): ... here.
4376         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4377         (__PTHREAD_SPIN): Likewise.
4378         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
4379         (__PTHREAD_SPIN): Likewise.
4380         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
4381         (__PTHREAD_SPIN): Likewise.
4382         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
4383         (__PTHREAD_SPIN): Likewise.
4384         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
4385         (__PTHREAD_SPIN): Likewise.
4386         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
4387         (__PTHREAD_SPIN): Likewise.
4388         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
4389         (__PTHREAD_SPIN): Likewise.
4390         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
4391         (__PTHREAD_SPIN): Likewise.
4392         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
4393         (__PTHREAD_SPIN): Likewise.
4394         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
4395         (__PTHREAD_SPIN): Likewise.
4396         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
4397         (__PTHREAD_SPIN): Likewise.
4398         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
4399         (__PTHREAD_SPIN): Likewise.
4400
4401         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
4402         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
4403         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
4404         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
4405         imply folder.
4406         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
4407         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4408         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
4409         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
4410         correct imply path.
4411         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
4412         strlen symbol for non multi-arch builds.
4413         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
4414         missing hidden_def and weak_alias.
4415
4416 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
4417
4418         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
4419
4420 2014-04-07  Will Newton  <will.newton@linaro.org>
4421
4422         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
4423         and contents.  [!_LIBC] Remove #ifndef and contents.
4424         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
4425         * string/memccpy.c (__memccpy): Use ANSI prototype.
4426         * string/memfrob.c (memfrob): Likewise.
4427         * string/strcoll.c (STRCOLL): Likewise.
4428         * string/strlen.c (strlen): Likewise.
4429         * string/strtok.c (STRTOK): Likewise.
4430         * string/strcat.c: Remove unused #include of memcopy.h.
4431         (strcat): Use ANSI prototype.
4432         * string/strchr.c: Remove unused #include of memcopy.h.
4433         (strchr): Use ANSI prototype.
4434         * string/strcmp.c: Remove unused #include of memcopy.h.
4435         (strcmp): Use ANSI prototype.
4436         * string/strcpy.c: Remove unused #include of memcopy.h.
4437         (strcpy): Use ANSI prototype.
4438
4439 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4440
4441         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
4442         * config.make.in (config-extra-cppflags): Set it from
4443         libc_extra_cppflags.
4444         * configure.ac (libc_extra_cflags): Make it accumulate over
4445         configure fragments.
4446         (libc_extra_cppflags): New flag.
4447         * configure. Regenerate.
4448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
4449         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
4450         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
4451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
4452
4453         [BZ #16815]
4454         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
4455         result for FE_DOWNWARD rounding mode.
4456         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
4457         Likewise.
4458         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4459
4460 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
4461
4462         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
4463         in function argument name.
4464
4465 2014-04-03  David Svoboda  <svoboda@cert.org>
4466
4467         [BZ #5666]
4468         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
4469         explicitly.
4470
4471 2014-04-03  Roland McGrath  <roland@hack.frob.com>
4472
4473         * elf/dl-unmap-segments.h: New file.
4474         * sysdeps/generic/ldsodefs.h
4475         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
4476         * elf/dl-close.c: Include <dl-unmap-segments.h>.
4477         * elf/dl-fptr.c: Likewise.
4478         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
4479         * sysdeps/aarch64/tlsdesc.c: Likewise.
4480         * sysdeps/arm/tlsdesc.c: Likewise.
4481         * sysdeps/i386/tlsdesc.c: Likewise.
4482         * sysdeps/tile/dl-runtime.c: Likewise.
4483         * sysdeps/x86_64/tlsdesc.c: Likewise.
4484         * elf/dl-load.h: New file.
4485         * elf/dl-load.c: Include it.
4486         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
4487         Macros moved to dl-load.h.
4488         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
4489         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
4490         Use _dl_unmap_segments in place of __munmap.
4491         Break out segment-mapping loop into ...
4492         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
4493
4494 2014-04-03  Will Newton  <will.newton@linaro.org>
4495
4496         * elf/dl-lookup.c (do_lookup_x): Remove comment
4497         referring to nested function and move variable
4498         declarations down to before first use.
4499
4500 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
4501
4502         [BZ #16799]
4503         [BZ #16800]
4504         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
4505         with 0 numerator.
4506         * math/s_catanf.c (__catanf): Likewise.
4507         * math/s_catanh.c (__catanh): Likewise.
4508         * math/s_catanhf.c (__catanhf): Likewise.
4509         * math/s_catanhl.c (__catanhl): Likewise.
4510         * math/s_catanl.c (__catanl): Likewise.
4511         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
4512         by positive zero when computing -Inf result.
4513         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
4514         (catanh_test): Likewise.
4515         * sysdeps/i386/fpu/libm-test-ulps: Update.
4516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4517
4518         [BZ #16789]
4519         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
4520         instead of using underflowing value in computing result.
4521         * math/s_clog10.c (__clog10): Likewise.
4522         * math/s_clog10f.c (__clog10f): Likewise.
4523         * math/s_clog10l.c (__clog10l): Likewise.
4524         * math/s_clogf.c (__clogf): Likewise.
4525         * math/s_clogl.c (__clogl): Likewise.
4526         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
4527         (clog10_test): Likewise.
4528         * sysdeps/i386/fpu/libm-test-ulps: Update.
4529         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4530
4531 2014-04-02  Alan Modra  <amodra@gmail.com>
4532
4533         [BZ #16739]
4534         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
4535         output when value is near a power of two.  Use int64_t for lx and
4536         remove casts.  Use decimal rather than hex exponent constants.
4537         Don't use long double multiplication when double will suffice.
4538         * math/libm-test.inc (nextafter_test_data): Add tests.
4539         * NEWS: Add 16739 and 16786 to bug list.
4540
4541         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
4542
4543         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
4544
4545 2014-04-01  Will Newton  <will.newton@linaro.org>
4546
4547         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
4548         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
4549
4550 2014-04-01  Florian Weimer  <fweimer@redhat.com>
4551
4552         [BZ #13347]
4553         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
4554         * nptl/tst-setuid2.c: New file.
4555         * nptl/Makefile (xtests): Add tst-setuid2.
4556
4557 2014-04-01  Alan Modra  <amodra@gmail.com>
4558
4559         [BZ #16786]
4560         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
4561
4562 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4563
4564         [BZ #6803]
4565         [BZ #6804]
4566         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
4567         set errno as appropriate.
4568         * math/w_scalbf.c (__scalbf): Likewise.
4569         * math/w_scalbl.c (__scalbl): Likewise.
4570         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
4571         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
4572         * math/libm-test.inc (scalb_test_data): Add errno expectations.
4573         Add more NaN tests.
4574
4575         [BZ #16349]
4576         * math/w_atan2.c: Include <errno.h>.
4577         (__atan2): Set errno for result underflowing to zero.
4578         * math/w_atan2f.c: Include <errno.h>.
4579         (__atan2f): Set errno for result underflowing to zero.
4580         * math/w_atan2l.c: Include <errno.h>.
4581         (__atan2l): Set errno for result underflowing to zero.
4582         * math/auto-libm-test-in: Don't allow missing errno for some atan2
4583         tests.
4584         * math/auto-libm-test-out: Regenerated.
4585
4586 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4587
4588         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
4589         Encode instruction correctly in little endian.
4590         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
4591         Likewise.
4592         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
4593         Likewise.
4594         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
4595         Likewise.
4596         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
4597         Likewise.
4598
4599 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4600
4601         [BZ #9894]
4602         * sysdeps/unix/sysv/linux/kernel-features.h
4603         [__sparc__ && !__arch64__ && !__sparc_v9__]
4604         (__ASSUME_SET_ROBUST_LIST): Do not define.
4605         [__sparc__ && !__arch64__ && !__sparc_v9__]
4606         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4607         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
4608         Likewise.
4609         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4610         (__ASSUME_FUTEX_LOCK_PI): Undefine.
4611         (__ASSUME_REQUEUE_PI): Likewise.
4612         (__ASSUME_SET_ROBUST_LIST): Likewise.
4613         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4614         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
4615         Undefine.
4616         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4617         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
4618         Likewise.
4619         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
4620         Likewise.
4621         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
4622         Likewise.
4623         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4624         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
4625         Undefine.
4626         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
4627         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
4628         Likewise.
4629
4630         [BZ #16648]
4631         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4632         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
4633         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
4634
4635 2014-03-31  Will Newton  <will.newton@linaro.org>
4636
4637         * benchtests/Makefile (bench): Add ffs and ffsll to list
4638         of tests.
4639         * benchtests/ffs-inputs: New file.
4640         * benchtests/ffsll-inputs: Likewise.
4641
4642 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
4643
4644         [BZ #16770]
4645         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
4646         too large before casting to int.
4647         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
4648         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
4649         * math/libm-test.inc (scalb_test_data): Add more tests.
4650
4651 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4652
4653         * benchtests/Makefile (DETAILED_OPT): New make option.
4654         (bench-func): Run benchmark program with -d if DETAILED_OPT is
4655         set.
4656         * benchtests/bench-skeleton.c: Include stdbool.h.
4657         (main): Store and print timings per input.
4658         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
4659         member to each argument value.
4660         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
4661         (_print_arg_data): Initialize per-input timing to 0.
4662
4663         * benchtests/Makefile (timing-type): New binary.
4664         (bench-clean): Also remove bench-timing-type.
4665         (bench): New target for timing-type.
4666         (bench-func): Print output in JSON format.
4667         * benchtests/bench-skeleton.c (main): Print output in JSON
4668         format.
4669         * benchtests/bench-timing-type.c: New file.
4670         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
4671         (TIMING_PRINT_STATS): Remove.
4672         * benchtests/scripts/bench.py (_print_arg_data): Store variant
4673         name separately.
4674
4675         * benchtests/bench-modf.c: Remove.
4676         * benchtests/modf-inputs: New inputs file.
4677
4678 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
4679
4680         [BZ #16362]
4681         * math/s_clog10.c (M_PI_LOG10E): New macro.
4682         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
4683         imaginary parts are 0.
4684         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
4685         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
4686         imaginary parts are 0.
4687         * math/s_clog10l.c (M_PI_LOG10El): New macro.
4688         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
4689         imaginary parts are 0.
4690         * math/libm-test.inc (clog10_test_data): Update expected results
4691         for when real and imaginary parts are 0.
4692
4693 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
4694
4695         * elf/dl-load.c: Finish conversion of __builtin_expect into
4696         __glibc_{un}likely.
4697
4698 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
4699
4700         [BZ #16348]
4701         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
4702         1+x for argument with exponent below -67.
4703         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
4704         Likewise.
4705         * math/auto-libm-test-in: Add more tests of exp.
4706         * math/auto-libm-test-out: Regenerated.
4707
4708 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4709
4710         [BZ #16759]
4711         * inet/getnetgrent_r.c (get_nonempty_val): New function.
4712         (nscd_getnetgrent): Use it.
4713
4714         [BZ #16760]
4715         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
4716         of stpcpy.
4717
4718 2014-03-27  Andi Kleen  <ak@linux.intel.com>
4719
4720         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
4721         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4722         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4723         (lll_robust_unlock): Remove out of line section. Use cfi
4724         intrinsics.
4725         (LLL_STUB_UNWIND_INFO*): Remove.
4726         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
4727         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4728         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4729         (lll_robust_unlock): Remove out of line section. Use cfi
4730         intrinsics.
4731         (LLL_STUB_UNWIND_INFO*): Remove.
4732
4733 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4734
4735         [BZ #16758]
4736         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
4737         blank values.
4738
4739 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4740
4741         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
4742
4743 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
4744
4745         [BZ #16198]
4746         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
4747         fnstenv.
4748         * math/test-fenv-preserve.c: New file.
4749         * math/Makefile (tests): Add test-fenv-preserve.
4750
4751 2014-03-26  Will Newton <will.newton@linaro.org>
4752
4753         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
4754
4755 2014-03-25  Roland McGrath  <roland@hack.frob.com>
4756
4757         * scripts/versionlist.awk: Partition the version sets and emit all
4758         GLIBC_* (sorted) before all others (sorted).
4759
4760 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4761
4762         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
4763         GLIBC_2.2.5 version.
4764
4765 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4766
4767         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
4768         calls.
4769
4770         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
4771         previous change.
4772
4773         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4774
4775 2014-03-25  Andreas Schwab  <schwab@suse.de>
4776
4777         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
4778         label to be used after in6ailist is initialized.
4779
4780 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4781
4782         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4783         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4784
4785 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4786
4787         [BZ #16357]
4788         [BZ #16599]
4789         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
4790         min_plus_half.
4791         (fp_formats): Update initializers.
4792         (init_fp_formats): Initialize new field.
4793         (output_for_one_input_case): Allow underflow for results up to
4794         min_plus_half.
4795         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
4796         * math/auto-libm-test-in: Don't mark some underflows from asin and
4797         atanh as spurious.
4798         * math/auto-libm-test-out: Regenerated.
4799         * sysdeps/i386/fpu/libm-test-ulps: Update.
4800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4801
4802 2014-03-25  Andreas Schwab  <schwab@suse.de>
4803
4804         * libio/Makefile (tst-ftell-partial-wide-ENV)
4805         (tst-ftell-active-handler-ENV): Define.
4806
4807 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
4808
4809         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
4810
4811 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4812
4813         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
4814
4815 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4816
4817         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
4818         * sysdeps/x86_64/fpu/multiarch/e_exp.c
4819         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
4820
4821 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4822
4823         [BZ #16634]
4824         * elf/dl-load.c (open_verify): Add mode parameter.
4825         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
4826         (open_path): Change from boolean 'secure' to complete flag 'mode'
4827         (_dl_map_object): Adjust.
4828         * elf/Makefile (tests): Add tst-dlopen-aout.
4829         * elf/tst-dlopen-aout.c: New test.
4830
4831 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
4832
4833         [BZ #16714]
4834         * sysdeps/unix/sysv/linux/s390/bits/stat.h
4835         (struct stat): Rename member pad0 to __glibc_reserved0.
4836
4837         [BZ #16712]
4838         * sysdeps/s390/s390-32/bits/wordsize.h
4839         (__WORDSIZE32_SIZE_ULONG): New define.
4840         * sysdeps/s390/s390-64/bits/wordsize.h
4841         (__WORDSIZE32_SIZE_ULONG): Likewise.
4842         * sysdeps/generic/stdint.h (SIZE_MAX):
4843         Define as UL if __WORDSIZE32_SIZE_ULONG.
4844
4845         [BZ #16713]
4846         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4847         (__glibc_reserved0): New variable.
4848         (sa_flags): Change type to int.
4849
4850         * posix/Makefile (before-compile): Use += before-compile instead
4851         of a :=.
4852
4853         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4854         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4855
4856 2014-03-20  Andreas Schwab  <schwab@suse.de>
4857
4858         [BZ #16743]
4859         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
4860         non-matching result from nscd.
4861
4862 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4863
4864         * scripts/bench.py: Moved to ...
4865         * benchtests/scripts/bench.py: ... here.
4866         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
4867
4868 2014-03-24  Andreas Schwab  <schwab@suse.de>
4869
4870         [BZ #16002]
4871         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
4872         alloca_account and account alloca use for struct in6ailist.
4873
4874 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4875
4876         [BZ #16284]
4877         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
4878         rounding mode to recompute results that overflow to infinity or
4879         underflow to zero.
4880         * math/auto-libm-test-in: Don't mark tests as expected to fail for
4881         bug 16284.
4882         * math/auto-libm-test-out: Regenerated.
4883         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
4884         (ccosh_test): Likewise.
4885         (csin_test_data): Use plus_oflow.
4886         (csin_test): Use ALL_RM_TEST.
4887         (csinh_test_data): Use plus_oflow.
4888         (csinh_test): Use ALL_RM_TEST.
4889         * sysdeps/i386/fpu/libm-test-ulps: Update.
4890         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4891
4892 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
4893
4894         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
4895         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
4896         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
4897
4898         [BZ #16731]
4899         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
4900         when x - 1 is zero.
4901         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4902         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4903         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4904         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
4905         argument is 1.
4906         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
4907         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
4908         zero.
4909         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
4910         * sysdeps/i386/fpu/libm-test-ulps: Update.
4911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4912
4913 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4914
4915         * scripts/bench.pl: Remove file.
4916         * scripts/bench.py: New benchmark script.
4917         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
4918         * benchtests/README: Mention python dependency.
4919         * scripts/pylintrc: New file.
4920         * scripts/pylint: New file.
4921
4922         * bits/mathdef.h: Use #ifdef instead of #if.
4923         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
4924         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4925         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
4926         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4927         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
4928         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4929
4930 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4931             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4932
4933         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
4934         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
4935         and strpbrk-ppc64 objects.
4936         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4937         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
4938         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
4939         multiarch strpbrk for POWER7.
4940         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
4941         multiarch strpbrk for PPC64.
4942         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
4943         ifunc selector.
4944         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
4945         strpbrk for POWER7.
4946
4947 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4948
4949         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
4950         (atan_test): Likewise.
4951         (atanh_test_data): Use NO_TEST_INLINE for two tests.
4952         (atanh_test): Use ALL_RM_TEST.
4953         (atan2_test_data): Likewise.
4954         (cabs_test): Likewise.
4955         (cacosh_test): Likewise.
4956         (carg_test): Likewise.
4957         (casin_test): Likewise.
4958         (casinh_test): Likewise.
4959         (cbrt_test): Likewise.
4960         (csqrt_test): Likewise.
4961         (erf_test): Likewise.
4962         (erfc_test): Likewise.
4963         (pow10_test): Likewise.
4964         (exp2_test): Likewise.
4965         (hypot_test): Likewise.
4966         (j0_test): Likewise.
4967         (j1_test): Likewise.
4968         (lgamma_test): Likewise.
4969         (gamma_test): Likewise.
4970         (sincos_test): Likewise.
4971         (tanh_test): Likewise.
4972         (y0_test): Likewise.
4973         (y1_test): Likewise.
4974         * sysdeps/i386/fpu/libm-test-ulps: Update.
4975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4976
4977 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4978
4979         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
4980         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
4981         and strcspn-ppc64 objects.
4982         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4983         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
4984         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
4985         multiarch strcspn for POWER7.
4986         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
4987         multiarch strcspn for PPC64.
4988         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
4989         ifunc selector.
4990         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
4991         strcspn for POWER7.
4992
4993 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4994
4995         * math/gen-libm-test.pl (generate_testfile): Expect only function
4996         name as argument to AUTO_TESTS_* and pass results for all rounding
4997         modes to parse_args.
4998         (parse_auto_input): Separate inputs of automatic tests from
4999         outputs before storing in %auto_tests.
5000         * math/libm-test.inc (acos_test_data): Update call to
5001         AUTO_TESTS_f_f.
5002         (acos_test): Use ALL_RM_TEST.
5003         (acos_tonearest_test_data): Remove.
5004         (acos_test_tonearest): Likewise.
5005         (acos_towardzero_test_data): Likewise.
5006         (acos_test_towardzero): Likewise.
5007         (acos_downward_test_data): Likewise.
5008         (acos_test_downward): Likewise.
5009         (acos_upward_test_data): Likewise.
5010         (acos_test_upward): Likewise.
5011         (acosh_test_data): Update call to AUTO_TESTS_f_f.
5012         (asin_test_data): Likewise.
5013         (asin_test): Use ALL_RM_TEST.
5014         (asin_tonearest_test_data): Remove.
5015         (asin_test_tonearest): Likewise.
5016         (asin_towardzero_test_data): Likewise.
5017         (asin_test_towardzero): Likewise.
5018         (asin_downward_test_data): Likewise.
5019         (asin_test_downward): Likewise.
5020         (asin_upward_test_data): Likewise.
5021         (asin_test_upward): Likewise.
5022         (asinh_test_data): Update call to AUTO_TESTS_f_f.
5023         (atan_test_data): Likewise.
5024         (atanh_test_data): Likewise.
5025         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
5026         (cabs_test_data): Update call to AUTO_TESTS_c_f.
5027         (carg_test_data): Likewise.
5028         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
5029         (ccos_test_data): Update call to AUTO_TESTS_c_c.
5030         (ccosh_test_data): Likewise.
5031         (cexp_test_data): Likewise.
5032         (clog_test_data): Likewise.
5033         (clog10_test_data): Likewise.
5034         (cos_test_data): Update call to AUTO_TESTS_f_f.
5035         (cos_test): Use ALL_RM_TEST.
5036         (cos_tonearest_test_data): Remove.
5037         (cos_test_tonearest): Likewise.
5038         (cos_towardzero_test_data): Likewise.
5039         (cos_test_towardzero): Likewise.
5040         (cos_downward_test_data): Likewise.
5041         (cos_test_downward): Likewise.
5042         (cos_upward_test_data): Likewise.
5043         (cos_test_upward): Likewise.
5044         (cosh_test_data): Update call to AUTO_TESTS_f_f.
5045         (cosh_test): Use ALL_RM_TEST.
5046         (cosh_tonearest_test_data): Remove.
5047         (cosh_test_tonearest): Likewise.
5048         (cosh_towardzero_test_data): Likewise.
5049         (cosh_test_towardzero): Likewise.
5050         (cosh_downward_test_data): Likewise.
5051         (cosh_test_downward): Likewise.
5052         (cosh_upward_test_data): Likewise.
5053         (cosh_test_upward): Likewise.
5054         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
5055         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
5056         (ctan_test_data): Likewise.
5057         (ctan_test): Use ALL_RM_TEST.
5058         (ctan_tonearest_test_data): Remove.
5059         (ctan_test_tonearest): Likewise.
5060         (ctan_towardzero_test_data): Likewise.
5061         (ctan_test_towardzero): Likewise.
5062         (ctan_downward_test_data): Likewise.
5063         (ctan_test_downward): Likewise.
5064         (ctan_upward_test_data): Likewise.
5065         (ctan_test_upward): Likewise.
5066         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
5067         (ctanh_test): Use ALL_RM_TEST.
5068         (ctanh_tonearest_test_data): Remove.
5069         (ctanh_test_tonearest): Likewise.
5070         (ctanh_towardzero_test_data): Likewise.
5071         (ctanh_test_towardzero): Likewise.
5072         (ctanh_downward_test_data): Likewise.
5073         (ctanh_test_downward): Likewise.
5074         (ctanh_upward_test_data): Likewise.
5075         (ctanh_test_upward): Likewise.
5076         (erf_test_data): Update call to AUTO_TESTS_f_f.
5077         (erfc_test_data): Likewise.
5078         (exp_test_data): Likewise.
5079         (exp_test): Use ALL_RM_TEST.
5080         (exp_tonearest_test_data): Remove.
5081         (exp_test_tonearest): Likewise.
5082         (exp_towardzero_test_data): Likewise.
5083         (exp_test_towardzero): Likewise.
5084         (exp_downward_test_data): Likewise.
5085         (exp_test_downward): Likewise.
5086         (exp_upward_test_data): Likewise.
5087         (exp_test_upward): Likewise.
5088         (exp10_test_data): Update call to AUTO_TESTS_f_f.
5089         (exp10_test): Use ALL_RM_TEST.
5090         (exp10_tonearest_test_data): Remove.
5091         (exp10_test_tonearest): Likewise.
5092         (exp10_towardzero_test_data): Likewise.
5093         (exp10_test_towardzero): Likewise.
5094         (exp10_downward_test_data): Likewise.
5095         (exp10_test_downward): Likewise.
5096         (exp10_upward_test_data): Likewise.
5097         (exp10_test_upward): Likewise.
5098         (exp2_test_data): Update call to AUTO_TESTS_f_f.
5099         (expm1_test_data): Likewise.
5100         (expm1_test): Use ALL_RM_TEST.
5101         (expm1_tonearest_test_data): Remove.
5102         (expm1_test_tonearest): Likewise.
5103         (expm1_towardzero_test_data): Likewise.
5104         (expm1_test_towardzero): Likewise.
5105         (expm1_downward_test_data): Likewise.
5106         (expm1_test_downward): Likewise.
5107         (expm1_upward_test_data): Likewise.
5108         (expm1_test_upward): Likewise.
5109         (fma_test_data): Update call to AUTO_TESTS_fff_f.
5110         (fma_test): Use ALL_RM_TEST.
5111         (fma_towardzero_test_data): Remove.
5112         (fma_test_towardzero): Likewise.
5113         (fma_downward_test_data): Likewise.
5114         (fma_test_downward): Likewise.
5115         (fma_upward_test_data): Likewise.
5116         (fma_test_upward): Likewise.
5117         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
5118         (j0_test_data): Update call to AUTO_TESTS_f_f.
5119         (j1_test_data): Likewise.
5120         (jn_test_data): Update call to AUTO_TESTS_if_f.
5121         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
5122         (log_test_data): Update call to AUTO_TESTS_f_f.
5123         (log10_test_data): Likewise.
5124         (log1p_test_data): Likewise.
5125         (log2_test_data): Likewise.
5126         (pow_test_data): Update call to AUTO_TESTS_ff_f.
5127         (pow_tonearest_test_data): Likewise.
5128         (sin_test_data): Update call to AUTO_TESTS_f_f.
5129         (sin_test): Use ALL_RM_TEST.
5130         (sin_tonearest_test_data): Remove.
5131         (sin_test_tonearest): Likewise.
5132         (sin_towardzero_test_data): Likewise.
5133         (sin_test_towardzero): Likewise.
5134         (sin_downward_test_data): Likewise.
5135         (sin_test_downward): Likewise.
5136         (sin_upward_test_data): Likewise.
5137         (sin_test_upward): Likewise.
5138         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
5139         (sinh_test_data): Update call to AUTO_TESTS_f_f.
5140         (sinh_test): Use ALL_RM_TEST.
5141         (sinh_tonearest_test_data): Remove.
5142         (sinh_test_tonearest): Likewise.
5143         (sinh_towardzero_test_data): Likewise.
5144         (sinh_test_towardzero): Likewise.
5145         (sinh_downward_test_data): Likewise.
5146         (sinh_test_downward): Likewise.
5147         (sinh_upward_test_data): Likewise.
5148         (sinh_test_upward): Likewise.
5149         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
5150         (sqrt_test): Use ALL_RM_TEST.
5151         (sqrt_tonearest_test_data): Remove.
5152         (sqrt_test_tonearest): Likewise.
5153         (sqrt_towardzero_test_data): Likewise.
5154         (sqrt_test_towardzero): Likewise.
5155         (sqrt_downward_test_data): Likewise.
5156         (sqrt_test_downward): Likewise.
5157         (sqrt_upward_test_data): Likewise.
5158         (sqrt_test_upward): Likewise.
5159         (tan_test_data): Update call to AUTO_TESTS_f_f.
5160         (tan_test): Use ALL_RM_TEST.
5161         (tan_tonearest_test_data): Remove.
5162         (tan_test_tonearest): Likewise.
5163         (tan_towardzero_test_data): Likewise.
5164         (tan_test_towardzero): Likewise.
5165         (tan_downward_test_data): Likewise.
5166         (tan_test_downward): Likewise.
5167         (tan_upward_test_data): Likewise.
5168         (tan_test_upward): Likewise.
5169         (tanh_test_data): Update call to AUTO_TESTS_f_f.
5170         (tgamma_test_data): Likewise.
5171         (y0_test_data): Likewise.
5172         (y1_test_data): Likewise.
5173         (yn_test_data): Update call to AUTO_TESTS_if_f.
5174         (main): Do not call removed functions.
5175
5176 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5177
5178         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
5179         (ldexp_test_data): Remove.
5180         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
5181         scalbn_test_data.
5182         (scalb_test): Use ALL_RM_TEST.
5183
5184 2014-03-19  Andreas Schwab  <schwab@suse.de>
5185
5186         * nscd/nscd.service: Also invalidate netgroup cache on reload.
5187
5188 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5189
5190         [BZ #16649]
5191         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5192         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
5193         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
5194         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5195         (__ASSUME_PREADV): Undefine.
5196         (__ASSUME_PWRITEV): Likewise.
5197
5198 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5199
5200         * bits/mman-linux.h: Add comment about non-Linux use.
5201         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
5202         bits/mman-linux.h resting place.
5203
5204         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
5205         * bits/mman-linux.h: ... here.
5206
5207 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5208
5209         * conform/conformtest.pl: Add standard definition when calling C
5210         preprocessor on data files.
5211         (checknamespace): Remove unused variable.
5212
5213 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5214
5215         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
5216         minus_oflow, plus_uflow and minus_uflow in expected results.
5217         * math/libm-test.inc (scalbn_test_data): Add more tests of
5218         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
5219         minus_uflow.
5220         (scalbn_test): Use ALL_RM_TEST.
5221         (scalbln_test_data): Add more tests of negative arguments.  Use
5222         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
5223         (scalbln_test): Use ALL_RM_TEST.
5224
5225 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5226
5227         * scripts/abilist.awk: Ignore symbols marked with .hidden.
5228
5229 2014-03-18  Will Newton  <will.newton@linaro.org>
5230
5231         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
5232         inaccurate comment.
5233
5234 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5235
5236         * Makerules [!subdir] (check-abi): Exit with error status if a
5237         test failed.
5238
5239 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5240
5241         * math/libm-test.inc (nearbyint_test_data): Include all tests used
5242         for rint.  Include results for all rounding modes.
5243         (nearbyint_test): Use ALL_RM_TEST.
5244         (rint_test_data): Include all tests used for nearbyint.
5245
5246 2014-03-17  Will Newton  <will.newton@linaro.org>
5247
5248         * nptl/sysdeps/pthread/pthread.h: Revert previous
5249         change.
5250
5251         * sysdeps/generic/ldsodefs.h: Revert previous
5252         change.
5253
5254         * libio/genops.c: Revert previous change.
5255         * libio/libioP.h: Likewise.
5256         * stdio-common/vfprintf.c: Likewise.
5257
5258         * sysdeps/generic/math_private.h: Revert previous
5259         change.
5260
5261         * sysdeps/generic/math_private.h: Check whether
5262         HAVE_RM_CTX is defined with #ifdef rather
5263         than #if.
5264
5265         * argp/argp-fmtstream.h: Check whether
5266         __STRICT_ANSI__ is defined with #ifdef rather
5267         than #if.
5268         * argp/argp.h: Likewise.
5269
5270         * libio/genops.c: Check whether
5271         _IO_JUMPS_OFFSET is defined with #ifdef rather
5272         than #if.
5273         * libio/libioP.h: Likewise.
5274         * stdio-common/vfprintf.c: Likewise.
5275
5276         * sysdeps/generic/ldsodefs.h: Check whether
5277         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
5278         than #if.
5279
5280         * nptl/sysdeps/pthread/pthread.h: Check
5281         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
5282         its value.
5283
5284 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5285
5286         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
5287         setting O_APPEND.
5288         * libio/tst-ftell-active-handler.c (do_append_test): Add a
5289         test case.
5290
5291         [BZ #16680]
5292         * libio/fileops.c (_IO_file_open): Seek to end of file but
5293         don't cache the offset.
5294         (get_file_offset): Remove function.
5295         (do_ftell): Use cached offset when available.
5296         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
5297         don't cache the offset.
5298         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
5299         case.
5300         (do_one_test): Call it.
5301         (do_ftell_test): Fix up expected old offset for a+ mode.
5302         * libio/wfileops.c (do_ftell_wide): Used cached offset when
5303         available.
5304
5305         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
5306         up test status with function return status.
5307         (do_write_test): Likewise.
5308         (do_append_test): Likewise.
5309
5310         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
5311         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
5312         Remove.
5313
5314 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5315
5316         * math/gen-libm-test.pl (parse_args): Handle results specified for
5317         each rounding mode separately.
5318         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
5319         tests and results from lrint_tonearest_test_data,
5320         lrint_towardzero_test_data, lrint_downward_test_data and
5321         lrint_upward_test_data.
5322         (lrint_test): Use ALL_RM_TEST.
5323         (lrint_tonearest_test_data): Remove.
5324         (lrint_test_tonearest): Likewise.
5325         (lrint_towardzero_test_data): Likewise.
5326         (lrint_test_towardzero): Likewise.
5327         (lrint_downward_test_data): Likewise.
5328         (lrint_test_downward): Likewise.
5329         (lrint_upward_test_data): Likewise.
5330         (lrint_test_upward): Likewise.
5331         (llrint_test_data): Merge in per-rounding-mode tests and results
5332         from llrint_tonearest_test_data, llrint_towardzero_test_data,
5333         llrint_downward_test_data and llrint_upward_test_data.
5334         (llrint_test): Use ALL_RM_TEST.
5335         (llrint_tonearest_test_data): Remove.
5336         (llrint_test_tonearest): Likewise.
5337         (llrint_towardzero_test_data): Likewise.
5338         (llrint_test_towardzero): Likewise.
5339         (llrint_downward_test_data): Likewise.
5340         (llrint_test_downward): Likewise.
5341         (llrint_upward_test_data): Likewise.
5342         (llrint_test_upward): Likewise.
5343         (rint_test_data): Merge in per-rounding-mode tests and results
5344         from rint_tonearest_test_data, rint_towardzero_test_data,
5345         rint_downward_test_data and rint_upward_test_data.  Add
5346         per-rounding-mode results for tests not in those arrays.
5347         (rint_test): Use ALL_RM_TEST.
5348         (rint_tonearest_test_data): Remove.
5349         (rint_test_tonearest): Likewise.
5350         (rint_towardzero_test_data): Likewise.
5351         (rint_test_towardzero): Likewise.
5352         (rint_downward_test_data): Likewise.
5353         (rint_test_downward): Likewise.
5354         (rint_upward_test_data): Likewise.
5355         (rint_test_upward): Likewise.
5356         (main): Don't call removed functions.
5357
5358 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5359
5360         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
5361         "Compiled on ..." crapola.  It is anti-useful.
5362
5363 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
5364
5365         * scripts/evaluate-test.sh: Handle fourth argument to determine
5366         whether test run should stop on failure.
5367         * Makeconfig (stop-on-test-failure): New variable.
5368         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
5369         $(stop-on-test-failure).
5370         * Makefile (tests): Give a summary of results from testing and
5371         exit with failure status if they include an ERROR or FAIL.
5372         (xtests): Likewise.
5373         * manual/install.texi (Configuring and compiling): Mention
5374         stop-on-test-failure=y.
5375         * INSTALL: Regenerated.
5376
5377 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5378
5379         * scripts/versionlist.awk: New file.
5380         * Makerules [$(build-shared) = yes]
5381         (postclean-generated): Add Versions.def, not Versions.def.v and
5382         Versions.def.v.i.
5383         ($(common-objpfx)Versions.def.v.i): Target removed.
5384         ($(common-objpfx)Versions.def): New target.
5385         ($(common-objpfx)Versions.all): Depend on that rather that
5386         $(common-objpfx)Versions.def.v.
5387         * Versions.def: File removed.
5388
5389         * Makeconfig (+gccwarn): Add -Wundef.
5390         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
5391         a dl-sysdep.h breaking its contract.
5392         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
5393         * include/stackinfo.h: New file.
5394         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
5395         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
5396         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
5397         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
5398         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
5399         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
5400         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5401         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5402         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5403         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5404         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5405         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
5406         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5407         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5408         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5409
5410 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5411
5412         [BZ #16707]
5413         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
5414         implementation.
5415         * math/libm-test.inc (round_test_data): Add more tests.
5416
5417         [BZ #16706]
5418         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
5419         implementation.
5420         * math/libm-test.inc (nearbyint_test_data): Add more tests.
5421
5422         [BZ #16701]
5423         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
5424         implementation.
5425         * math/libm-test.inc (ceil_test_data): Add more tests.
5426
5427         * math/libm-test.inc (trunc_test_data): Add more tests related to
5428         BZ#16414.
5429
5430 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5431
5432         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
5433         with #if rather than #ifdef.
5434         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
5435
5436 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
5437
5438         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
5439         first.  Disable AVX-512 GCC support if assembler doesn't support
5440         it.
5441         * sysdeps/x86_64/configure: Regenerated.
5442
5443 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
5444
5445         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
5446         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
5447         (__old_pthread_attr_setstack): Likewise.
5448         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
5449         [!_STACK_GROWS_DOWN]: Likewise.
5450
5451 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
5452
5453         * config.make.in (have-bash2): Delete.
5454         * configure.ac (libc_cv_have_bash2): Delete.
5455         * configure: Regenerate.
5456         * elf/Makefile (common-ldd-rewrite): Rename to ...
5457         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
5458         (sh-ldd-rewrite): Delete.
5459         (bash-ldd-rewrite): Delete.
5460         (have-bash2): Delete checks.
5461         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
5462         ldd-rewrite.
5463
5464         * config.make.in (have-ksh): Delete.
5465         (KSH): Delete.
5466         * configure.ac (libc_cv_have_ksh): Delete.
5467         * configure: Regenerate.
5468
5469         * elf/Makefile: Delete $(have-ksh) check.
5470         ($(objpfx)sotruss): Change KSH to BASH.
5471         * elf/sotruss.ksh: Rename to ...
5472         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
5473         function style to match POSIX.  Drop ksh vim mode setting.
5474
5475         * manual/time.texi (Specifying the Time Zone with TZ): Change
5476         Tuesday to Thursday.
5477
5478         * debug/tst-longjmp_chk2.c: Update header comment.
5479         (stackoverflow_handler): Add comment.  Call assert on pass value.
5480
5481 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
5482
5483         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
5484         (HAVE_AVX512_ASM_SUPPORT): Likewise.
5485         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
5486         (La_x86_64_vector): Add zmm.
5487         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
5488         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
5489         ($(objpfx)tst-audit10): New target.
5490         ($(objpfx)tst-audit10.out): Likewise.
5491         (tst-audit10-ENV): New.
5492         (AVX512-CFLAGS): Likewise.
5493         (CFLAGS-tst-audit10.c): Likewise.
5494         (CFLAGS-tst-auditmod10a.c): Likewise.
5495         (CFLAGS-tst-auditmod10b.c): Likewise.
5496         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
5497         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
5498         * sysdeps/x86_64/configure: Regenerated.
5499         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
5500         AVX-512 zmm register support.
5501         (_dl_x86_64_save_sse): Likewise.
5502         (_dl_x86_64_restore_sse): Likewise.
5503         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
5504         size vector registers.
5505         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
5506         (ZMM_SIZE): Likewise.
5507         * sysdeps/x86_64/tst-audit10.c: New file.
5508         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
5509         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
5510
5511 2014-03-13  Roland McGrath  <roland@hack.frob.com>
5512
5513         * configure.ac (HAVE_EHDR_START): New check.
5514         * configure: Regenerated.
5515         * config.h.in (HAVE_EHDR_START): New #undef.
5516         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
5517         assuming the lowest-addressed segment maps the start of the file.
5518
5519 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
5520
5521         * INSTALL: Regenerated.
5522
5523 2014-03-13  Will Newton  <will.newton@linaro.org>
5524
5525         * manual/setjmp.texi (System V contexts): Improve
5526         clarity and grammar of documentation.
5527
5528 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
5529
5530         [BZ #16381]
5531         * elf/Makefile (tests): Add tst-pie2.
5532         (tests-pie): Add tst-pie2.
5533         * elf/tst-pie2.c: New file.
5534         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
5535         for ET_EXEC.
5536         * elf/rtld.c (map_doit): Load executable as lt_executable.
5537         (dl_main): Likewise.
5538
5539 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
5540
5541         [BZ #16642]
5542         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5543         (__ASSUME_PSELECT): Undefine.
5544
5545 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5546
5547         [BZ #16689]
5548         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
5549         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
5550         static build.
5551         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
5552         selector for static builds.
5553
5554 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5555
5556         [BZ #16695]
5557         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
5558         key in the buffer.
5559
5560 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5561
5562         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
5563         IFUNC selector for static builds.
5564
5565 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
5566
5567         * sysdeps/mips/math_private.h [__mips_hard_float]
5568         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
5569         libc_feresetround_mips_ctx.
5570         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
5571         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
5572         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
5573
5574         [BZ #16677]
5575         * math/s_nextafter.c (__nextafter): Do not return value from
5576         overflowing computation.
5577         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
5578         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
5579         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
5580         Likewise.
5581         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5582         Likewise.
5583         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
5584         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
5585
5586 2014-03-11  Roland McGrath  <roland@hack.frob.com>
5587
5588         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
5589         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
5590         Move sfi_sp use from the load-multiple (that no longer sets sp) to
5591         the new mov targetting sp.
5592
5593 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5594
5595         [BZ #16683]
5596         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
5597         Define it for static builds as well.
5598         (NO_BZERO_IMPL): Likewise.
5599
5600 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5601
5602         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
5603         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
5604         multiarch strspn for PPC64.
5605         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
5606         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
5607         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5608         (__libc_ifunc_impl_list): Likewise.
5609         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
5610         multiarch optimizations
5611         * string/strspn.c (strspn): Using macro to redefine symbol name.
5612
5613 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5614             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5615
5616         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
5617         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
5618         multiarch strncat for PPC64.
5619         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
5620         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
5621         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5622         (__libc_ifunc_impl_list): Likewise.
5623         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
5624         multiarch optimizations
5625
5626 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5627
5628         [BZ #16639]
5629         * nscd/nscd.service: Make service type forking.
5630
5631 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5632
5633         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
5634         sign in non default rounding modes.
5635         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5636
5637 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
5638
5639         * math/libm-test.inc (ALL_RM_TEST): New macro.
5640         (ceil_test): Use ALL_RM_TEST.
5641         (cimag_test): Likewise.
5642         (conj_test): Likewise.
5643         (copysign_test): Likewise.
5644         (cproj_test): Likewise.
5645         (creal_test): Likewise.
5646         (fabs_test): Likewise.
5647         (floor_test): Likewise.
5648         (fmax_test): Likewise.
5649         (fmin_test): Likewise.
5650         (fmod_test): Likewise.
5651         (fpclassify_test): Likewise.
5652         (frexp_test): Likewise.
5653         (ilogb_test): Likewise.
5654         (isfinite_test): Likewise.
5655         (finite_test): Likewise.
5656         (isgreater_test): Likewise.
5657         (isgreaterequal_test): Likewise.
5658         (isinf_test): Likewise.
5659         (isless_test): Likewise.
5660         (islessequal_test): Likewise.
5661         (islessgreater_test): Likewise.
5662         (isnan_test): Likewise.
5663         (isnormal_test): Likewise.
5664         (issignaling_test): Likewise.
5665         (isunordered_test): Likewise.
5666         (logb_test): Likewise.
5667         (logb_downward_test_data): Remove.
5668         (logb_test_downward): Likewise.
5669         (lround_test): Use ALL_RM_TEST.
5670         (llround_test): Likewise.
5671         (modf_test): Likewise.
5672         (nexttoward_test): Likewise.
5673         (remainder_test): Likewise.
5674         (drem_test): Likewise.
5675         (remainder_tonearest_test_data): Likewise.
5676         (remainder_test_tonearest): Likewise.
5677         (drem_test_tonearest): Likewise.
5678         (remainder_towardzero_test_data): Likewise.
5679         (remainder_test_towardzero): Likewise.
5680         (drem_test_towardzero): Likewise.
5681         (remainder_downward_test_data): Likewise.
5682         (remainder_test_downward): Likewise.
5683         (drem_test_downward): Likewise.
5684         (remainder_upward_test_data): Likewise.
5685         (remainder_test_upward): Likewise.
5686         (drem_test_upward): Likewise.
5687         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
5688         (round_test): Use ALL_RM_TEST.
5689         (signbit_test): Likewise.
5690         (trunc_test): Likewise.
5691         (significand_test): Likewise.
5692         (main): Don't call removed functions.
5693
5694 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5695
5696         [BZ #16674]
5697         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
5698         || __USE_XOPEN2K8].
5699         (ILL_ILLOPN): Likewise.
5700         (ILL_ILLADR): Likewise.
5701         (ILL_ILLTRP): Likewise.
5702         (ILL_PRVOPC): Likewise.
5703         (ILL_PRVREG): Likewise.
5704         (ILL_COPROC): Likewise.
5705         (ILL_BADSTK): Likewise.
5706         (FPE_INTDIV): Likewise.
5707         (FPE_INTOVF): Likewise.
5708         (FPE_FLTDIV): Likewise.
5709         (FPE_FLTOVF): Likewise.
5710         (FPE_FLTUND): Likewise.
5711         (FPE_FLTRES): Likewise.
5712         (FPE_FLTINV): Likewise.
5713         (FPE_FLTSUB): Likewise.
5714         (SEGV_MAPERR): Likewise.
5715         (SEGV_ACCERR): Likewise.
5716         (BUS_ADRALN): Likewise.
5717         (BUS_ADRERR): Likewise.
5718         (BUS_OBJERR): Likewise.
5719         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5720         (TRAP_TRACE): Likewise.
5721         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5722         __USE_XOPEN2K8].
5723         (CLD_KILLED): Likewise.
5724         (CLD_DUMPED): Likewise.
5725         (CLD_TRAPPED): Likewise.
5726         (CLD_STOPPED): Likewise.
5727         (CLD_CONTINUED): Likewise.
5728         (POLL_IN): Likewise.
5729         (POLL_OUT): Likewise.
5730         (POLL_MSG): Likewise.
5731         (POLL_ERR): Likewise.
5732         (POLL_PRI): Likewise.
5733         (POLL_HUP): Likewise.
5734         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
5735         Likewise.
5736         (ILL_ILLOPN): Likewise.
5737         (ILL_ILLADR): Likewise.
5738         (ILL_ILLTRP): Likewise.
5739         (ILL_PRVOPC): Likewise.
5740         (ILL_PRVREG): Likewise.
5741         (ILL_COPROC): Likewise.
5742         (ILL_BADSTK): Likewise.
5743         (FPE_INTDIV): Likewise.
5744         (FPE_INTOVF): Likewise.
5745         (FPE_FLTDIV): Likewise.
5746         (FPE_FLTOVF): Likewise.
5747         (FPE_FLTUND): Likewise.
5748         (FPE_FLTRES): Likewise.
5749         (FPE_FLTINV): Likewise.
5750         (FPE_FLTSUB): Likewise.
5751         (SEGV_MAPERR): Likewise.
5752         (SEGV_ACCERR): Likewise.
5753         (BUS_ADRALN): Likewise.
5754         (BUS_ADRERR): Likewise.
5755         (BUS_OBJERR): Likewise.
5756         (BUS_MCEERR_AR): Likewise.
5757         (BUS_MCEERR_AO): Likewise.
5758         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5759         (TRAP_TRACE): Likewise.
5760         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5761         __USE_XOPEN2K8].
5762         (CLD_KILLED): Likewise.
5763         (CLD_DUMPED): Likewise.
5764         (CLD_TRAPPED): Likewise.
5765         (CLD_STOPPED): Likewise.
5766         (CLD_CONTINUED): Likewise.
5767         (POLL_IN): Likewise.
5768         (POLL_OUT): Likewise.
5769         (POLL_MSG): Likewise.
5770         (POLL_ERR): Likewise.
5771         (POLL_PRI): Likewise.
5772         (POLL_HUP): Likewise.
5773         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
5774         (ILL_ILLOPN): Likewise.
5775         (ILL_ILLADR): Likewise.
5776         (ILL_ILLTRP): Likewise.
5777         (ILL_PRVOPC): Likewise.
5778         (ILL_PRVREG): Likewise.
5779         (ILL_COPROC): Likewise.
5780         (ILL_BADSTK): Likewise.
5781         (FPE_INTDIV): Likewise.
5782         (FPE_INTOVF): Likewise.
5783         (FPE_FLTDIV): Likewise.
5784         (FPE_FLTOVF): Likewise.
5785         (FPE_FLTUND): Likewise.
5786         (FPE_FLTRES): Likewise.
5787         (FPE_FLTINV): Likewise.
5788         (FPE_FLTSUB): Likewise.
5789         (SEGV_MAPERR): Likewise.
5790         (SEGV_ACCERR): Likewise.
5791         (BUS_ADRALN): Likewise.
5792         (BUS_ADRERR): Likewise.
5793         (BUS_OBJERR): Likewise.
5794         (BUS_MCEERR_AR): Likewise.
5795         (BUS_MCEERR_AO): Likewise.
5796         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5797         (TRAP_TRACE): Likewise.
5798         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5799         __USE_XOPEN2K8].
5800         (CLD_KILLED): Likewise.
5801         (CLD_DUMPED): Likewise.
5802         (CLD_TRAPPED): Likewise.
5803         (CLD_STOPPED): Likewise.
5804         (CLD_CONTINUED): Likewise.
5805         (POLL_IN): Likewise.
5806         (POLL_OUT): Likewise.
5807         (POLL_MSG): Likewise.
5808         (POLL_ERR): Likewise.
5809         (POLL_PRI): Likewise.
5810         (POLL_HUP): Likewise.
5811         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
5812         Likewise.
5813         (ILL_ILLOPN): Likewise.
5814         (ILL_ILLADR): Likewise.
5815         (ILL_ILLTRP): Likewise.
5816         (ILL_PRVOPC): Likewise.
5817         (ILL_PRVREG): Likewise.
5818         (ILL_COPROC): Likewise.
5819         (ILL_BADSTK): Likewise.
5820         (ILL_BADIADDR): Likewise.
5821         (ILL_BREAK): Likewise.
5822         (FPE_INTDIV): Likewise.
5823         (FPE_INTOVF): Likewise.
5824         (FPE_FLTDIV): Likewise.
5825         (FPE_FLTOVF): Likewise.
5826         (FPE_FLTUND): Likewise.
5827         (FPE_FLTRES): Likewise.
5828         (FPE_FLTINV): Likewise.
5829         (FPE_FLTSUB): Likewise.
5830         (FPE_DECOVF): Likewise.
5831         (FPE_DECDIV): Likewise.
5832         (FPE_DECERR): Likewise.
5833         (FPE_INVASC): Likewise.
5834         (FPE_INVDEC): Likewise.
5835         (SEGV_MAPERR): Likewise.
5836         (SEGV_ACCERR): Likewise.
5837         (SEGV_PSTKOVF): Likewise.
5838         (BUS_ADRALN): Likewise.
5839         (BUS_ADRERR): Likewise.
5840         (BUS_OBJERR): Likewise.
5841         (BUS_MCEERR_AR): Likewise.
5842         (BUS_MCEERR_AO): Likewise.
5843         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5844         (TRAP_TRACE): Likewise.
5845         (TRAP_BRANCH): Likewise.
5846         (TRAP_HWBKPT): Likewise.
5847         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5848         __USE_XOPEN2K8].
5849         (CLD_KILLED): Likewise.
5850         (CLD_DUMPED): Likewise.
5851         (CLD_TRAPPED): Likewise.
5852         (CLD_STOPPED): Likewise.
5853         (CLD_CONTINUED): Likewise.
5854         (POLL_IN): Likewise.
5855         (POLL_OUT): Likewise.
5856         (POLL_MSG): Likewise.
5857         (POLL_ERR): Likewise.
5858         (POLL_PRI): Likewise.
5859         (POLL_HUP): Likewise.
5860         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
5861         (ILL_ILLOPN): Likewise.
5862         (ILL_ILLADR): Likewise.
5863         (ILL_ILLTRP): Likewise.
5864         (ILL_PRVOPC): Likewise.
5865         (ILL_PRVREG): Likewise.
5866         (ILL_COPROC): Likewise.
5867         (ILL_BADSTK): Likewise.
5868         (FPE_INTDIV): Likewise.
5869         (FPE_INTOVF): Likewise.
5870         (FPE_FLTDIV): Likewise.
5871         (FPE_FLTOVF): Likewise.
5872         (FPE_FLTUND): Likewise.
5873         (FPE_FLTRES): Likewise.
5874         (FPE_FLTINV): Likewise.
5875         (FPE_FLTSUB): Likewise.
5876         (SEGV_MAPERR): Likewise.
5877         (SEGV_ACCERR): Likewise.
5878         (BUS_ADRALN): Likewise.
5879         (BUS_ADRERR): Likewise.
5880         (BUS_OBJERR): Likewise.
5881         (BUS_MCEERR_AR): Likewise.
5882         (BUS_MCEERR_AO): Likewise.
5883         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5884         (TRAP_TRACE): Likewise.
5885         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5886         __USE_XOPEN2K8].
5887         (CLD_KILLED): Likewise.
5888         (CLD_DUMPED): Likewise.
5889         (CLD_TRAPPED): Likewise.
5890         (CLD_STOPPED): Likewise.
5891         (CLD_CONTINUED): Likewise.
5892         (POLL_IN): Likewise.
5893         (POLL_OUT): Likewise.
5894         (POLL_MSG): Likewise.
5895         (POLL_ERR): Likewise.
5896         (POLL_PRI): Likewise.
5897         (POLL_HUP): Likewise.
5898         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
5899         (ILL_ILLOPN): Likewise.
5900         (ILL_ILLADR): Likewise.
5901         (ILL_ILLTRP): Likewise.
5902         (ILL_PRVOPC): Likewise.
5903         (ILL_PRVREG): Likewise.
5904         (ILL_COPROC): Likewise.
5905         (ILL_BADSTK): Likewise.
5906         (FPE_INTDIV): Likewise.
5907         (FPE_INTOVF): Likewise.
5908         (FPE_FLTDIV): Likewise.
5909         (FPE_FLTOVF): Likewise.
5910         (FPE_FLTUND): Likewise.
5911         (FPE_FLTRES): Likewise.
5912         (FPE_FLTINV): Likewise.
5913         (FPE_FLTSUB): Likewise.
5914         (SEGV_MAPERR): Likewise.
5915         (SEGV_ACCERR): Likewise.
5916         (BUS_ADRALN): Likewise.
5917         (BUS_ADRERR): Likewise.
5918         (BUS_OBJERR): Likewise.
5919         (BUS_MCEERR_AR): Likewise.
5920         (BUS_MCEERR_AO): Likewise.
5921         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5922         (TRAP_TRACE): Likewise.
5923         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5924         __USE_XOPEN2K8].
5925         (CLD_KILLED): Likewise.
5926         (CLD_DUMPED): Likewise.
5927         (CLD_TRAPPED): Likewise.
5928         (CLD_STOPPED): Likewise.
5929         (CLD_CONTINUED): Likewise.
5930         (POLL_IN): Likewise.
5931         (POLL_OUT): Likewise.
5932         (POLL_MSG): Likewise.
5933         (POLL_ERR): Likewise.
5934         (POLL_PRI): Likewise.
5935         (POLL_HUP): Likewise.
5936         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
5937         (ILL_ILLOPN): Likewise.
5938         (ILL_ILLADR): Likewise.
5939         (ILL_ILLTRP): Likewise.
5940         (ILL_PRVOPC): Likewise.
5941         (ILL_PRVREG): Likewise.
5942         (ILL_COPROC): Likewise.
5943         (ILL_BADSTK): Likewise.
5944         (FPE_INTDIV): Likewise.
5945         (FPE_INTOVF): Likewise.
5946         (FPE_FLTDIV): Likewise.
5947         (FPE_FLTOVF): Likewise.
5948         (FPE_FLTUND): Likewise.
5949         (FPE_FLTRES): Likewise.
5950         (FPE_FLTINV): Likewise.
5951         (FPE_FLTSUB): Likewise.
5952         (SEGV_MAPERR): Likewise.
5953         (SEGV_ACCERR): Likewise.
5954         (BUS_ADRALN): Likewise.
5955         (BUS_ADRERR): Likewise.
5956         (BUS_OBJERR): Likewise.
5957         (BUS_MCEERR_AR): Likewise.
5958         (BUS_MCEERR_AO): Likewise.
5959         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5960         (TRAP_TRACE): Likewise.
5961         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5962         __USE_XOPEN2K8].
5963         (CLD_KILLED): Likewise.
5964         (CLD_DUMPED): Likewise.
5965         (CLD_TRAPPED): Likewise.
5966         (CLD_STOPPED): Likewise.
5967         (CLD_CONTINUED): Likewise.
5968         (POLL_IN): Likewise.
5969         (POLL_OUT): Likewise.
5970         (POLL_MSG): Likewise.
5971         (POLL_ERR): Likewise.
5972         (POLL_PRI): Likewise.
5973         (POLL_HUP): Likewise.
5974         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
5975         (ILL_ILLOPN): Likewise.
5976         (ILL_ILLADR): Likewise.
5977         (ILL_ILLTRP): Likewise.
5978         (ILL_PRVOPC): Likewise.
5979         (ILL_PRVREG): Likewise.
5980         (ILL_COPROC): Likewise.
5981         (ILL_BADSTK): Likewise.
5982         (ILL_DBLFLT): Likewise.
5983         (ILL_HARDWALL): Likewise.
5984         (FPE_INTDIV): Likewise.
5985         (FPE_INTOVF): Likewise.
5986         (FPE_FLTDIV): Likewise.
5987         (FPE_FLTOVF): Likewise.
5988         (FPE_FLTUND): Likewise.
5989         (FPE_FLTRES): Likewise.
5990         (FPE_FLTINV): Likewise.
5991         (FPE_FLTSUB): Likewise.
5992         (SEGV_MAPERR): Likewise.
5993         (SEGV_ACCERR): Likewise.
5994         (BUS_ADRALN): Likewise.
5995         (BUS_ADRERR): Likewise.
5996         (BUS_OBJERR): Likewise.
5997         (BUS_MCEERR_AR): Likewise.
5998         (BUS_MCEERR_AO): Likewise.
5999         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6000         (TRAP_TRACE): Likewise.
6001         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6002         __USE_XOPEN2K8].
6003         (CLD_KILLED): Likewise.
6004         (CLD_DUMPED): Likewise.
6005         (CLD_TRAPPED): Likewise.
6006         (CLD_STOPPED): Likewise.
6007         (CLD_CONTINUED): Likewise.
6008         (POLL_IN): Likewise.
6009         (POLL_OUT): Likewise.
6010         (POLL_MSG): Likewise.
6011         (POLL_ERR): Likewise.
6012         (POLL_PRI): Likewise.
6013         (POLL_HUP): Likewise.
6014         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
6015         (ILL_ILLOPN): Likewise.
6016         (ILL_ILLADR): Likewise.
6017         (ILL_ILLTRP): Likewise.
6018         (ILL_PRVOPC): Likewise.
6019         (ILL_PRVREG): Likewise.
6020         (ILL_COPROC): Likewise.
6021         (ILL_BADSTK): Likewise.
6022         (FPE_INTDIV): Likewise.
6023         (FPE_INTOVF): Likewise.
6024         (FPE_FLTDIV): Likewise.
6025         (FPE_FLTOVF): Likewise.
6026         (FPE_FLTUND): Likewise.
6027         (FPE_FLTRES): Likewise.
6028         (FPE_FLTINV): Likewise.
6029         (FPE_FLTSUB): Likewise.
6030         (SEGV_MAPERR): Likewise.
6031         (SEGV_ACCERR): Likewise.
6032         (BUS_ADRALN): Likewise.
6033         (BUS_ADRERR): Likewise.
6034         (BUS_OBJERR): Likewise.
6035         (BUS_MCEERR_AR): Likewise.
6036         (BUS_MCEERR_AO): Likewise.
6037         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6038         (TRAP_TRACE): Likewise.
6039         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6040         __USE_XOPEN2K8].
6041         (CLD_KILLED): Likewise.
6042         (CLD_DUMPED): Likewise.
6043         (CLD_TRAPPED): Likewise.
6044         (CLD_STOPPED): Likewise.
6045         (CLD_CONTINUED): Likewise.
6046         (POLL_IN): Likewise.
6047         (POLL_OUT): Likewise.
6048         (POLL_MSG): Likewise.
6049         (POLL_ERR): Likewise.
6050         (POLL_PRI): Likewise.
6051         (POLL_HUP): Likewise.
6052         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
6053         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6054
6055         [BZ #16670]
6056         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
6057         before #include of <time.h>.
6058         [!__USE_XOPEN2K] (__need_timespec): Likewise.
6059         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
6060         (test-xfail-UNIX98/sched.h/conform): Likewise.
6061
6062 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6063
6064         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
6065         error absence of trapping exception support.
6066         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
6067
6068 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
6069
6070         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
6071         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
6072         * timezone/Makefile (testdata): Move definition above include of
6073         Rules.
6074         (test-zones): New variable.
6075         (tests-special): Add zone files.
6076         (build-testdata): Use $(evaluate-test).
6077
6078         * elf/Makefile (tests-special): Rename tests to end with .out.
6079         ($(objpfx)noload-mem): Likewise.
6080         ($(objpfx)tst-leaks1-mem): Likewise.
6081         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
6082         * iconv/Makefile (xtests-special): Change test-iconvconfig to
6083         $(objpfx)test-iconvconfig.out.
6084         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
6085         set -e inside subshell and redirect output to file.
6086         * iconvdata/Makefile (generated): Rename tests to end with .out.
6087         Correct type.
6088         (tests-special): Rename tests to end with .out.
6089         ($(objpfx)mtrace-tst-loading): Likewise.
6090         * intl/Makefile (generated): Likewise.
6091         (tests-special): Likewise.
6092         ($(objpfx)mtrace-tst-gettext): Likewise.
6093         * misc/Makefile (generated): Likewise.
6094         (tests-special): Likewise.
6095         ($(objpfx)tst-error1-mem): Likewise.
6096         * nptl/Makefile (tests-special): Likewise.
6097         ($(objpfx)tst-stack3-mem): Likewise.
6098         (generated): Likewise.
6099         * posix/Makefile (generated): Likewise.
6100         (tests-special): Likewise.
6101         (xtests-special): Likewise.
6102         ($(objpfx)tst-fnmatch-mem): Likewise.
6103         ($(objpfx)bug-regex2-mem): Likewise.
6104         ($(objpfx)bug-regex14-mem): Likewise.
6105         ($(objpfx)bug-regex21-mem): Likewise.
6106         ($(objpfx)bug-regex31-mem): Likewise.
6107         ($(objpfx)tst-vfork3-mem): Likewise.
6108         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6109         ($(objpfx)tst-pcre-mem): Likewise.
6110         ($(objpfx)tst-boost-mem): Likewise.
6111         ($(objpfx)bug-ga2-mem): Likewise.
6112         ($(objpfx)bug-glob2-mem): Likewise.
6113         * resolv/Makefile (generate): Likewise.
6114         (tests-special): Likewise.
6115         (xtests-special): Likewise.
6116         (generated): Likewise.
6117         ($(objpfx)mtrace-tst-leaks): Likewise.
6118         ($(objpfx)mtrace-tst-leaks2): Likewise.
6119
6120         * scripts/merge-test-results.sh: New file.
6121         * Makefile (tests-special-notdir): New variable.
6122         (tests): Run merge-test-results.sh.
6123         (xtests): Likewise.
6124         * Rules (tests-special-notdir): New variable.
6125         (xtests-special-notdir): Likewise.
6126         (tests): Run merge-test-results.sh
6127         (xtests): Likewise.
6128
6129         * Makeconfig (test-xfail-name): New variable.
6130         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
6131         compute variable name for expected failures.
6132         * conform/Makefile (conformtest-headers-data): New variable.
6133         (conformtest-standards): Likewise.
6134         (conformtest-headers-ISO): Likewise.
6135         (conformtest-headers-ISO99): Likewise.
6136         (conformtest-headers-ISO11): Likewise.
6137         (conformtest-headers-POSIX): Likewise.
6138         (conformtest-headers-XPG3): Likewise.
6139         (conformtest-headers-XPG4): Likewise.
6140         (conformtest-headers-UNIX98): Likewise.
6141         (conformtest-headers-XOPEN2K): Likewise.
6142         (conformtest-headers-POSIX2008): Likewise.
6143         (conformtest-headers-XOPEN2K8): Likewise.
6144         (conformtest-header-list-base): Likewise.
6145         (conformtest-header-list-tests): Likewise.
6146         (conformtest-header-base): Likewise.
6147         (conformtest-header-tests): Likewise.
6148         (tests-special): Add $(conformtest-header-list-tests).  If
6149         [$(fast-check) && !$(cross-compiling)], add
6150         $(conformtest-header-tests) instead of
6151         $(objpfx)run-conformtest.out.
6152         (generated): Add $(conformtest-header-list-base).  If
6153         [$(fast-check) && !$(cross-compiling)], add
6154         $(conformtest-header-base).  Remove previous setting.
6155         ($(conformtest-header-list-tests)): New target.
6156         (test-xfail-run-conformtest): Remove variable.
6157         ($(objpfx)run-conformtest.out): Remove target.
6158         (test-xfail-ISO11/complex.h/conform): New variable.
6159         (test-xfail-ISO11/stdalign.h/conform): Likewise.
6160         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
6161         (test-xfail-XPG3/varargs.h/conform): Likewise.
6162         (test-xfail-XPG4/varargs.h/conform): Likewise.
6163         (test-xfail-UNIX98/varargs.h/conform): Likewise.
6164         (test-xfail-XPG4/ndbm.h/conform): Likewise.
6165         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
6166         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
6167         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
6168         (test-xfail-XPG3/fcntl.h/conform): Likewise.
6169         (test-xfail-XPG3/ftw.h/conform): Likewise.
6170         (test-xfail-XPG3/grp.h/conform): Likewise.
6171         (test-xfail-XPG3/langinfo.h/conform): Likewise.
6172         (test-xfail-XPG3/limits.h/conform): Likewise.
6173         (test-xfail-XPG3/pwd.h/conform): Likewise.
6174         (test-xfail-XPG3/search.h/conform): Likewise.
6175         (test-xfail-XPG3/signal.h/conform): Likewise.
6176         (test-xfail-XPG3/stdio.h/conform): Likewise.
6177         (test-xfail-XPG3/stdlib.h/conform): Likewise.
6178         (test-xfail-XPG3/string.h/conform): Likewise.
6179         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
6180         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
6181         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
6182         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
6183         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
6184         (test-xfail-XPG3/sys/types.h/conform): Likewise.
6185         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
6186         (test-xfail-XPG3/termios.h/conform): Likewise.
6187         (test-xfail-XPG3/time.h/conform): Likewise.
6188         (test-xfail-XPG3/unistd.h/conform): Likewise.
6189         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
6190         (test-xfail-XPG4/fcntl.h/conform): Likewise.
6191         (test-xfail-XPG4/langinfo.h/conform): Likewise.
6192         (test-xfail-XPG4/netdb.h/conform): Likewise.
6193         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
6194         (test-xfail-XPG4/signal.h/conform): Likewise.
6195         (test-xfail-XPG4/stdio.h/conform): Likewise.
6196         (test-xfail-XPG4/stdlib.h/conform): Likewise.
6197         (test-xfail-XPG4/stropts.h/conform): Likewise.
6198         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
6199         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
6200         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
6201         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
6202         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
6203         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
6204         (test-xfail-XPG4/sys/time.h/conform): Likewise.
6205         (test-xfail-XPG4/sys/types.h/conform): Likewise.
6206         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
6207         (test-xfail-XPG4/termios.h/conform): Likewise.
6208         (test-xfail-XPG4/ucontext.h/conform): Likewise.
6209         (test-xfail-XPG4/unistd.h/conform): Likewise.
6210         (test-xfail-XPG4/utmpx.h/conform): Likewise.
6211         (test-xfail-POSIX/sched.h/conform): Likewise.
6212         (test-xfail-POSIX/signal.h/conform): Likewise.
6213         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6214         (test-xfail-POSIX/tar.h/conform): Likewise.
6215         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
6216         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
6217         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
6218         (test-xfail-UNIX98/netdb.h/conform): Likewise.
6219         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
6220         (test-xfail-UNIX98/sched.h/conform): Likewise.
6221         (test-xfail-UNIX98/signal.h/conform): Likewise.
6222         (test-xfail-UNIX98/stdio.h/conform): Likewise.
6223         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
6224         (test-xfail-UNIX98/stropts.h/conform): Likewise.
6225         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
6226         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
6227         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
6228         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
6229         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
6230         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
6231         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6232         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6233         (test-xfail-UNIX98/unistd.h/conform): Likewise.
6234         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
6235         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
6236         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
6237         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
6238         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
6239         (test-xfail-XOPEN2K/math.h/conform): Likewise.
6240         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
6241         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
6242         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
6243         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
6244         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6245         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
6246         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
6247         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
6248         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
6249         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
6250         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
6251         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
6252         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
6253         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6254         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
6255         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
6256         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6257         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
6258         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
6259         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
6260         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
6261         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
6262         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6263         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
6264         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
6265         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6266         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
6267         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
6268         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
6269         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
6270         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
6271         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
6272         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6273         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
6274         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
6275         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
6276         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
6277         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
6278         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
6279         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
6280         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
6281         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
6282         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6283         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
6284         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
6285         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
6286         (conformtest-cc-flags): Likewise.
6287         ($(conformtest-header-tests): New target.
6288         * conform/check-header-lists.sh: New file.
6289         * conform/run-conformtest.sh: Remove.
6290
6291         * conform/conformtest.pl: Allow ' and \ in values given for
6292         constants.
6293         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
6294         inclusion.
6295         [POSIX] (sys/types.h): Likewise.
6296         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
6297         inclusion.
6298         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
6299         inclusion.
6300         * conform/data/signal.h-data (SIGIO): Remove expectation.
6301         [XPG3] (SIGBUS): Do not expect.
6302         [POSIX || XPG3] (SIGPOLL): Likewise.
6303         [POSIX || XPG3] (SIGPROF): Likewise.
6304         [POSIX || XPG3] (SIGSYS): Likewise.
6305         [XPG3] (SIGTRAP): Likewise.
6306         [POSIX || XPG3] (SIGURG): Likewise.
6307         [POSIX || XPG3] (SIGVTALRM): Likewise.
6308         [POSIX || XPG3] (SIGXCPU): Likewise.
6309         [POSIX || XPG3] (SIGXFSZ): Likewise.
6310         [POSIX] (SA_SIGINFO): Expect.
6311         [XPG3] (siginfo_t): Do not expect type or contents.
6312         [POSIX] (si_pid): Do not expect element.
6313         [POSIX] (si_uid): Likewise.
6314         [POSIX] (si_addr): Likewise.
6315         [POSIX] (si_status): Likewise.
6316         [POSIX] (si_band): Likewise.
6317         [XPG4] (si_value): Likewise.
6318         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
6319         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
6320         [POSIX || XPG3] (ILL_ILLADR): Likewise.
6321         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
6322         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
6323         [POSIX || XPG3] (ILL_PRVREG): Likewise.
6324         [POSIX || XPG3] (ILL_COPROC): Likewise.
6325         [POSIX || XPG3] (ILL_BADSTK): Likewise.
6326         [POSIX || XPG3] (FPE_INTDIV): Likewise.
6327         [POSIX || XPG3] (FPE_INTOVF): Likewise.
6328         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
6329         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
6330         [POSIX || XPG3] (FPE_FLTUND): Likewise.
6331         [POSIX || XPG3] (FPE_FLTRES): Likewise.
6332         [POSIX || XPG3] (FPE_FLTINV): Likewise.
6333         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
6334         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
6335         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
6336         [POSIX || XPG3] (BUS_ADRALN): Likewise.
6337         [POSIX || XPG3] (BUS_ADRERR): Likewise.
6338         [POSIX || XPG3] (BUS_OBJERR): Likewise.
6339         [POSIX || XPG3] (CLD_EXITED): Likewise.
6340         [POSIX || XPG3] (CLD_KILLED): Likewise.
6341         [POSIX || XPG3] (CLD_DUMPED): Likewise.
6342         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
6343         [POSIX || XPG3] (CLD_STOPPED): Likewise.
6344         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
6345         [POSIX || XPG3] (POLL_IN): Likewise.
6346         [POSIX || XPG3] (POLL_OUT): Likewise.
6347         [POSIX || XPG3] (POLL_MSG): Likewise.
6348         [POSIX || XPG3] (POLL_ERR): Likewise.
6349         [POSIX || XPG3] (POLL_PRI): Likewise.
6350         [POSIX || XPG3] (POLL_HUP): Likewise.
6351         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
6352         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
6353         (SIG*): Do not allow.
6354         [XPG3] (si_*): Likewise.
6355         [XPG3] (SI_*): Likewise.
6356         [XPG3 || XPG4] (sigev_*): Likewise.
6357         [XPG3 || XPG4] (SIGEV_*): Likewise.
6358         [XPG3 || XPG4] (sival_*): Likewise.
6359         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
6360         [POSIX || XPG3] (BUS_*): Likewise.
6361         [POSIX || XPG3] (CLD_*): Likewise.
6362         [POSIX || XPG3] (FPE_*): Likewise.
6363         [POSIX || XPG3] (ILL_*): Likewise.
6364         [POSIX || XPG3] (POLL_*): Likewise.
6365         [POSIX || XPG3] (SEGV_*): Likewise.
6366         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
6367         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
6368         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
6369         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
6370         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
6371         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
6372         Specify type and value.
6373         (TVERSLEN): Likewise.
6374         (REGTYPE): Likewise.
6375         (AREGTYPE): Likewise.
6376         (LNKTYPE): Likewise.
6377         (SYMTYPE): Likewise.
6378         (CHRTYPE): Likewise.
6379         (BLKTYPE): Likewise.
6380         (DIRTYPE): Likewise.
6381         (FIFOTYPE): Likewise.
6382         (CONTTYPE): Likewise.
6383         (TSUID): Likewise.
6384         (TSGID): Likewise.
6385         (TSVTX): Likewise.
6386         (TUREAD): Likewise.
6387         (TUWRITE): Likewise.
6388         (TUEXEC): Likewise.
6389         (TGREAD): Likewise.
6390         (TGWRITE): Likewise.
6391         (TGEXEC): Likewise.
6392         (TOREAD): Likewise.
6393         (TOWRITE): Likewise.
6394         (TOEXEC): Likewise.
6395         [POSIX] (TSVTX): Expect constant.
6396
6397 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
6398
6399         * Makefile (tests): Change dependencies to ....
6400         (tests-special): ... additions to this variable.
6401         (tests): Depend on $(tests-special).
6402         * Makerules (check-abi-list): New variable.
6403         (check-abi): Depend on $(check-abi-list).
6404         [$(subdir) = elf] (tests-special): Add
6405         $(objpfx)check-abi-libc.out.
6406         [$(build-shared) = yes && subdir] (tests-special): Add
6407         $(check-abi-list).
6408         [$(build-shared) = yes && subdir] (tests): Do not depend on
6409         check-abi.
6410         * Rules (tests): Depend on $(tests-special).
6411         (xtests): Depend on $(xtests-special).
6412         * catgets/Makefile (tests): Change dependencies to ....
6413         (tests-special): ... additions to this variable.
6414         * conform/Makefile (tests): Change dependencies to ....
6415         (tests-special): ... additions to this variable.
6416         * elf/Makefile (tests): Change dependencies to ....
6417         (tests-special): ... additions to this variable.
6418         * grp/Makefile (tests): Change dependencies to ....
6419         (tests-special): ... additions to this variable.
6420         * iconv/Makefile (xtests): Change dependencies to ....
6421         (xtests-special): ... additions to this variable.
6422         * iconvdata/Makefile (tests): Change dependencies to ....
6423         (tests-special): ... additions to this variable.
6424         * intl/Makefile (tests): Change dependencies to ....
6425         (tests-special): ... additions to this variable.  Also add
6426         $(objpfx)tst-gettext.out.
6427         * io/Makefile (tests): Change dependencies to ....
6428         (tests-special): ... additions to this variable.
6429         * libio/Makefile (tests): Change dependencies to ....
6430         (tests-special): ... additions to this variable.
6431         * malloc/Makefile (tests): Change dependencies to ....
6432         (tests-special): ... additions to this variable.
6433         * misc/Makefile (tests): Change dependencies to ....
6434         (tests-special): ... additions to this variable.
6435         * nptl/Makefile (tests): Change dependencies to ....
6436         (tests-special): ... additions to this variable.
6437         * nptl_db/Makefile (tests): Change dependencies to ....
6438         (tests-special): ... additions to this variable.
6439         * posix/Makefile (tests): Change dependencies to ....
6440         (tests-special): ... additions to this variable.
6441         (xtests): Change dependencies to ....
6442         (xtests-special): ... additions to this variable.
6443         * resolv/Makefile (tests): Change dependencies to ....
6444         (tests-special): ... additions to this variable.
6445         (xtests): Change dependencies to ....
6446         (xtests-special): ... additions to this variable.
6447         * stdio-common/Makefile (tests): Change dependencies to ....
6448         (tests-special): ... additions to this variable.
6449         (do-tst-unbputc): Remove target.
6450         (do-tst-printf): Likewise.
6451         * stdlib/Makefile (tests): Change dependencies to ....
6452         (tests-special): ... additions to this variable.
6453         * string/Makefile (tests): Change dependencies to ....
6454         (tests-special): ... additions to this variable.
6455         * sysdeps/x86/Makefile (tests): Change dependencies to ....
6456         (tests-special): ... additions to this variable.
6457
6458         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
6459         whole file.
6460         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
6461         whole file.
6462         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
6463         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
6464
6465         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
6466         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
6467         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
6468         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
6469         * conform/data/libgen.h-data [XPG3]: Likewise.
6470         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
6471         * conform/data/ndbm.h-data [XPG3]: Likewise.
6472         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6473         * conform/data/netdb.h-data [XPG3]: Likewise.
6474         * conform/data/netinet/in.h-data [XPG3]: Likewise.
6475         * conform/data/poll.h-data [XPG3]: Likewise.
6476         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6477         * conform/data/strings.h-data [XPG3]: Likewise.
6478         * conform/data/stropts.h-data [XPG3]: Likewise.
6479         * conform/data/sys/mman.h-data [XPG3]: Likewise.
6480         * conform/data/sys/resource.h-data [XPG3]: Likewise.
6481         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
6482         Likewise.
6483         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
6484         * conform/data/sys/time.h-data [XPG3]: Likewise.
6485         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
6486         * conform/data/sys/uio.h-data [XPG3]: Likewise.
6487         * conform/data/sys/un.h-data [XPG3]: Likewise.
6488         * conform/data/syslog.h-data [XPG3]: Likewise.
6489         * conform/data/ucontext.h-data [XPG3]: Likewise.
6490         * conform/data/utmpx.h-data [XPG3]: Likewise.
6491         * conform/data/varargs.h-data [UNIX98]: Enable file.
6492
6493         * manual/Makefile (INSTALL_INFO): Remove variable setting.
6494
6495         * math/libm-test.inc (struct test_f_f_data): Move expected results
6496         into structure for each rounding mode.
6497         (struct test_ff_f_data): Likewise.
6498         (struct test_ff_f_data_nexttoward): Likewise.
6499         (struct test_fi_f_data): Likewise.
6500         (struct test_fl_f_data): Likewise.
6501         (struct test_if_f_data): Likewise.
6502         (struct test_fff_f_data): Likewise.
6503         (struct test_c_f_data): Likewise.
6504         (struct test_f_f1_data): Likewise.
6505         (struct test_fF_f1_data): Likewise.
6506         (struct test_ffI_f1_data): Likewise.
6507         (struct test_c_c_data): Likewise.
6508         (struct test_cc_c_data): Likewise.
6509         (struct test_f_i_data): Likewise.
6510         (struct test_ff_i_data): Likewise.
6511         (struct test_f_l_data): Likewise.
6512         (struct test_f_L_data): Likewise.
6513         (struct test_fFF_11_data): Likewise.
6514         (RM_): New macro.
6515         (RM_FE_DOWNWARD): Likewise.
6516         (RM_FE_TONEAREST): Likewise.
6517         (RM_FE_TOWARDZERO): Likewise.
6518         (RM_FE_UPWARD): Likewise.
6519         (RUN_TEST_LOOP_f_f): Update references to expected results.
6520         (RUN_TEST_LOOP_2_f): Likewise.
6521         (RUN_TEST_LOOP_fff_f): Likewise.
6522         (RUN_TEST_LOOP_c_f): Likewise.
6523         (RUN_TEST_LOOP_f_f1): Likewise.
6524         (RUN_TEST_LOOP_fF_f1): Likewise.
6525         (RUN_TEST_LOOP_fI_f1): Likewise.
6526         (RUN_TEST_LOOP_ffI_f1): Likewise.
6527         (RUN_TEST_LOOP_c_c): Likewise.
6528         (RUN_TEST_LOOP_cc_c): Likewise.
6529         (RUN_TEST_LOOP_f_i): Likewise.
6530         (RUN_TEST_LOOP_f_i_tg): Likewise.
6531         (RUN_TEST_LOOP_ff_i_tg): Likewise.
6532         (RUN_TEST_LOOP_f_b): Likewise.
6533         (RUN_TEST_LOOP_f_b_tg): Likewise.
6534         (RUN_TEST_LOOP_f_l): Likewise.
6535         (RUN_TEST_LOOP_f_L): Likewise.
6536         (RUN_TEST_LOOP_fFF_11): Likewise.
6537         * math/gen-libm-test.pl (parse_args): Output four copies of
6538         expected results for each test.
6539
6540         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6541         (__ASSUME_UTIMES): Remove.
6542         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6543         (__ASSUME_UTIMES): Likewise.
6544
6545         * math/gen-auto-libm-tests.c: Update comment on output format.
6546         (output_for_one_input_case): Generate before-rounding and
6547         after-rounding information as conditions on output flags not
6548         floating-point format.
6549         * math/auto-libm-test-out: Regenerated.
6550         * math/gen-libm-test.pl (cond_value): New function.
6551         (or_cond_value): Use cond_value.
6552         (generate_testfile): Handle conditional exceptions.
6553
6554 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
6555
6556         * math/libm-test.inc (max_valid_error): New variable.
6557         (init_max_error): Take new argument specifying whether function
6558         results are exactly determined.  Set max_valid_error and bound
6559         other variables for errors based on this argument.
6560         (set_max_error): Do not record results above max_valid_error.
6561         (check_float_internal): Only accept errors of up to 0.5ulps if
6562         also at most max_valid_error.
6563         (START): Take new argument EXACT and pass it to init_max_error.
6564         (acos_test): Update call to START.
6565         (acos_test_tonearest): Likewise.
6566         (acos_test_towardzero): Likewise.
6567         (acos_test_downward): Likewise.
6568         (acos_test_upward): Likewise.
6569         (acosh_test): Likewise.
6570         (asin_test): Likewise.
6571         (asin_test_tonearest): Likewise.
6572         (asin_test_towardzero): Likewise.
6573         (asin_test_downward): Likewise.
6574         (asin_test_upward): Likewise.
6575         (asinh_test): Likewise.
6576         (atan_test): Likewise.
6577         (atanh_test): Likewise.
6578         (atan2_test): Likewise.
6579         (cabs_test): Likewise.
6580         (cacos_test): Likewise.
6581         (cacosh_test): Likewise.
6582         (carg_test): Likewise.
6583         (casin_test): Likewise.
6584         (casinh_test): Likewise.
6585         (catan_test): Likewise.
6586         (catanh_test): Likewise.
6587         (cbrt_test): Likewise.
6588         (ccos_test): Likewise.
6589         (ccosh_test): Likewise.
6590         (ceil_test): Likewise.
6591         (cexp_test): Likewise.
6592         (cimag_test): Likewise.
6593         (clog_test): Likewise.
6594         (clog10_test): Likewise.
6595         (conj_test): Likewise.
6596         (copysign_test): Likewise.
6597         (cos_test): Likewise.
6598         (cos_test_tonearest): Likewise.
6599         (cos_test_towardzero): Likewise.
6600         (cos_test_downward): Likewise.
6601         (cos_test_upward): Likewise.
6602         (cosh_test): Likewise.
6603         (cosh_test_tonearest): Likewise.
6604         (cosh_test_towardzero): Likewise.
6605         (cosh_test_downward): Likewise.
6606         (cosh_test_upward): Likewise.
6607         (cpow_test): Likewise.
6608         (cproj_test): Likewise.
6609         (creal_test): Likewise.
6610         (csin_test): Likewise.
6611         (csinh_test): Likewise.
6612         (csqrt_test): Likewise.
6613         (ctan_test): Likewise.
6614         (ctan_test_tonearest): Likewise.
6615         (ctan_test_towardzero): Likewise.
6616         (ctan_test_downward): Likewise.
6617         (ctan_test_upward): Likewise.
6618         (ctanh_test): Likewise.
6619         (ctanh_test_tonearest): Likewise.
6620         (ctanh_test_towardzero): Likewise.
6621         (ctanh_test_downward): Likewise.
6622         (ctanh_test_upward): Likewise.
6623         (erf_test): Likewise.
6624         (erfc_test): Likewise.
6625         (exp_test): Likewise.
6626         (exp_test_tonearest): Likewise.
6627         (exp_test_towardzero): Likewise.
6628         (exp_test_downward): Likewise.
6629         (exp_test_upward): Likewise.
6630         (exp10_test): Likewise.
6631         (exp10_test_tonearest): Likewise.
6632         (exp10_test_towardzero): Likewise.
6633         (exp10_test_downward): Likewise.
6634         (exp10_test_upward): Likewise.
6635         (pow10_test): Likewise.
6636         (exp2_test): Likewise.
6637         (expm1_test): Likewise.
6638         (expm1_test_tonearest): Likewise.
6639         (expm1_test_towardzero): Likewise.
6640         (expm1_test_downward): Likewise.
6641         (expm1_test_upward): Likewise.
6642         (fabs_test): Likewise.
6643         (fdim_test): Likewise.
6644         (floor_test): Likewise.
6645         (fma_test): Likewise.
6646         (fma_test_towardzero): Likewise.
6647         (fma_test_downward): Likewise.
6648         (fma_test_upward): Likewise.
6649         (fmax_test): Likewise.
6650         (fmin_test): Likewise.
6651         (fmod_test): Likewise.
6652         (fpclassify_test): Likewise.
6653         (frexp_test): Likewise.
6654         (hypot_test): Likewise.
6655         (ilogb_test): Likewise.
6656         (isfinite_test): Likewise.
6657         (finite_test): Likewise.
6658         (isgreater_test): Likewise.
6659         (isgreaterequal_test): Likewise.
6660         (isinf_test): Likewise.
6661         (isless_test): Likewise.
6662         (islessequal_test): Likewise.
6663         (islessgreater_test): Likewise.
6664         (isnan_test): Likewise.
6665         (isnormal_test): Likewise.
6666         (issignaling_test): Likewise.
6667         (isunordered_test): Likewise.
6668         (j0_test): Likewise.
6669         (j1_test): Likewise.
6670         (jn_test): Likewise.
6671         (ldexp_test): Likewise.
6672         (lgamma_test): Likewise.
6673         (gamma_test): Likewise.
6674         (lrint_test): Likewise.
6675         (lrint_test_tonearest): Likewise.
6676         (lrint_test_towardzero): Likewise.
6677         (lrint_test_downward): Likewise.
6678         (lrint_test_upward): Likewise.
6679         (llrint_test): Likewise.
6680         (llrint_test_tonearest): Likewise.
6681         (llrint_test_towardzero): Likewise.
6682         (llrint_test_downward): Likewise.
6683         (llrint_test_upward): Likewise.
6684         (log_test): Likewise.
6685         (log10_test): Likewise.
6686         (log1p_test): Likewise.
6687         (log2_test): Likewise.
6688         (logb_test): Likewise.
6689         (logb_test_downward): Likewise.
6690         (lround_test): Likewise.
6691         (llround_test): Likewise.
6692         (modf_test): Likewise.
6693         (nearbyint_test): Likewise.
6694         (nextafter_test): Likewise.
6695         (nexttoward_test): Likewise.
6696         (pow_test): Likewise.
6697         (pow_test_tonearest): Likewise.
6698         (pow_test_towardzero): Likewise.
6699         (pow_test_downward): Likewise.
6700         (pow_test_upward): Likewise.
6701         (remainder_test): Likewise.
6702         (drem_test): Likewise.
6703         (remainder_test_tonearest): Likewise.
6704         (drem_test_tonearest): Likewise.
6705         (remainder_test_towardzero): Likewise.
6706         (drem_test_towardzero): Likewise.
6707         (remainder_test_downward): Likewise.
6708         (drem_test_downward): Likewise.
6709         (remainder_test_upward): Likewise.
6710         (drem_test_upward): Likewise.
6711         (remquo_test): Likewise.
6712         (rint_test): Likewise.
6713         (rint_test_tonearest): Likewise.
6714         (rint_test_towardzero): Likewise.
6715         (rint_test_downward): Likewise.
6716         (rint_test_upward): Likewise.
6717         (round_test): Likewise.
6718         (scalb_test): Likewise.
6719         (scalbn_test): Likewise.
6720         (scalbln_test): Likewise.
6721         (signbit_test): Likewise.
6722         (sin_test): Likewise.
6723         (sin_test_tonearest): Likewise.
6724         (sin_test_towardzero): Likewise.
6725         (sin_test_downward): Likewise.
6726         (sin_test_upward): Likewise.
6727         (sincos_test): Likewise.
6728         (sinh_test): Likewise.
6729         (sinh_test_tonearest): Likewise.
6730         (sinh_test_towardzero): Likewise.
6731         (sinh_test_downward): Likewise.
6732         (sinh_test_upward): Likewise.
6733         (sqrt_test): Likewise.
6734         (sqrt_test_tonearest): Likewise.
6735         (sqrt_test_towardzero): Likewise.
6736         (sqrt_test_downward): Likewise.
6737         (sqrt_test_upward): Likewise.
6738         (tan_test): Likewise.
6739         (tan_test_tonearest): Likewise.
6740         (tan_test_towardzero): Likewise.
6741         (tan_test_downward): Likewise.
6742         (tan_test_upward): Likewise.
6743         (tanh_test): Likewise.
6744         (tgamma_test): Likewise.
6745         (trunc_test): Likewise.
6746         (y0_test): Likewise.
6747         (y1_test): Likewise.
6748         (yn_test): Likewise.
6749         (significand_test): Likewise.
6750
6751         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
6752         individual tests in comment.
6753         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
6754         (prev_max_error): New variable.
6755         (prev_real_max_error): Likewise.
6756         (prev_imag_max_error): Likewise.
6757         (compare_ulp_data): Don't refer to test names in comment.
6758         (find_test_ulps): Remove function.
6759         (find_function_ulps): Likewise.
6760         (find_complex_function_ulps): Likewise.
6761         (init_max_error): Take function name as argument.  Look up ulps
6762         for that function.
6763         (print_ulps): Remove function.
6764         (print_max_error): Use prev_max_error instead of calling
6765         find_function_ulps.
6766         (print_complex_max_error): Use prev_real_max_error and
6767         prev_imag_max_error instead of calling find_complex_function_ulps.
6768         (check_float_internal): Take max_ulp parameter instead of calling
6769         find_test_ulps.  Don't call print_ulps.
6770         (check_float): Update call to check_float_internal.
6771         (check_complex): Update calls to check_float_internal.
6772         (START): Pass argument to init_max_error.
6773         * math/gen-libm-test.pl (%results): Don't include "kind"
6774         information.
6775         (parse_ulps): Don't handle ulps of individual tests.
6776         (print_ulps_file): Likewise.
6777         (output_ulps): Likewise.
6778         * math/README.libm-test: Update.
6779         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
6780         individual tests.
6781         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
6782         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6783         * sysdeps/arm/libm-test-ulps: Likewise.
6784         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6785         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
6786         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
6787         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
6788         * sysdeps/microblaze/libm-test-ulps: Likewise.
6789         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6790         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6791         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6792         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6793         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6794         * sysdeps/sh/libm-test-ulps: Likewise.
6795         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6796         * sysdeps/tile/libm-test-ulps: Likewise.
6797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6798
6799 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
6800
6801         * math/libm-test.inc (print_complex_max_error): Check separately
6802         whether real and imaginary errors are within allowed range and
6803         pass 0 to print_complex_function_ulps instead of value within
6804         allowed range.
6805
6806 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6807
6808         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
6809         formatting.
6810         (get_handles_fopen): Likewise.
6811         (do_write_test): Likewise.
6812
6813         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
6814
6815         * libio/fileops.c (do_ftell): Use cached offset when
6816         available.
6817         * libio/iofwide.c (do_ftell_wide): Likewise.
6818         * libio/iofdopen.c (_IO_new_fdopen): Don't use
6819         _IO_file_attach.
6820         * libio/wfileops.c (_IO_fwide): Don't cache offset.
6821
6822         [BZ #16532]
6823         * libio/libioP.h (get_file_offset): New function.
6824         * libio/fileops.c (get_file_offset): Likewise.
6825         (do_ftell): Likewise.
6826         (_IO_new_file_seekoff): Split out ftell logic.
6827         * libio/wfileops.c (do_ftell_wide): Likewise.
6828         (_IO_wfile_seekoff): Split out ftell logic.
6829         * libio/tst-ftell-active-handler.c: New test case.
6830         * libio/Makefile (tests): Add it.
6831
6832 2014-03-03  Roland McGrath  <roland@hack.frob.com>
6833
6834         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
6835         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
6836
6837 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6838
6839         [BZ #16639]
6840         * nscd/connections.c (nscd_init): Call do_exit.
6841         (start_threads): Call do_exit and notify_parent.
6842         (begin_drop_privileges): Call do_exit.
6843         (finish_drop_privileges): Likewise.
6844         * nscd/selinux.c (preserve_capabilities): Likewise.
6845         (install_real_capabilities): Likewise.
6846         (nscd_selinux_enabled): Likewise.
6847         (avc_create_thread): Likewise.
6848         (avc_alloc_lock): Likewise.
6849         (nscd_avc_init): Likewise.
6850         * nscd/nscd.c (parent_fd): New static variable.
6851         (main): Create a pipe between parent and child processes.
6852         Skip closing parent_fd.
6853         (monitor_child): New function.
6854         (do_exit): Likewise.
6855         (notify_parent): Likewise.
6856         * nscd/nscd.h (notify_parent): Likewise.
6857         (do_exit): Likewise.
6858
6859 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
6860
6861         * malloc/malloc.c (__libc_calloc): Revert last change.
6862
6863 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6864
6865         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6866
6867 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6868
6869         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
6870         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
6871         implementation.
6872         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6873         (__libc_ifunc_impl_list): Likewise.
6874         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
6875         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
6876         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
6877         * string/strrchr.c: Define STRRCHR.
6878
6879 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
6880
6881         * benchtest/bench-strtok.c (simple_strtok): Delete.
6882         (strtok_string): Use as benchmark.
6883         * string/strtok (STRTOK): New macro.
6884
6885 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
6886
6887         * manual/threads.texi: Add header and standard comments to all
6888         functions.
6889
6890         * elf/dl-lookup.c (check_match): New function.
6891         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
6892         (do_lookup_x): Remove nested function check_match. Use non-nested
6893         function check_match.
6894
6895 2014-02-28  Roland McGrath  <roland@hack.frob.com>
6896
6897         * csu/Makefile (generated, before-compile): Use += rather than =.
6898         * catgets/Makefile (generated, generated-dirs): Likewise.
6899         * debug/Makefile (generated): Likewise.
6900         * dlfcn/Makefile (generated): Likewise.
6901         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
6902         * iconvdata/Makefile (before-compile, generated): Likewise.
6903         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
6904         * libio/Makefile (generated): Likewise.
6905         * malloc/Makefile (generated): Likewise.
6906         * manual/Makefile (generated, generated-dirs): Likewise.
6907         * misc/Makefile (generated): Likewise.
6908         * posix/Makefile (generated): Likewise.
6909         * resolv/Makefile (generated): Likewise.
6910         * sunrpc/Makefile (generated, generated-dirs): Likewise.
6911         * timezone/Makefile (generated, generated-dirs): Likewise.
6912
6913         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
6914
6915 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6916
6917         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
6918         power8 implementation.
6919         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
6920         file: POWER8 llround ifunc implementation.
6921         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6922         (__lllround): Add POWER8 implementation.
6923         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
6924         POWER8 llround implementation.
6925
6926         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
6927         power8 implementation.
6928         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
6929         file: POWER8 llrint ifunc implementation.
6930         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
6931         Add POWER8 implementation.
6932         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
6933         POWER8 llrint implementation.
6934
6935         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
6936         power8 implementation.
6937         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
6938         file: POWER8 finite ifunc implementation.
6939         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
6940         Add POWER8 implementation.
6941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
6942         Likewise.
6943         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
6944         POWER8 finite implementation.
6945         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
6946
6947         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
6948         power8 implementation.
6949         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
6950         file: POWER8 isinf ifunc implementation.
6951         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
6952         POWER8 implementation.
6953         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
6954         Likewise.
6955         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
6956         isinf implementation.
6957         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
6958
6959         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
6960         (INIT_ARCH): Add hwcap2 initialization.
6961         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
6962         power8 implementation.
6963         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
6964         file: POWER8 isnan ifunc implementation.
6965         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
6966         POWER8 implementation.
6967         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
6968         Likewise.
6969         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
6970         isnan implementation.
6971         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
6972
6973 2014-02-27  Joey Ye  <joey.ye@arm.com>
6974
6975         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
6976         (_FP_NANFRAC_Q): Set to zero.
6977
6978 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6979
6980         [BZ #16623]
6981         * math/auto-libm-test-in: New test inputs.
6982         * math/auto-libm-test-out: Regenerate.
6983         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
6984         and DA.
6985         (__cos): Likewise.
6986         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6987
6988 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
6989
6990         * scripts/evaluate-test.sh: Take new argument indicating whether
6991         failure is expected.
6992         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
6993         indicating whether failure is expected.
6994         * conform/Makefile (test-xfail-run-conformtest): New variable.
6995         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
6996         level.
6997         * posix/Makefile (test-xfail-annexc): New variable.
6998         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
6999
7000 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
7001
7002         * argp/Makefile: Include Makeconfig immediately after defining
7003         subdir.
7004         * assert/Makefile: Likewise.
7005         * benchtests/Makefile: Likewise.
7006         * catgets/Makefile: Likewise.
7007         * conform/Makefile: Likewise.
7008         * crypt/Makefile: Likewise.
7009         * csu/Makefile: Likewise.
7010         (all): Remove target.
7011         * ctype/Makefile: Include Makeconfig immediately after defining
7012         subdir.
7013         * debug/Makefile: Likewise.
7014         * dirent/Makefile: Likewise.
7015         * dlfcn/Makefile: Likewise.
7016         * gmon/Makefile: Likewise.
7017         * gnulib/Makefile: Likewise.
7018         * grp/Makefile: Likewise.
7019         * gshadow/Makefile: Likewise.
7020         * hesiod/Makefile: Likewise.
7021         * hurd/Makefile: Likewise.
7022         (all): Remove target.
7023         * iconvdata/Makefile: Include Makeconfig immediately after
7024         defining subdir.
7025         * inet/Makefile: Likewise.
7026         * intl/Makefile: Likewise.
7027         * io/Makefile: Likewise.
7028         * libio/Makefile: Likewise.
7029         (all): Remove target.
7030         * locale/Makefile: Include Makeconfig immediately after defining
7031         subdir.
7032         * login/Makefile: Likewise.
7033         * mach/Makefile: Likewise.
7034         (all): Remove target.
7035         * malloc/Makefile: Include Makeconfig immediately after defining
7036         subdir.
7037         (all): Remove target.
7038         * manual/Makefile: Include Makeconfig immediately after defining
7039         subdir.
7040         * math/Makefile: Likewise.
7041         * misc/Makefile: Likewise.
7042         * nis/Makefile: Likewise.
7043         * nss/Makefile: Likewise.
7044         * po/Makefile: Likewise.
7045         (all): Remove target.
7046         * posix/Makefile: Include Makeconfig immediately after defining
7047         subdir.
7048         * pwd/Makefile: Likewise.
7049         * resolv/Makefile: Likewise.
7050         * resource/Makefile: Likewise.
7051         * rt/Makefile: Likewise.
7052         * setjmp/Makefile: Likewise.
7053         * shadow/Makefile: Likewise.
7054         * signal/Makefile: Likewise.
7055         * socket/Makefile: Likewise.
7056         * soft-fp/Makefile: Likewise.
7057         * stdio-common/Makefile: Likewise.
7058         * stdlib/Makefile: Likewise.
7059         * streams/Makefile: Likewise.
7060         * string/Makefile: Likewise.
7061         * sunrpc/Makefile: Likewise.
7062         (all): Remove target.
7063         * sysvipc/Makefile: Include Makeconfig immediately after defining
7064         subdir.
7065         * termios/Makefile: Likewise.
7066         * time/Makefile: Likewise.
7067         * timezone/Makefile: Likewise.
7068         (all): Remove target.
7069         * wcsmbs/Makefile: Include Makeconfig immediately after defining
7070         subdir.
7071         * wctype/Makefile: Likewise.
7072
7073 2014-02-26  Steve Ellcey  <sellcey@mips.com>
7074
7075         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
7076         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
7077         (libc_feholdexcept_setround_mips): Ditto.
7078         (libc_feholdsetround): New.
7079         (libc_feholdsetroundf): New.
7080         (libc_feholdsetroundl): New.
7081         (libc_feupdateenv_test_mips): New.
7082         (libc_feupdateenv_test): New.
7083         (libc_feupdateenv_testf): New.
7084         (libc_feupdateenv_testl): New.
7085         (libc_feresetround): New.
7086         (libc_feresetroundf): New.
7087         (libc_feresetroundl): New.
7088         (libc_fetestexcept_mips): New.
7089         (libc_fetestexcept): New.
7090         (libc_fetestexceptf): New.
7091         (libc_fetestexceptl): New.
7092         (HAVE_RM_CTX): New.
7093         (libc_feholdexcept_setround_mips_ctx): New.
7094         (libc_feholdexcept_setround_ctx): New.
7095         (libc_feholdexcept_setroundf_ctx): New.
7096         (libc_feholdexcept_setroundl_ctx): New.
7097         (libc_fesetenv_mips_ctx): New.
7098         (libc_fesetenv_ctx): New.
7099         (libc_fesetenv_ctxf): New.
7100         (libc_fesetenv_ctxl): New.
7101         (libc_feupdateenv_mips_ctx): New.
7102         (libc_feupdateenv_ctx): New.
7103         (libc_feupdateenvf_ctx): New.
7104         (libc_feupdateenvl_ctx): New.
7105         (libc_feholdsetround_mips_ctx): New.
7106         (libc_feholdsetround_ctx): New.
7107         (libc_feholdsetroundf_ctx): New.
7108         (libc_feholdsetroundl_ctx): New.
7109         (libc_feresetround_mips_ctx): New.
7110         (libc_feresetround_ctx): New.
7111         (libc_feresetroundf_ctx): New.
7112         (libc_feresetroundl_ctx): New.
7113
7114 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
7115
7116         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
7117
7118         * manual/ipc.texi: New file.
7119         * manual/Makefile (chapters): Add ipc.
7120         * manual/job.texi: Add "Inter-Process Communication" to next.
7121         * manual/process.texi: Add "Inter-Process Communication" to prev.
7122
7123 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7124
7125         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7126
7127 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
7128
7129         * malloc/malloc.c (__libc_calloc): Simplify implementation.
7130
7131         * manual/arith.texi: Fix spaces after sentences.
7132         * manual/charset.texi: Likewise.
7133         * manual/errno.texi: Likewise.
7134         * manual/install.texi: Likewise.
7135         * manual/llio.texi: Likewise.
7136         * manual/locale.texi: Likewise.
7137         * manual/maint.texi: Likewise.
7138         * manual/math.texi: Likewise.
7139         * manual/memory.texi: Likewise.
7140         * manual/message.texi: Likewise.
7141         * manual/probes.texi: Likewise.
7142         * manual/resource.texi: Likewise.
7143         * manual/signal.texi: Likewise.
7144         * manual/socket.texi: Likewise.
7145         * manual/stdio.texi: Likewise.
7146         * manual/string.texi: Likewise.
7147         * manual/time.texi: Likewise.
7148         * manual/users.texi: Likewise.
7149
7150 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
7151
7152         [BZ #16632]
7153         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
7154         _DEFAULT_SOURCE is defined.
7155
7156 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
7157             Carlos O'Donell  <carlos@redhat.com>
7158
7159         [BZ #16613]
7160         * elf/dl-tls.c (_dl_count_modids): New function.
7161         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
7162         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
7163         audit library and increment generation counter.
7164         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
7165         * elf/tst-audit9.c: New file.
7166         * elf/tst-auditmod9a.c: New file.
7167         * elf/tst-auditmod9b.c: New file.
7168         * elf/Makefile: Add rules to build and run tst-audit9.
7169
7170 2014-02-25  Florian Weimer  <fweimer@redhat.com>
7171
7172         [BZ #15347]
7173         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
7174
7175 2014-02-25  Will Newton  <will.newton@linaro.org>
7176
7177         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
7178         (__longjmp): Restore sp and lr before restoring callee
7179         saved registers.  Add longjmp and longjmp_target
7180         SystemTap probe point.
7181         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
7182         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
7183         Define to zero to match jmpbuf layout.
7184         * sysdeps/arm/setjmp.S: Include stap-probe.h.
7185         (__sigsetjmp): Save sp and lr before saving callee
7186         saved registers.  Add setjmp SystemTap probe point.
7187
7188 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
7189
7190         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7191
7192 2014-02-24  Andreas Schwab  <schwab@suse.de>
7193
7194         [BZ #15804]
7195         * elf/pldd.c (wait_for_ptrace_stop): New function.
7196         (main): Call it after attaching.
7197
7198 2014-02-22  Roland McGrath  <roland@hack.frob.com>
7199
7200         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
7201         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
7202         Versions files is now verboten.
7203         * hurd/Versions (libc: GLIBC_2.0):
7204         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
7205         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
7206         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
7207         * mach/Versions: Likewise.
7208
7209         * csu/Versions: Remove unused %include.
7210         * resolv/Versions: Likewise.
7211
7212 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
7213
7214         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
7215         ($(objpfx)check-local-headers.out): Likewise.
7216         ($(objpfx)begin-end-check.out): Likewise.
7217         * Makerules (check-abi-%.out): Likewise.
7218         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
7219         ($(objpfx)test2.cat): Likewise.
7220         ($(objpfx)de/libc.cat): Likewise.
7221         ($(objpfx)test-gencat.out): Likewise.
7222         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
7223         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
7224         ($(objpfx)noload-mem): Likewise.
7225         ($(objpfx)tst-pathopt.out): Likewise.
7226         ($(objpfx)tst-rtld-load-self.out): Likewise.
7227         ($(objpfx)tst-array1-cmp.out): Likewise.
7228         ($(objpfx)tst-array1-static-cmp.out): Likewise.
7229         ($(objpfx)tst-array2-cmp.out): Likewise.
7230         ($(objpfx)tst-array3-cmp.out): Likewise.
7231         ($(objpfx)tst-array4-cmp.out): Likewise.
7232         ($(objpfx)tst-array5-cmp.out): Likewise.
7233         ($(objpfx)tst-array5-static-cmp.out): Likewise.
7234         ($(objpfx)check-textrel.out): Likewise.
7235         ($(objpfx)check-execstack.out): Likewise.
7236         ($(objpfx)check-localplt.out): Likewise.
7237         ($(objpfx)order2-cmp.out): Likewise.
7238         ($(objpfx)tst-leaks1-mem): Likewise.
7239         ($(objpfx)tst-leaks1-static-mem): Likewise.
7240         ($(objpfx)tst-initorder-cmp.out): Likewise.
7241         ($(objpfx)tst-initorder2-cmp.out): Likewise.
7242         ($(objpfx)tst-unused-dep.out): Likewise.
7243         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
7244         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7245         * iconv/Makefile (test-iconvconfig): Likewise.
7246         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
7247         ($(objpfx)iconv-test.out): Likewise.
7248         ($(objpfx)tst-tables.out): Likewise.
7249         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
7250         ($(objpfx)tst-gettext.out): Likewise.
7251         ($(objpfx)tst-translit.out): Likewise.
7252         ($(objpfx)tst-gettext2.out): Likewise.
7253         ($(objpfx)tst-gettext4.out): Likewise.
7254         ($(objpfx)tst-gettext6.out): Likewise.
7255         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
7256         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7257         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
7258         ($(objpfx)tst-fopenloc-mem.out): Likewise.
7259         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7260         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
7261         * posix/Makefile ($(objpfx)globtest.out): Likewise.
7262         ($(objpfx)wordexp-tst.out): Likewise.
7263         ($(objpfx)annexc.out): Likewise.
7264         ($(objpfx)tst-fnmatch-mem): Likewise.
7265         ($(objpfx)bug-regex2-mem): Likewise.
7266         ($(objpfx)bug-regex14-mem): Likewise.
7267         ($(objpfx)bug-regex21-mem): Likewise.
7268         ($(objpfx)bug-regex31-mem): Likewise.
7269         ($(objpfx)tst-vfork3-mem): Likewise.
7270         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
7271         ($(objpfx)tst-pcre-mem): Likewise.
7272         ($(objpfx)tst-boost-mem): Likewise.
7273         ($(objpfx)tst-getconf.out): Likewise.
7274         ($(objpfx)bug-ga2-mem): Likewise.
7275         ($(objpfx)bug-glob2-mem): Likewise.
7276         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
7277         ($(objpfx)mtrace-tst-leaks2): Likewise.
7278         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
7279         ($(objpfx)tst-printf.out): Likewise.
7280         ($(objpfx)tst-setvbuf1.out): Likewise.
7281         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
7282         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
7283         ($(objpfx)tst-fmtmsg.out): Likewise.
7284         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
7285         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
7286
7287         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
7288         * bits/sigaction.h [__USE_MISC]: Likewise.
7289         * bits/waitstatus.h: Update #endif comments.
7290         * ctype/ctype.h: Likewise.
7291         * dirent/dirent.h: Likewise.
7292         [__USE_MISC]: Remove redundant conditionals.
7293         * grp/grp.h: Update #endif comments.
7294         [__USE_GNU]: Remove redundant conditionals.
7295         [__USE_MISC]: Likewise.
7296         * inet/netinet/in.h [__USE_GNU]: Likewise.
7297         * io/sys/stat.h [__USE_MISC]: Likewise.
7298         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
7299         * libio/bits/stdio.h: Update #endif comments.
7300         [__USE_MISC]: Remove redundant conditionals.
7301         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
7302         * libio/stdio.h: Update #endif comments.
7303         [__USE_MISC]: Remove redundant conditionals.
7304         * math/bits/math-finite.h [__USE_MISC]: Likewise.
7305         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
7306         * math/math.h: Update #else and #endif comments.
7307         [__USE_MISC]: Remove redundant conditionals.
7308         * misc/sys/uio.h: Update #endif comments.
7309         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
7310         * posix/glob.h [__USE_MISC]: Likewise.
7311         * posix/sys/types.h: Update #endif comments.
7312         [__USE_MISC]: Remove redundant conditionals.
7313         * posix/sys/wait.h: Update #endif comments.
7314         [__USE_MISC]: Remove redundant conditionals.
7315         * posix/unistd.h: Update #endif comments.
7316         [__USE_MISC]: Remove redundant conditionals.
7317         * pwd/pwd.h [__USE_GNU]: Likewise.
7318         [__USE_MISC]: Likewise.
7319         * resolv/netdb.h [__USE_GNU]: Likewise.
7320         * signal/signal.h: Update #endif comments.
7321         [__USE_MISC]: Remove redundant conditionals.
7322         * stdlib/stdlib.h: Update #else and #endif comments.
7323         [__USE_MISC]: Remove redundant conditionals.
7324         [__USE_GNU]: Likewise.
7325         * string/bits/string2.h [__USE_MISC]: Likewise.
7326         * string/string.h: Update #endif comments.
7327         [__USE_MISC]: Remove redundant conditionals.
7328         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
7329         Likewise.
7330         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
7331         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
7332         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
7333         Likewise.
7334         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
7335         Likewise.
7336         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
7337         comments.
7338         [__USE_MISC]: Remove redundant conditionals.
7339         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
7340         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
7341         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
7342         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
7343         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
7344         Likewise.
7345         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
7346         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
7347         Likewise.
7348         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
7349         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
7350         Likewise.
7351         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
7352         Likewise.
7353         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
7354         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
7355         Likewise.
7356         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
7357         Likewise.
7358         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
7359         * sysdeps/x86/bits/string.h: Update #endif comments.
7360         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
7361         conditionals.
7362         * time/sys/time.h: Update #endif comments.
7363         * time/time.h: Likewise.
7364         [__USE_MISC]: Remove redundant conditionals.
7365
7366 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
7367
7368         [BZ #16600]
7369         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
7370
7371 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
7372
7373         * Versions.def (librt): Add GLIBC_2.17.
7374
7375 2014-02-21  Adam Conrad  <adconrad@0c3.net>
7376
7377         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
7378         synonym for _SYS_AUXV_H to allow direct inclusion.
7379         * sysdeps/sparc/bits/hwcap.h: Likewise.
7380         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
7381         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
7382         * sysdeps/sparc/sysdep.h: Likewise.
7383
7384 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7385
7386         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
7387
7388 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7389
7390         * benchtests/bench-strrchr.c: Print length instead of position.
7391
7392 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
7393
7394         [BZ #16611]
7395         * sysdeps/unix/sysv/linux/kernel-features.h
7396         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
7397         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
7398         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
7399         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
7400         Likewise.
7401         [__i386__ || __powerpc__ || __sh__ || __sparc__]
7402         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7403         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
7404         (__ASSUME_SENDMMSG): Define instead of using previous
7405         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
7406         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7407         (__ASSUME_SENDMMSG_SYSCALL): Define.
7408         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7409         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
7410         Likewise.
7411         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7412         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7413         Likewise.
7414         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7415         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7416         Likewise.
7417         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
7418         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7419         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7420         [__ASSUME_SENDMMSG]: Change conditionals to
7421         [__ASSUME_SENDMMSG_SOCKETCALL].
7422         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7423         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
7424         Define.
7425         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7426         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
7427         Likewise.
7428         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
7429         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7430         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7431         [!__ASSUME_SENDMMSG]: Change conditional to
7432         [!__ASSUME_SENDMMSG_SOCKETCALL].
7433         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7434         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7435         Define.
7436
7437         [BZ #16610]
7438         * sysdeps/unix/sysv/linux/kernel-features.h
7439         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
7440         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
7441         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
7442         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
7443         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7444         [__i386__ || __sparc__]
7445         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7446         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
7447         (__ASSUME_RECVMMSG): Define instead of using previous
7448         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
7449         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7450         (__ASSUME_RECVMMSG_SYSCALL): Define.
7451         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7452         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7453         Likewise.
7454         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7455         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7456         Likewise.
7457         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7458         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7459         Likewise.
7460         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
7461         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7462         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7463         [__ASSUME_RECVMMSG]: Change condition to
7464         [__ASSUME_RECVMMSG_SOCKETCALL].
7465         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7466         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7467         Define.
7468         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7469         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7470         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7471         Likewise.
7472         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
7473         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7474         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7475         [!__ASSUME_RECVMMSG]: Change condition to
7476         [!__ASSUME_RECVMMSG_SOCKETCALL].
7477         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7478         (__ASSUME_RECVMMSG_SYSCALL): Define.
7479
7480         [BZ #16609]
7481         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
7482         __powerpc__ || __s390__ || __sh__ || __sparc__]
7483         (__ASSUME_SOCKETCALL): Define.
7484         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
7485         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
7486         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
7487         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
7488         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7489         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
7490         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
7491         (__ASSUME_ACCEPT4): Define instead of using previous
7492         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
7493         __powerpc__ || __sparc__ || __s390__)] condition.
7494         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7495         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7496         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
7497         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7498         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7499         [!__ASSUME_ACCEPT4]: Change condition to
7500         [!__ASSUME_ACCEPT4_SOCKETCALL].
7501         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7502         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
7503         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
7504         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7505         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
7506         __ASSUME_ACCEPT4_SYSCALL.
7507         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
7508         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
7509         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7510         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
7511         __ASSUME_ACCEPT4_SYSCALL.
7512         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
7513         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7514         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7515         [__ASSUME_ACCEPT4]: Change condition to
7516         [__ASSUME_ACCEPT4_SOCKETCALL].
7517         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7518         (__ASSUME_SOCKETCALL): Define.
7519         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
7520         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7521         (__ASSUME_SOCKETCALL): Define.
7522         (__ASSUME_ACCEPT4): Remove.
7523         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
7524         Define.
7525         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7526         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
7527         Likewise.
7528         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7529         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7530
7531         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
7532         macro.
7533         (HWCAP_ARM_LPAE): Likewise.
7534         (HWCAP_ARM_EVTSTRM): Likewise.
7535         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
7536         Add vpfd32, lpae and evtstrm.
7537         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7538         Increase to 22.
7539
7540 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
7541
7542         * math/auto-libm-test-in: Add tests of clog10.
7543         * math/auto-libm-test-out: Regenerated.
7544         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
7545         * sysdeps/i386/fpu/libm-test-ulps: Update.
7546         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7547
7548 2014-02-18  Andreas Schwab  <schwab@suse.de>
7549
7550         [BZ #16574]
7551         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
7552         Store non-zero if the second buffer was newly allocated.
7553         (send_dg): Likewise.
7554         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
7555         to send_vc and send_dg.
7556         (res_nsend): Pass NULL for ansp2_malloced.
7557         * resolv/res_query.c (__libc_res_nquery): Add parameter
7558         answerp2_malloced and pass it down to __libc_res_nsend.
7559         (res_nquery): Pass additional NULL to __libc_res_nquery.
7560         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
7561         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
7562         second answer buffer if answerp2_malloced was set.
7563         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
7564         (__libc_res_nquerydomain): Add parameter
7565         answerp2_malloced and pass it down to __libc_res_nquery.
7566         (res_nquerydomain): Pass additional NULL to
7567         __libc_res_nquerydomain.
7568         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
7569         additional NULL to __libc_res_nsend and __libc_res_nquery.
7570         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
7571         additional NULL to __libc_res_nsearch.
7572         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
7573         parameter of __libc_res_nsearch to check for separately allocated
7574         second buffer.
7575         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
7576         __libc_res_nquery.
7577         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
7578         additional NULL to __libc_res_nquery.
7579         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
7580         __libc_res_nsearch.
7581         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
7582         * include/resolv.h: Update prototypes of __libc_res_nquery,
7583         __libc_res_nsearch, __libc_res_nsend.
7584
7585 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
7586
7587         * math/auto-libm-test-in: Add tests of fma.
7588         * math/auto-libm-test-out: Regenerated.
7589         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
7590         (fma_towardzero_test_data): Likewise.
7591         (fma_downward_test_data): Likewise.
7592         (fma_upward_test_data): Likewise.
7593         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
7594         mpc_mode.
7595         (rounding_modes): Add values for new field.
7596         (func_calc_method): Add value mpfr_fff_f.
7597         (func_calc_desc): Add mpfr_fff_f union field.
7598         (test_function): Add field exact_args.
7599         (FUNC): Add macro argument EXACT_ARGS.
7600         (FUNC_mpfr_f_f): Update call to FUNC.
7601         (FUNC_mpfr_f_f): Likewise.
7602         (FUNC_mpfr_ff_f): Likewise.
7603         (FUNC_mpfr_if_f): Likewise.
7604         (FUNC_mpc_c_f): Likewise.
7605         (FUNC_mpc_c_c): Likewise.
7606         (test_functions): Add fma.  Update calls to FUNC.
7607         (handle_input_arg): Add argument exact_args.
7608         (add_test): Update call to handle_input_arg.
7609         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
7610         (output_for_one_input_case): Update call to calc_generic_results.
7611         Recalculate exact zero results in each rounding mode.
7612
7613         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
7614         non-negative before setting low bit.
7615         * math/auto-libm-test-in: Mark one asin test possibly having
7616         spurious underflow.
7617         * math/auto-libm-test-out: Regenerated.
7618         * sysdeps/i386/fpu/libm-test-ulps: Update.
7619         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7620
7621 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
7622
7623         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
7624         * sysdeps/unix/sysv/linux/microblaze: Move directory from
7625         ports/sysdeps/unix/sysv/linux/microblaze.
7626         * README: Add missing listing for microblaze*-*-linux-gnu.
7627
7628 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
7629
7630         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
7631         * sysdeps/unix/sysv/linux/ia64: Move directory from
7632         ports/sysdeps/unix/sysv/linux/ia64.
7633         * README: Update listing for ia64-*-linux-gnu.
7634
7635 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
7636             Joseph Myers  <joseph@codesourcery.com>
7637
7638         * Makeconfig (test-name): New variable.
7639         (evaluate-test): Likewise.
7640         * Makerules (do-test-clean): Remove .test-result files.
7641         (common-mostlyclean): Likewise.
7642         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
7643         * scripts/evaluate-test.sh: New file.
7644
7645 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
7646
7647         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
7648         separate $(objpfx)tst-fopenloc-cmp.out and
7649         $(objpfx)tst-fopenloc-mem.out targets.
7650         (tests): Update dependencies.
7651         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
7652         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
7653         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
7654         (tst-rxspencer-no-utf8-ARGS): New variable.
7655         (tst-rxspencer-no-utf8-ENV): Likewise.
7656         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
7657         instead of $(objpfx)tst-rxspencer-mem.
7658         ($(objpfx)tst-rxspencer-mem): Change target to
7659         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
7660         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
7661         * posix/tst-rxspencer-no-utf8.c: New file.
7662
7663         * elf/Makefile ($(objpfx)order.out): Remove rule.
7664         [$(run-built-tests) = yes] (tests): Depend on
7665         $(objpfx)order-cmp.out.
7666         ($(objpfx)order-cmp.out): New rule.
7667         [$(run-built-tests) = yes] (tests): Depend on
7668         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
7669         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
7670         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
7671         $(objpfx)tst-array5-static-cmp.out.
7672         ($(objpfx)tst-array1.out): Remove rule.
7673         ($(objpfx)tst-array1-cmp.out): New rule.
7674         ($(objpfx)tst-array1-static.out): Remove rule.
7675         ($(objpfx)tst-array1-static-cmp.out): New rule.
7676         ($(objpfx)tst-array2.out): Remove rule.
7677         ($(objpfx)tst-array2-cmp.out): New rule.
7678         ($(objpfx)tst-array3.out): Remove rule.
7679         ($(objpfx)tst-array3-cmp.out): New rule.
7680         ($(objpfx)tst-array4.out): Remove rule.
7681         ($(objpfx)tst-array4-cmp.out): New rule.
7682         ($(objpfx)tst-array5.out): Remove rule.
7683         ($(objpfx)tst-array5-cmp.out): New rule.
7684         ($(objpfx)tst-array5-static.out): Remove rule.
7685         ($(objpfx)tst-array5-static-cmp.out): New rule.
7686         [$(run-built-tests) = yes] (tests): Depend on
7687         $(objpfx)order2-cmp.out.
7688         ($(objpfx)order2.out): Remove rule.
7689         ($(objpfx)order2-cmp.out): New rule.
7690         ($(objpfx)tst-initorder.out): Remove rule.
7691         [$(run-built-tests) = yes] (tests): Depend on
7692         $(objpfx)tst-initorder-cmp.out.
7693         ($(objpfx)tst-initorder-cmp.out): New rule.
7694         ($(objpfx)tst-initorder2.out): Remove rule.
7695         [$(run-built-tests) = yes] (tests): Depend on
7696         $(objpfx)tst-initorder2-cmp.out.
7697         ($(objpfx)tst-initorder2-cmp.out): New rule.
7698         [$(run-built-tests) = yes] (tests): Depend on
7699         $(objpfx)tst-unused-dep-cmp.out.
7700         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
7701         ($(objpfx)tst-unused-dep-cmp.out): New rule.
7702         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
7703         on $(objpfx)tst-setvbuf1-cmp.out.
7704         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
7705         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
7706         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
7707         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
7708         ($(objpfx)tst-svc.out): Remove rule.
7709         ($(objpfx)tst-svc-cmp.out): New rule.
7710
7711 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
7712
7713         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
7714         * ctype/ctype.h [__USE_MISC]: Likewise.
7715         * dirent/dirent.h [__USE_MISC]: Likewise.
7716         * grp/grp.h [__USE_MISC]: Likewise.
7717         * io/fcntl.h [__USE_MISC]: Likewise.
7718         * io/sys/stat.h [__USE_MISC]: Likewise.
7719         * libio/stdio.h [__USE_MISC]: Likewise.
7720         * posix/unistd.h [__USE_MISC]: Likewise.
7721         * pwd/pwd.h [__USE_MISC]: Likewise.
7722         * stdlib.h [__USE_MISC]: Likewise.
7723         * string/bits/string2.h [__USE_MISC]: Likewise.
7724         * string/string.h [__USE_MISC]: Likewise.
7725         * time/time.h [__USE_MISC]: Likewise.
7726
7727 2014-02-13  Andreas Schwab  <schwab@suse.de>
7728
7729         [BZ #16574]
7730         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
7731         second answer buffer if it was separately allocated.
7732
7733 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
7734
7735         * sysdeps/mips/math-tests.h: Include <features.h>.
7736         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7737         (ROUNDING_TESTS_long_double): Do not define.
7738         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7739         (EXCEPTION_TESTS_long_double): Likewise.
7740         * sysdeps/mips/mips64/libm-test-ulps: Update.
7741
7742         * include/features.h (__USE_BSD): Remove macro definitions.
7743         (__USE_SVID): Likewise.
7744         (_BSD_SOURCE): Likewise.
7745         (_SVID_SOURCE): Likewise.
7746         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
7747         from definition of _DEFAULT_SOURCE.
7748         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
7749         [_DEFAULT_SOURCE].
7750         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
7751         * bits/mman.h [__USE_BSD]: Likewise.
7752         * bits/termios.h [__USE_BSD]: Likewise.
7753         * bits/waitstatus.h [__USE_BSD]: Likewise.
7754         * ctype/ctype.h [__USE_SVID]: Likewise.
7755         * dirent/dirent.h [__USE_BSD]: Likewise.
7756         * grp/grp.h [__USE_SVID]: Likewise.
7757         [__USE_BSD]: Likewise.
7758         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
7759         * io/fcntl.h [__USE_BSD]: Likewise.
7760         * io/ftw.h [__USE_BSD]: Likewise.
7761         * io/sys/stat.h [__USE_BSD]: Likewise.
7762         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
7763         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
7764         * libio/stdio.h [__USE_SVID]: Likewise.
7765         [__USE_BSD]: Likewise.
7766         * math/math.h [__USE_SVID]: Likewise.
7767         [__USE_BSD]: Likewise.
7768         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
7769         * misc/bits/syslog.h [__USE_BSD]: Likewise.
7770         * misc/search.h [__USE_SVID]: Likewise.
7771         * misc/sys/mman.h [__USE_BSD]: Likewise.
7772         * misc/sys/syslog.h [__USE_BSD]: Likewise.
7773         * misc/sys/uio.h [__USE_BSD]: Likewise.
7774         * posix/bits/unistd.h [__USE_BSD]: Likewise.
7775         * posix/glob.h [__USE_BSD]: Likewise.
7776         * posix/regex.h [__USE_BSD]: Likewise.
7777         * posix/sys/types.h [__USE_BSD]: Likewise.
7778         [__USE_SVID]: Likewise.
7779         * posix/sys/utsname.h [__USE_SVID]: Likewise.
7780         * posix/sys/wait.h [__USE_BSD]: Likewise.
7781         [__USE_SVID]: Likewise.
7782         * posix/unistd.h [__USE_BSD]: Likewise.
7783         [__USE_SVID]: Likewise.
7784         * pwd/pwd.h [__USE_SVID]: Likewise.
7785         * resolv/netdb.h [__USE_BSD]: Likewise.
7786         * setjmp/setjmp.h [__USE_BSD]: Likewise.
7787         * signal/signal.h [__USE_BSD]: Likewise.
7788         [__USE_SVID]: Likewise.
7789         * socket/sys/socket.h [__USE_BSD]: Likewise.
7790         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
7791         * stdlib/stdlib.h [__USE_BSD]: Likewise.
7792         [__USE_SVID]: Likewise.
7793         * string/bits/string2.h [__USE_BSD]: Likewise.
7794         [__USE_SVID]: Likewise.
7795         * string/bits/string3.h [__USE_BSD]: Likewise.
7796         * string/endian.h [__USE_BSD]: Likewise.
7797         * string/string.h [__USE_SVID]: Likewise.
7798         [__USE_BSD]: Likewise.
7799         * string/strings.h [__USE_BSD]: Likewise.
7800         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
7801         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
7802         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
7803         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
7804         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
7805         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
7806         Likewise.
7807         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
7808         Likewise.
7809         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
7810         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
7811         Likewise.
7812         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
7813         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
7814         Likewise.
7815         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
7816         Likewise.
7817         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
7818         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
7819         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
7820         Likewise.
7821         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
7822         Likewise.
7823         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
7824         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
7825         * termios/termios.h [__USE_BSD]: Likewise.
7826         * time/sys/time.h [__USE_BSD]: Likewise.
7827         * time/time.h [__USE_BSD]: Likewise.
7828         [__USE_SVID]: Likewise.
7829
7830         * Makefile (subdir_targets): Remove subdir_lint.out.
7831
7832         * stdio-common/Makefile (do-tst-unbputc): Remove target.
7833         (do-tst-printf): Likewise.
7834         (tests): Depend directly on $(objpfx)tst-unbputc.out and
7835         $(objpfx)tst-printf.out.
7836
7837         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
7838
7839         * Makerules (check-abi-%): Change target to
7840         $(objpfx)check-abi-%.out.
7841         (check-abi target): Update dependencies.
7842         (check-abi-pattern variable): Redirect output of diff to $@.
7843         (check-abi variable): Likewise.
7844         * elf/Makefile (check-abi): Update dependencies.
7845
7846         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
7847         unused.
7848         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
7849         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
7850         subnormal range.
7851         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
7852         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
7853         value has largest subnormal exponent.
7854         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
7855         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
7856         * sysdeps/aarch64/soft-fp/sfp-machine.h
7857         (_FP_TININESS_AFTER_ROUNDING): New macro.
7858         * sysdeps/alpha/soft-fp/sfp-machine.h
7859         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7860         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7861         Likewise.
7862         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
7863         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7864         * sysdeps/mips/soft-fp/sfp-machine.h
7865         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7866         * sysdeps/powerpc/soft-fp/sfp-machine.h
7867         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7868         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7869         Likewise.
7870         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7871         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7872         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7873         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7874         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7875         Likewise.
7876
7877 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
7878
7879         [BZ #16545]
7880         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
7881         model 1.
7882
7883 2014-02-12  Richard Henderson  <rth@redhat.com>
7884
7885         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
7886         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
7887         * sysdeps/unix/sysv/linux/alpha: Move directory from
7888         ports/sysdeps/unix/sysv/linux/alpha.
7889         * README: Update listing for alpha-*-linux-gnu.
7890
7891 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
7892
7893         * include/features.h: Update comment documenting feature test
7894         macros.
7895         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
7896         _DEFAULT_SOURCE.
7897         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
7898         (_SVID_SOURCE): Likewise.
7899         (_DEFAULT_SOURCE): Update description of default features.
7900         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
7901         with _GNU_SOURCE.
7902         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
7903         (S_ISVTX): Likewise.
7904         * manual/math.texi (Mathematical Constants): Likewise.
7905         * manual/signal.texi (Interrupted Primitives): Likewise.
7906         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
7907         * math/test-matherr.c (_SVID_SOURCE): Do not define.
7908         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
7909         Don't refer to _SVID_SOURCE in warning text.
7910
7911         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7912
7913         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
7914         already defined.
7915         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
7916         * sysdeps/mips/dl-lookup.c: Remove.
7917         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
7918
7919 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
7920
7921         [BZ #16447]
7922         * math/auto-libm-test-in: Add testcase for expl.
7923         * math/auto-libm-test-out: Regenerate.
7924         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
7925         calculation of unsafe.
7926         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
7927
7928 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7929
7930         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
7931         * sysdeps/unix/sysv/linux/aarch64: Move directory from
7932         ports/sysdeps/unix/sysv/linux/aarch64.
7933         * README: Update listing for aarch64*-*-linux-gnu.
7934
7935 2014-02-11  Will Newton  <will.newton@linaro.org>
7936
7937         * manual/probes.texi (Mathematical Function Probes): Use
7938         "triggered" instead of "hit".
7939
7940         * manual/probes.texi (Internal Probes): Add documentation
7941         of setjmp, longjmp and longjmp_target probes.
7942
7943         * include/stap-probe.h: Add comment about probe argument
7944         format.
7945
7946         * malloc/mtrace.c (attribute_hidden): Remove unused macro
7947         definition.  (tr_where, tr_freehook, tr_mallochook,
7948         tr_reallochook, tr_memalignhook): Use ANSI protoype.
7949
7950 2014-02-11  David S. Miller  <davem@davemloft.net>
7951
7952         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
7953         processing int_tests.
7954
7955 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
7956
7957         * sysdeps/mips: Move directory from ports/sysdeps/mips.
7958         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
7959         * sysdeps/unix/sysv/linux/mips: Move directory from
7960         ports/sysdeps/unix/sysv/linux/mips.
7961         * README: Update listing for mips-*-linux-gnu and
7962         mips64-*-linux-gnu.
7963
7964 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
7965
7966         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
7967         * sysdeps/unix/sysv/linux/m68k: Move directory from
7968         ports/sysdeps/unix/sysv/linux/m68k.
7969         * README: Update listing for m68k-*-linux-gnu.
7970
7971 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
7972
7973         * sysdeps/tile: Move directory from ports/sysdeps/tile.
7974         * sysdeps/unix/sysv/linux/generic: Move directory from
7975         ports/sysdeps/unix/sysv/linux/generic.
7976         * sysdeps/unix/sysv/linux/tile: Move directory from
7977         ports/sysdeps/unix/sysv/linux/tile.
7978         * README: Update listing for tile*-*-linux-gnu.
7979
7980 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
7981
7982         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
7983         __builtin_expect.
7984         * benchtests/bench-memmem.c (simple_memmem): Likewise.
7985         * catgets/open_catalog.c (__open_catalog): Likewise.
7986         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
7987         * debug/confstr_chk.c: Likewise.
7988         * debug/fread_chk.c (__fread_chk): Likewise.
7989         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
7990         * debug/getgroups_chk.c: Likewise.
7991         * debug/mbsnrtowcs_chk.c: Likewise.
7992         * debug/mbsrtowcs_chk.c: Likewise.
7993         * debug/mbstowcs_chk.c: Likewise.
7994         * debug/memcpy_chk.c: Likewise.
7995         * debug/memmove_chk.c: Likewise.
7996         * debug/mempcpy_chk.c: Likewise.
7997         * debug/memset_chk.c: Likewise.
7998         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7999         * debug/strcat_chk.c (__strcat_chk): Likewise.
8000         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
8001         * debug/strncat_chk.c (__strncat_chk): Likewise.
8002         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
8003         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
8004         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
8005         * debug/wcpncpy_chk.c: Likewise.
8006         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
8007         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
8008         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
8009         * debug/wcsncpy_chk.c: Likewise.
8010         * debug/wcsnrtombs_chk.c: Likewise.
8011         * debug/wcsrtombs_chk.c: Likewise.
8012         * debug/wcstombs_chk.c: Likewise.
8013         * debug/wmemcpy_chk.c: Likewise.
8014         * debug/wmemmove_chk.c: Likewise.
8015         * debug/wmempcpy_chk.c: Likewise.
8016         * debug/wmemset_chk.c: Likewise.
8017         * dirent/scandirat.c (SCANDIRAT): Likewise.
8018         * dlfcn/dladdr1.c (dladdr1): Likewise.
8019         * dlfcn/dladdr.c (dladdr): Likewise.
8020         * dlfcn/dlclose.c (dlclose_doit): Likewise.
8021         * dlfcn/dlerror.c (__dlerror): Likewise.
8022         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8023         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
8024         * dlfcn/dlopen.c (dlopen_doit): Likewise.
8025         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
8026         * dlfcn/dlsym.c (dlsym_doit): Likewise.
8027         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
8028         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
8029         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
8030         Likewise.
8031         * elf/dl-conflict.c: Likewise.
8032         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
8033         * elf/dl-dst.h: Likewise.
8034         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
8035         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
8036         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
8037         * elf/dl-init.c (call_init, _dl_init): Likewise.
8038         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
8039         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
8040         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
8041         Likewise.
8042         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
8043         Likewise.
8044         * elf/dl-minimal.c (__libc_memalign): Likewise.
8045         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
8046         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8047         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8048         * elf/dl-sym.c (do_sym): Likewise.
8049         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
8050         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
8051         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
8052         * elf/dl-writev.h (_dl_writev): Likewise.
8053         * elf/ldconfig.c (search_dir): Likewise.
8054         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
8055         (dl_main): Likewise.
8056         * elf/setup-vdso.h (setup_vdso): Likewise.
8057         * grp/compat-initgroups.c (compat_call): Likewise.
8058         * grp/fgetgrent.c (fgetgrent): Likewise.
8059         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
8060         * grp/putgrent.c (putgrent): Likewise.
8061         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
8062         Likewise.
8063         * hurd/hurdinit.c: Likewise.
8064         * iconvdata/8bit-gap.c (struct): Likewise.
8065         * iconvdata/ansi_x3.110.c : Likewise.
8066         * iconvdata/big5.c : Likewise.
8067         * iconvdata/big5hkscs.c : Likewise.
8068         * iconvdata/cp1255.c: Likewise.
8069         * iconvdata/cp1258.c : Likewise.
8070         * iconvdata/cp932.c : Likewise.
8071         * iconvdata/euc-cn.c: Likewise.
8072         * iconvdata/euc-jisx0213.c : Likewise.
8073         * iconvdata/euc-jp.c: Likewise.
8074         * iconvdata/euc-jp-ms.c : Likewise.
8075         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
8076         * iconvdata/gb18030.c : Likewise.
8077         * iconvdata/gbbig5.c (const): Likewise.
8078         * iconvdata/gbgbk.c: Likewise.
8079         * iconvdata/gbk.c : Likewise.
8080         * iconvdata/ibm1364.c : Likewise.
8081         * iconvdata/ibm930.c : Likewise.
8082         * iconvdata/ibm932.c: Likewise.
8083         * iconvdata/ibm933.c : Likewise.
8084         * iconvdata/ibm935.c : Likewise.
8085         * iconvdata/ibm937.c : Likewise.
8086         * iconvdata/ibm939.c : Likewise.
8087         * iconvdata/ibm943.c: Likewise.
8088         * iconvdata/iso_11548-1.c: Likewise.
8089         * iconvdata/iso-2022-cn.c : Likewise.
8090         * iconvdata/iso-2022-cn-ext.c : Likewise.
8091         * iconvdata/iso-2022-jp-3.c: Likewise.
8092         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
8093         * iconvdata/iso-2022-kr.c : Likewise.
8094         * iconvdata/iso646.c (gconv_end): Likewise.
8095         * iconvdata/iso_6937-2.c : Likewise.
8096         * iconvdata/iso_6937.c : Likewise.
8097         * iconvdata/iso8859-1.c: Likewise.
8098         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
8099         * iconvdata/shift_jisx0213.c : Likewise.
8100         * iconvdata/sjis.c : Likewise.
8101         * iconvdata/t.61.c : Likewise.
8102         * iconvdata/tcvn5712-1.c : Likewise.
8103         * iconvdata/tscii.c: Likewise.
8104         * iconvdata/uhc.c : Likewise.
8105         * iconvdata/unicode.c (gconv_end): Likewise.
8106         * iconvdata/utf-16.c (gconv_end): Likewise.
8107         * iconvdata/utf-32.c (gconv_end): Likewise.
8108         * iconvdata/utf-7.c (base64): Likewise.
8109         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8110         * iconv/gconv_close.c (__gconv_close): Likewise.
8111         * iconv/gconv_open.c (__gconv_open): Likewise.
8112         * iconv/gconv_simple.c (internal_ucs4_loop_single)
8113         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
8114         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
8115         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
8116         (ucs4le_internal_loop_single): Likewise.
8117         * iconv/iconv.c (iconv): Likewise.
8118         * iconv/iconv_close.c: Likewise.
8119         * iconv/loop.c (SINGLE): Likewise.
8120         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
8121         * include/atomic.h: Likewise.
8122         * inet/inet6_option.c (option_alloc): Likewise.
8123         * intl/bindtextdom.c (set_binding_values): Likewise.
8124         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
8125         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8126         * intl/localealias.c (read_alias_file): Likewise.
8127         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8128         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
8129         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
8130         * libio/fmemopen.c (fmemopen): Likewise.
8131         * libio/iofgets.c (_IO_fgets): Likewise.
8132         * libio/iofgets_u.c (fgets_unlocked): Likewise.
8133         * libio/iofgetws.c (fgetws): Likewise.
8134         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8135         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8136         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
8137         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
8138         * locale/findlocale.c (_nl_find_locale): Likewise.
8139         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8140         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
8141         Likewise.
8142         * locale/setlocale.c (setlocale): Likewise.
8143         * login/programs/pt_chown.c (main): Likewise.
8144         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
8145         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
8146         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
8147         (mmap, mmap64, mremap, munmap): Likewise.
8148         * math/e_exp2l.c: Likewise.
8149         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
8150         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
8151         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
8152         * math/s_catan.c (__catan): Likewise.
8153         * math/s_catanf.c (__catanf): Likewise.
8154         * math/s_catanh.c (__catanh): Likewise.
8155         * math/s_catanhf.c (__catanhf): Likewise.
8156         * math/s_catanhl.c (__catanhl): Likewise.
8157         * math/s_catanl.c (__catanl): Likewise.
8158         * math/s_ccosh.c (__ccosh): Likewise.
8159         * math/s_ccoshf.c (__ccoshf): Likewise.
8160         * math/s_ccoshl.c (__ccoshl): Likewise.
8161         * math/s_cexp.c (__cexp): Likewise.
8162         * math/s_cexpf.c (__cexpf): Likewise.
8163         * math/s_cexpl.c (__cexpl): Likewise.
8164         * math/s_clog10.c (__clog10): Likewise.
8165         * math/s_clog10f.c (__clog10f): Likewise.
8166         * math/s_clog10l.c (__clog10l): Likewise.
8167         * math/s_clog.c (__clog): Likewise.
8168         * math/s_clogf.c (__clogf): Likewise.
8169         * math/s_clogl.c (__clogl): Likewise.
8170         * math/s_csin.c (__csin): Likewise.
8171         * math/s_csinf.c (__csinf): Likewise.
8172         * math/s_csinh.c (__csinh): Likewise.
8173         * math/s_csinhf.c (__csinhf): Likewise.
8174         * math/s_csinhl.c (__csinhl): Likewise.
8175         * math/s_csinl.c (__csinl): Likewise.
8176         * math/s_csqrt.c (__csqrt): Likewise.
8177         * math/s_csqrtf.c (__csqrtf): Likewise.
8178         * math/s_csqrtl.c (__csqrtl): Likewise.
8179         * math/s_ctan.c (__ctan): Likewise.
8180         * math/s_ctanf.c (__ctanf): Likewise.
8181         * math/s_ctanh.c (__ctanh): Likewise.
8182         * math/s_ctanhf.c (__ctanhf): Likewise.
8183         * math/s_ctanhl.c (__ctanhl): Likewise.
8184         * math/s_ctanl.c (__ctanl): Likewise.
8185         * math/w_pow.c: Likewise.
8186         * math/w_powf.c: Likewise.
8187         * math/w_powl.c: Likewise.
8188         * math/w_scalb.c (sysv_scalb): Likewise.
8189         * math/w_scalbf.c (sysv_scalbf): Likewise.
8190         * math/w_scalbl.c (sysv_scalbl): Likewise.
8191         * misc/error.c (error_tail): Likewise.
8192         * misc/pselect.c (__pselect): Likewise.
8193         * nis/nis_callback.c (__nis_create_callback): Likewise.
8194         * nis/nis_call.c (__nisfind_server): Likewise.
8195         * nis/nis_creategroup.c (nis_creategroup): Likewise.
8196         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
8197         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
8198         * nis/nis_getservlist.c (nis_getservlist): Likewise.
8199         * nis/nis_lookup.c (nis_lookup): Likewise.
8200         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
8201         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
8202         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
8203         * nis/nis_xdr.c (xdr_endpoint): Likewise.
8204         * nis/nss_compat/compat-grp.c (getgrent_next_file)
8205         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
8206         * nis/nss_compat/compat-initgroups.c (add_group)
8207         (internal_getgrent_r): Likewise.
8208         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
8209         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
8210         * nis/nss_compat/compat-spwd.c (getspent_next_file)
8211         (internal_getspnam_r): Likewise.
8212         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
8213         (_nss_nis_getaliasbyname_r): Likewise.
8214         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
8215         (_nss_nis_getntohost_r): Likewise.
8216         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
8217         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
8218         (_nss_nis_getgrgid_r): Likewise.
8219         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
8220         (internal_nis_gethostent_r, internal_gethostbyname2_r)
8221         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
8222         (_nss_nis_gethostbyname4_r): Likewise.
8223         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
8224         (initgroups_netid): Likewise.
8225         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
8226         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
8227         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
8228         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
8229         (_nss_nis_getprotobynumber_r): Likewise.
8230         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
8231         (_nss_nis_getsecretkey): Likewise.
8232         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
8233         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
8234         (_nss_nis_getpwuid_r): Likewise.
8235         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
8236         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
8237         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
8238         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
8239         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
8240         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
8241         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
8242         Likewise.
8243         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
8244         (_nss_nisplus_getntohost_r): Likewise.
8245         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
8246         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8247         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
8248         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
8249         Likewise.
8250         * nis/nss_nisplus/nisplus-initgroups.c
8251         (_nss_nisplus_initgroups_dyn): Likewise.
8252         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
8253         (_nss_nisplus_getnetbyaddr_r): Likewise.
8254         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
8255         (_nss_nisplus_getprotobynumber_r): Likewise.
8256         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
8257         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
8258         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
8259         Likewise.
8260         * nis/nss_nisplus/nisplus-service.c
8261         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
8262         (_nss_nisplus_getservbyport_r): Likewise.
8263         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
8264         (_nss_nisplus_getspnam_r): Likewise.
8265         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
8266         Likewise.
8267         * nscd/aicache.c (addhstaiX): Likewise.
8268         * nscd/cache.c (cache_search, prune_cache): Likewise.
8269         * nscd/connections.c (register_traced_file, send_ro_fd)
8270         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
8271         (main_loop_epoll): Likewise.
8272         * nscd/grpcache.c (addgrbyX): Likewise.
8273         * nscd/hstcache.c (addhstbyX): Likewise.
8274         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8275         * nscd/mem.c (gc, mempool_alloc): Likewise.
8276         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
8277         (addinnetgrX): Likewise.
8278         * nscd/nscd-client.h (__nscd_acquire_maplock)
8279         (__nscd_drop_map_ref): Likewise.
8280         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8281         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8282         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
8283         Likewise.
8284         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8285         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8286         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
8287         (__nscd_get_map_ref): Likewise.
8288         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8289         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
8290         Likewise.
8291         * nscd/pwdcache.c (addpwbyX): Likewise.
8292         * nscd/selinux.c (preserve_capabilities): Likewise.
8293         * nscd/servicescache.c (addservbyX): Likewise.
8294         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
8295         * posix/fnmatch.c (fnmatch): Likewise.
8296         * posix/getopt.c (_getopt_internal_r): Likewise.
8297         * posix/glob.c (glob, glob_in_dir): Likewise.
8298         * posix/wordexp.c (exec_comm_child): Likewise.
8299         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
8300         (getanswer_r, gaih_getanswer_slice): Likewise.
8301         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
8302         * resolv/res_init.c: Likewise.
8303         * resolv/res_mkquery.c (res_nmkquery): Likewise.
8304         * resolv/res_query.c (__libc_res_nquery): Likewise.
8305         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
8306         Likewise.
8307         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
8308         * stdio-common/perror.c (perror): Likewise.
8309         * stdio-common/printf_fp.c (___printf_fp): Likewise.
8310         * stdio-common/tmpnam.c (tmpnam): Likewise.
8311         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
8312         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
8313         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
8314         Likewise.
8315         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8316         * stdlib/putenv.c (putenv): Likewise.
8317         * stdlib/setenv.c (__add_to_environ): Likewise.
8318         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8319         * stdlib/strtol_l.c (INTERNAL): Likewise.
8320         * string/memmem.c (memmem): Likewise.
8321         * string/strerror.c (strerror): Likewise.
8322         * string/strnlen.c (__strnlen): Likewise.
8323         * string/test-memmem.c (simple_memmem): Likewise.
8324         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
8325         * sunrpc/pm_getport.c (__get_socket): Likewise.
8326         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
8327         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8328         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
8329         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
8330         Likewise.
8331         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8332         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
8333         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8334         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
8335         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8336         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
8337         Likewise.
8338         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
8339         Likewise.
8340         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8341         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8342         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
8343         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8344         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8345         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
8346         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
8347         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
8348         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8349         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8350         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8351         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
8352         Likewise.
8353         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
8354         Likewise.
8355         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
8356         Likewise.
8357         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
8358         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8359         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
8360         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
8361         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8362         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
8363         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
8364         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
8365         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
8366         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
8367         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
8368         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8369         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
8370         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
8371         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8372         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8373         Likewise.
8374         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
8375         Likewise.
8376         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
8377         Likewise.
8378         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
8379         Likewise.
8380         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8381         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8382         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
8383         Likewise.
8384         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
8385         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
8386         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8387         * sysdeps/posix/sleep.c: Likewise.
8388         * sysdeps/posix/tempname.c: Likewise.
8389         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
8390         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8391         Likewise.
8392         * sysdeps/powerpc/powerpc32/dl-machine.h
8393         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
8394         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
8395         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
8396         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
8397         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
8398         Likewise.
8399         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
8400         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
8401         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8402         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
8403         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8404         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
8405         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
8406         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
8407         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8408         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
8409         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
8410         (elf_machine_lazy_rel): Likewise.
8411         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8412         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
8413         (elf_machine_lazy_rel): Likewise.
8414         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
8415         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
8416         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
8417         * sysdeps/unix/grantpt.c (grantpt): Likewise.
8418         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
8419         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
8420         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8421         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8422         Likewise.
8423         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8424         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8425         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
8426         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
8427         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
8428         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8429         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
8430         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
8431         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8432         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8433         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8434         Likewise.
8435         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
8436         (__posix_fallocate64_l64): Likewise.
8437         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
8438         (posix_fallocate): Likewise.
8439         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8440         Likewise.
8441         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8442         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
8443         (getifaddrs_internal): Likewise.
8444         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
8445         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
8446         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
8447         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
8448         * sysdeps/unix/sysv/linux/posix_fallocate64.c
8449         (__posix_fallocate64_l64): Likewise.
8450         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
8451         Likewise.
8452         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8453         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
8454         (__get_clockfreq): Likewise.
8455         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
8456         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
8457         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
8458         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8459         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8460         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
8461         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8462         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
8463         Likewise.
8464         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
8465         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
8466         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8467         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
8468         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8469         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
8470         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
8471         Likewise.
8472         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8473         (posix_fallocate): Likewise.
8474         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8475         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
8476         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
8477         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
8478         (elf_machine_rela, elf_machine_rela_relative)
8479         (elf_machine_lazy_rel): Likewise.
8480         * time/asctime.c (asctime_internal): Likewise.
8481         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
8482         * time/tzset.c (__tzset_parse_tz): Likewise.
8483         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
8484         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
8485         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
8486         * wcsmbs/wcsmbsload.h: Likewise.
8487
8488         [BZ #15894]
8489         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
8490
8491         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
8492         (arena_get2): Remove THREAD_STATS conditionals.
8493         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
8494         (__malloc_stats, int): Likewise.
8495
8496 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
8497
8498         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
8499         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
8500
8501         * manual/setjmp.texi: Fix typos/grammar errors.
8502
8503         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
8504         Only return early when n is <= 0.  Delete unused return statement.
8505
8506         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
8507         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
8508         * debug/tst-longjmp_chk3.c: New file.
8509
8510         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
8511         (test_main): Replace code with set_fortify_handler call.
8512         * debug/test-strcpy_chk.c: Likewise.
8513         * debug/tst-chk1.c: Likewise.
8514         * debug/tst-longjmp_chk.c: Likewise.
8515         * test-skeleton.c: Include fcntl.h & paths.h
8516         (set_fortify_handler): Define.
8517
8518         * debug/tst-longjmp_chk.c: Add header comment and include
8519         ../test-skeleton.c.
8520         (do_test): Mark static.
8521         (TEST_FUNCTION): Define.
8522
8523         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
8524         (IP_PMTUDISC_INTERFACE): Likewise.
8525         (IP_MULTICAST_IF): Likewise.
8526         (IP_MULTICAST_TTL): Likewise.
8527         (IP_MULTICAST_LOOP): Likewise.
8528         (IP_ADD_MEMBERSHIP): Likewise.
8529         (IP_DROP_MEMBERSHIP): Likewise.
8530         (IP_UNBLOCK_SOURCE): Likewise.
8531         (IP_BLOCK_SOURCE): Likewise.
8532         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
8533         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
8534         (IP_MSFILTER): Likewise.
8535         (MCAST_JOIN_GROUP): Likewise.
8536         (MCAST_BLOCK_SOURCE): Likewise.
8537         (MCAST_UNBLOCK_SOURCE): Likewise.
8538         (MCAST_LEAVE_GROUP): Likewise.
8539         (MCAST_JOIN_SOURCE_GROUP): Likewise.
8540         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
8541         (MCAST_MSFILTER): Likewise.
8542         (IP_MULTICAST_ALL): Likewise.
8543         (IP_UNICAST_IF): Likewise.
8544
8545         * timezone/Makefile: Delete $(have-ksh) check.
8546         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
8547         * timezone/tzselect.ksh: Add +x mode bits.
8548
8549         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
8550         (ANON_INODE_FS_MAGIC): Likewise.
8551         (BDEVFS_MAGIC): Likewise.
8552         (BINFMTFS_MAGIC): Likewise.
8553         (BTRFS_TEST_MAGIC): Likewise.
8554         (CRAMFS_MAGIC_WEND): Likewise.
8555         (DEBUGFS_MAGIC): Likewise.
8556         (ECRYPTFS_SUPER_MAGIC): Likewise.
8557         (EXT3_SUPER_MAGIC): Likewise.
8558         (EXT4_SUPER_MAGIC): Likewise.
8559         (FUTEXFS_SUPER_MAGIC): Likewise.
8560         (HOSTFS_SUPER_MAGIC): Likewise.
8561         (HUGETLBFS_MAGIC): Likewise.
8562         (MINIX3_SUPER_MAGIC): Likewise.
8563         (MTD_INODE_FS_MAGIC): Likewise.
8564         (NILFS_SUPER_MAGIC): Likewise.
8565         (OPENPROM_SUPER_MAGIC): Likewise.
8566         (PIPEFS_MAGIC): Likewise.
8567         (PSTOREFS_MAGIC): Likewise.
8568         (QNX6_SUPER_MAGIC): Likewise.
8569         (RAMFS_MAGIC): Likewise.
8570         (REISERFS_SUPER_MAGIC_STRING): Likewise.
8571         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
8572         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
8573         (SECURITYFS_MAGIC): Likewise.
8574         (SELINUX_MAGIC): Likewise.
8575         (SMACK_MAGIC): Likewise.
8576         (SOCKFS_MAGIC): Likewise.
8577         (SQUASHFS_MAGIC): Likewise.
8578         (STACK_END_MAGIC): Likewise.
8579         (TMPFS_MAGIC): Likewise.
8580         (USBDEVICE_SUPER_MAGIC): Likewise.
8581         (V9FS_MAGIC): Likewise.
8582         (XENFS_SUPER_MAGIC): Likewise.
8583         (CRAMFS_MAGIC): Fix typo in comment.
8584         (EXT2_SUPER_MAGIC): Update comment.
8585         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
8586
8587 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
8588
8589         * sysdeps/arm: Move directory from ports/sysdeps/arm.
8590         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
8591         * sysdeps/unix/sysv/linux/arm: Move directory from
8592         ports/sysdeps/unix/sysv/linux/arm.
8593         * README: Update listing for arm-*-linux-gnueabi.
8594
8595         * README: Remove mention of am33.
8596
8597 2014-02-07  Roland McGrath  <roland@hack.frob.com>
8598
8599         * bits/sigset.h (__sigemptyset): Use a statement expression rather
8600         than the comma operator, to avoid "rhs of comma has no effect"
8601         compiler warnings.
8602         (__sigfillset, __sigandset, __sigorset): Likewise.
8603         * include/signal.h (__sigemptyset): Likewise.
8604         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
8605
8606 2014-02-07  Allan McRae  <allan@archlinux.org>
8607
8608         * version.h (RELEASE): Set to "development".
8609         (VERSION): Set to "2.19.90"
8610         * NEWS: Add 2.20 section.
8611
8612 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
8613
8614         [BZ #16529]
8615         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
8616
8617 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8618
8619         * manual/contrib.texi: Update entry for Carlos O'Donell,
8620         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
8621
8622 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
8623
8624         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
8625
8626         * sysdeps/unix/sysv/linux/kernel-features.h
8627         [__LINUX_KERNEL_VERSION >= 0x020621]
8628         (__ASSUME_PROC_PID_TASK_COMM): Define.
8629
8630 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8631
8632         [BZ #16398]
8633         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
8634         conversion when destination buffer does not have enough space.
8635         * libio/tst-ftell-partial-wide.c: New test case.
8636         * libio/Makefile (tests): Add tst-ftell-partial-wide.
8637
8638         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
8639         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
8640         Leonard and Allan McRae.
8641
8642 2014-02-04  David S. Miller  <davem@davemloft.net>
8643
8644         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
8645         32-bit.
8646
8647 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8648
8649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
8650         New file
8651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
8652         New file
8653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
8654         New file.
8655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
8656         New file.
8657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
8658         New file.
8659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
8660         New file.
8661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
8662         New file.
8663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
8664         New file.
8665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
8666         New file.
8667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
8668         New file.
8669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
8670         New file.
8671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
8672         New file.
8673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
8674         New file.
8675
8676 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8677
8678         * nptl/shlib-versions: Change powerpc*le start to 2.17.
8679         * shlib-versions: Likewise.
8680
8681 2014-02-04  Roland McGrath  <roland@hack.frob.com>
8682             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8683
8684         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
8685         (abilist-pattern): New variable, set to %-le.abilist.
8686
8687         * Makerules (abilist-pattern): New variable.
8688         (vpath): Use $(abilist-pattern) in place of %.abilist.
8689         (check-abi-% pattern rule): Likewise.
8690         (check-abi, update-abi): Likewise.
8691
8692 2014-02-04  Eric Wong  <normalperson@yhbt.net>
8693
8694         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8695
8696 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
8697
8698         * manual/startup.texi: Add next, previous, and top entries for
8699         the `Program Arguments' and `Environment Variables' nodes.
8700
8701 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
8702
8703         * manual/macros.texi: Add comments before MTASC-safety macros.
8704
8705         * manual/users.texi: Document MTASC-safety properties.
8706
8707         * manual/threads.texi (pthread_key_create, pthread_key_delete)
8708         (pthread_getspecific, pthread_setspecific): Format with
8709         @deftypefun, and add @safety note.
8710         * manual/signal.texi: Move comments that analyze the above
8711         functions to their home place.
8712
8713 2014-02-03  Allan McRae  <allan@archlinux.org>
8714
8715         * po/sl.po: Update Slovenian translation from translation project.
8716
8717 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
8718
8719         * manual/time.texi (timegm): Add missing blank after @c.
8720         Reported by Joseph Myers <joseph@codesourcery.com>.
8721
8722 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
8723
8724         * manual/check-safety.sh: New.
8725         * manual/Makefile ($(objpfx)stamp-summary): Run it.
8726
8727         * manual/terminal.texi: Document MTASC-safety properties.
8728
8729         * manual/filesys.texi: Document MTASC-safety properties.
8730
8731         * manual/errno.texi: Document MTASC-safety properties.
8732
8733         * manual/intro.texi: Document safety identifiers and
8734         conditionals.
8735
8736         * manual/string.texi (wcstok): Fix prototype.
8737         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
8738
8739         * manual/time.texi: Document MTASC-safety properties.
8740
8741         * manual/string.texi: Document MTASC-safety properties.
8742
8743         * manual/threads.texi: Document MTASC-safety properties.
8744
8745         * manual/stdio.texi: Document MTASC-safety properties.
8746
8747         * manual/syslog.texi: Document MTASC-safety properties.
8748
8749         * manual/sysinfo.texi: Document MTASC-safety properties.
8750
8751         * manual/startup.texi: Document MTASC-safety properties.
8752
8753         * manual/socket.texi: Document MTASC-safety properties.
8754
8755         * manual/signal.texi: Document MTASC-safety properties.
8756
8757 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
8758
8759         * manual/setjmp.texi: Document MTASC-safety properties.
8760
8761         * manual/search.texi: Document MTASC-safety properties.
8762
8763         * manual/resource.texi: Document MTASC-safety properties.
8764
8765         * manual/process.texi: Document MTASC-safety properties.
8766
8767         * manual/platform.texi: Document MTASC-safety properties.
8768
8769         * manual/pipe.texi: Document MTASC-safety properties.
8770
8771         * manual/pattern.texi: Document MTASC-safety properties.
8772
8773         * manual/message.texi: Document MTASC-safety properties.
8774
8775         [BZ #12751]
8776         * manual/memory.texi: Document MTASC-safety properties.
8777
8778         * manual/math.texi: Document MTASC-safety properties.
8779
8780         * manual/locale.texi: Document MTASC-safety properties.
8781
8782         * manual/llio.texi: Document MTASC-safety properties.
8783
8784         * manual/libdl.texi: New.
8785
8786         * manual/lang.texi: Document MTASC-safety properties.
8787
8788         * manual/job.texi: Document MTASC-safety properties.
8789
8790         * manual/getopt.texi: Document MTASC-safety properties.
8791
8792         * manual/ctype.texi: Document MTASC-safety properties.
8793
8794 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
8795
8796         [BZ #16046]
8797         * csu/libc-tls.c (static_map): Remove variable.
8798         (__libc_setup_tls): Use main executable's link map for TLS data.
8799         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
8800         casing for LM_ID_BASE and GL(dl_nns).
8801         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
8802         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
8803         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
8804         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
8805         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
8806         member.
8807         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
8808         l_phnum members.
8809
8810 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
8811
8812         * manual/debug.texi: Document MTASC-safety properties.
8813
8814 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8815
8816         [BZ #16510]
8817         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
8818         of __x86_64__ when disabling x87 inline functions.
8819
8820 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
8821
8822         * manual/charset.texi: Document MTASC-safety properties.
8823
8824         * manual/crypt.texi: Document MTASC-safety properties.
8825
8826         * manual/conf.texi: Document MTASC-safety properties.
8827
8828         * manual/arith.texi: Document MTASC-safety properties.
8829
8830         * manual/argp.texi: Document MTASC-safety properties.
8831
8832         * manual/macros.texi: Introduce macros to document multi
8833         thread, asynchronous signal and asynchronous cancellation
8834         safety properties.
8835         * manual/intro.texi: Introduce the properties themselves.
8836
8837 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8838
8839         * sysdeps/sh/sh4/Makefile: New file.
8840
8841 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
8842
8843         * math/gen-libm-test.pl ($srcdir): New variable.
8844         ($auto_input): Use it.
8845
8846 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8847
8848         [BZ #16506]
8849         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
8850         access beyond array bounds when parsing netgroups file.
8851
8852         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
8853         the old buffer before realloc.
8854
8855 2014-01-27  Allan McRae  <allan@archlinux.org>
8856
8857         * po/fr.po: Update French translation from translation project.
8858
8859 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8860
8861         * sysdeps/sh/libm-test-ulps: Regenerate.
8862
8863 2014-01-24  David S. Miller  <davem@davemloft.net>
8864
8865         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
8866
8867 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8868
8869         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
8870         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
8871
8872 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8873
8874         [BZ #16474]
8875         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
8876         string pointers after reallocation.
8877
8878 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8879
8880         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
8881         __SH4A__ instead of __SH_FPU_ANY__.
8882
8883 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8884
8885         * sysdeps/sh/fpu_control.h: New file.
8886         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
8887         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8888         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
8889         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
8890         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
8891         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
8892         * sysdeps/sh/sys/ucontext.h: Remove.
8893         * sysdeps/sh/sys: Remove directory.
8894
8895 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8896
8897         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
8898         s390/sys/ucontext.h.
8899         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8900         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
8901
8902 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
8903
8904         [BZ #15605]
8905         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
8906
8907 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8908
8909         [BZ#16431]
8910         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
8911         Adjust the vDSO correctly for internal calls.
8912         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
8913
8914 2014-01-20  Allan McRae  <allan@archlinux.org>
8915
8916         * po/ca.po: Update Catalan translation from translation project.
8917
8918 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
8919
8920         * sysdeps/s390/sotruss-lib.c: New file.
8921
8922 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8923
8924         [BZ#16430]
8925         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
8926         (__GI___gettimeofday): Alias for a different internal symbol to avoid
8927         local calls issues by not having a PLT stub required for IFUNC calls.
8928         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
8929
8930 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
8931
8932         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
8933         * math/test-fpucw-static.c: Likewise.
8934
8935 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8936
8937         [BZ #16453]
8938         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
8939
8940 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8941
8942         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
8943         implementation for powerpc.
8944
8945 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
8946
8947         [BZ #14782]
8948         * sysdeps/posix/system.c (__libc_system): Do not enable
8949         asynchronous cancellation.
8950
8951 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8952
8953         [BZ #16427]
8954         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
8955         handling only for numbers special also in the IEEE case.
8956
8957 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8958
8959         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8960
8961 2014-01-11  Allan McRae  <allan@archlinux.org>
8962
8963         * po/bg.po: Update Bulgarian translation from translation project.
8964
8965         * po/de.po: Update German translation from translation project.
8966
8967 2014-01-10  Roland McGrath  <roland@hack.frob.com>
8968
8969         * sysdeps/generic/gcc-compat.h: New file.
8970
8971 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8972
8973         * benchtests/asin-inputs: Correct slow inputs.
8974         * benchtests/acos-inputs: Likewise.
8975
8976 2014-01-10  Allan McRae  <allan@archlinux.org>
8977
8978         * po:sv.po: Update Swedish translation from translation project.
8979
8980         * po/vi.po: Update Vietnamese translation from translation project.
8981
8982         * po/eo.po: Update Esperanto translation from translation project.
8983
8984         * po/cs.po: Update Czech translation from translation project.
8985
8986         * po/nl.po: Update Dutch translation from translation project.
8987
8988         * po/pl.po: Update Polish translation from translation project.
8989
8990         * po/ru.po: Update Russian translation from translation project.
8991
8992         * po/uk.po: Update Ukrainian translation from translation project.
8993
8994 2014-01-08  Brooks Moses  <bmoses@google.com>
8995
8996         * elf/dl-load.c: Fix comment typo.
8997
8998 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
8999
9000         * po/header.pot: Rename to...
9001         * po/pot.header: ... this.
9002         * po/Makefile: Use pot.header.
9003
9004 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
9005             Maxim Kuvyrkov  <maxim@kugelworks.com>
9006
9007         [BZ #16394]
9008         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
9009         SRC and DEST against LEN.
9010
9011 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9012
9013         [BZ #16414]
9014         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
9015         implementation.
9016         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
9017
9018 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9019
9020         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9021
9022 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
9023
9024         [BZ #16408]
9025         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
9026         for large positive arguments.
9027
9028 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
9029
9030         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9031
9032         * math/auto-libm-test-in: Mark various tests with
9033         xfail-rounding:ldbl-128ibm.
9034         * math/auto-libm-test-out: Regenerated.
9035
9036         [BZ #16407]
9037         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
9038         Increase overflow threshold.
9039
9040 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
9041
9042         [BZ #14286]
9043         * stdio-common/vfprintf.c: Check for integer overflow.
9044
9045 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9046
9047         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
9048         the first argument and return value of __tls_get_addr_internal.
9049
9050 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9051
9052         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
9053         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
9054
9055 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9056
9057         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
9058         * sysdeps/s390/rtld-global-offsets.sym: New file.
9059         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
9060         GLIBC_2.19 symbol.
9061         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
9062         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
9063         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
9064         ... this.
9065         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
9066         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
9067         ... this.
9068         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9069         Regenerate.
9070         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9071         Regenerate.
9072         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
9073         halfs of GPRs for high_gprs contexts.
9074         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
9075         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
9076         field.
9077         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
9078         uc_flags field.
9079         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
9080         64 bit versions:
9081         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
9082         for high GPRs (uc_high_gprs) and for future extensions
9083         (__reserved).
9084         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
9085         for future extensions (__reserved).
9086         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
9087         64 bit versions:
9088         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
9089         SC_HIGHGPRS offset definition.
9090         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
9091         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
9092
9093         * Versions.def: Add GLIBC_2.19 for libpthread.
9094         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
9095         siglongjmp for libpthread with GLIBC_2.19 symver.
9096         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
9097         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
9098         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
9099         * sysdeps/s390/__longjmp.c: New file.
9100         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
9101         * sysdeps/s390/longjmp.c: New file.
9102         * sysdeps/s390/setjmp.S: New file.
9103         * sysdeps/s390/sigjmp.S: New file.
9104         * sysdeps/s390/v1-longjmp.c: New file.
9105         * sysdeps/s390/v1-setjmp.h: New file.
9106         * sysdeps/s390/v1-sigjmp.c: New file.
9107         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
9108         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
9109         GLIBC_2.19 version.
9110         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
9111         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
9112         versioned symbols for ____longjmp_chk.
9113         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
9114         Likewise.
9115         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9116         Regenerate.
9117         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9118         Regenerate.
9119         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9120         Regenerate.
9121         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9122         Regenerate.
9123         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
9124         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
9125         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
9126         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
9127         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
9128         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
9129         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
9130         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
9131         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
9132         * sysdeps/s390/rtld-__longjmp.c: New file.
9133         * sysdeps/s390/rtld-setjmp.S: New file.
9134
9135 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
9136
9137         [BZ #16400]
9138         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9139         Return -__logl (x) for small positive arguments without evaluating
9140         a polynomial.
9141
9142 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
9143
9144         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
9145         Rename to ...
9146         (__ptrace_peeksiginfo_args): ... this.
9147         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9148         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9149         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9150
9151 2014-01-06  Allan McRae  <allan@archlinux.org>
9152
9153         * inet/netinet/in.h: Fix typo in comment.
9154
9155 2014-01-05  Andreas Jaeger  <aj@suse.de>
9156
9157         * sysdeps/i386/fpu/libm-test-ulps: Update.
9158
9159 2014-01-05  Allan McRae  <allan@archlinux.org>
9160
9161         * po/libc.pot: Regenerated.
9162
9163         * malloc/memusagestat.c: Fix gettext call formatting.
9164
9165 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
9166
9167         * nscd/nscd.c: Improve usage() output.
9168
9169 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
9170
9171         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
9172         * sysdeps/unix/sysv/linux/configure: Regenerated.
9173         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
9174         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
9175
9176 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9177
9178         [BZ #16390]
9179         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
9180         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
9181
9182 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9183
9184         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
9185         extra tokens at end of #undef directive.
9186         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
9187         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
9188         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
9189
9190 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9191
9192         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9193
9194         * math/auto-libm-test-in: Mark various tests with
9195         xfail-rounding:ldbl-128ibm.
9196         * math/auto-libm-test-out: Regenerated.
9197
9198 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
9199
9200         [BZ #16386]
9201         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
9202         numbers with subnormal high part when calculating exponent.
9203
9204         [BZ #16385]
9205         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
9206         fabs.
9207
9208         [BZ #16384]
9209         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
9210         M_LN2l.
9211         (__ieee754_acoshl): Use __log1pl not __log1p.
9212
9213 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
9214
9215         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
9216         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
9217         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
9218         (grow_heap, heap_trim, _int_new_arena, get_free_list)
9219         (reused_arena, arena_get2): Convert to GNU style.
9220         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
9221         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
9222         (memalign_check, __malloc_set_state): Likewise.
9223         * malloc/mallocbug.c (main): Likewise.
9224         * malloc/malloc.c (__malloc_assert, malloc_init_state)
9225         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
9226         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
9227         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
9228         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
9229         (__posix_memalign, malloc_info): Likewise.
9230         * malloc/malloc.h: Likewise.
9231         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
9232         (mallochook, memalignhook, reallochook, mabort): Likewise.
9233         * malloc/mcheck.h: Likewise.
9234         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
9235         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
9236         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
9237         * malloc/morecore.c (__default_morecore): Likewise.
9238         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
9239         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
9240         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
9241         (print_and_abort): Likewise.
9242         * malloc/obstack.h: Likewise.
9243         * malloc/set-freeres.c (__libc_freeres): Likewise.
9244         * malloc/tst-mallocstate.c (main): Likewise.
9245         * malloc/tst-mtrace.c (main): Likewise.
9246         * malloc/tst-realloc.c (do_test): Likewise.
9247
9248 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9249
9250         [BZ #16366]
9251         * nscd/netgroupcache.c (do_notfound): New function.
9252         (addgetnetgrentX): Use it.
9253
9254         [BZ # 16365]
9255         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
9256         NSS_STATUS_NOTFOUND.
9257
9258 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
9259
9260         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
9261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9262
9263 2014-01-01  Allan McRae  <allan@archlinux.org>
9264
9265         * scripts/update-copyrights: Update configure input file suffix.
9266
9267         * NEWS: Update copyright year.
9268         * catgets/gencat.c: Likewise.
9269         * csu/version.c: Likewise.
9270         * debug/catchsegv.sh: Likewise.
9271         * debug/pcprofiledump.c: Likewise.
9272         * debug/xtrace.sh: Likewise.
9273         * elf/ldconfig.c: Likewise.
9274         * elf/ldd.bash.in: Likewise.
9275         * elf/pldd.c: Likewise.
9276         * elf/sotruss.ksh: Likewise.
9277         * elf/sprof.c: Likewise.
9278         * iconv/iconv_prog.c: Likewise.
9279         * iconv/iconvconfig.c: Likewise.
9280         * locale/programs/locale.c: Likewise.
9281         * locale/programs/localedef.c: Likewise.
9282         * login/programs/pt_chown.c: Likewise.
9283         * malloc/memusage.sh: Likewise.
9284         * malloc/memusagestat.c: Likewise.
9285         * malloc/mtrace.pl: Likewise.
9286         * manual/libc.texinfo: Likewise.
9287         * nscd/nscd.c: Likewise.
9288         * nss/getent.c: Likewise.
9289         * nss/makedb.c: Likewise.
9290         * posix/getconf.c: Likewise.
9291         * scripts/test-installation.pl: Likewise.
9292
9293         * All files with FSF copyright notices: Update copyright dates
9294         using scripts/update-copyrights.
9295         * intl/plural.c: Regenerated.
9296         * locale/programs/charmap-kw.h: Likewise.
9297         * locale/programs/locfile-kw.h: Likewise.
9298
9299 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
9300
9301         * sysdeps/unix/sysv/linux/configure: Regenerated.
9302         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
9303         the linux/fanotify.h header.
9304         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
9305         HAVE_LINUX_FANOTIFY_H is defined.
9306
9307 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9308
9309         * benchtests/cos-inputs: New inputs.
9310         * benchtests/sin-inputs: Likewise.
9311
9312         * benchtests/atan-inputs: New inputs. Fix name of multiple
9313         precision fallback inputs.
9314
9315         * benchtests/atanh-inputs: New inputs.
9316         * benchtests/tanh-inputs: Likewise.
9317
9318         * benchtests/acosh-inputs: New inputs.
9319         * benchtests/asinh-inputs: Likewise.
9320
9321         * benchtests/cosh-inputs: New inputs.
9322         * benchtests/sinh-inputs: Likewise.
9323
9324         * benchtests/acos-inputs: Add more inputs.
9325         * benchtests/asin-inputs: Likewise.
9326
9327 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
9328
9329         [BZ #16375]
9330         * manual/arith.texi: Fix spelling.
9331         * manual/charset.texi: Likewise.
9332         * manual/errno.texi: Likewise.
9333         * manual/filesys.texi: Likewise.
9334         * manual/lang.texi: Likewise.
9335         * manual/llio.texi: Likewise.
9336         * manual/locale.texi: Likewise.
9337         * manual/message.texi: Likewise.
9338         * manual/resource.texi: Likewise.
9339         * manual/search.texi: Likewise.
9340         * manual/setjmp.texi: Likewise.
9341         * manual/stdio.texi: Likewise.
9342         * manual/string.texi: Likewise.
9343         * manual/sysinfo.texi: Likewise.
9344         * manual/time.texi: Likewise.
9345
9346 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
9347
9348         * po/sl.po: New file.
9349
9350 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
9351
9352         * .gitignore: Add core/.gdbinit/.gdb_history.
9353
9354 2013-12-27  Allan McRae  <allan@archlinux.org>
9355
9356         [BZ #16369]
9357         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
9358         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
9359
9360 2013-12-24  Brooks Moses  <bmoses@google.com>
9361
9362         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
9363         all compilers that claim C++98 compliance, not just GCC.
9364         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
9365         Likewise.
9366
9367 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9368
9369         * NEWS: Restore accidentally deleted bug-fix entries.
9370
9371 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9372             Ondřej Bílka  <neleai@seznam.cz>
9373
9374         [BZ #15073]
9375         * malloc/malloc.c (_int_free): Perform sanity check only if we
9376         have_lock.
9377
9378 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
9379
9380         [BZ #12986]
9381         * manual/stdio.texi (String Input Conversions): Clarify that character
9382         classes are not supported.
9383
9384 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9385
9386         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9387
9388 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
9389
9390         [BZ #16337]
9391         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9392         Calculate results for small negative arguments directly rather
9393         than using reflection formula with special underflow handling.
9394
9395         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
9396         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
9397         sysdeps/unix/bsd/bsd4.4/syscalls.list.
9398         (fchflags): Likewise.
9399         (revoke): Likewise.
9400         (setlogin): Likewise.
9401         (sigaltstack): Likewise.
9402         (wait4): Likewise.
9403         (sigblock): Remove.
9404         (sigsetmask): Likewise.
9405         (wait3): Likewise.
9406         (waitpid): Likewise.
9407         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
9408         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
9409         file.
9410         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
9411         * sysdeps/unix/bsd/Makefile: ... here.
9412         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
9413         * sysdeps/unix/bsd/Versions: ... here.
9414         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
9415         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
9416         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
9417         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
9418         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
9419         * sysdeps/unix/bsd/sigblock.c: ... here.
9420         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
9421         * sysdeps/unix/bsd/sigsetmask.c: ... here.
9422         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
9423         * sysdeps/unix/bsd/sigvec.c: ... here.
9424         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
9425         * sysdeps/unix/bsd/tcdrain.c: ... here.
9426         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
9427         * sysdeps/unix/bsd/tcgetattr.c: ... here.
9428         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
9429         * sysdeps/unix/bsd/tcsetattr.c: ... here.
9430         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
9431         * sysdeps/unix/bsd/wait.c: ... here.
9432         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
9433         * sysdeps/unix/bsd/wait3.c: ... here.
9434         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
9435         * sysdeps/unix/bsd/waitpid.c: ... here.
9436
9437 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
9438
9439         [BZ #16356]
9440         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
9441         round-to-nearest for [!USE_AS_EXPM1L].
9442         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
9443         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
9444         more tests of exp and exp10.  Expect some exp10 tests to miss
9445         exceptions or fail in directed rounding modes.
9446         * math/auto-libm-test-out: Regenerated.
9447         * math/libm-test.inc (exp10_tonearest_test_data): New array.
9448         (exp10_test_tonearest): New function.
9449         (exp10_towardzero_test_data): New array.
9450         (exp10_test_towardzero): New function.
9451         (exp10_downward_test_data): New array.
9452         (exp10_test_downward): New function.
9453         (exp10_upward_test_data): New array.
9454         (exp10_test_upward): New function.
9455         (main): Call the new functions.
9456         * sysdeps/i386/fpu/libm-test-ulps: Update.
9457         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9458
9459 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
9460
9461         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
9462         asinh, atan, atan2, atanh, cbrt, cos and cosh.
9463         * math/auto-libm-test-out: Regenerated.
9464         * math/libm-test.inc (acosh_test_data): Add more tests.
9465         (atanh_test_data): Likewise.
9466         (ceil_test_data): Likewise.
9467         (copysign_test_data): Likewise.
9468         * sysdeps/i386/fpu/libm-test-ulps: Update.
9469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9470
9471         * timezone/checktab.awk: Update from tzcode 2013i.
9472         * timezone/private.h: Likewise.
9473         * timezone/scheck.c: Likewise.
9474         * timezone/tzfile.h: Likewise.
9475         * timezone/tzselect.ksh: Likewise.
9476         * timezone/zdump.c: Likewise.
9477         * timezone/zic.c: Likewise.
9478
9479         * math/auto-libm-test-in: Add tests of cpow.
9480         * math/auto-libm-test-out: Regenerated.
9481         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
9482         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9483         mpc_cc_c.
9484         (func_calc_desc): Add mpc_cc_c union field.
9485         (test_functions): Add cpow.
9486         (special_fill_2pi): New function.
9487         (special_real_inputs): Add 2pi.
9488         (calc_generic_results): Handle mpc_cc_c.
9489         * sysdeps/i386/fpu/libm-test-ulps: Update.
9490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9491
9492         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
9493         csqrt, ctan and ctanh.
9494         * math/auto-libm-test-out: Regenerated.
9495         * math/libm-test.inc (TEST_COND_x86_64): New macro.
9496         (TEST_COND_x86): Likewise.
9497         (ccos_test_data): Use AUTO_TESTS_c_c.
9498         (ccosh_test_data): Likewise.
9499         (cexp_test_data): Likewise.
9500         (clog_test_data): Likewise.
9501         (csqrt_test_data): Likewise.
9502         (ctan_test_data): Likewise.
9503         (ctan_tonearest_test_data): Likewise.
9504         (ctan_towardzero_test_data): Likewise.
9505         (ctan_downward_test_data): Likewise.
9506         (ctan_upward_test_data): Likewise.
9507         (ctanh_test_data): Likewise.
9508         (ctanh_tonearest_test_data): Likewise.
9509         (ctanh_towardzero_test_data): Likewise.
9510         (ctanh_downward_test_data): Likewise.
9511         (ctanh_upward_test_data): Likewise.
9512         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9513         mpc_c_c.
9514         (func_calc_desc): Add mpc_c_c union field.
9515         (FUNC_mpc_c_c): New macro.
9516         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
9517         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
9518         ctanh.
9519         (special_fill_min_subnorm_p120): New function.
9520         (special_real_inputs): Add min_subnorm_p120.
9521         (calc_generic_results): Handle mpc_c_c.
9522         * sysdeps/i386/fpu/libm-test-ulps: Update.
9523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9524
9525 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9526
9527         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
9528         (do_sin_slow): New functions.
9529         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
9530         (cslow2, csloww1, csloww2): Use the new functions.
9531
9532         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
9533         Use M to change sign of result instead of X.  Assume X is
9534         positive.
9535         (csloww1): Likewise.
9536         (__sin): Adjust.
9537         (__cos): Adjust.
9538
9539         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
9540         arguments A and DA.
9541         (__sin): Adjust.
9542         (__cos): Likewise.
9543
9544         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
9545         (__cos): Likewise.
9546         (sloww1): Don't adjust sign of DX.
9547         (csloww1): Likewise.
9548         (sloww2): Use X directly and don't adjust sign of DX.
9549         (csloww2): Likewise.
9550
9551 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9552
9553         * math/auto-libm-test-in: Add tests of cabs and carg.
9554         * math/auto-libm-test-out: Regenerated.
9555         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
9556         (carg_test_data): Likewise.
9557         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9558         mpc_c_f.
9559         (func_calc_desc): Add mpc_c_f union field.
9560         (test_functions): Add cabs and carg.
9561         (calc_generic_results): Handle mpc_c_f.
9562
9563         * sysdeps/powerpc/powerpc32/libgcc-compat.S
9564         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
9565         as a macro and a compat symbol.
9566         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
9567         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
9568         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
9569         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
9570         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
9571         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
9572         not use .hidden.
9573         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
9574         Likewise.
9575         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
9576         Likewise.
9577         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
9578         Likewise.
9579         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
9580         Likewise.
9581         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
9582         Likewise.
9583         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
9584         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
9585         from GLIBC_2.3.2.
9586
9587 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9588
9589         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9590
9591 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9592
9593         * manual/texinfo.tex: Update to version 2013-11-26.10 with
9594         trailing whitespace removed.
9595         * scripts/config.guess: Update to version 2013-11-29.
9596         * scripts/config.sub: Update to version 2013-10-01.
9597
9598         * math/auto-libm-test-in: Add tests of sincos.
9599         * math/auto-libm-test-out: Regenerated.
9600         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
9601         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9602         mpfr_f_11.
9603         (func_calc_desc): Add mpfr_f_11 union field.
9604         (test_functions): Add sincos.
9605         (calc_generic_results): Handle mpfr_f_11.
9606         * sysdeps/i386/fpu/libm-test-ulps: Update.
9607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9608
9609 2013-12-19  Andreas Schwab  <schwab@suse.de>
9610
9611         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
9612         CALL_MCOUNT.
9613         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
9614         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
9615         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
9616
9617 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9618
9619         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
9620         * sysdeps/i386/fpu/libm-test-ulps: Update.
9621         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9622
9623         [BZ #16293]
9624         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
9625         round-to-nearest mode when using frndint.
9626         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
9627         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9628         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
9629         Likewise.
9630         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
9631         sinh test to fail.
9632         * math/auto-libm-test-out: Regenerated.
9633         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
9634         (TEST_COND_x86): Likewise.
9635         (expm1_tonearest_test_data): New array.
9636         (expm1_test_tonearest): New function.
9637         (expm1_towardzero_test_data): New array.
9638         (expm1_test_towardzero): New function.
9639         (expm1_downward_test_data): New array.
9640         (expm1_test_downward): New function.
9641         (expm1_upward_test_data): New array.
9642         (expm1_test_upward): New function.
9643         (main): Run the new test functions.
9644         * sysdeps/i386/fpu/libm-test-ulps: Update.
9645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9646
9647         * include/features.h: Update comment documenting feature test
9648         macros.  Mention _DEFAULT_SOURCE in comment.
9649         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
9650         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
9651         _BSD_SOURCE and _SVID_SOURCE.
9652         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
9653         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
9654         !_SVID_SOURCE]: Likewise.
9655         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9656         (__USE_POSIX_IMPLICITLY): Define.
9657         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9658         (_POSIX_SOURCE): Undefine and redefine.
9659         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9660         (_POSIX_C_SOURCE): Likewise.
9661         * manual/creature.texi (_DEFAULT_SOURCE): Document.
9662         (Feature Test Macros): Update documentation of default features.
9663
9664 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9665
9666         * benchtests/Makefile: Add bench-strtok.
9667         * benchtests/bench-strtok.c: New file: strtok benchtest.
9668
9669 2013-12-19  Allan McRae  <allan@archlinux.org>
9670
9671         * manual/install.texi: Suppress menu for plain text output.
9672         * INSTALL: Regenerated.
9673
9674 2013-12-18  Brooks Moses  <bmoses@google.com>
9675
9676         [BZ #15846]
9677         * misc/getauxval.c: Include errno.h.
9678         (__getauxval): Set errno to ENOENT if the requested type is not
9679         found.
9680         * misc/sys/auxv.h (getauxval): Document that it may set errno;
9681         don't declare with __attribute_const__.
9682         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
9683         * manual/startup.texi: Document that getauxval sets errno.
9684
9685 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9686
9687         * math/auto-libm-test-in: Add tests of jn and yn.
9688         * math/auto-libm-test-out: Regenerated.
9689         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
9690         (yn_test_data): Likewise.
9691         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9692         mpfr_if_f.
9693         (func_calc_desc): Add mpfr_if_f union field.
9694         (FUNC_mpfr_if_f): New macro.
9695         (test_functions): Add jn and yn.
9696         (calc_generic_results): Assert type of second input for
9697         mpfr_ff_f.  Handle mpfr_if_f.
9698         (output_for_one_input_case): Disable all checking for arguments
9699         fitting floating-point types in case of an integer argument.
9700         * sysdeps/i386/fpu/libm-test-ulps: Update.
9701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9702
9703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
9704         Don't expect fegetround reference in libm.so.
9705
9706 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9707
9708         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
9709         $(config-cflags-nofma).
9710
9711 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9712
9713         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
9714         * math/auto-libm-test-out: Regenerated.
9715
9716         [BZ #16338]
9717         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
9718         to determine exponent and adjust argument to have exponent of -1.
9719         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
9720         log2.
9721         * math/auto-libm-test-out: Regenerated.
9722         * sysdeps/i386/fpu/libm-test-ulps: Update.
9723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9724
9725 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
9726
9727         * manual/probes.texi: Remove cases when per-thread arenas are
9728         disabled.
9729
9730 2013-12-18  Andreas Schwab  <schwab@suse.de>
9731
9732         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
9733         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
9734         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
9735         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
9736         * sysdeps/i386/i686/multiarch/Makefile: Update.
9737         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
9738
9739 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9740
9741         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
9742         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
9743
9744 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9745
9746         [BZ #15968]
9747         Support TZ transition times < 00:00:00.
9748         This is needed for version-3 tz-format files; it supports time
9749         stamps past 2037 for America/Godthab (the only entry in the tz
9750         database for which this change is relevant).
9751         * manual/time.texi (TZ Variable): Document transition times
9752         from -167:59:59 through -00:00:01.
9753         * time/tzset.c (tz_rule): Time of day is now signed.
9754         (__tzset_parse_tz): Parse negative time of day.
9755
9756         Document TZ transition times >= 25:00:00.
9757         * manual/time.texi (TZ Variable): Document transition times from
9758         25:00:00 through 167:59:59.  These are already supported, and this
9759         support will help with version-3 tz-format files.
9760
9761         * manual/time.texi (TZ Variable): Modernize North America example
9762         to reflect current (i.e., 2007-and-later) daylight saving rules.
9763
9764         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
9765
9766 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9767
9768         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
9769         * sysdeps/unix/bsd/bits/stat.h: Likewise.
9770         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
9771         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9772         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
9773         * sysdeps/unix/bsd/bsdstat.h: Likewise.
9774         * sysdeps/unix/bsd/clock.c: Likewise.
9775         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9776         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
9777         * sysdeps/unix/bsd/init-posix.c: Likewise.
9778         * sysdeps/unix/bsd/poll.c: Likewise.
9779         * sysdeps/unix/bsd/ptsname.c: Likewise.
9780         * sysdeps/unix/bsd/seekdir.c: Likewise.
9781         * sysdeps/unix/bsd/setegid.c: Likewise.
9782         * sysdeps/unix/bsd/seteuid.c: Likewise.
9783         * sysdeps/unix/bsd/setgid.c: Likewise.
9784         * sysdeps/unix/bsd/setrgid.c: Likewise.
9785         * sysdeps/unix/bsd/setruid.c: Likewise.
9786         * sysdeps/unix/bsd/setsid.c: Likewise.
9787         * sysdeps/unix/bsd/setuid.c: Likewise.
9788         * sysdeps/unix/bsd/sigaction.c: Likewise.
9789         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
9790         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
9791         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
9792         * sysdeps/unix/bsd/telldir.c: Likewise.
9793         * sysdeps/unix/bsd/times.c: Likewise.
9794         * sysdeps/unix/bsd/usleep.c: Likewise.
9795
9796         * misc/Makefile (install-lib): Remove libbsd-compat.a.
9797         ($(objpfx)libbsd-compat.a): Remove rule.
9798
9799         * include/features.h (__FAVOR_BSD): Do not define.
9800         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
9801         features conflicting with POSIX.
9802         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
9803         (_BSD_SOURCE): Remove description of not being a subset of other
9804         feature test macros.
9805         * manual/job.texi (getpgrp): Do not document BSD version.
9806         (getpgid): Do not document by reference to BSD getpgrp.
9807         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
9808         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
9809         * signal/signal.h [__FAVOR_BSD]: Likewise.
9810         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
9811         instead of making contents conditional on [__FAVOR_BSD].
9812         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
9813
9814 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9815
9816         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9817
9818 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9819
9820         [BZ #16314]
9821         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
9822         values below 2**-450, not 2**-500.
9823         * math/auto-libm-test-in: Don't allow spurious underflow from
9824         hypot.
9825         * math/auto-libm-test-out: Regenerated.
9826
9827         [BZ #16316]
9828         [BZ #16330]
9829         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
9830         values of ha and hb and sort them after adjusting subnormal
9831         arguments.
9832         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9833         Likewise.
9834         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
9835         values of ea and eb and sort them after adjusting subnormal
9836         arguments.
9837         * math/auto-libm-test-in: Do not expect some hypot tests of
9838         subnormals to fail.  Add more hypot tests.
9839         * math/auto-libm-test-out: Regenerated.
9840
9841 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9842
9843         [BZ #13304]
9844         * sysdeps/sh/s_fma.c: New file.
9845         * sysdeps/sh/s_fmaf.c: New file.
9846         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
9847         version.
9848         * sysdeps/sh/Implies: Add sh/soft-fp.
9849
9850 2013-12-16  Roland McGrath  <roland@hack.frob.com>
9851
9852         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
9853         level of indirection to members `objname', `errstring', `malloced'.
9854         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
9855         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
9856         it as the __longjmp argument (just pass 1 instead).
9857         (_dl_catch_error): Initialize C with argument pointers and address of
9858         volatile local ERRCODE rather than copying values out of C at return.
9859
9860 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
9861
9862         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
9863         * math/auto-libm-test-out: Regenerated.
9864         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
9865         (hypot_test_data): Likewise.
9866         (pow_test_data): Likewise.
9867         (pow_tonearest_test_data): Likewise.
9868         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9869         mpfr_ff_f.
9870         (func_calc_desc): Add mpfr_ff_f union field.
9871         (FUNC_mpfr_ff_f): New macro.
9872         (test_functions): Add atan2, hypot and pow.
9873         (special_fill_min): New function.
9874         (special_fill_minus_min): Likewise.
9875         (special_fill_min_subnorm): Likewise.
9876         (special_fill_minus_min_subnorm): Likewise.
9877         (special_real_inputs): Add min, -min, min_subnorm and
9878         -min_subnorm.
9879         (calc_generic_results): Handle mpfr_ff_f.
9880         * sysdeps/i386/fpu/libm-test-ulps: Update.
9881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9882
9883 2013-12-16  Will Newton  <will.newton@linaro.org>
9884
9885         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
9886         (Aligned Memory Blocks): Add documentation for aligned_alloc
9887         and suggest it as an alternative to posix_memalign.
9888         (Hooks for Malloc): Document __memalign_hook is also called
9889         for aligned_alloc.  (Summary of Malloc): Add summary for
9890         aligned alloc.  Document __memalign_hook is also called
9891         for aligned_alloc.
9892
9893 2013-12-16  Will Newton  <will.newton@linaro.org>
9894
9895         * manual/memory.texi (Malloc Examples): Clarify default
9896         alignment documentation.  Suggest posix_memalign rather
9897         than memalign or valloc.
9898         (Aligned Memory Blocks): Remove suggestion to use memalign
9899         or valloc.  Remove obsolete comment about BSD.
9900         Document memalign errno values and mark the function obsolete.
9901         Document posix_memalign returned error codes.  Mark valloc
9902         as obsolete.  (Hooks for Malloc): __memalign_hook is also
9903         called for posix_memalign and valloc.
9904         (Summary of Malloc): Add posix_memalign to function summary.
9905         __memalign_hook is also called for posix_memalign and valloc.
9906
9907 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9908
9909         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
9910         TAYLOR_SIN.
9911         (__sin): Adjust.
9912         (__cos): Likewise.
9913         (sloww): Use mynumber union.  Expand ternary operator into
9914         if-else statements.
9915         (cslow): use mynumber union.
9916
9917 2013-12-16  Allan McRae  <allan@archlinux.org>
9918
9919         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
9920         * configure: Regenerated.
9921
9922         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
9923
9924         [BZ #14120]
9925         * configure.ac: Added --enable-maintainer-mode. Check for
9926         autoconf when enabled.
9927         * configure: Regenerated.
9928
9929         * nscd/nscd.service: New file.
9930         * nscd/nscd.tmpfiles: New file.
9931
9932 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
9933
9934         [BZ #12100]
9935         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
9936         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
9937         * sysdeps/x86_64/multiarch/strstr.c: ... here.
9938         (strstr): Add __strstr_sse2_unaligned ifunc.
9939         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
9940         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
9941         (strcasestr): Remove __strcasestr_sse42 ifunc.
9942         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
9943         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
9944         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
9945
9946 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9947
9948         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
9949         * sysdeps/sh/bits/fenv.h: ... here.
9950         * sysdeps/sh/sh4/fpu/bits: Remove directory.
9951
9952 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9953
9954         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
9955
9956         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
9957         hypotf multiarch implementations.
9958         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
9959         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
9960         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
9961         multiarch hypot for PPC64.
9962         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
9963         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
9964         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
9965         multiarch hypotf for PPC64.
9966
9967         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
9968         modff multiarch implementations.
9969         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
9970         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
9971         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
9972         multiarch modf for PPC64.
9973         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
9974         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
9975         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
9976         multiarch modff for PPC64.
9977
9978         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
9979         and logl multiarch implementations.
9980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
9981         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
9982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
9983         multiarch logb for PPC64.
9984         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
9985         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
9986         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
9987         multiarch logb for PPC64.
9988         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
9989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
9990         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
9991         multiarch logb for PPC64.
9992
9993         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
9994         isinff multiarch implementation.
9995         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
9996         file.
9997         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
9998         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
9999         multiarch isinf for PPC64.
10000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
10001         file.
10002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
10003         multiarch isinff for PPC64.
10004
10005         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
10006         finitef multiarch implementation.
10007         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
10008         file.
10009         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
10010         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
10011         multiarch finite for PPC64.
10012         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
10013         file.
10014         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
10015         multiarch finitef for PPC64.
10016
10017         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
10018         lrint multiarch implementation.
10019         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
10020         file.
10021         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
10022         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
10023         multiarch llrint for PPC64.
10024         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
10025         multiarch lrint for PPC64.
10026
10027         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
10028         copysignf multiarch implementation.
10029         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
10030         file.
10031         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
10032         file.
10033         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
10034         multiarch copysign for PPC64.
10035         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
10036         multiarch copysignf for PPC64.
10037
10038         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
10039         multiarch implementation.
10040         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
10041         file.
10042         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
10043         file.
10044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
10045         file.
10046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
10047         file.
10048         multiarch llround for PPC64.
10049         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
10050         multiarch trunc for PPC64.
10051         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
10052         multiarch truncf for PPC64.
10053
10054         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
10055         multiarch implementation.
10056         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
10057         file.
10058         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
10059         file.
10060         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
10061         file.
10062         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
10063         file.
10064         multiarch llround for PPC64.
10065         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
10066         multiarch round for PPC64.
10067         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
10068         multiarch roundf for PPC64.
10069
10070         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
10071         multiarch implementation.
10072         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
10073         file.
10074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
10075         file.
10076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
10077         file.
10078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
10079         file.
10080         multiarch llround for PPC64.
10081         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
10082         multiarch floor for PPC64.
10083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
10084         multiarch floorf for PPC64.
10085
10086         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
10087         multiarch implementation.
10088         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
10089         file.
10090         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
10091         file.
10092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
10093         file.
10094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
10095         file.
10096         multiarch llround for PPC64.
10097         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
10098         multiarch ceil for PPC64.
10099         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
10100         multiarch ceilf for PPC64.
10101
10102         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
10103         multiarch implementation.
10104         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
10105         file.
10106         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
10107         file.
10108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
10109         file.
10110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
10111         multiarch llround for PPC64.
10112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
10113         multiarch lround for PPC64.
10114
10115         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
10116         multiarch implementation.
10117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
10118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
10119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
10120         file.
10121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
10122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
10123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
10124         multiarch isnan for PPC64.
10125         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
10126         multiarch isnanf for PPC64.
10127
10128         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
10129         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
10130         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
10131         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
10132         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
10133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
10134
10135         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
10136         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10137         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10138         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10139
10140         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
10141         multiarch implementations.
10142         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10143         (__libc_ifunc_impl_list): Likewise.
10144         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
10145         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
10146         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
10147         multiarch stpcpy for PPC64.
10148
10149         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
10150         multiarch implementations.
10151         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10152         (__libc_ifunc_impl_list): Likewise.
10153         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
10154         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
10155         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
10156         multiarch strcpy for PPC64.
10157
10158         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
10159         redefine function name.
10160         (_wordcopy_fwd_dest_aligned): Likewise.
10161         (_wordcopy_bwd_aligned): Likewise.
10162         (_wordcopy_bwd_dest_aligned): Likewise.
10163         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
10164         multiarch implementations.
10165         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10166         (__libc_ifunc_impl_list): Likewise.
10167         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
10168         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
10169         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
10170         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
10171         multiarch wcscpy for PPC64.
10172
10173         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
10174         multiarch implementations.
10175         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10176         (__libc_ifunc_impl_list): Likewise.
10177         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
10178         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
10179         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
10180         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
10181         multiarch wcscpy for PPC64.
10182
10183         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
10184         multiarch implementations.
10185         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10186         (__libc_ifunc_impl_list): Likewise.
10187         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
10188         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
10189         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
10190         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
10191         multiarch wcsrchr for PPC64.
10192
10193         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
10194         multiarch implementations.
10195         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10196         (__libc_ifunc_impl_list): Likewise.
10197         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
10198         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
10199         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
10200         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
10201         multiarch wcschr for PPC64.
10202
10203         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
10204         multiarch implementations.
10205         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10206         (__libc_ifunc_impl_list): Likewise.
10207         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
10208         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
10209         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
10210         multiarch strchrnul for PPC64.
10211
10212         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
10213         implementations.
10214         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10215         (__libc_ifunc_impl_list): Likewise.
10216         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
10217         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
10218         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
10219         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
10220         strchr for PPC64.
10221
10222         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
10223         implementations.
10224         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10225         (__libc_ifunc_impl_list): Likewise.
10226         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
10227         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
10228         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
10229         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
10230         strncmp for PPC64.
10231
10232         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
10233         multiarch implementations.
10234         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10235         (__libc_ifunc_impl_list): Likewise.
10236         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
10237         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
10238         strncasecmp for PPC64.
10239         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
10240         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
10241         multiarch strncasecmp_l for PPC64.
10242
10243         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
10244         multiarch implementations.
10245         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10246         (__libc_ifunc_impl_list): Likewise.
10247         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
10248         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
10249         multiarch strcasecmp for PPC64.
10250         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
10251         file.
10252         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
10253         multiarch strcasecmp_l for PPC64.
10254
10255         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
10256         implementations.
10257         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10258         (__libc_ifunc_impl_list): Likewise.
10259         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
10260         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
10261         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
10262         strnlen for PPC64.
10263
10264         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
10265         implementations.
10266         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10267         (__libc_ifunc_impl_list): Likewise.
10268         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
10269         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
10270         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
10271         strlen for PPC64.
10272
10273         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
10274         implementations.
10275         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10276         (__libc_ifunc_impl_list): Likewise.
10277         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
10278         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
10279         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
10280         rawmemrchr for PPC64.
10281
10282         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
10283         implementation.
10284         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10285         (__libc_ifunc_impl_list): Likewise.
10286         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
10287         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
10288         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
10289         memrchr for PPC64.
10290
10291         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
10292         implementation.
10293         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10294         (__libc_ifunc_impl_list): Likewise.
10295         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
10296         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
10297         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
10298         memchr for PPC64.
10299
10300         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
10301         implementation.
10302         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10303         (__libc_ifunc_impl_list): Likewise.
10304         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
10305         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
10306         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
10307         mempcpy for PPC64.
10308
10309         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
10310         avoid cretion of __bzero symbol.
10311         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
10312         Likewise.
10313         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
10314         Likewise.
10315         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
10316         Likewise.
10317         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
10318         multiarch implementations.
10319         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10320         (__libc_ifunc_impl_list): Likewise.
10321         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
10322         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
10323         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
10324         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
10325         bzero for PPC32.
10326         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
10327         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
10328         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
10329         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
10330         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
10331         memset for PPC64.
10332         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
10333
10334         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
10335         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
10336         implementations.
10337         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10338         (__libc_ifunc_impl_list): Likewise.
10339         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
10340         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
10341         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
10342         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
10343         memcmp for PPC64.
10344
10345         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
10346         multiarch for POWER/PPC64.
10347         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
10348         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
10349         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
10350         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
10351         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
10352         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
10353         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
10354         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
10355         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
10356         memcpy for PPC64.
10357
10358         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
10359         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
10360         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
10361         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
10362         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
10363         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
10364         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
10365         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
10366         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
10367         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
10368         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
10369         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
10370         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
10371         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
10372         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
10373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
10374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
10375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
10376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
10377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
10378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
10379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
10380
10381 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10382
10383         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
10384
10385 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10386
10387         * benchtests/Makefile (bench): Add exp2 and log2.
10388         (LDLIBS-bench-exp2): Add -lm.
10389         (LDLIBS-bench-log2): Likewise.
10390         * benchtests/exp2-inputs: New inputs file.
10391         * benchtests/log2-inputs: New inputs file.
10392         * benchtests/log-inputs: Add new inputs.
10393         * benchtests/tan-inputs: Likewise.
10394
10395 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10396
10397         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
10398         definition...
10399         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
10400         (csloww2): ... from here.
10401
10402         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
10403         instead of structures.
10404         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
10405         (POLYNOMIAL): Likewise.
10406         (TAYLOR_SLOW): Likewise.
10407         (__sin): Likewise.
10408         (__cos): Likewise.
10409         (slow1): Likewise.
10410         (slow2): Likewise.
10411         (sloww): Likewise.
10412         (sloww1); Likewise.
10413         (sloww2): Likewise.
10414         (bsloww1): Likewise.
10415         (bsloww2): Likewise.
10416         (cslow2): Likewise.
10417         (csloww): Likewise.
10418         (csloww1): Likewise.
10419         (csloww2): Likewise.
10420
10421 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
10422
10423         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
10424         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
10425         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
10426         * malloc/hooks.c (realloc_check): Likewise.
10427
10428         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
10429         * malloc/arena.c: Remove PER_THREAD conditional.
10430         [!PER_THREAD]: Remove code.
10431         (ptmalloc_unlock_all2): Likewise.
10432         (ptmalloc_init): Likewise.
10433         (_int_new_arena): Likewise.
10434         (arena_get2): Likewise.
10435         * malloc/hooks.c (__malloc_get_state): Likewise.
10436         (__malloc_set_state): Likewise.
10437         * malloc/malloc.c: Likewise.
10438         (struct malloc_state): Likewise.
10439         (struct malloc_par): Likewise.
10440         (__libc_realloc): Likewise.
10441         (__libc_mallopt): Likewise.
10442
10443 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10444
10445         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
10446
10447 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
10448
10449         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
10450         macro to a function.  Check for zero perturb_byte.
10451         (_int_malloc, _int_free): Remove zero perturb_byte checks.
10452
10453         * malloc/malloc.c: (force_reg): Remove.
10454         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
10455         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
10456         force_reg by atomic_forced_read.
10457         * malloc/arena.c (ptmalloc_init): Likewise.
10458         * malloc/hooks.c (top_check): Likewise.
10459
10460 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10461
10462         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10463
10464 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
10465
10466         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10467
10468 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
10469
10470         * math/auto-libm-test-in: Add tests of lgamma.
10471         * math/auto-libm-test-out: Regenerated.
10472         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
10473         (M_LOG_2_SQRT_PIl): Likewise.
10474         (lgamma_test_data): Use AUTO_TESTS_f_f1.
10475         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10476         mpfr_f_f1.
10477         (func_calc_desc): Add mpfr_f_f1 union field.
10478         (ARGS1): New macro.
10479         (ARGS2): Likewise.
10480         (ARGS3): Likewise.
10481         (ARGS4): Likewise.
10482         (RET1): Likewise.
10483         (RET2): Likewise.
10484         (CALC): Likewise.
10485         (FUNC): Likewise.
10486         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
10487         (test_functions): Add lgamma.
10488         (calc_generic_results): Handle mpfr_f_f1.
10489         * sysdeps/i386/fpu/libm-test-ulps: Update.
10490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10491
10492 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10493
10494         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
10495         __mpn_add_n for PowerPC64/POWER7.
10496         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
10497         __mpn_sub_n for PowerPC64/POWER7.
10498
10499         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
10500         __mpn_addmul_1 for PowerPC64.
10501         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
10502         __mpn_submul_1 for PowerPC64.
10503         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
10504         for PowerPC64.
10505         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
10506         for PowerPC64.
10507
10508 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
10509
10510         [BZ #15089]
10511         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
10512
10513 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10514
10515         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
10516
10517         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
10518         add multiarch folders.
10519         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
10520         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
10521         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
10522         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
10523         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
10524         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
10525         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
10526         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
10527         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
10528         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
10529         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
10530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
10531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
10532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
10533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
10534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
10535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
10536
10537         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10538         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
10539         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
10540         New file.
10541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
10542         New file.
10543         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
10544         multiarch __ieee754_hypot for PowerPC32.
10545         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
10546         New file.
10547         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
10548         New file.
10549         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
10550         multiarch __ieee754_hypotf for PowerPC32.
10551
10552         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
10553         long_double_symbol only if __logbl is defined.
10554         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
10555         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
10556         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
10557         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
10558         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
10559         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
10560         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
10561         path for implementation.
10562         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
10563         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
10564         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
10565         logb, and logbl multiarch implementations for PowerPC32.
10566         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
10567         file.
10568         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
10569         file.
10570         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
10571         multiarch logb for PowerPC32.
10572         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
10573         file.
10574         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
10575         file.
10576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
10577         multiarch logbf for PowerPC32.
10578         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
10579         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
10580         file.
10581         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
10582         multiarch logbl implementation for PowerPC32.
10583
10584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
10585         and modff multiarch implementations.
10586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
10587         New file.
10588         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
10589         New file.
10590         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
10591         multiarch modf for PowerPC32.
10592         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
10593         New file.
10594         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
10595         New file.
10596         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
10597         multiarch modff for PowerPC32.
10598
10599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
10600         and lrintf multiarch implementations.
10601         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
10602         New file.
10603         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
10604         New file.
10605         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
10606         multiarch lrint for PowerPC32.
10607         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
10608         file: multiarch lrintf for PowerPC32.
10609
10610         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
10611         and lroundf multiarch implementations.
10612         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
10613         New file.
10614         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
10615         New file.
10616         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
10617         New file.
10618         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
10619         multiarch lround for PowerPC32.
10620         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
10621         file: multiarch lroundf for PowerPC32.
10622
10623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10624         copysign and copysignf multiarch implementations.
10625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
10626         New file.
10627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
10628         New file.
10629         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
10630         file: multiarch copysign for PowerPC32.
10631         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
10632         file: multiarch copysignf for PowerPC32.
10633
10634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
10635         and truncf multiarch implementations.
10636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
10637         New file.
10638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
10639         file.
10640         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
10641         multiarch trunc for PowerPC32.
10642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
10643         New file.
10644         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
10645         New file.
10646         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
10647         multiarch truncf for PowerPC32.
10648
10649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
10650         and roundf multiarch implementations.
10651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
10652         New file.
10653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
10654         file.
10655         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
10656         multiarch round for PowerPC32.
10657         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
10658         New file.
10659         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
10660         New file.
10661         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
10662         multiarch roundf for PowerPC32.
10663
10664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
10665         and floorf multiarch implementations.
10666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
10667         New file.
10668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
10669         file.
10670         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
10671         multiarch floor for PowerPC32.
10672         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
10673         New file.
10674         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
10675         New file.
10676         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
10677         multiarch floorf for PowerPC32.
10678
10679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
10680         and ceilf multiarch implementations.
10681         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
10682         New file.
10683         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
10684         file.
10685         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
10686         multiarch ceil for PowerPC32.
10687         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
10688         New file.
10689         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
10690         file.
10691         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
10692         multiarch ceilf for PowerPC32.
10693
10694         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
10695         is defined.
10696         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
10697         FINITEF is defined.
10698         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
10699         and finitef multiarch implementations.
10700         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
10701         New file.
10702         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
10703         file.
10704         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
10705         multiarch finite for PowerPC32.
10706         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
10707         New file.
10708         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
10709         file: multiarch finitef for PowerPC32.
10710
10711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
10712         and isinff multiarch implementations.
10713         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
10714         file.
10715         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
10716         file.
10717         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
10718         multiarch isinf for PowerPC32.
10719         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
10720         New file.
10721         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
10722         multiarch isinff for PowerPC32.
10723
10724         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
10725         alias when __isnan is defined.
10726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
10727         and isnanf multiarch implementations.
10728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
10729         file.
10730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
10731         file.
10732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
10733         file.
10734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
10735         file.
10736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
10737         multiarch isnan for PowerPC32.
10738         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
10739         New file.
10740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
10741         New file.
10742         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
10743         multiarch isnanf for PowerPC32.
10744
10745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
10746         and sqrtf multiarch implementations.
10747         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
10748         file.
10749         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
10750         file.
10751         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
10752         multiarch sqrt for PowerPC32.
10753         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
10754         file.
10755         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
10756         file.
10757         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
10758         multiarch sqrtf for PowerPC32.
10759
10760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
10761         and llroundf multiarch implementations.
10762         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
10763         New file.
10764         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
10765         New file.
10766         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
10767         New file.
10768         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
10769         file: multiarch llround for PowerPC32.
10770         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
10771         file: multiarch llroundf for PowerPC32.
10772
10773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
10774         multiarch PowerPC32 fpu implementations.
10775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
10776         New file.
10777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
10778         New file.
10779         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
10780         multiarch llrint for PowerPC32.
10781         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
10782         New file.
10783         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
10784         New file.
10785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
10786         file.
10787
10788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
10789
10790         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
10791         file.
10792         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
10793         file.
10794         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
10795         file.
10796         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
10797         multiarch wordcopy for PPC32.
10798         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10799         wordcopy objects.
10800         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10801         (__libc_ifunc_impl_list): Likewise.
10802         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
10803         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
10804         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
10805         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
10806         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
10807         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
10808
10809         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
10810         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
10811         file.
10812         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
10813         file.
10814         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
10815         file.
10816         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
10817         multiarch wcscpy for PPC32.
10818         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10819         multiarch objects.
10820         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10821         (__libc_ifunc_impl_list): Likewise.
10822         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10823         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10824         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
10825         sysdeps/powerpc/power6/wcscpy.c.
10826
10827         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
10828         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
10829         file.
10830         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
10831         file.
10832         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
10833         file.
10834         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
10835         multiarch wcsrchr for PPC32.
10836         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10837         multiarch objects.
10838         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10839         (__libc_ifunc_impl_list): Likewise.
10840         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10841         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10842         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
10843         sysdeps/powerpc/power6/wcsrchr.c.
10844
10845         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
10846         file.
10847         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
10848         file.
10849         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
10850         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
10851         multiarch wcschr for PPc32.
10852         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10853         multiarch objects.
10854         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10855         (__libc_ifunc_impl_list): Likewise.
10856         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
10857         * sysdeps/powerpc/power6/wcschr.c: ... to here.
10858         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
10859         sysdeps/powerpc/power6/wcschr.c.
10860
10861         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
10862         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
10863         file.
10864         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
10865         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
10866         file: multiarch strchr for PPC32.
10867         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
10868         multiarch objects.
10869         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10870         (__libc_ifunc_impl_list): Likewise.
10871
10872         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
10873         name.
10874         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
10875         file.
10876         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
10877         file.
10878         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
10879         multiarch strchrnul for PPC32.
10880         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
10881         multiarch objects.
10882         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10883         (__libc_ifunc_impl_list): Likewise.
10884
10885         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
10886         file.
10887         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
10888         multiarch strncasecmp for PPC32.
10889         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
10890         file.
10891         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
10892         multiarch strncasecmp_l for PPC32.
10893         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
10894         strncasecmp multiarch objects.
10895         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10896         (__libc_ifunc_impl_list): Likewise.
10897
10898         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
10899         file.
10900         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
10901         multiarch strncasecmp for PPC32.
10902         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
10903         New file.
10904         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
10905         multiarch strcasecmp_l for PPC32.
10906         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
10907         multiarch objects.
10908         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10909         (__libc_ifunc_impl_list): Likewise.
10910
10911         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
10912         file.
10913         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
10914         file.
10915         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
10916         multiarch strncmp for PPC32.
10917         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
10918         multiarch objects.
10919         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10920         (__libc_ifunc_impl_list): Likewise.
10921
10922         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
10923         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
10924         file.
10925         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
10926         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
10927         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
10928         multiarch objects.
10929         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10930         (__libc_ifunc_impl_list): Likewise.
10931
10932         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
10933         file.
10934         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
10935         file.
10936         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
10937         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
10938         multiarch objects.
10939         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10940         (__libc_ifunc_impl_list): Likewise.
10941
10942         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
10943         file.
10944         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
10945         file.
10946         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
10947         multiarch rawmemchr for PPC32.
10948         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
10949         multiarch objects.
10950         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10951         (__libc_ifunc_impl_list): Likewise.
10952
10953         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
10954         file.
10955         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
10956         file.
10957         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
10958         file: memrchr multiarch for PPC32.
10959         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
10960         multiarch objects.
10961         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10962         (__libc_ifunc_impl_list): Likewise.
10963
10964         * string/memchr.c (__memchr): Using macro to redefine symbol name.
10965         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
10966         file.
10967         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
10968         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
10969         multiarch memchr for PPC32.
10970         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
10971         multiarch objects.
10972         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10973         (__libc_ifunc_impl_list): Likewise.
10974
10975         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
10976         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
10977         file.
10978         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
10979         file.
10980         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
10981         file: multiarch mempcpy for PPC32.
10982         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
10983         multiarch objects.
10984         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10985         (__libc_ifunc_impl_list): Likewise.
10986
10987         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
10988         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
10989         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
10990         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
10991         multiarch bzero for PPC32.
10992         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
10993         file.
10994         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
10995         file.
10996         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
10997         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
10998         file: multiarch memset for PPC32.
10999         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
11000         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
11001         memset multiarch objects.
11002         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11003         (__libc_ifunc_impl_list): Likewise.
11004
11005         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
11006         file.
11007         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
11008         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
11009         memcmp for PPC32.
11010         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
11011         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
11012         multiarch objects.
11013         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11014         (__libc_ifunc_impl_list): Likewise.
11015
11016         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
11017         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
11018         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
11019         file.
11020         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
11021         file.
11022         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
11023         file.
11024         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
11025         multiarch memcpy for PPC32.
11026         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
11027         multiarch objects.
11028         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11029         (__libc_ifunc_impl_list): Likewise.
11030
11031         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
11032         support multiarch for POWER/PPC32.
11033         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
11034         Likewise.
11035         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
11036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
11037         Implies file to make multiarch folder appers before the fpu and
11038         default folder for power4 configuration.
11039
11040 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11041
11042         * scripts/bench.pl: Append volatile keyword to type.
11043
11044 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11045
11046         * sysdeps/sh/sotruss-lib.c: New file.
11047         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
11048
11049 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11050
11051         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11052
11053 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
11054
11055         [BZ #6810]
11056         * math/w_tgamma.c: Include <errno.h>.
11057         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
11058         * math/w_tgammaf.c: Include <errno.h>.
11059         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
11060         * math/w_tgammal.c: Include <errno.h>.
11061         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
11062         * math/auto-libm-test-in: Do not allow missing errno on tgamma
11063         underflow.  Add more tgamma tests.
11064         * math/auto-libm-test-out: Regenerated.
11065         * sysdeps/i386/fpu/libm-test-ulps: Update.
11066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11067
11068         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
11069         sin, sinh, tan, tanh, tgamma, y0 and y1.
11070         * math/auto-libm-test-out: Regenerated.
11071         * math/libm-test.inc (TEST_COND_x86_64): New macro.
11072         (TEST_COND_x86): Likewise.
11073         (M_E2l): Remove macro.
11074         (M_E3l): Likewise.
11075         (M_2_SQRT_PIl): Likewise.
11076         (M_SQRT_PIl): Likewise.
11077         (M_1_DIV_El): Likewise.
11078         (log_test_data): Use AUTO_TESTS_f_f.
11079         (log10_test_data): Likewise.
11080         (log1p_test_data): Likewise.
11081         (log2_test_data): Likewise.
11082         (sin_test_data): Likewise.
11083         (sin_tonearest_test_data): Likewise.
11084         (sin_towardzero_test_data): Likewise.
11085         (sin_downward_test_data): Likewise.
11086         (sin_upward_test_data): Likewise.
11087         (sinh_test_data): Likewise.
11088         (sinh_tonearest_test_data): Likewise.
11089         (sinh_towardzero_test_data): Likewise.
11090         (sinh_downward_test_data): Likewise.
11091         (sinh_upward_test_data): Likewise.
11092         (tan_test_data): Likewise.
11093         (tan_tonearest_test_data): Likewise.
11094         (tan_towardzero_test_data): Likewise.
11095         (tan_downward_test_data): Likewise.
11096         (tan_upward_test_data): Likewise.
11097         (tanh_test_data): Likewise.
11098         (tgamma_test_data): Likewise.
11099         (y0_test_data): Likewise.
11100         (y1_test_data): Likewise.
11101         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
11102         (special_real_inputs): Add pi/4.
11103         * sysdeps/i386/fpu/libm-test-ulps: Update.
11104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11105
11106 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11107
11108         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
11109         "longjmp_target" static probes.
11110         (__longjmp): Rename to __longjmp_symbol.
11111         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11112         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
11113         on which longjmp to generate.
11114         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11115         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
11116         probe.
11117         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11118         (__sigjmp_save): Rename to __sigjmp_save_symbol.
11119         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
11120         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
11121         and __sigjmp_save_symbol based on which sigsetjmp to generated.
11122         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
11123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
11124         __longjmp_symbol based on which __longjmp to generate.
11125         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
11126         probe.
11127         (setjmp): Rename to setjmp_symbol.
11128         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11129         (_setjmp): Rename to _setjmp_symbol.
11130         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11131         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
11132         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
11133         which setjmp to generate.
11134         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
11135         "longjmp_target" static probes.
11136
11137 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
11138
11139         * benchtests/README: Add note about output arguments.
11140         * benchtests/bench-sincos.c: Remove file.
11141         * benchtests/sincos-inputs: New file.
11142         * scripts/bench.pl: Identify output arguments and define
11143         static variables for them.
11144
11145         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
11146
11147         [BZ #15941]
11148         * Makefile (INSTALL): Add install-plain.texi as the primary
11149         dependency.
11150         * manual/install-plain.texi: New file.
11151         * manual/install.texi: Include node directive only for
11152         non-plaintext output.
11153
11154 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
11155
11156         * stdlib/longlong.h: Update from GCC.
11157
11158         [BZ #6807]
11159         [BZ #15901]
11160         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
11161         * math/w_j0f.c (y0f): Likewise.
11162         * math/w_j0l.c (__y0l): Likewise.
11163         * math/w_j1.c (y1): Likewise.
11164         * math/w_j1f.c (y1f): Likewise.
11165         * math/w_j1l.c (__y1l): Likewise
11166         * math/w_jn.c (yn): Likewise.
11167         * math/w_jnf.c (ynf): Likewise.
11168         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
11169         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
11170         value for Bessel function domain errors outside _SVID_ mode.
11171         Adjust sign of return value for yn (negative integer, 0).
11172         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
11173         by zero in return for negative x and set sign appropriately for
11174         negative n.
11175         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
11176         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11177         * math/libm-test.inc (y0_test_data): Add more tests and adjust
11178         expectations in error cases.
11179         (y1_test_data): Likewise.
11180         (yn_test_data): Likewise.
11181         * sysdeps/i386/fpu/libm-test-ulps: Update.
11182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11183
11184 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11185
11186         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
11187         "64" to "64-v1".  Add "64-v2".
11188         (abi-64-options): Rename to ...
11189         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
11190         (abi-64-condition): Rename to ...
11191         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
11192         (abi-64-ld-soname): Rename to ...
11193         (abi-64-v1-ld-soname): ... this.
11194         (abi-64-v2-options): Define.
11195         (abi-64-v2-condition): Likewise.
11196         (abi-64-v2-ld-soname): Likewise.
11197         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
11198         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
11199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
11200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
11201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
11202
11203 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11204             Alan Modra  <amodra@gmail.com>
11205
11206         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
11207         New versions for use with the ELFv2 ABI.
11208         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
11209         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
11210         declaration.
11211         (struct La_ppc64v2_retval): Likewise.
11212         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
11213         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
11214         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
11215         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
11216         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
11217         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11218         Do not save or restore CR.
11219         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
11220         (_dl_profile_resolve): Do no save or restore CR.  Support extended
11221         return values for ELFv2 ABI.  Fix location of FPR return registers.
11222         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
11223         updated values for _CALL_ELF == 2.
11224         (La_regs, La_retval, int_retval): Likewise.
11225
11226 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11227
11228         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
11229         (FRAME_MIN_SIZE_PARM): Likewise.
11230         (FRAME_BACKCHAIN): Likewise.
11231         (FRAME_CR_SAVE): Likewise.
11232         (FRAME_LR_SAVE): Likewise.
11233         (FRAME_TOC_SAVE): Likewise.
11234         (FRAME_PARM_SAVE): Likewise.
11235         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
11236         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
11237         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11238         (call_mcount_parm_offset): New macro.
11239         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
11240         (PROF): Use symbolic stack frame offsets.
11241         (TAIL_CALL_SYSCALL_ERROR): Likewise.
11242         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
11243         Redefine in terms of FRAME_MIN_SIZE.
11244         (_dl_runtime_resolve): Use symbolic stack frame offsets.
11245         (_dl_profile_resolve): Likewise.  Update comment.
11246         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
11247         symbols stack frame offsets.
11248         (__sigsetjmp): Likewise.
11249         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11250         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
11251         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
11252         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
11253
11254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
11255         (FRAME_BACKCHAIN): Remove.
11256         (FRAME_CR_SAVE): Likewise.
11257         (FRAME_LR_SAVE): Likewise.
11258         (FRAME_COMPILER_DW): Likewise.
11259         (FRAME_LINKER_DW): Likewise.
11260         (FRAME_TOC_SAVE): Likewise.
11261         (FRAME_PARM_SAVE): Likewise.
11262         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
11263         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
11264         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
11266         (CHECK_SP): Use symbolic stack frame offsets.
11267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
11268         zone" instead of caller's parameter save area for temp storage.
11269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11270         Likewise.  Also, use symbolic stack frame offsets.
11271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
11272         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
11273         our own stack frame instead of the caller's.
11274         (__socket): Use symbolic stack frame offsets.
11275
11276 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11277             Alan Modra  <amodra@gmail.com>
11278
11279         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
11280         Define.
11281         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
11282         (PPC64_LOCAL_ENTRY_OFFSET): Define.
11283         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
11284         New function.
11285         (elf_machine_fixup_plt): Call it.
11286         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
11287         reloc arguments.
11288         (elf_machine_rela): Update call to elf_machine_plt_conflict.
11289         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11290         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
11291         r2 before calling target.
11292
11293 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11294             Alan Modra  <amodra@gmail.com>
11295
11296         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
11297         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
11298         versions of macros to support ELFv2 ABI.
11299         (LOCALENTRY): New macro.
11300         (ENTRY, EALIGN): Use it.
11301         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
11302         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
11303         fall through into ENTRY entry point.
11304         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
11305         Only define if _CALL_ELF != 2.
11306
11307         (elf_machine_matches_host): Verify ABI version matches.
11308         (RTLD_START): Use LOCALENTRY.
11309         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
11310         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
11311         (PLT_ENTRY_WORDS): New macro.
11312         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
11313         (elf_machine_runtime_setup): Support ELFv2 ABI.
11314         (elf_machine_fixup_plt): Likewise.
11315         (elf_machine_plt_conflict): Likewise.
11316         (resolve_ifunc): Likewise.
11317         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
11318         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11319         Likewise.
11320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11321         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
11322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11323         (makecontext): Support ELFv2 ABI.
11324         * elf/elf.h (EF_PPC64_ABI): Define.
11325
11326 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11327
11328         * sysdeps/powerpc/powerpc64/sysdep.h
11329         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
11330         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
11331         (ENTRY) [ASSEMBLER]: ... but instead here ...
11332         (EALIGN) [ASSEMBLER]: ... and here.
11333         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
11334         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
11335         (ENTRY_2) [!ASSEMBLER]: Use it.
11336         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
11337         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
11338         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11339         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
11340         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
11341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
11342         Use PPC64_LOAD_FUNCPTR.
11343
11344         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
11345
11346 2013-12-04  Alan Modra  <amodra@gmail.com>
11347
11348         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
11349         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
11350         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
11351         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
11352
11353         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
11354         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
11355         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
11356         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
11357         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
11358         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
11359
11360 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11361
11362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11363         (__makecontext): Fix incorrect CFI when backtracing out of
11364         context created via makecontext.
11365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
11366         (__setcontext): Fix incorrect CFI during switch to new context.
11367         (__novec_setcontext): Likewise.
11368
11369 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11370
11371         [BZ #4772]
11372         * time/strptime_l.c (__strptime_internal): Allow modifiers
11373         in strptime.
11374         * time/tst-strptime.c (day_tests): Add testcase.
11375
11376 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11377
11378         * scripts/bench.pl: Skip over blank lines.
11379
11380 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
11381
11382         [BZ #926]
11383         * manual/time.texi (Calendar Time): Clarify what timezone functions
11384         use.
11385
11386 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11387
11388         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11389
11390 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11391
11392         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
11393         implementation.
11394         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
11395         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
11396         * debug/memset_chk.c (__memset_chk): Likewise.
11397         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
11398         * debug/strncpy_chk.c: Likewise.
11399
11400 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11401
11402         [BZ #15268]
11403         [BZ #15425]
11404         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
11405         (__ieee754_exp): For possibly underflowing results, check size of
11406         result and force underflow exception if required.
11407         * math/auto-libm-test-in: Add more tests of exp.
11408         * math/auto-libm-test-out: Regenerated.
11409         * sysdeps/i386/fpu/libm-test-ulps: Update.
11410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11411
11412         [BZ #16283]
11413         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
11414         * math/w_exp2f.c (__exp2f): Likewise.
11415         * math/w_exp2l.c (__exp2l): Likewise.
11416         * math/auto-libm-test-in: Do not allow missing errno on exp2
11417         underflow.
11418         * math/auto-libm-test-out: Regenerated.
11419
11420 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
11421
11422         [BZ #16274]
11423         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
11424         handle filename validation.
11425         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
11426         (do_open): Delete.
11427
11428 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11429
11430         [BZ #6786]
11431         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
11432         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
11433         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
11434         <float.h>.
11435         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
11436         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
11437         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11438         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
11439         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11440         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
11441         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11442         * math/auto-libm-test-in: Don't allow missing errno from erfc.
11443         Add more erfc tests.
11444         * math/auto-libm-test-out: Regenerated.
11445         * sysdeps/i386/fpu/libm-test-ulps: Update.
11446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11447
11448         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
11449         exp2, expm1, j0 and j1.
11450         * math/auto-libm-test-out: Regenerated.
11451         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
11452         (erfc_test_data): Likewise.
11453         (exp_test_data): Likewise.
11454         (exp_tonearest_test_data): Likewise.
11455         (exp_towardzero_test_data): Likewise.
11456         (exp_downward_test_data): Likewise.
11457         (exp_upward_test_data): Likewise.
11458         (exp10_test_data): Likewise.
11459         (exp2_test_data): Likewise.
11460         (expm1_test_data): Likewise.
11461         (j0_test_data): Likewise.
11462         (j1_test_data): Likewise.
11463         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
11464         (input_flag_type): Add flag_xfail_rounding.
11465         (input_flags): Add xfail-rounding.
11466         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
11467         (output_for_one_input_case): Handle flag_xfail_rounding.
11468         * sysdeps/i386/fpu/libm-test-ulps: Update.
11469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11470
11471 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
11472
11473         [BZ #16289]
11474         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
11475         division by 0.
11476
11477 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11478
11479         [BZ #16195]
11480         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
11481         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
11482         (STAP_PROBE0): New macro.
11483         (STAP_PROBE1): Likewise.
11484         (STAP_PROBE2): Likewise.
11485         (STAP_PROBE3): Likewise.
11486         (STAP_PROBE4): Likewise.
11487
11488 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
11489
11490         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
11491
11492 2013-12-02  Steve Ellcey  <sellcey@mips.com>
11493
11494         * benchtests/Makefile (bench): Add sqrt.
11495         (LDLIBS-bench-sqrt): New.
11496         * benchtests/sqrt-input: New.
11497
11498 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
11499
11500         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
11501         (GAIH_EAI): Likewise.
11502         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
11503         (gaih_inet): Likewise.
11504         (getaddrinfo): Don't use GAIH_EAI.
11505
11506         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
11507         (struct gaih): Remove definition.
11508
11509 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11510
11511         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
11512         Use HERRNOP directly.
11513
11514 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11515
11516         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11517
11518 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
11519
11520         * math/gen-auto-libm-tests.c (test_functions): Add more
11521         single-argument functions.
11522         (special_fill_pi_2): New function.
11523         (special_fill_minus_pi_2): Likewise.
11524         (special_fill_pi_6): Likewise.
11525         (special_fill_minus_pi_6): Likewise.
11526         (special_fill_pi_3): Likewise.
11527         (special_fill_2pi_3): Likewise.
11528         (special_fill_e): Likewise.
11529         (special_fill_1_e): Likewise.
11530         (special_fill_e_minus_1): Likewise.
11531         (special_real_inputs): Add more special inputs.
11532         (output_for_one_input_case): Do not require ERANGE on underflow to
11533         zero if round-to-nearest result does not underflow to zero, unless
11534         exact results required.
11535         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
11536         atan, atanh, cbrt, cos and cosh.
11537         * math/auto-libm-test-out: Regenerated.
11538         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
11539         (acos_tonearest_test_data): Likewise.
11540         (acos_towardzero_test_data): Likewise.
11541         (acos_downward_test_data): Likewise.
11542         (acos_upward_test_data): Likewise.
11543         (acosh_test_data): Likewise.
11544         (asin_test_data): Likewise.
11545         (asin_tonearest_test_data): Likewise.
11546         (asin_towardzero_test_data): Likewise.
11547         (asin_upward_test_data): Likewise.
11548         (asinh_test_data): Likewise.
11549         (atan_test_data): Likewise.
11550         (atanh_test_data): Likewise.
11551         (cbrt_test_data): Likewise.
11552         (cos_test_data): Likewise.
11553         (cos_tonearest_test_data): Likewise.
11554         (cos_towardzero_test_data): Likewise.
11555         (cos_downward_test_data): Likewise.
11556         (cos_upward_test_data): Likewise.
11557         (cosh_test_data): Likewise.
11558         (cosh_tonearest_test_data): Likewise.
11559         (cosh_towardzero_test_data): Likewise.
11560         (cosh_downward_test_data): Likewise.
11561         (cosh_upward_test_data): Likewise.
11562         * sysdeps/i386/fpu/libm-test-ulps: Update.
11563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11564
11565 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
11566
11567         [BZ #6787]
11568         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
11569         * math/w_exp10f.c (__exp10f): Likewise.
11570         * math/w_exp10l.c (__exp10l): Likewise.
11571         * math/libm-test.inc (exp10_test_data): Add more tests and expect
11572         errno settings in existing tests.
11573
11574         [BZ #14032]
11575         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
11576         precision control set to double precision.
11577         * sysdeps/i386/fpu/w_sqrt.c: New file.
11578         * math/auto-libm-test-in: Add more tests.
11579         * math/auto-libm-test-out: Update.
11580
11581         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
11582         (sqrt_test_tonearest): New function.
11583         (sqrt_towardzero_test_data): New variable.
11584         (sqrt_test_towardzero): New function.
11585         (sqrt_downward_test_data): New variable.
11586         (sqrt_test_downward): New function.
11587         (sqrt_upward_test_data): New variable.
11588         (sqrt_test_upward): New function.
11589         (main): Call the new functions.
11590
11591         * math/gen-auto-libm-tests.c: New file.
11592         * math/auto-libm-test-in: Likewise.
11593         * math/auto-libm-test-out: New generated file.
11594         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
11595         variables.
11596         (%beautify): Add generated representations of zero.
11597         (top level): Set $auto_input and call parse_auto_input.
11598         (beautify): Remove trailing "f" from hex float constants.
11599         (parse_args): Handle XFAIL_TEST.
11600         (convert_condition): New function.
11601         (or_value): Likewise.
11602         (or_cond_value): Likewise.
11603         (generate_testfile): Handle AUTO_TESTS_* lines.
11604         (parse_auto_input): New function.
11605         * math/libm-test.inc (XFAIL_TEST): New macro.
11606         (ERRNO_UNCHANGED): Update value.
11607         (ERRNO_EDOM): Likewise.
11608         (ERRNO_ERANGE): Likewise.
11609         (IGNORE_RESULT): Likewise.
11610         (TEST_COND_flt_32): New macro.
11611         (TEST_COND_dbl_64): Likewise.
11612         (TEST_COND_ldbl_96_intel): Likewise.
11613         (TEST_COND_ldbl_96_m68k): Likewise.
11614         (TEST_COND_ldbl_128): Likewise.
11615         (TEST_COND_ldbl_128ibm): Likewise.
11616         (TEST_COND_long32): Likewise.
11617         (TEST_COND_long64): Likewise.
11618         (TEST_COND_before_rounding): Likewise.
11619         (TEST_COND_after_rounding): Likewise.
11620         (enable_test): Handle XFAIL_TEST flag.
11621         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
11622         with finite results.
11623         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
11624         auto-libm-test-out.
11625
11626 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11627             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11628
11629         [BZ #16214]
11630         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
11631         __tls_get_addr_internal instead of __tls_get_offset in order to
11632         avoid GOT pointer dependency.  Make rtld export
11633         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
11634         __tls_get_addr since we are a __tls_get_offset platform.
11635         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
11636         GOT pointer being set up before.
11637         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
11638
11639 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
11640
11641         * manual/math.texi (Errors in Math Functions): Document accuracy
11642         goals.
11643
11644         [BZ #15004]
11645         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
11646         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
11647         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11648         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11649         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11650         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11651         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11652         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11653         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11654         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11655         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11656         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11657         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11658         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11659         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11660         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11661
11662         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
11663         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
11664         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
11665         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
11666         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
11667         Likewise.
11668         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
11669         Likewise.
11670         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
11671         Likewise.
11672         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
11673         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11674         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
11675         atomic-feupdateenv and flt-rounds.
11676         * sysdeps/powerpc/nofpu/Versions (libc): Add
11677         __atomic_feholdexcept, __atomic_feclearexcept,
11678         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
11679         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
11680         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
11681         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
11682         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
11683         here.
11684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
11685         Update.
11686
11687         * manual/arith.texi (FP Exceptions): Document that exceptions may
11688         not be raised when matherr is used.
11689         (Math Error Reporting): Document overflow in directed rounding
11690         modes.  Document that errno may not be set when finite values are
11691         returned on overflow.  Document intent to set errno on underflow
11692         only for underflow to zero.
11693
11694         [BZ #16271]
11695         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
11696         round-to-nearest then adjust result for other rounding modes.
11697         * include/fenv.h (fegetround): Use libm_hidden_proto.
11698         * math/fegetround.c (fegetround): Use libm_hidden_def.
11699         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
11700         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
11701         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11702         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
11703         Likewise.
11704         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
11705         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11706         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
11707         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
11708
11709 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11710
11711         [BZ #16077]
11712         * nss/Versions (libnss_files): Add
11713         _nss_files_gethostbyname3_r.
11714         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
11715         New function.
11716         (HOST_DB_LOOKUP): Remove macro.
11717         (_nss_files_gethostbyname_r): Implement function without the
11718         HOST_DB_LOOKUP macro.
11719         (_nss_files_gethostbyname2_r): Likewise.
11720
11721 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
11722
11723         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
11724
11725 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
11726
11727         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
11728         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
11729         warning.
11730
11731 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11732
11733         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
11734         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
11735         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
11736         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
11737         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
11738         __fe_nomask_env_priv and attribute_hidden.
11739         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
11740         (libc_feupdateenv_test_ppc): Likewise.
11741         (libc_feresetround_ppc): Likewise.
11742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11743         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
11744         compat_symbol macro.
11745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11746         (__fe_nomask_env): Likewise.
11747         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
11748
11749 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11750
11751         * string/Makefile: Remove ifunc tests.
11752         * string/test-string.h: Define TEST_IFUNC.
11753         * string/test-bcopy-ifunc.c: Remove.
11754         * string/test-bzero-ifunc.c: Likewise.
11755         * string/test-memccpy-ifunc.c: Likewise.
11756         * string/test-memchr-ifunc.c: Likewise.
11757         * string/test-memcmp-ifunc.c: Likewise.
11758         * string/test-memcpy-ifunc.c: Likewise.
11759         * string/test-memmem-ifunc.c: Likewise.
11760         * string/test-memmove-ifunc.c: Likewise.
11761         * string/test-mempcpy-ifunc.c: Likewise.
11762         * string/test-memrchr-ifunc.c: Likewise.
11763         * string/test-memset-ifunc.c: Likewise.
11764         * string/test-rawmemchr-ifunc.c: Likewise.
11765         * string/test-stpcpy-ifunc.c: Likewise.
11766         * string/test-stpncpy-ifunc.c: Likewise.
11767         * string/test-strcasecmp-ifunc.c: Likewise.
11768         * string/test-strcasestr-ifunc.c: Likewise.
11769         * string/test-strcat-ifunc.c: Likewise.
11770         * string/test-strchr-ifunc.c: Likewise.
11771         * string/test-strchrnul-ifunc.c: Likewise.
11772         * string/test-strcmp-ifunc.c: Likewise.
11773         * string/test-strcpy-ifunc.c: Likewise.
11774         * string/test-strcspn-ifunc.c: Likewise.
11775         * string/test-strlen-ifunc.c: Likewise.
11776         * string/test-strncasecmp-ifunc.c: Likewise.
11777         * string/test-strncat-ifunc.c: Likewise.
11778         * string/test-strncmp-ifunc.c: Likewise.
11779         * string/test-strncpy-ifunc.c: Likewise.
11780         * string/test-strnlen-ifunc.c: Likewise.
11781         * string/test-strpbrk-ifunc.c: Likewise.
11782         * string/test-strrchr-ifunc.c: Likewise.
11783         * string/test-strspn-ifunc.c: Likewise.
11784         * string/test-strstr-ifunc.c: Likewise.
11785
11786 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11787
11788         * benchtests/Makefile: Remove ifunc tests.
11789         * benchtests/bench-string.h: Define TEST_IFUNC.
11790         * benchtests/bench-bcopy-ifunc.c: Remove.
11791         * benchtests/bench-bzero-ifunc.c: Likewise.
11792         * benchtests/bench-memccpy-ifunc.c: Likewise.
11793         * benchtests/bench-memchr-ifunc.c: Likewise.
11794         * benchtests/bench-memcmp-ifunc.c: Likewise.
11795         * benchtests/bench-memcpy-ifunc.c: Likewise.
11796         * benchtests/bench-memmem-ifunc.c: Likewise.
11797         * benchtests/bench-memmove-ifunc.c: Likewise.
11798         * benchtests/bench-mempcpy-ifunc.c: Likewise.
11799         * benchtests/bench-memrchr-ifunc.c: Likewise.
11800         * benchtests/bench-memset-ifunc.c: Likewise.
11801         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
11802         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
11803         * benchtests/bench-stpcpy-ifunc.c: Likewise.
11804         * benchtests/bench-stpncpy-ifunc.c: Likewise.
11805         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
11806         * benchtests/bench-strcasestr-ifunc.c: Likewise.
11807         * benchtests/bench-strcat-ifunc.c: Likewise.
11808         * benchtests/bench-strchr-ifunc.c: Likewise.
11809         * benchtests/bench-strchrnul-ifunc.c: Likewise.
11810         * benchtests/bench-strcmp-ifunc.c: Likewise.
11811         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
11812         * benchtests/bench-strcpy-ifunc.c: Likewise.
11813         * benchtests/bench-strcspn-ifunc.c: Likewise.
11814         * benchtests/bench-strlen-ifunc.c: Likewise.
11815         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
11816         * benchtests/bench-strncat-ifunc.c: Likewise.
11817         * benchtests/bench-strncmp-ifunc.c: Likewise.
11818         * benchtests/bench-strncpy-ifunc.c: Likewise.
11819         * benchtests/bench-strnlen-ifunc.c: Likewise.
11820         * benchtests/bench-strpbrk-ifunc.c: Likewise.
11821         * benchtests/bench-strrchr-ifunc.c: Likewise.
11822         * benchtests/bench-strsep-ifunc.c: Likewise.
11823         * benchtests/bench-strspn-ifunc.c: Likewise.
11824         * benchtests/bench-strstr-ifunc.c: Likewise.
11825
11826 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11827
11828         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
11829
11830 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11831
11832         * resolv/netdb.h: Use __glibc_reserved instead __unused.
11833         * rt/aio.h: Likewise.
11834         * sysdeps/gnu/bits/utmp.h: Likewise.
11835         * sysdeps/gnu/bits/utmpx.h: Likewise.
11836         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11837         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
11838         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
11839         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
11840         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11841         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11842         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
11843         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
11844         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
11845         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11846         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11847         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11848         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
11850         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
11851         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
11852         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11853         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11854         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11855         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11856         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
11857         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
11858         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
11859         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11860         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11861         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11862         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
11863         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11864         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11865         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11866         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11867         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
11868         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
11869         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
11870         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11871         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
11872         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11873         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11874         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11875         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
11876         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
11877         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
11878
11879 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
11880
11881         [BZ #16245]
11882         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
11883         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
11884
11885 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
11886
11887         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
11888         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
11889         Likewise.
11890
11891 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11892
11893         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
11894         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
11895         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
11896         (__fesetround): Remove define.
11897         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
11898         rounding and exceptions handling.
11899         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
11900         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
11901         (__fe_nomask_env): Likewise.
11902         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
11903         __fegetround instead of fegetround.
11904         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
11905         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
11906
11907 2013-11-21  Roland McGrath  <roland@hack.frob.com>
11908
11909         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
11910         it's there.
11911
11912         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
11913
11914 2013-11-21  Meador Inge  <meadori@codesourcery.com>
11915
11916         [BZ #11157]
11917         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
11918         (encrypt_r): Likewise.
11919         * malloc/obstack.h (obstack_free): Likewise.
11920         * posix/unistd.h (encrypt): Likewise.
11921
11922 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
11923
11924         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
11925         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
11926         DL_CALL_DT_FINI() that call the functions directly.
11927         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
11928         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
11929         * elf/dl-fini.c: Likewise.
11930
11931 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
11932
11933         * malloc/hooks.c (memalign_check): Add alignment rounding.
11934         * malloc/malloc.c (_mid_memalign): New function.
11935         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
11936         Implement by calling _mid_memalign.
11937         * manual/probes.texi (Memory Allocation Probes): Remove
11938         memory_valloc_retry and memory_pvalloc_retry.
11939
11940 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11941
11942         * locale/programs/locarchive.c (open_archive): Add const
11943         qualifier to ARCHIVEFNAME and copy default fname to
11944         DEFAULT_FNAME.
11945
11946         [BZ #15601]
11947         * libio/tst-widetext.input: Rename Oriya to Odia.
11948         * locale/iso-639.def: Likewise.
11949
11950         * manual/probes.texi (Mathematical Function Probes): Add
11951         documentation for sin, cos, asin and acos probes.
11952         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
11953         (__sin32): Add slowasin probe.
11954         (__cos32): Add slowacos probe.
11955         (__mpsin): Add slowsin probe.
11956         (__mpcos): Add slowcos probe.
11957
11958 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
11959
11960         [BZ #15483]
11961         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
11962         thread-local __sim_exceptions_thread and global
11963         __sim_exceptions_global.
11964         (__sim_disabled_exceptions): Change to thread-local
11965         __sim_disabled_exceptions_thread and global
11966         __sim_disabled_exceptions_global.
11967         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11968         and global __sim_round_mode_global.
11969         (__simulate_exceptions): Use thread-local floating-point state and
11970         set global state from it as needed.
11971         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
11972         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
11973         __sim_round_mode_thread.
11974         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
11975         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
11976         and global __sim_exceptions_global.
11977         (__sim_disabled_exceptions): Change to thread-local
11978         __sim_disabled_exceptions_thread and global
11979         __sim_disabled_exceptions_global.
11980         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11981         and global __sim_round_mode_global.
11982         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
11983         (SIM_SET_GLOBAL): Likewise.
11984         * sysdeps/powerpc/soft-fp/sfp-machine.h
11985         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
11986         __sim_round_mode_thread.
11987         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
11988         __sim_disabled_exceptions_thread.
11989         (__sim_exceptions): Change to __sim_exceptions_thread.
11990         (__sim_disabled_exceptions): Change to
11991         __sim_disabled_exceptions_thread.
11992         (__sim_round_mode): Change to __sim_round_mode_thread.
11993         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
11994         thread-local floating-point state and set global state from it as
11995         needed.
11996         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
11997         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
11998         (__sim_disabled_exceptions): Remove extern declaration.
11999         (feenableexcept): Use thread-local floating-point state and set
12000         global state from it as needed.
12001         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
12002         extern declaration.
12003         (__sim_disabled_exceptions): Likewise.
12004         (__sim_round_mode): Likewise.
12005         (__fegetenv): Use thread-local floating-point state.
12006         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
12007         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
12008         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
12009         floating-point state and set global state from it as needed.
12010         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
12011         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
12012         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
12013         Likewise.
12014         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
12015         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
12016         Likewise.
12017         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
12018         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
12019         Use __sim_round_mode_thread.
12020         * math/test-fenv-tls.c: New file.
12021         * math/Makefile (tests): Add test-fenv-tls.
12022         ($(objpfx)test-fenv-tls): Depend on
12023         $(common-objpfx)nptl/libpthread.so.
12024
12025 2013-11-19  Andreas Schwab  <schwab@suse.de>
12026
12027         * locale/programs/locale.c (show_info): Decode wordarray elements.
12028         * locale/categories.def (LC_MONETARY): Add element for
12029         _NL_MONETARY_CRNCYSTR.
12030         * locale/C-monetary.c (conversion_rate): New variable.
12031         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
12032         element.
12033
12034 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
12035
12036         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
12037         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
12038
12039 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12040
12041         * elf/Makefile (tst-auxv): New test.
12042         * elf/tst-auxv.c: New
12043         * elf/rtld.c (dl_main): Adjust AT_EXECFN
12044
12045 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
12046
12047         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
12048         (hidden_proto): Caller changed.
12049         (hidden_tls_proto): New macro.
12050         (libc_hidden_tls_proto): Likewise.
12051         (rtld_hidden_tls_proto): Likewise.
12052         (libm_hidden_tls_proto): Likewise.
12053         (libresolv_hidden_tls_proto): Likewise.
12054         (librt_hidden_tls_proto): Likewise.
12055         (libdl_hidden_tls_proto): Likewise.
12056         (libnss_files_hidden_tls_proto): Likewise.
12057         (libnsl_hidden_tls_proto): Likewise.
12058         (libnss_nisplus_hidden_tls_proto): Likewise.
12059         (libutil_hidden_tls_proto): Likewise.
12060
12061 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
12062
12063         [BZ #10253]
12064         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
12065         (decompose_rpath): Defer expansion to fillin_rpath.
12066         (_dl_init_paths): Pass linkmap to fillin_rpath.
12067
12068 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12069
12070         * benchtests/Makefile: Add strsep.
12071         * benchtests/bench-strsep.c: New file: strsep benchtest.
12072         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
12073
12074 2013-11-18  Andreas Schwab  <schwab@suse.de>
12075
12076         * locale/programs/locale.c (show_info) [case byte]: Check for
12077         '\377' instead of '\177'.
12078         * locale/C-monetary.c (not_available): Always use "\377".
12079         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
12080         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
12081         detect unavailable sign_posn locale elements.
12082         * locale/localeconv.c (__localeconv): For grouping and
12083         mon_grouping handle "\177" and "\377" like no grouping.
12084         (INT_ELEM): New macro.  Use it to set all numeric members.
12085         * locale/programs/ld-monetary.c (monetary_read)
12086         <tok_mon_grouping>: Normalize single -1 to the empty string.
12087         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
12088         Likewise.
12089
12090 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12091
12092         [BZ #16055]
12093         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
12094         when we match (nil).
12095         * stdio-common/tst-sscanf.c (struct test): Add testcase.
12096
12097 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
12098
12099         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
12100         (NO_TEST_INLINE): Update value.
12101         (ERRNO_UNCHANGED): Likewise.
12102         (ERRNO_EDOM): Likewise.
12103         (ERRNO_ERANGE): Likewise.
12104         (IGNORE_RESULT): Likewise.
12105         (check_float_internal): Check signs of NaN results if
12106         TEST_NAN_SIGN used.
12107         (check_complex): Pass TEST_NAN_SIGN flag through to second
12108         check_float_internal call.
12109         (copysign_test_data): Add tests with quiet NaNs as second
12110         argument.  Use TEST_NAN_SIGN.
12111         (fabs_test_data): Add test of negative quiet NaN argument.  Use
12112         TEST_NAN_SIGN.
12113         (signbit_test_data): Add tests of quiet NaN argument.
12114         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
12115
12116         * math/gen-libm-test.pl (show_exceptions): Take extra argument
12117         $ignore_result.
12118         (parse_args): Handle function results specified as IGNORE.
12119         * math/libm-test.inc (IGNORE_RESULT): New macro.
12120         (check_float_internal): Do not check numerical result if flag
12121         IGNORE_RESULT set.
12122         (check_complex): Pass through IGNORE_RESULT to second
12123         check_float_internal call.
12124         (check_int): Do not check numerical result if flag IGNORE_RESULT
12125         set.
12126         (check_long): Likewise.
12127         (check_bool): Likewise.
12128         (check_longlong): Likewise.
12129         (lrint_test_data): Add tests of infinite and NaN arguments.
12130         (lrint_tonearest_test_data): Likewise.
12131         (lrint_towardzero_test_data): Likewise.
12132         (lrint_downward_test_data): Likewise.
12133         (lrint_upward_test_data): Likewise.
12134         (llrint_test_data): Likewise.
12135         (llrint_tonearest_test_data): Likewise.
12136         (llrint_towardzero_test_data): Likewise.
12137         (llrint_downward_test_data): Likewise.
12138         (llrint_upward_test_data): Likewise.
12139         (lround_test_data): Likewise.
12140         (llround_test_data): Likewise.
12141
12142         * math/libm-test.inc (NO_TEST_INLINE): New macro.
12143         (ERRNO_UNCHANGED): Update value.
12144         (ERRNO_EDOM): Likewise.
12145         (ERRNO_ERANGE): Likewise.
12146         (NO_TEST_INLINE_FLOAT): New macro.
12147         (NO_TEST_INLINE_DOUBLE): Likewise.
12148         (enable_test): New function.
12149         (RUN_TEST_f_f): Check enable_test before running test.
12150         (RUN_TEST_2_f): Likewise.
12151         (RUN_TEST_fff_f): Likewise.
12152         (RUN_TEST_c_f): Likewise.
12153         (RUN_TEST_f_f1): Likewise.
12154         (RUN_TEST_fF_f1): Likewise.
12155         (RUN_TEST_fI_f1): Likewise.
12156         (RUN_TEST_ffI_f1): Likewise.
12157         (RUN_TEST_c_c): Likewise.
12158         (RUN_TEST_cc_c): Likewise.
12159         (RUN_TEST_f_i): Likewise.
12160         (RUN_TEST_f_i_tg): Likewise.
12161         (RUN_TEST_ff_i_tg): Likewise.
12162         (RUN_TEST_f_b): Likewise.
12163         (RUN_TEST_f_b_tg): Likewise.
12164         (RUN_TEST_f_l): Likewise.
12165         (RUN_TEST_f_L): Likewise.
12166         (RUN_TEST_fFF_11): Likewise.
12167         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
12168         conditionals.
12169         (cosh_test_data): Likewise.
12170         (exp_test_data): Likewise.
12171         (expm1_test_data): Likewise.
12172         (hypot_test_data): Likewise.
12173         (pow_test_data): Likewise.
12174         (sinh_test_data): Likewise.
12175         (tanh_test_data): Likewise.
12176         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
12177         flags argument.
12178
12179         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
12180         tests with quiet NaN input and output.
12181         (acosh_test_data): Likewise.
12182         (asin_test_data): Likewise.
12183         (asinh_test_data): Likewise.
12184         (atan_test_data): Likewise.
12185         (atanh_test_data): Likewise.
12186         (atan2_test_data): Likewise.
12187         (cbrt_test_data): Likewise.
12188         (cos_test_data): Likewise.
12189         (cosh_test_data): Likewise.
12190         (erf_test_data): Likewise.
12191         (erfc_test_data): Likewise.
12192         (exp_test_data): Likewise.
12193         (exp10_test_data): Likewise.
12194         (exp2_test_data): Likewise.
12195         (expm1_test_data): Likewise.
12196         (hypot_test_data): Likewise.
12197         (j0_test_data): Likewise.
12198         (j1_test_data): Likewise.
12199         (jn_test_data): Likewise.
12200         (lgamma_test_data): Likewise.
12201         (log_test_data): Likewise.
12202         (log10_test_data): Likewise.
12203         (log1p_test_data): Likewise.
12204         (log2_test_data): Likewise.
12205         (pow_test_data): Likewise.
12206         (scalb_test_data): Likewise.
12207         (sin_test_data): Likewise.
12208         (sincos_test_data): Likewise.
12209         (sinh_test_data): Likewise.
12210         (tan_test_data): Likewise.
12211         (tanh_test_data): Likewise.
12212         (tgamma_test_data): Likewise.
12213         (y0_test_data): Likewise.
12214         (y1_test_data): Likewise.
12215         (yn_test_data): Likewise.
12216
12217         [BZ #16167]
12218         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
12219         argument being NaN and avoid computations with second argument in
12220         that case.
12221         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
12222         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12223         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12224
12225 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
12226
12227         * locale/iso-639.def: Add Chitwani Tharu (the).
12228
12229 2013-11-14  Andreas Schwab  <schwab@suse.de>
12230
12231         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
12232         word instead of empty string.
12233
12234 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12235
12236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12237         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
12238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12239         (__fe_nomask_env): Likewise.
12240
12241 2013-11-13  Steve Ellcey  <sellcey@mips.com>
12242
12243         * benchtests/bench-timing.h: Include time.h.
12244
12245 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
12246
12247         [BZ #15997]
12248         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
12249         to 3.4.0 for x32.
12250         * sysdeps/unix/sysv/linux/configure: Regenerated.
12251
12252 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
12253
12254         [BZ #16151]
12255         * stdlib/strtod_l.c (round_and_return): Do not consider
12256         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
12257         exponent one less than half the least subnormal exponent.
12258         * stdlib/test-strtod-round-data: Add more tests.
12259         * stdlib/tst-strtod-round.c (tests): Regenerated.
12260
12261 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12262
12263         [BZ #14143]
12264         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
12265         (__fe_mask_env): Likewise.
12266         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
12267         libm_hidden_proto and add function prototype.
12268         (__fe_mask_env): Add function prototype.
12269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12270         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
12271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12272         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
12273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12274         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
12275
12276 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12277
12278         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
12279         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
12280
12281 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12282
12283         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
12284         of htab_find_slot().
12285
12286 2013-11-11  David S. Miller  <davem@davemloft.net>
12287
12288         [BZ #16150]
12289         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
12290         symbol in the non-vis3 case in static builds.
12291         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
12292         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
12293         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
12294         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
12295
12296 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12297
12298         [BZ #387]
12299         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
12300         it is empty.
12301
12302 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12303
12304         * benchtests/Makefile: Add bench-strtod.
12305         * benchtests/bench-strtod.c: New file: strtod benchtest
12306
12307 2013-11-11  Andreas Schwab  <schwab@suse.de>
12308
12309         [BZ #16153]
12310         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
12311         terminating NUL in key length.
12312
12313 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12314
12315         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
12316         Add artificial ODP entry for vDSO symbol for PPC64.
12317         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
12318         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
12319
12320 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12321
12322         [BZ #15374]
12323         * nss/getent.c (services_keys): Recognize services starting with digit.
12324
12325 2013-11-06  David S. Miller  <davem@davemloft.net>
12326
12327         [BZ #15985]
12328         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
12329         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
12330
12331 2013-11-06  Will Newton  <will.newton@linaro.org>
12332
12333         * manual/memory.texi (Malloc Examples): Remove register
12334         keyword from examples.
12335
12336 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
12337
12338         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
12339
12340 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
12341
12342         [BZ #6981]
12343         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
12344         depending on [__GCC_IEC_559 > 0].
12345         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
12346         depending on [__GCC_IEC_559_COMPLEX > 0].
12347
12348 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
12349
12350         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
12351         to iso-639.def.
12352
12353 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
12354
12355         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
12356
12357 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
12358
12359         [BZ #16112]
12360         * malloc/malloc (malloc_info): Do not handle first bin as
12361         special case.
12362
12363 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
12364
12365         * locale/iso-639.def: Add Central Nahuatl (nhn).
12366
12367 2013-11-01  Bruno Haible  <bruno@clisp.org>
12368
12369         [BZ #7003]
12370         * manual/math.texi (BSD Random): Specify range upper bound as
12371         in POSIX.
12372
12373 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
12374
12375         * locale/iso-639.def: Add Meadow Mari (mhr).
12376
12377 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
12378
12379         [BZ #14752], [BZ #15763]
12380         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
12381         Validate name.
12382         * rt/tst_shm.c: Add test for escaping directory.
12383
12384 2013-10-31  Andreas Schwab  <schwab@suse.de>
12385
12386         [BZ #15917]
12387         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
12388         followed by 'x' as part of digit sequence.
12389         * stdio-common/tst-sscanf.c (double_tests2): New tests.
12390
12391 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
12392
12393         [BZ #16037]
12394         * configure.ac: allow GNU Make 4.0 and greater.
12395         * configure: Regenerated.
12396
12397 2013-10-30  Will Newton  <will.newton@linaro.org>
12398
12399         [BZ #16038]
12400         * malloc/hooks.c (memalign_check): Limit alignment to the
12401         maximum representable power of two.
12402         * malloc/malloc.c (__libc_memalign): Likewise.
12403         * malloc/tst-memalign.c (do_test): Add test for very
12404         large alignment values.
12405         * malloc/tst-posix_memalign.c (do_test): Likewise.
12406
12407 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12408
12409         [BZ #11087]
12410         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
12411         (munmap_chunk): Likewise.
12412         (mremap_chunk): Likewise.
12413
12414 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12415
12416         [BZ #15799]
12417         * stdlib/div.c (div): Remove obsolete code.
12418         * stdlib/ldiv.c (ldiv): Likewise.
12419         * stdlib/lldiv.c (lldiv): Likewise.
12420
12421 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
12422
12423         [BZ #16071]
12424         * nss/nss_files/files-XXX.c (get_contents_ret): New
12425         enumerator.
12426         (get_contents): New function.
12427         (internal_getent): Use it.  Expand size of LINEBUFLEN.
12428
12429 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
12430
12431         * configure.in: Moved to ...
12432         * configure.ac: ... here. Change reference to configure.in
12433         to configure.ac.
12434         * sysdeps/arm/preconfigure.ac: ... here.
12435         configure.in to configure.ac.
12436         * sysdeps/gnu/configure.in: Moved to ...
12437         * sysdeps/gnu/configure.ac: ... here.
12438         * sysdeps/i386/configure.in: Moved to ...
12439         * sysdeps/i386/configure.ac: ... here.
12440         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
12441         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
12442         * sysdeps/mach/configure.in: Moved to ...
12443         * sysdeps/mach/configure.ac: ... here.
12444         * sysdeps/mach/hurd/configure.in: Moved to ...
12445         * sysdeps/mach/hurd/configure.ac: ... here.
12446         * sysdeps/powerpc/configure.in: Moved to ...
12447         * sysdeps/powerpc/configure.ac: ... here.
12448         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
12449         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
12450         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
12451         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
12452         * sysdeps/s390/s390-32/configure.in: Moved to ...
12453         * sysdeps/s390/s390-32/configure.ac: ... here.
12454         * sysdeps/s390/s390-64/configure.in: Moved to ...
12455         * sysdeps/s390/s390-64/configure.ac: ... here.
12456         * sysdeps/sh/configure.in: Moved to ...
12457         * sysdeps/sh/configure.ac: ... here.
12458         * sysdeps/sparc/configure.in: Moved to ...
12459         * sysdeps/sparc/configure.ac: ... here.
12460         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
12461         * sysdeps/unix/sysv/linux/configure.ac: ... here.
12462         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
12463         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
12464         * sysdeps/x86_64/configure.in: Moved to ...
12465         * sysdeps/x86_64/configure.ac: ... here.
12466         * sysdeps/x86_64/preconfigure.in: Moved to ...
12467         * sysdeps/x86_64/preconfigure.ac: ... here.
12468         * aclocal.m4: Change reference to configure.in to configure.ac.
12469         * config.h.in: Likewise.
12470         * manual/install.texi: Likewise.
12471         * manual/maint.texi: Likewise.
12472         * Makefile: Likewise.
12473         * malloc/Makefile: Likewise.
12474         * nscd/Makefile: Likewise.
12475         * Makeconfig: Change reference to configure.in and
12476         preconfigure.in to configure.ac and preconfigure.ac
12477         respectively.
12478         * INSTALL: Regenerated.
12479         * configure: Likewise.
12480         * sysdeps/gnu/configure: Likewise.
12481         * sysdeps/i386/configure: Likewise.
12482         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
12483         * sysdeps/mach/configure: Likewise.
12484         * sysdeps/mach/hurd/configure: Likewise.
12485         * sysdeps/powerpc/configure: Likewise.
12486         * sysdeps/powerpc/powerpc32/configure: Likewise.
12487         * sysdeps/powerpc/powerpc64/configure: Likewise.
12488         * sysdeps/s390/s390-32/configure: Likewise.
12489         * sysdeps/s390/s390-64/configure: Likewise.
12490         * sysdeps/sh/configure: Likewise.
12491         * sysdeps/sparc/configure: Likewise.
12492         * sysdeps/unix/sysv/linux/configure: Likewise.
12493         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
12494         * sysdeps/x86_64/configure: Likewise.
12495         * sysdeps/x86_64/preconfigure: Likewise.
12496
12497 2013-10-29  Andreas Schwab  <schwab@suse.de>
12498
12499         * stdio-common/Makefile (tst-swscanf-ENV): Define.
12500
12501 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12502
12503         * benchtests/pow-inputs: Add new inputs.
12504
12505         * benchtests/exp-inputs: Add new inputs.
12506
12507         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
12508         conditional check for return value.
12509         (__cos32): Likewise.
12510
12511 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12512
12513         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
12514         to provide a boost for large inputs with word alignment.
12515         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
12516         implementation based on optimized PPC64 strcpy.
12517         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
12518         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
12519         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
12520         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
12521
12522 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12523
12524         [BZ #2801]
12525         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
12526
12527 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12528
12529         [BZ #14876]
12530         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
12531         * time/tst-strptime.c (day_tests): Add testcase.
12532
12533 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12534
12535         [BZ #14029]
12536         * manual/pattern.texi: Acknowledge that fnmatch can fail.
12537
12538 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
12539
12540         [BZ #16074]
12541         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
12542         MAP_FAILED on error.
12543
12544 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12545
12546         [BZ #16072]
12547         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
12548         heap for large requests.
12549
12550 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
12551
12552         [BZ #9954]
12553         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
12554         result if the result has no associated interface.
12555         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
12556         interface for all 127.X.Y.Z addresses.
12557
12558 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
12559
12560         * locale/iso-639.def: Add Ligurian (lij)
12561
12562 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
12563
12564         [BZ #15825]
12565         * sunrpc/rpc_main.c: Document rpcgen -5.
12566
12567 2013-10-19  Michael Stahl  <mstahl@redhat.com>
12568
12569         * elf/rtld.c (do_preload): Print the reason why preloading failed.
12570
12571 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12572
12573         [BZ #10278]
12574         * posix/glob.c: Match only directories when trailing slash is present.
12575         * posix/tst-gnuglob.c (my_opendir): Do not open files.
12576         (main): Add testcase.
12577
12578 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12579
12580         [BZ #15670]
12581         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
12582
12583 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
12584
12585         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
12586         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
12587         AUTH_DES and cindex for FIPS 140-2.
12588         (DES Encryption): Add cindex FIPS 46-3.
12589
12590         * locale/locarchive.h (struct locarhandle): Add fname.
12591         * locale/programs/localedef.c (main): Pass ARGV[remaining]
12592         if an optional argument was specified to --list-archive,
12593         otherwise NULL.
12594         * locale/programs/locarchive.c (show_archive_content): Take new
12595         argument fname and pass it via ah.fname to open_archive.
12596         * locale/programs/localedef.h: Update decl.
12597         (open_archive): If AH->fname is non-null, open that file
12598         rather than the default file name, and don't ignore ENOENT.
12599         (create_archive): Set AH.fname to NULL.
12600         (delete_locales_from_archive): Likewise.
12601         (add_locales_to_archive): Likewise.
12602         * locale/programs/locfile.c (write_all_categories): Likewise.
12603
12604 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
12605             Aldy Hernandez  <aldyh@redhat.com>
12606
12607         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
12608         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
12609         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
12610         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
12611         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
12612         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
12613         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
12614         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
12615         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
12616         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
12617         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
12618         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
12619         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
12620         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
12621         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
12622         Likewise.
12623         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
12624         Likewise.
12625         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
12626         Likewise.
12627         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
12628         Likewise.
12629         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
12630         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
12631         Likewise.
12632         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
12633         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
12634         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
12635         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
12636         Likewise.
12637         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
12638         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
12639         * sysdeps/powerpc/preconfigure: Likewise.
12640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12641         Likewise.
12642         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
12643         Replace contents of file by #include of <fenv_libc.h>.
12644         * sysdeps/powerpc/soft-fp/sfp-machine.h
12645         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
12646         and <sys/prctl.h>.
12647         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
12648         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
12649         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
12650         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
12651         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
12652         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
12653         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
12654         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
12655         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
12656         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
12657         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
12658         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
12659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
12660         Allow copysignl PLT reference to be missing.
12661
12662 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
12663             Joseph Myers  <joseph@codesourcery.com
12664
12665         [BZ #15948]
12666         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
12667         single character.
12668         (add_to_tablewc): Assert sequence of wide characters is nonempty.
12669
12670 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12671
12672         * elf/tst-tls-dlinfo.c: Don't include tls.h.
12673         * elf/tst-tls1.c: Likewise.
12674         * elf/tst-tls10.h: Likewise.
12675         * elf/tst-tls14.c: Likewise.
12676         * elf/tst-tls2.c: Likewise.
12677         * elf/tst-tls3.c: Likewise.
12678         * elf/tst-tls4.c: Likewise.
12679         * elf/tst-tls5.c: Likewise.
12680         * elf/tst-tls6.c: Likewise.
12681         * elf/tst-tls7.c: Likewise.
12682         * elf/tst-tls8.c: Likewise.
12683         * elf/tst-tls9.c: Likewise.
12684         * elf/tst-tlsmod1.c: Likewise.
12685         * elf/tst-tlsmod13.c: Likewise.
12686         * elf/tst-tlsmod13a.c: Likewise.
12687         * elf/tst-tlsmod14a.c: Likewise.
12688         * elf/tst-tlsmod16a.c: Likewise.
12689         * elf/tst-tlsmod16b.c: Likewise.
12690         * elf/tst-tlsmod2.c: Likewise.
12691         * elf/tst-tlsmod3.c: Likewise.
12692         * elf/tst-tlsmod4.c: Likewise.
12693         * elf/tst-tlsmod5.c: Likewise.
12694         * elf/tst-tlsmod6.c: Likewise.
12695
12696 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
12697
12698         [BZ #12486]
12699         * malloc/malloc.c: remove checks for statistics.
12700
12701 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12702
12703         [BZ #15277]
12704         * inet/inet_net.c (inet_network): Detect additional invalid strings.
12705         * inet/tst-network.c: Add testcase.
12706
12707 2013-10-17  Andreas Schwab  <schwab@suse.de>
12708
12709         [BZ #15218]
12710         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
12711         to determine canonical name.
12712
12713 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12714
12715         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
12716         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
12717         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12718         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12719         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12720         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12721         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12722         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12723         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12724         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12725         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12726         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12727         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12728         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12729         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12730         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12731         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12732         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12733         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12734         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12735         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12736         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12737         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12738         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
12739         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
12740         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12741         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12742         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
12743         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12744         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
12745         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12746         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12747         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12748         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12749         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12750         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12751         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12752         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12753         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12754         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12755         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12756         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12757         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12758         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12759         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12760         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12761         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12762         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12763         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12764         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12765         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12766         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12767         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12768         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12769         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12770         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12771         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12772         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12773
12774 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
12775
12776         [BZ #16041]
12777         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
12778         make result into a quiet NaN.
12779
12780 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
12781
12782         * soft-fp/adddf3.c: Fix horizontal whitespace.
12783         * soft-fp/addsf3.c: Likewise.
12784         * soft-fp/addtf3.c: Likewise.
12785         * soft-fp/divdf3.c: Likewise.
12786         * soft-fp/divsf3.c: Likewise.
12787         * soft-fp/divtf3.c: Likewise.
12788         * soft-fp/double.h: Likewise.
12789         * soft-fp/eqdf2.c: Likewise.
12790         * soft-fp/eqsf2.c: Likewise.
12791         * soft-fp/eqtf2.c: Likewise.
12792         * soft-fp/extenddftf2.c: Likewise.
12793         * soft-fp/extended.h: Likewise.
12794         * soft-fp/extendsfdf2.c: Likewise.
12795         * soft-fp/extendsftf2.c: Likewise.
12796         * soft-fp/extendxftf2.c: Likewise.
12797         * soft-fp/fixdfdi.c: Likewise.
12798         * soft-fp/fixdfsi.c: Likewise.
12799         * soft-fp/fixdfti.c: Likewise.
12800         * soft-fp/fixsfdi.c: Likewise.
12801         * soft-fp/fixsfsi.c: Likewise.
12802         * soft-fp/fixsfti.c: Likewise.
12803         * soft-fp/fixtfdi.c: Likewise.
12804         * soft-fp/fixtfsi.c: Likewise.
12805         * soft-fp/fixtfti.c: Likewise.
12806         * soft-fp/fixunsdfdi.c: Likewise.
12807         * soft-fp/fixunsdfsi.c: Likewise.
12808         * soft-fp/fixunsdfti.c: Likewise.
12809         * soft-fp/fixunssfdi.c: Likewise.
12810         * soft-fp/fixunssfsi.c: Likewise.
12811         * soft-fp/fixunssfti.c: Likewise.
12812         * soft-fp/fixunstfdi.c: Likewise.
12813         * soft-fp/fixunstfsi.c: Likewise.
12814         * soft-fp/fixunstfti.c: Likewise.
12815         * soft-fp/floatdidf.c: Likewise.
12816         * soft-fp/floatdisf.c: Likewise.
12817         * soft-fp/floatditf.c: Likewise.
12818         * soft-fp/floatsidf.c: Likewise.
12819         * soft-fp/floatsisf.c: Likewise.
12820         * soft-fp/floatsitf.c: Likewise.
12821         * soft-fp/floattidf.c: Likewise.
12822         * soft-fp/floattisf.c: Likewise.
12823         * soft-fp/floattitf.c: Likewise.
12824         * soft-fp/floatundidf.c: Likewise.
12825         * soft-fp/floatundisf.c: Likewise.
12826         * soft-fp/floatunditf.c: Likewise.
12827         * soft-fp/floatunsidf.c: Likewise.
12828         * soft-fp/floatunsisf.c: Likewise.
12829         * soft-fp/floatunsitf.c: Likewise.
12830         * soft-fp/floatuntidf.c: Likewise.
12831         * soft-fp/floatuntisf.c: Likewise.
12832         * soft-fp/floatuntitf.c: Likewise.
12833         * soft-fp/fmadf4.c: Likewise.
12834         * soft-fp/fmasf4.c: Likewise.
12835         * soft-fp/fmatf4.c: Likewise.
12836         * soft-fp/gedf2.c: Likewise.
12837         * soft-fp/gesf2.c: Likewise.
12838         * soft-fp/getf2.c: Likewise.
12839         * soft-fp/ledf2.c: Likewise.
12840         * soft-fp/lesf2.c: Likewise.
12841         * soft-fp/letf2.c: Likewise.
12842         * soft-fp/muldf3.c: Likewise.
12843         * soft-fp/mulsf3.c: Likewise.
12844         * soft-fp/multf3.c: Likewise.
12845         * soft-fp/negdf2.c: Likewise.
12846         * soft-fp/negsf2.c: Likewise.
12847         * soft-fp/negtf2.c: Likewise.
12848         * soft-fp/op-1.h: Likewise.
12849         * soft-fp/op-2.h: Likewise.
12850         * soft-fp/op-4.h: Likewise.
12851         * soft-fp/op-8.h: Likewise.
12852         * soft-fp/op-common.h: Likewise.
12853         * soft-fp/quad.h: Likewise.
12854         * soft-fp/single.h: Likewise.
12855         * soft-fp/soft-fp.h: Likewise.
12856         * soft-fp/sqrtdf2.c: Likewise.
12857         * soft-fp/sqrtsf2.c: Likewise.
12858         * soft-fp/sqrttf2.c: Likewise.
12859         * soft-fp/subdf3.c: Likewise.
12860         * soft-fp/subsf3.c: Likewise.
12861         * soft-fp/subtf3.c: Likewise.
12862         * soft-fp/truncdfsf2.c: Likewise.
12863         * soft-fp/trunctfdf2.c: Likewise.
12864         * soft-fp/trunctfsf2.c: Likewise.
12865         * soft-fp/trunctfxf2.c: Likewise.
12866         * soft-fp/unorddf2.c: Likewise.
12867         * soft-fp/unordsf2.c: Likewise.
12868         * soft-fp/unordtf2.c: Likewise.
12869
12870 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
12871
12872         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
12873         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
12874
12875 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
12876
12877         * elf/dl-libc.c: Clear initfini list after freeing.
12878
12879 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
12880
12881         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
12882         * soft-fp/addsf3.c: Likewise.
12883         * soft-fp/addtf3.c: Likewise.
12884         * soft-fp/divdf3.c: Likewise.
12885         * soft-fp/divsf3.c: Likewise.
12886         * soft-fp/divtf3.c: Likewise.
12887         * soft-fp/double.h: Likewise.
12888         * soft-fp/eqdf2.c: Likewise.
12889         * soft-fp/eqsf2.c: Likewise.
12890         * soft-fp/eqtf2.c: Likewise.
12891         * soft-fp/extenddftf2.c: Likewise.
12892         * soft-fp/extended.h: Likewise.
12893         * soft-fp/extendsfdf2.c: Likewise.
12894         * soft-fp/extendsftf2.c: Likewise.
12895         * soft-fp/extendxftf2.c: Likewise.
12896         * soft-fp/fixdfdi.c: Likewise.
12897         * soft-fp/fixdfsi.c: Likewise.
12898         * soft-fp/fixdfti.c: Likewise.
12899         * soft-fp/fixsfdi.c: Likewise.
12900         * soft-fp/fixsfsi.c: Likewise.
12901         * soft-fp/fixsfti.c: Likewise.
12902         * soft-fp/fixtfdi.c: Likewise.
12903         * soft-fp/fixtfsi.c: Likewise.
12904         * soft-fp/fixtfti.c: Likewise.
12905         * soft-fp/fixunsdfdi.c: Likewise.
12906         * soft-fp/fixunsdfsi.c: Likewise.
12907         * soft-fp/fixunsdfti.c: Likewise.
12908         * soft-fp/fixunssfdi.c: Likewise.
12909         * soft-fp/fixunssfsi.c: Likewise.
12910         * soft-fp/fixunssfti.c: Likewise.
12911         * soft-fp/fixunstfdi.c: Likewise.
12912         * soft-fp/fixunstfsi.c: Likewise.
12913         * soft-fp/fixunstfti.c: Likewise.
12914         * soft-fp/floatdidf.c: Likewise.
12915         * soft-fp/floatdisf.c: Likewise.
12916         * soft-fp/floatditf.c: Likewise.
12917         * soft-fp/floatsidf.c: Likewise.
12918         * soft-fp/floatsisf.c: Likewise.
12919         * soft-fp/floatsitf.c: Likewise.
12920         * soft-fp/floattidf.c: Likewise.
12921         * soft-fp/floattisf.c: Likewise.
12922         * soft-fp/floattitf.c: Likewise.
12923         * soft-fp/floatundidf.c: Likewise.
12924         * soft-fp/floatundisf.c: Likewise.
12925         * soft-fp/floatunsidf.c: Likewise.
12926         * soft-fp/floatunsisf.c: Likewise.
12927         * soft-fp/floatuntidf.c: Likewise.
12928         * soft-fp/floatuntisf.c: Likewise.
12929         * soft-fp/floatuntitf.c: Likewise.
12930         * soft-fp/fmadf4.c: Likewise.
12931         * soft-fp/fmasf4.c: Likewise.
12932         * soft-fp/fmatf4.c: Likewise.
12933         * soft-fp/gedf2.c: Likewise.
12934         * soft-fp/gesf2.c: Likewise.
12935         * soft-fp/getf2.c: Likewise.
12936         * soft-fp/ledf2.c: Likewise.
12937         * soft-fp/lesf2.c: Likewise.
12938         * soft-fp/letf2.c: Likewise.
12939         * soft-fp/muldf3.c: Likewise.
12940         * soft-fp/mulsf3.c: Likewise.
12941         * soft-fp/multf3.c: Likewise.
12942         * soft-fp/negdf2.c: Likewise.
12943         * soft-fp/negsf2.c: Likewise.
12944         * soft-fp/negtf2.c: Likewise.
12945         * soft-fp/op-1.h: Likewise.
12946         * soft-fp/op-2.h: Likewise.
12947         * soft-fp/op-4.h: Likewise.
12948         * soft-fp/op-8.h: Likewise.
12949         * soft-fp/op-common.h: Likewise.
12950         * soft-fp/quad.h: Likewise.
12951         * soft-fp/single.h: Likewise.
12952         * soft-fp/soft-fp.h: Likewise.
12953         * soft-fp/sqrtdf2.c: Likewise.
12954         * soft-fp/sqrtsf2.c: Likewise.
12955         * soft-fp/sqrttf2.c: Likewise.
12956         * soft-fp/subdf3.c: Likewise.
12957         * soft-fp/subsf3.c: Likewise.
12958         * soft-fp/subtf3.c: Likewise.
12959         * soft-fp/truncdfsf2.c: Likewise.
12960         * soft-fp/trunctfdf2.c: Likewise.
12961         * soft-fp/trunctfsf2.c: Likewise.
12962         * soft-fp/trunctfxf2.c: Likewise.
12963         * soft-fp/unorddf2.c: Likewise.
12964         * soft-fp/unordsf2.c: Likewise.
12965         * soft-fp/unordtf2.c: Likewise.
12966
12967 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
12968
12969         [BZ #15672]
12970         * misc/error.c (error_tail): Fix possible buffer overflow.
12971
12972 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
12973
12974         [BZ #13028]
12975         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
12976         address.
12977
12978 2013-10-14  P. J. McDermott  <pj@pehjota.net>
12979
12980         [BZ #832]
12981         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
12982         testing pipefail option.
12983
12984 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12985
12986         * soft-fp/double.h: Indent preprocessor directives inside #if.
12987         * soft-fp/extended.h: Likewise.
12988         * soft-fp/op-2.h: Likewise.
12989         * soft-fp/op-4.h: Likewise.
12990         * soft-fp/op-common.h: Likewise.
12991         * soft-fp/quad.h: Likewise.
12992         * soft-fp/single.h: Likewise.
12993         * soft-fp/soft-fp.h: Likewise.
12994
12995 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
12996
12997         * iconv/iconv_prog.c: Fix typos.
12998         * stdio-common/psiginfo-data.h: Likewise.
12999
13000 2013-10-12   Reuben Thomas <rrt@sc3d.org>
13001
13002         [BZ #15764]
13003         * locale/setlocale.c: Fix typo.
13004
13005 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13006
13007         [BZ #16036]
13008         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
13009         signaling NaN arguments.
13010         * soft-fp/unordsf2.c (__unordsf2): Likewise.
13011         * soft-fp/unordtf2.c (__unordtf2): Likewise.
13012
13013         [BZ #14910]
13014         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
13015         unordered operands.
13016         * soft-fp/gesf2.c (__gesf2): Likewise.
13017         * soft-fp/getf2.c (__getf2): Likewise.
13018         * soft-fp/ledf2.c (__ledf2): Likewise.
13019         * soft-fp/lesf2.c (__lesf2): Likewise.
13020         * soft-fp/letf2.c (__letf2): Likewise.
13021
13022         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
13023         * soft-fp/eqsf2.c (__eqsf2): Likewise.
13024         * soft-fp/eqtf2.c (__eqtf2): Likewise.
13025         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
13026         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
13027         * soft-fp/fixdfti.c (__fixdfti): Likewise.
13028         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
13029         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
13030         * soft-fp/fixsfti.c (__fixsfti): Likewise.
13031         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
13032         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
13033         * soft-fp/fixtfti.c (__fixtfti): Likewise.
13034         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
13035         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
13036         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
13037         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
13038         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
13039         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
13040         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
13041         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
13042         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
13043         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
13044         * soft-fp/floatdisf.c (__floatdisf): Likewise.
13045         * soft-fp/floatsisf.c (__floatsisf): Likewise.
13046         * soft-fp/floattidf.c (__floattidf): Likewise.
13047         * soft-fp/floattisf.c (__floattisf): Likewise.
13048         * soft-fp/floattitf.c (__floattitf): Likewise.
13049         * soft-fp/floatundidf.c (__floatundidf): Likewise.
13050         * soft-fp/floatundisf.c (__floatundisf): Likewise.
13051         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
13052         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
13053         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
13054         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
13055         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
13056         * soft-fp/gesf2.c (__gesf2): Likewise.
13057         * soft-fp/getf2.c (__getf2): Likewise.
13058         * soft-fp/ledf2.c (__ledf2): Likewise.
13059         * soft-fp/lesf2.c (__lesf2): Likewise.
13060         * soft-fp/letf2.c (__letf2): Likewise.
13061
13062         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
13063         Undefine and redefine.
13064         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
13065         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
13066         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
13067         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
13068         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13069         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
13070         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13071         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
13072         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13073         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
13074         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13075         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
13076         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13077         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
13078         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13079
13080         [BZ #16032]
13081         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
13082         without decrementing exponent if mantissa >= that for the
13083         denominator, not >.
13084         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
13085         denominator, not >.  Decrement exponent in < case instead of
13086         incrementing in >= case.
13087         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
13088         without decrementing exponent if mantissa >= that for the
13089         denominator, not >.
13090
13091         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
13092         computing saturated result for unsigned overflow.
13093
13094 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13095             Jeff Law  <law@redhat.com>
13096
13097         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
13098         (atan2Mp): Add systemtap probe marker.
13099         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
13100         (__ieee754_log): Add systemtap probe marker.
13101         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
13102         (atanMp): Add systemtap probe marker.
13103         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
13104         (tanMp): Add systemtap probe marker.
13105         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
13106         (__slowexp): Add systemtap probe marker.
13107         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
13108         (__slowpow): Add systemtap probe marker.
13109         * manual/probes.texi: Document probes.
13110
13111 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
13112
13113         [BZ #15362]
13114         * libio/fileops.c (_IO_new_file_write): Return count of bytes
13115         written.
13116         (_IO_new_file_xsputn): Don't return EOF if nothing has been
13117         written.
13118         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
13119         written to buffer but not flushed.
13120         * libio/iofwrite_u.c:  Likewise.
13121         * libio/iopadn.c:  Return bytes returned even if EOF was
13122         encountered.
13123         * libio/iowpadn.c:  Likewise.
13124         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
13125         if _IO_padn does not write the whole buffer.
13126         [!COMPILE_WPRINTF] (PAD): Likewise.
13127
13128 2013-10-10  David S. Miller  <davem@davemloft.net>
13129
13130         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
13131         directory block.
13132
13133 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13134
13135         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
13136         instead of FSF address.
13137         * soft-fp/fixdfti.c: Likewise.
13138         * soft-fp/fixsfti.c: Likewise.
13139         * soft-fp/fixtfti.c: Likewise.
13140         * soft-fp/fixunsdfti.c: Likewise.
13141         * soft-fp/fixunssfti.c: Likewise.
13142         * soft-fp/fixunstfti.c: Likewise.
13143         * soft-fp/floattidf.c: Likewise.
13144         * soft-fp/floattisf.c: Likewise.
13145         * soft-fp/floattitf.c: Likewise.
13146         * soft-fp/floatuntidf.c: Likewise.
13147         * soft-fp/floatuntisf.c: Likewise.
13148         * soft-fp/floatuntitf.c: Likewise.
13149         * soft-fp/trunctfxf2.c: Likewise.
13150
13151         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
13152         * soft-fp/fixdfti.c: Likewise.
13153         * soft-fp/fixsfti.c: Likewise.
13154         * soft-fp/fixtfti.c: Likewise.
13155         * soft-fp/fixunsdfti.c: Likewise.
13156         * soft-fp/fixunssfti.c: Likewise.
13157         * soft-fp/fixunstfti.c: Likewise.
13158         * soft-fp/floattidf.c: Likewise.
13159         * soft-fp/floattisf.c: Likewise.
13160         * soft-fp/floattitf.c: Likewise.
13161         * soft-fp/floatuntidf.c: Likewise.
13162         * soft-fp/floatuntisf.c: Likewise.
13163         * soft-fp/floatuntitf.c: Likewise.
13164         * soft-fp/trunctfxf2.c: Likewise.
13165
13166 2013-10-10  David S. Miller  <davem@davemloft.net>
13167
13168         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13169
13170 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
13171
13172         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13173         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
13174         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
13175         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
13176         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
13177         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
13178         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
13179
13180         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
13181         for NaNs before doing comparisons on argument.
13182         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
13183         Likewise.
13184
13185 2013-10-10  Will Newton  <will.newton@linaro.org>
13186
13187         * malloc/hooks.c (memalign_check): Ensure the value of bytes
13188         passed to _int_memalign does not overflow.
13189
13190 2013-10-10  Torvald Riegel  <triegel@redhat.com>
13191
13192         * scripts/bench.pl: Add include-sources directive.
13193         * benchtests/README: Update documentation.
13194
13195 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13196
13197         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
13198         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
13199         instead of FP_INIT_ROUNDMODE.
13200         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
13201         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
13202
13203         [BZ #16034]
13204         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
13205         copy class of input value.
13206         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
13207         not handle exceptions.
13208         * soft-fp/negsf2.c (__negsf2): Likewise.
13209         * soft-fp/negtf2.c (__negtf2): Likewise.
13210         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
13211
13212 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
13213
13214         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
13215         semicolon.  From Linux kernel.
13216
13217 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
13218
13219         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
13220
13221 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
13222
13223         [BZ #156]
13224         * manual/socket.texi: Added statement about buffer
13225         for gethostbyname2_r.
13226
13227 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
13228
13229         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
13230         Use .p2align directive instead, throughout.
13231         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13232         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
13233         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
13234         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13235         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13236         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13237         * sysdeps/x86_64/strchr.S: Likewise.
13238         * sysdeps/x86_64/strrchr.S: Likewise.
13239
13240 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
13241
13242         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
13243
13244         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
13245
13246         * sysdeps/generic/math_private.h (__mpsin1): Remove
13247         declaration.
13248         (__mpcos1): Likewise.
13249         (__mpsin): New argument __range_reduce.
13250         (__mpcos): Likewise.
13251         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13252         (slow): Use __mpsin and __mpcos.
13253         (slow1): Likewise.
13254         (slow2): Likewise.
13255         (sloww): Likewise.
13256         (sloww1): Likewise.
13257         (sloww2): Likewise.
13258         (bsloww): Likewise.
13259         (bsloww1): Likewise.
13260         (bsloww2): Likewise.
13261         (cslow2): Likewise.
13262         (csloww): Likewise.
13263         (csloww1): Likewise.
13264         (csloww2): Likewise.
13265         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
13266         range_reduce.  Merge in __mpsin1.
13267         (__mpcos): Likewise.
13268         (__mpsin1): Remove.
13269         (__mpcos1): Likewise.
13270
13271 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
13272
13273         * locale/loadlocale.c (_nl_intern_locale_data): Use
13274         LOCFILE_ALIGNED_P.
13275         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
13276         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
13277         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
13278         obstack data is appropriately aligned.
13279         (obstack_int32_grow_fast): Likewise.
13280         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
13281         * locale/programs/locfile.c (add_locale_uint32): Likewise.
13282         (add_locale_uint32_array): Likewise.
13283
13284 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
13285
13286         * benchtests/Makefile: Remove ARGLIST and RET variables.
13287         ($(objpfx)bench-%.c): Pass only function name to the script.
13288         * benchtests/README: Update documentation.
13289         * benchtests/acos-inputs: Add new directives.
13290         * benchtests/acosh-inputs: Likewise.
13291         * benchtests/asin-inputs: Likewise.
13292         * benchtests/asinh-inputs: Likewise.
13293         * benchtests/atan-inputs: Likewise.
13294         * benchtests/atanh-inputs: Likewise.
13295         * benchtests/cos-inputs: Likewise.
13296         * benchtests/cosh-inputs: Likewise.
13297         * benchtests/exp-inputs: Likewise.
13298         * benchtests/log-inputs: Likewise.
13299         * benchtests/pow-inputs: Likewise.
13300         * benchtests/rint-inputs: Likewise.
13301         * benchtests/sin-inputs: Likewise.
13302         * benchtests/sinh-inputs: Likewise.
13303         * benchtests/tan-inputs: Likewise.
13304         * benchtests/tanh-inputs: Likewise.
13305         * scripts/bench.pl: Add support for new directives.
13306
13307 2013-10-07  Alan Modra  <amodra@gmail.com>
13308
13309         * README: Fix careless merge.
13310
13311 2013-10-05  Alan Modra  <amodra@gmail.com>
13312
13313         * NEWS: Mention powerpc64le support and bugs fixed.
13314         * README: Both big-endian and little-endian powerpc64 supported.
13315
13316 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13317
13318         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
13319         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
13320         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
13321         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
13322
13323 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
13324
13325         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
13326         match prototype.
13327
13328 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
13329
13330         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
13331         Move -mhard-float appending from
13332         ports/sysdeps/powerpc/powerpc32/Makefile.
13333         [$(with-fp) = yes] (ASFLAGS): Likewise.
13334         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
13335         * sysdeps/powerpc/nofpu: Move directory from
13336         ports/sysdeps/powerpc/nofpu.
13337         * sysdeps/powerpc/soft-fp: Move directory from
13338         ports/sysdeps/powerpc/soft-fp.
13339         * sysdeps/powerpc/powerpc32/405: Move directory from
13340         ports/sysdeps/powerpc/powerpc32/405.
13341         * sysdeps/powerpc/powerpc32/440: Move directory from
13342         ports/sysdeps/powerpc/powerpc32/440.
13343         * sysdeps/powerpc/powerpc32/464: Move directory from
13344         ports/sysdeps/powerpc/powerpc32/464.
13345         * sysdeps/powerpc/powerpc32/476: Move directory from
13346         ports/sysdeps/powerpc/powerpc32/476.
13347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
13348         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
13349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
13350         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
13351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
13352         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
13353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
13354         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
13355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
13356         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
13357         * README: Update for powerpc-*-linux-gnu software floating point
13358         support in libc.
13359
13360         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
13361         case to powerpc/powerpc32*.
13362         * sysdeps/unix/sysv/linux/configure: Regenerated.
13363
13364         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
13365         (_FPU_MASK_OM): Define as 0x04.
13366         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
13367         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
13368         0x00c10080.
13369         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
13370         0x0000003c.
13371         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
13372
13373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
13374         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13375         getcontext_e500.
13376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
13377         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13378         setcontext_e500.
13379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
13380         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
13381         and setcontext_e500.
13382
13383 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
13384
13385         * locale/iso-3166.def: Update iso-1366.def and related occurrences
13386
13387 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13388
13389         * manual/threads.texi (Default Thread Attributes): Fix typo.
13390
13391 2013-10-04  Will Newton  <will.newton@linaro.org>
13392
13393         * malloc/Makefile: Add tst-memalign.
13394         * malloc/tst-memalign.c: New file.
13395
13396         * malloc/tst-posix_memalign.c: Add comments.
13397         (do_test): Add comments and call free on all potentially
13398         allocated pointers. Add space after cast.
13399
13400         * malloc/tst-pvalloc.c: Add comments.
13401         (do_test): Add comments and call free on all potentially
13402         allocated pointers. Remove duplicate check for NULL pointer.
13403         Add space after cast.
13404
13405         * malloc/tst-valloc.c: Add comments.
13406         (do_test): Add comments and call free on all potentially
13407         allocated pointers. Remove duplicate check for NULL pointer.
13408         Add space after cast.
13409
13410 2013-10-04  Alan Modra  <amodra@gmail.com>
13411
13412         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13413         Use stdint types in rather than __attribute__((mode())).
13414         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13415
13416 2013-10-04  Alan Modra  <amodra@gmail.com>
13417
13418         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13419         Correct handling of unaligned relocs for little-endian.
13420         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13421
13422 2013-10-04  Alan Modra  <amodra@gmail.com>
13423
13424         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
13425         * configure: Regenerate.
13426         * nptl/shlib-versions: Powerpc*le starts at 2.18.
13427         * shlib-versions: Likewise.
13428
13429 2013-10-04  Alan Modra  <amodra@gmail.com>
13430
13431         * string/tester.c (test_memrchr): Increment reported test cycle.
13432
13433 2013-10-04  Alan Modra  <amodra@gmail.com>
13434
13435         * string/test-memcpy.c (do_one_test): When reporting errors, print
13436         string address and don't overrun end of string.
13437
13438 2013-10-04  Alan Modra  <amodra@gmail.com>
13439
13440         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
13441         insrdi.  Make better use of reg selection to speed exit slightly.
13442         Schedule entry path a little better.  Remove useless "are we done"
13443         checks on entry to main loop.  Handle wrapping around zero address.
13444         Correct main loop count.  Handle single left-over word from main
13445         loop inline rather than by using loop_small.  Remove extra word
13446         case in loop_small caused by wrong loop count.  Add little-endian
13447         support.
13448         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13449         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
13450         cache hint.
13451         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13452         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
13453         support.  Avoid rlwimi.
13454         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
13455
13456 2013-10-04  Alan Modra  <amodra@gmail.com>
13457
13458         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
13459         insrdi.  Formatting.
13460         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
13461         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
13462         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
13463         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
13464         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
13465         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
13466
13467 2013-10-04  Alan Modra  <amodra@gmail.com>
13468
13469         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
13470         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13471         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
13472         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
13473         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13474         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13475         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13476         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13477         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
13478         use of regs.  Use power7 mtocrf.  Tidy function tails.
13479
13480 2013-10-04  Alan Modra  <amodra@gmail.com>
13481
13482         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
13483         Formatting.  Consistently use rXXX register defines or rN defines.
13484         Use early exit labels that avoid restoring unused non-volatile regs.
13485         Make cr field use more consistent with rWORDn compares.  Rename
13486         regs used as shift registers for unaligned loop, using rN defines
13487         for short lifetime/multiple use regs.
13488         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13489         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
13490         addi 1,1,64 to pop stack frame.  Simplify return value code.
13491         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13492
13493 2013-10-04  Alan Modra  <amodra@gmail.com>
13494
13495         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
13496         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
13497         rather than rlwimi.
13498         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
13499         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
13500         little-endian support.  Correct typos.
13501         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
13502         rather than rlwimi.
13503         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
13504         in loop and entry code to keep "and." results.
13505         (strchr): Add little-endian support.  Comment.  Move cntlzd
13506         earlier in tail.
13507         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
13508
13509 2013-10-04  Alan Modra  <amodra@gmail.com>
13510
13511         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
13512         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
13513         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13514         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
13515
13516 2013-10-04  Alan Modra  <amodra@gmail.com>
13517
13518         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
13519         (rTMP): Define as r11.
13520         (strcmp): Add little-endian support.  Optimise tail.
13521         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
13522         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13523         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13524         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13525         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13526         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13527         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13528
13529 2013-10-04  Alan Modra  <amodra@gmail.com>
13530
13531         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
13532         little-endian support.  Remove unnecessary "are we done" tests.
13533         Handle "s" wrapping around zero and extremely large "size".
13534         Correct main loop count.  Handle single left-over word from main
13535         loop inline rather than by using small_loop.  Correct comments.
13536         Delete "zero" tail, use "end_max" instead.
13537         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
13538
13539 2013-10-04  Alan Modra  <amodra@gmail.com>
13540
13541         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
13542         support.  Don't branch over align.
13543         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
13544         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
13545         support.  Rearrange tmp reg use to suit.  Comment.
13546         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
13547
13548 2013-10-04  Alan Modra  <amodra@gmail.com>
13549
13550         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
13551
13552 2013-10-04  Alan Modra  <amodra@gmail.com>
13553
13554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
13555         conditional form of branch and link when obtaining pc.
13556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
13557
13558 2013-10-04  Alan Modra  <amodra@gmail.com>
13559
13560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
13561         HIWORD/LOWORD.
13562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
13563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
13564
13565 2013-10-04  Alan Modra  <amodra@gmail.com>
13566
13567         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
13568         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
13569         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
13570         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
13571         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
13572         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
13573         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
13574         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
13575         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
13576         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
13577
13578 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13579             Alistair Popple <alistair@ozlabs.au.ibm.com>
13580             Alan Modra <amodra@gmail.com>
13581
13582         [BZ #15723]
13583         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
13584         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
13585         _dl_hwcap access for little-endian.
13586         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
13587         destroy vmx regs when saving unaligned.
13588         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
13589         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
13590         destroy vmx regs when saving unaligned.
13591
13592 2013-10-04  Alan Modra  <amodra@gmail.com>
13593
13594         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
13595         Don't use a union to pack hi/low value.
13596
13597 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13598
13599         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
13600         for little-endian.
13601         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
13602         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
13603         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
13604         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
13605         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
13606
13607 2013-10-04  Alan Modra  <amodra@gmail.com>
13608
13609         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
13610         constants to usual value for .cst8 section, and remove redundant
13611         high address load.
13612         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
13613         constant for 0x1p52.  Load little-endian words of double from
13614         correct stack offsets.
13615
13616 2013-10-04  Alan Modra  <amodra@gmail.com>
13617
13618         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
13619         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
13620         words of double from correct stack offsets.
13621         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
13622         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
13623         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
13624         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
13625         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
13626         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
13627         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
13628         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
13629         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
13630         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
13631         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
13632         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
13633         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13634         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13635         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13636         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
13637         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
13638
13639 2013-10-04  Alan Modra  <amodra@gmail.com>
13640
13641         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
13642         64-bit int/double union.
13643         (_FPU_SETCW): Likewise.
13644         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
13645         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
13646
13647 2013-10-04  Alan Modra  <amodra@gmail.com>
13648
13649         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
13650         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
13651
13652 2013-10-04  Alan Modra  <amodra@gmail.com>
13653
13654         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
13655         use vector int constants.
13656         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
13657
13658 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13659
13660         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
13661         array with long long.
13662         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
13663         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
13664         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
13665         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
13666         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
13667         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
13668         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
13669         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
13670         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
13671         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
13672         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
13673         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
13674         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
13675
13676 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13677
13678         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
13679         (__signbit): Likewise.  Correct for little-endian.
13680         (__signbitl): Call __signbit.
13681         (lrint): Correct for little-endian.
13682         (lrintf): Call lrint.
13683
13684 2013-10-04  Alan Modra  <amodra@gmail.com>
13685
13686         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
13687         union 32-bit int array member with 64-bit int array.
13688         (t515, tm256): Double rather than long double.
13689         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
13690
13691 2013-10-04  Alan Modra  <amodra@gmail.com>
13692
13693         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
13694         Delete.
13695         (IEEE854_LONG_DOUBLE_BIAS): Delete.
13696         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
13697         version of math_ldbl.h.
13698
13699 2013-10-04  Alan Modra  <amodra@gmail.com>
13700
13701         [BZ #15734], [BZ #15735]
13702         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
13703         all uses of ieee875 long double macros and unions.  Simplify test
13704         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
13705         ldbl_extract_mantissa value for ix,iy exponents.  Properly
13706         normalize after ldbl_extract_mantissa, and don't add hidden bit
13707         already handled.  Don't treat low word of ieee854 mantissa like
13708         low word of IBM long double and mask off bit when testing for
13709         zero.
13710         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
13711         all uses of ieee875 long double macros and unions.  Simplify tests
13712         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
13713         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
13714         two1022, instead use their values.  Recognise that tests for large
13715         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
13716         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
13717         Rewrite all uses of ieee875 long double macros and unions.  Simplify
13718         test for 0.0L and nan.  Correct negation.
13719         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
13720         ieee875 long double macros and unions.  Correct output for large
13721         magnitude x.  Correct absolute value calculation.
13722         (__erfcl): Likewise.
13723         * math/libm-test.inc: Add tests for errors discovered in IBM long
13724         double versions of fmodl, remainderl, erfl and erfcl.
13725
13726 2013-10-04  Alan Modra  <amodra@gmail.com>
13727
13728         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
13729         all uses of ieee854 long double macros and unions.  Simplify tests
13730         for long doubles that are fully specified by the high double.
13731         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13732         Likewise.
13733         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
13734         Remove dead code too.
13735         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13736         (__ieee754_ynl): Likewise.
13737         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13738         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
13739         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13740         Remove dead code too.
13741         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
13742         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13743         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
13744         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
13745         Simplify.
13746         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
13747         Simplify.
13748         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
13749         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
13750         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
13751         Comment on variable precision.
13752         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
13753         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13754         Likewise.
13755         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13756         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13757         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13758         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
13759         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
13760
13761 2013-10-04  Alan Modra  <amodra@gmail.com>
13762
13763         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
13764         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
13765         all uses of ieee854 long double macros and unions.
13766         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13767         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13768         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
13769         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
13770         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13771         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13772         Likewise.
13773         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
13774         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13775         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
13776         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13777         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
13778         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
13779         Simplify sign and nan test too.
13780         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
13781         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
13782         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
13783         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
13784         Likewise.
13785         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
13786         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
13787         Likewise.
13788         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13789         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
13790         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
13791         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
13792         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
13793         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
13794
13795 2013-10-04  Alan Modra  <amodra@gmail.com>
13796
13797         * stdio-common/printf_size.c (__printf_size): Don't use
13798         union ieee854_long_double in fpnum union.
13799         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
13800         signbit macro to retrieve sign from long double.
13801         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
13802         retrieve sign from long double.
13803         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
13804         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
13805         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
13806         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13807         * math/test-misc.c (main): Don't use union ieee854_long_double.
13808
13809 2013-10-04  Alan Modra  <amodra@gmail.com>
13810
13811         [BZ #15680]
13812         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
13813         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
13814         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
13815         calculation.  Remove unnecessary test for denormal exponent.
13816         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
13817         Correct handling of denormals.  Avoid undefined shift behaviour.
13818         Correct normalisation of low mantissa when low double is denormal.
13819         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
13820         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
13821         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
13822         Correct normalisation of low mantissa.  Test for overflow of high
13823         mantissa and normalise.
13824         (ldbl_nearbyint): Use more readable constant for two52.
13825         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
13826         (__mpn_construct_long_double): Fix test for overflow of high
13827         mantissa and correct normalisation.  Avoid undefined shift.
13828
13829 2013-10-04  Alan Modra  <amodra@gmail.com>
13830
13831         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13832         (union ibm_extended_long_double): Define as an array of ieee754_double.
13833         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
13834         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
13835         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
13836         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13837         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13838         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
13839         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13840         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13841         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13842         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
13843         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13844
13845 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
13846
13847         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
13848         page size instead of calling getpagesize.
13849
13850         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
13851         (LOCFILE_ALIGN_MASK): Likewise.
13852         (LOCFILE_ALIGN_UP): Likewise.
13853         (LOCFILE_ALIGNED_P): Likewise.
13854         * locale/programs/ld-collate.c (collate_output): Use the new
13855         macros instead of __alignof__ (int32_t).
13856         * locale/weight.h (findidx): Likewise.
13857
13858 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
13859
13860         [BZ #431]
13861         * manual/string.texi: Fix strncat and wcsncat.
13862
13863 2013-10-03  Brooks Moses  <bmoses@google.com>
13864
13865         [BZ #15915]
13866         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
13867         * Makerules: ...here, and adjust associated comments.
13868
13869 2013-10-02  Will Newton  <will.newton@linaro.org>
13870
13871         * malloc/Makefile: Add tst-pvalloc.
13872         * malloc/tst-pvalloc.c: New file.
13873
13874 2013-10-02  Will Newton  <will.newton@linaro.org>
13875
13876         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
13877         improve test coverage.
13878
13879 2013-10-02  Will Newton  <will.newton@linaro.org>
13880
13881         * malloc/Makefile: Add tst-posix_memalign.
13882         * malloc/tst-posix_memalign.c: New file.
13883
13884 2013-10-01  Eric Blake  <eblake@redhat.com>
13885
13886         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
13887         Use __THROWNL rather than __THROW on static functions.
13888
13889 2013-09-30  Petr Machata  <pmachata@redhat.com>
13890
13891         * elf/elf.h (R_AARCH64_ABS16): New macro.
13892         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
13893         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
13894         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
13895         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
13896         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
13897         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
13898         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
13899         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
13900         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
13901         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
13902         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
13903         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
13904         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
13905         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
13906         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
13907         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
13908         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
13909         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
13910         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
13911         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
13912         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
13913         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
13914         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
13915         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
13916         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
13917         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
13918         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
13919         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
13920         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
13921         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
13922         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
13923         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
13924         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
13925         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
13926         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
13927         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
13928         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
13929         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
13930         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
13931         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
13932         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
13933         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
13934         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
13935         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
13936         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
13937         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
13938         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
13939         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
13940         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
13941         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
13942         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
13943         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
13944         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
13945         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
13946         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
13947         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
13948         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
13949         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
13950         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
13951         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
13952         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
13953         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
13954         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
13955         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
13956         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
13957         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
13958         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
13959         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
13960         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
13961         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
13962         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
13963         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
13964         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
13965         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
13966         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
13967         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
13968         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
13969         (R_AARCH64_TLSDESC_LDR): Likewise.
13970         (R_AARCH64_TLSDESC_ADD): Likewise.
13971         (R_AARCH64_TLSDESC_CALL): Likewise.
13972
13973 2013-09-30  Andreas Schwab  <schwab@suse.de>
13974
13975         [BZ #15048]
13976         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
13977         the nss database lookup.
13978         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13979         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13980
13981 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
13982
13983         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
13984
13985 2013-09-28  P. J. McDermott  <pj@pehjota.net>
13986
13987         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
13988         ${Bash-specific parameter/pattern/string} parameter expansion.
13989         * sysdeps/unix/make-syscalls.sh: Likewise.
13990
13991 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13992
13993         * sysdeps/sh/stackguard-macros.h: New file.
13994
13995 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
13996
13997         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
13998         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
13999         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
14000         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
14001         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14002         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
14003
14004 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14005
14006         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
14007         Fix thread ID register.
14008
14009 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
14010
14011         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
14012         [POSIX || UNIX98]: Require rather than permitting all symbols from
14013         <time.h>.
14014         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
14015         element of struct sched_param.
14016         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
14017         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
14018         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
14019         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
14020         constant.
14021
14022 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
14023
14024         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
14025         argument calculation.
14026
14027 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14028
14029         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
14030         Expect macro.
14031         [POSIX] (pthread_attr_t): Do not require type.
14032         [POSIX] (pthread_cond_t): Likewise.
14033         [POSIX] (pthread_condattr_t): Likewise.
14034         [POSIX] (pthread_key_t): Likewise.
14035         [POSIX] (pthread_mutex_t): Likewise.
14036         [POSIX] (pthread_mutexattr_t): Likewise.
14037         [POSIX] (pthread_once_t): Likewise.
14038         [POSIX] (pthread_t): Likewise.
14039         [POSIX-based standards] (pthread_atfork): Expect function.
14040
14041 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14042             Richard Sandiford  <richard@codesourcery.com>
14043
14044         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
14045         (swap_endianness_p): New extern variable.
14046         (set_big_endian): New inline function.
14047         (maybe_swap_uint32): Likewise.
14048         (maybe_swap_uint32_array): Likewise.
14049         (maybe_swap_uint32_obstack): Likewise.
14050         * locale/programs/locfile.c: Include <stdbool.h>.
14051         (swap_endianness_p): New variable.
14052         (add_locale_uint32): Call maybe_swap_uint32.
14053         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
14054         (write_locale_data): Call maybe_swap_uint32_array.
14055         * locale/programs/ld-collate.c (obstack_int32_grow): Call
14056         maybe_swap_uint32.
14057         (obstack_int32_grow_fast): Likewise.
14058         (output_weightwc): Call maybe_swap_uint32_obstack.
14059         (collate_output): Likewise.
14060         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
14061         (OPT_LITTLE_ENDIAN): Likewise.
14062         (options): Add --little-endian and --big-endian options.
14063         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
14064         * locale/programs/locarchive.c: Include "locfile.h".
14065         (GET): New macro.
14066         (SET): Likewise.
14067         (INC): Likewise.
14068         (create_archive): Use the new macros to access fields of
14069         structures directly mapped from or written to locale archives.
14070         (oldlocrecentcmp): Likewise.
14071         (enlarge_archive): Likewise.
14072         (insert_name): Likewise.
14073         (add_alias): Likewise.
14074         (add_locale): Likewise.
14075         (delete_locales_from_archive): Likewise.
14076         (show_archive_content): Likewise.
14077         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
14078         locale data.
14079
14080 2013-09-24  Roland McGrath  <roland@hack.frob.com>
14081
14082         * manual/freemanuals.texi: Updated from (newly) canonical copy at
14083         http://www.gnu.org/doc/freemanuals.texi.
14084         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
14085
14086 2013-09-24  Will Newton  <will.newton@linaro.org>
14087
14088         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
14089         macro.
14090
14091 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
14092
14093         * locale/hashval.h (compute_hashval): Interpret bytes of key as
14094         unsigned char.
14095
14096 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
14097
14098         * manual/threads.texi (POSIX Threads): Fix a typo.
14099
14100 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14101
14102         [BZ #14547]
14103         * string/tst-strcoll-overflow.c: New test case.
14104         * string/Makefile (xtests): Add tst-strcoll-overflow.
14105         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
14106         cache if string sizes may cause integer overflow.
14107
14108         [BZ #14547]
14109         * string/strcoll_l.c (coll_seq): New members rule, idx,
14110         save_idx and back_us.
14111         (get_next_seq_nocache): New function.
14112         (do_compare_nocache): New function.
14113         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
14114         when malloc fails.
14115
14116 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
14117
14118         [BZ #15754]
14119         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
14120         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
14121         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
14122
14123         [BZ #15754]
14124         * elf/Makefile (tests): Add tst-ptrguard1.
14125         (tests-static): Add tst-ptrguard1-static.
14126         (tst-ptrguard1-ARGS): Define.
14127         (tst-ptrguard1-static-ARGS): Define.
14128         * elf/tst-ptrguard1.c: New file.
14129         * elf/tst-ptrguard1-static.c: New file.
14130         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
14131         * sysdeps/i386/stackguard-macros.h: Likewise.
14132         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14133         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14134         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14135         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14136         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14137         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14138
14139 2013-09-23  Hector Marco  <hecmargi@upv.es>
14140             Ismael Ripoll  <iripoll@disca.upv.es>
14141             Carlos O'Donell  <carlos@redhat.com>
14142
14143         [BZ #15754]
14144         * sysdeps/generic/stackguard-macros.h: Define
14145         __pointer_chk_guard_local and POINTER_CHK_GUARD.
14146         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
14147         Define __pointer_chk_guard_local.
14148         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
14149         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
14150
14151 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
14152
14153         [BZ #15859]
14154         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
14155
14156 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
14157
14158         * include/string.h (__ffs): Declare as hidden.
14159         * string/ffs.c (__ffs): Define as hidden.
14160         * sysdeps/i386/ffs.c (__ffs): Likewise.
14161         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14162         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
14163         * sysdeps/s390/ffs.c (__ffs): Likewise.
14164         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
14165
14166 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
14167
14168         * NEWS: Mention malloc probes.
14169
14170         * malloc/arena.c (new_heap): New memory_heap_new probe.
14171         (grow_heap): New memory_heap_more probe.
14172         (shrink_heap): New memory_heap_less probe.
14173         (heap_trim): New memory_heap_free probe.
14174         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
14175         (systrim): New memory_sbrk_less probe.
14176         * manual/probes.texi: Document them.
14177
14178         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
14179         * manual/probes.texi: Document it.
14180
14181         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
14182         (__libc_realloc): Add memory_realloc_retry probe.
14183         (__libc_memalign): Add memory_memalign_retry probe.
14184         (__libc_valloc): Add memory_valloc_retry probe.
14185         (__libc_pvalloc): Add memory_pvalloc_retry probe.
14186         (__libc_calloc): Add memory_calloc_retry probe.
14187         * manual/probes.texi: Document them.
14188
14189         * malloc/arena.c (get_free_list): Add probe
14190         memory_arena_reuse_free_list.
14191         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
14192         and memory_arena_reuse.
14193         (arena_get2) [!PER_THREAD]: Likewise.
14194         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
14195         memory_arena_reuse_realloc.
14196         * manual/probes.texi: Document them.
14197
14198         * malloc/malloc.c (__libc_free): Add
14199         memory_mallopt_free_dyn_thresholds probe.
14200         (__libc_mallopt): Add multiple memory_mallopt probes.
14201         * manual/probes.texi: Document them.
14202
14203         * malloc/malloc.c: Include stap-probe.h.
14204         (__libc_mallopt): Add memory_mallopt probe.
14205         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
14206         * manual/probes.texi: New.
14207         * manual/Makefile (chapters): Add probes.
14208         * manual/threads.texi: Set next node.
14209
14210 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
14211
14212         [BZ #15963, #13985]
14213         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
14214         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
14215         Add `Chinese' to `nan' entry name.
14216
14217 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14218
14219         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
14220         (POLYNOMIAL): Likewise.
14221         (TAYLOR_SINCOS): Likewise.
14222         (TAYLOR_SLOW): Likewise.
14223         (__sin): Use TAYLOR_SINCOS.
14224         (__cos): Likewise.
14225         (slow): Use TAYLOR_SLOW.
14226         (sloww): Likewise.
14227         (bsloww): Likewise.
14228         (csloww): Likewise.
14229
14230 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14231
14232         * stdlib/strtod_l.c: Fix buffer overrun.
14233
14234 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14235
14236         * benchtests/Makefile (bench): Add sincos.
14237         * benchtests/bench-sincos.c: New file.
14238
14239         * math/libm-test.inc (cos_test_data): New test inputs.
14240         (sin_test_data): Likewise.
14241
14242         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
14243         macro.
14244         (__sin): Use it.
14245         (__cos): Likewise.
14246         (slow1): Likewise.
14247         (slow2): Likewise.
14248         (sloww1): Likewise.
14249         (sloww2): Likewise.
14250         (bsloww1): Likewise.
14251         (bsloww2): Likewise.
14252         (cslow2): Likewise.
14253         (csloww1): Likewise.
14254         (csloww2): Likewise.
14255
14256         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
14257         function.
14258         (__sin): Use it.
14259         (__cos): Likewise.
14260
14261         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
14262         gotos.
14263         (__cos): Likewise.
14264
14265 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
14266
14267         * config.h.in (HAVE_MIPS_NAN2008): New macro.
14268         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
14269         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
14270         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
14271         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
14272         * elf/cache.c (print_entry): Handle the new cache flags.
14273
14274 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14275             Aldy Hernandez  <aldyh@redhat.com>
14276
14277         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
14278         Change condition to [_SOFT_FLOAT].
14279         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
14280         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
14281         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
14282         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
14283         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
14284         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
14285         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
14286         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
14287         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
14288         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
14289         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
14290         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
14291         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
14292         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
14293         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
14294         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
14295         declaration.
14296
14297 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14298
14299         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
14300         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14301         (__longjmp): Use LOAD_GP to load saved GPRs.
14302         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
14303         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14304         (__sigsetjmp): Use SAVE_GP to save GPRs.
14305
14306         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
14307         Do not append -msoft-float.
14308         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
14309
14310 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14311
14312         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
14313
14314 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
14315
14316         [BZ #15966]
14317         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
14318         (_FPU_GETCW): Use initial "__" on variable and field names but not
14319         on macro parameter name.
14320         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
14321         parentheses around reference to macro parameter.
14322
14323 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
14324
14325         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
14326         prototype.
14327         (ctype_startup): Use uint32_t in cast and sizeof for
14328         ctype->charnames.
14329
14330 2013-09-11  Jia Liu  <proljc@gmail.com>
14331
14332         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
14333         __daddr_t_defined.
14334         [__FreeBSD__]: Likewise.
14335
14336 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
14337
14338         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14339         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
14340         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
14341         (strchr): Remove __strchr_sse42 ifunc selection.
14342         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
14343         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
14344
14345 2013-09-11  Will Newton  <will.newton@linaro.org>
14346
14347         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
14348         parameter to RES. Remove hardcoded 1000 value.
14349         * benchtests/bench-skeleton.c (main): Pass RES parameter
14350         to TIMING_INIT and multiply result by 1000.
14351
14352 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14353
14354         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14355
14356 2013-09-11  Andreas Schwab  <schwab@suse.de>
14357
14358         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
14359         if not defined.
14360         (O_TMPFILE) [__USE_GNU]: Define.
14361         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
14362         Define.
14363
14364 2013-09-11  Will Newton  <will.newton@linaro.org>
14365
14366         [BZ #15857]
14367         * malloc/malloc.c (__libc_memalign): Check the value of bytes
14368         does not overflow.
14369
14370 2013-09-11  Will Newton  <will.newton@linaro.org>
14371
14372         [BZ #15856]
14373         * malloc/malloc.c (__libc_valloc): Check the value of bytes
14374         does not overflow.
14375
14376 2013-09-11  Will Newton  <will.newton@linaro.org>
14377
14378         [BZ #15855]
14379         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
14380         does not overflow.
14381
14382 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
14383
14384         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
14385         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14386         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14387         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14388         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14389
14390 2013-09-10  Allan McRae  <allan@archlinux.org>
14391
14392         [BZ #15748]
14393         * manual/arith.texi (Parsing of Floats): Clarify
14394         cross-reference.
14395
14396         [BZ #15849]
14397         * manual/install.texi (Running make install): Mention
14398         --enable-pt-chown.
14399         * INSTALL: Regenerated.
14400
14401 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
14402
14403         * csu/init-first.c (_init): Remove the !SHARED condition around
14404         FPU control word initialization.
14405         * elf/dl-support.c (_dl_fpu_control): New variable.
14406         (_dl_aux_init) <AT_FPUCW>: Initialize it.
14407         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
14408         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
14409         * math/test-fpucw-static.c: New file.
14410         * math/test-fpucw-ieee.c: New file.
14411         * math/test-fpucw-ieee-static.c: New file.
14412         * math/Makefile (tests): Add `test-fpucw-ieee' and
14413         `$(tests-static)'.
14414         (tests-static): New variable.
14415         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
14416         dependency to...
14417         [($(build-shared),yes)]
14418         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
14419         ... this.
14420         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
14421         New dependency.
14422
14423 2013-09-09  Allan McRae  <allan@archlinux.org>
14424
14425         [BZ #15939]
14426         * manual/string.texi (Collation Functions): Fix typo in
14427         strcoll example.
14428         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
14429
14430         [BZ #15893]
14431         * stdlib/isomac.c (get_null_defines): Fix memory leak.
14432
14433         [BZ #15892]
14434         * libio/memstream.c (open_memstream): Fix memory leak.
14435         * libio/wmemstream.c (open_wmemstream): Likewise.
14436
14437         [BZ #15895]
14438         * nscd/netgroupcache.c: Fix nesting of ifdefs.
14439
14440 2013-09-09  Will Newton  <will.newton@linaro.org>
14441
14442         * malloc/Makefile: Add tst-realloc to tests.
14443         * malloc/tst-realloc.c: New file.
14444
14445 2013-09-09  Allan McRae  <allan@archlinux.org>
14446
14447         [BZ #15844]
14448         * COPYING: Update from GNU website to fix FSF address.
14449         * COPYING.LIB: Likewise.
14450
14451 2013-09-06  David S. Miller  <davem@davemloft.net>
14452
14453         * po/zh_TW.po: Update Chinese (traditional) translation from
14454         translation project.
14455
14456 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
14457             Joseph Myers  <joseph@codesourcery.com>
14458
14459         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
14460         "localeinfo.h".
14461         (obstack_chunk_alloc): New macro.
14462         (obstack_chunk_free): Likewise.
14463         (record_offset): New function.
14464         (init_locale_data): Likewise.
14465         (align_locale_data): Likewise.
14466         (add_locale_empty): Likewise.
14467         (add_locale_raw_data): Likewise.
14468         (add_locale_raw_obstack): Likewise.
14469         (add_locale_string): Likewise.
14470         (add_locale_wstring): Likewise.
14471         (add_locale_uint32): Likewise.
14472         (add_locale_uint32_array): Likewise.
14473         (add_locale_char): Likewise.
14474         (start_locale_structure): Likewise.
14475         (end_locale_structure): Likewise.
14476         (start_locale_prelude): Likewise.
14477         (end_locale_prelude): Likewise.
14478         (write_locale_data): Take locale_file structure rather than an
14479         iovec.
14480         * locale/programs/locfile.h: Include "obstack.h".
14481         (struct locale_file): Change to store locale file contents instead
14482         of header.
14483         (init_locale_data): New prototype.
14484         (align_locale_data): Likewise.
14485         (add_locale_empty): Likewise.
14486         (add_locale_raw_data): Likewise.
14487         (add_locale_raw_obstack): Likewise.
14488         (add_locale_string): Likewise.
14489         (add_locale_wstring): Likewise.
14490         (add_locale_uint32): Likewise.
14491         (add_locale_uint32_array): Likewise.
14492         (add_locale_char): Likewise.
14493         (start_locale_structure): Likewise.
14494         (end_locale_structure): Likewise.
14495         (start_locale_prelude): Likewise.
14496         (end_locale_prelude): Likewise.
14497         (write_locale_data): Update prototype.
14498         * locale/programs/3level.h (struct TABLE): Remove result field.
14499         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
14500         Use new locale_file interface.
14501         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
14502         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
14503         * locale/programs/ld-address.c (address_output): Use new
14504         locale_file interface.
14505         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
14506         NO_ADD_LOCALE.
14507         (collate_finish): Don't call collseq_table_finalize.
14508         (collate_output): Use new locale_file interface.
14509         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
14510         in file.
14511         (NO_FINALIZE): Change to NO_ADD_LOCALE.
14512         (TABLE): Move defines earlier in file.
14513         (ELEMENT): Likewise.
14514         (DEFAULT): Likewise.
14515         (wctrans_table_add): Move macro and inline function earlier in
14516         file.
14517         (struct wctype_table): Move type earlier in file.
14518         (add_locale_wctype_table): New static prototype.
14519         (struct locale_ctype_t): Use logical types instead of struct iovec
14520         pointers for members.
14521         (ctype_output): Use new locale_file interface.
14522         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
14523         new locale_file interface.
14524         (allocate_arrays): Update for use of new locale_file interface.
14525         * locale/programs/ld-identification.c (identification_output): Use
14526         new locale_file interface.
14527         * locale/programs/ld-measurement.c (measurement_output): Likewise.
14528         * locale/programs/ld-messages.c (messages_output): Likewise.
14529         * locale/programs/ld-monetary.c (monetary_output): Likewise.
14530         * locale/programs/ld-name.c (name_output): Likewise.
14531         * locale/programs/ld-numeric.c (numeric_output): Likewise.
14532         * locale/programs/ld-paper.c (paper_output): Likewise.
14533         * locale/programs/ld-telephone.c (telephone_output): Likewise.
14534         * locale/programs/ld-time.c (time_output): Likewise.
14535
14536 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14537
14538         * benchtests/Makefile: Add memrchr benchmark.
14539         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
14540         benchmark as memrchr.
14541         * benchtests/bench-memrchr-ifunc.c: New file.
14542         * benchtests/bench-memrchr.c: New file.
14543
14544 2013-09-06   Will Newton  <will.newton@linaro.org>
14545
14546         * benchtests/Makefile (string-bench): Add memcpy.
14547
14548 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
14549             Cong Wang  <amwang@redhat.com>
14550
14551         [BZ #15850]
14552         * sysdeps/unix/sysv/linux/bits/in.h
14553         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
14554         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
14555         before __USE_KERNEL_IPV6_DEFS uses.
14556         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
14557         IPPROTO_BEETPH.
14558         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
14559         sockaddr_in6, or ipv6_mreq.
14560
14561 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14562
14563         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
14564         memory access for final bytes in some large inputs.
14565         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
14566
14567 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14568
14569         * string/test-memrchr.c: New file.
14570         * string/test-memrchr-ifunc.c: New file.
14571         * string/Makefile: Add new memrchr testcase.
14572
14573 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
14574
14575         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
14576         fanotify_init returns EPERM.
14577
14578 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14579
14580         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
14581         errors.
14582         (top level): Treat second token from macro or constant entries for
14583         allowed headers as allowed.
14584         * include/complex.h: Condition internal declarations on
14585         [!_ISOMAC].
14586         * include/fenv.h: Condition include of <stdbool.h> and internal
14587         declarations on [!_ISOMAC].
14588
14589 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
14590
14591         [BZ #15923]
14592         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
14593
14594 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14595
14596         * configure.in (--enable-versioning): Remove configure option.
14597         (libc_cv_asm_symver_directive): Remove configure test.
14598         (libc_cv_ld_version_script_option): Likewise.
14599         (VERSIONING): Remove variable and AC_SUBST.
14600         (DO_VERSIONING): Remove AC_DEFINE.
14601         * configure: Regenerated.
14602         * config.h.in (DO_VERSIONING): Remove macro.
14603         * Makerules [$(versioning) = yes]: Change conditionals to
14604         [$(build-shared) = yes].
14605         * config.make.in (versioning): Remove variable.
14606         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
14607         [$(build-shared) = yes].
14608         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
14609         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
14610         * elf/Makefile [$(versioning) = yes]: Change conditionals to
14611         [$(build-shared) = yes].
14612         * extra-lib.mk [$(versioning) = yes]: Likewise.
14613         * hurd/Makefile [$(versioning) = yes]: Likewise.
14614         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
14615         [SHARED].
14616         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
14617         [SHARED].
14618         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14619         [SHARED && !NO_HIDDEN].
14620         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
14621         [SHARED].
14622         [SHARED && DO_VERSIONING]: Likewise..
14623         * libio/Makefile [$(versioning) = yes]: Change conditionals to
14624         [$(build-shared) = yes].
14625         * manual/install.texi (--disable-versioning): Remove
14626         documentation.
14627         * INSTALL: Regenerated.
14628         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
14629         to [SHARED].
14630         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
14631         [$(build-shared) = yes].
14632         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
14633         * sysdeps/i386/i686/multiarch/strstr-c.c
14634         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14635         [SHARED && !NO_HIDDEN].
14636         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
14637         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
14638         * sysdeps/powerpc/powerpc32/dl-machine.c
14639         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
14640         * sysdeps/powerpc/powerpc32/sysdep.h
14641         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
14642         to [SHARED && PIC && !NO_HIDDEN].
14643         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
14644         conditional to [SHARED].
14645
14646 2013-09-04   Will Newton  <will.newton@linaro.org>
14647
14648         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
14649         * benchtests/bench-string.h: Include bench-timing.h instead
14650         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
14651         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
14652         call to HP_TIMING_DIFF_INIT.
14653         * benchtests/bench-memccpy.c: Use bench-timing.h macros
14654         instead of hp-timing.h macros.
14655         * benchtests/bench-memchr.c: Likewise.
14656         * benchtests/bench-memcmp.c: Likewise.
14657         * benchtests/bench-memcpy.c: Likewise.
14658         * benchtests/bench-memmem.c: Likewise.
14659         * benchtests/bench-memmove.c: Likewise.
14660         * benchtests/bench-memset.c: Likewise.
14661         * benchtests/bench-rawmemchr.c: Likewise.
14662         * benchtests/bench-strcasecmp.c: Likewise.
14663         * benchtests/bench-strcasestr.c: Likewise.
14664         * benchtests/bench-strcat.c: Likewise.
14665         * benchtests/bench-strchr.c: Likewise.
14666         * benchtests/bench-strcmp.c: Likewise.
14667         * benchtests/bench-strcpy.c: Likewise.
14668         * benchtests/bench-strcpy_chk.c: Likewise.
14669         * benchtests/bench-strlen.c: Likewise.
14670         * benchtests/bench-strncasecmp.c: Likewise.
14671         * benchtests/bench-strncat.c: Likewise.
14672         * benchtests/bench-strncmp.c: Likewise.
14673         * benchtests/bench-strncpy.c: Likewise.
14674         * benchtests/bench-strnlen.c: Likewise.
14675         * benchtests/bench-strpbrk.c: Likewise.
14676         * benchtests/bench-strrchr.c: Likewise.
14677         * benchtests/bench-strspn.c: Likewise.
14678         * benchtests/bench-strstr.c: Likewise.
14679
14680 2013-09-04  Will Newton  <will.newton@linaro.org>
14681
14682         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
14683
14684 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
14685
14686         [BZ #15427]
14687         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
14688         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
14689         * math/libm-test.inc (lgamma_test_data): Add more tests.
14690         * sysdeps/i386/fpu/libm-test-ulps: Update.
14691         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14692
14693 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
14694
14695         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
14696         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14697         Add ifunc.
14698         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
14699         Add strcmp-sse2-unaligned
14700         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
14701
14702 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14703
14704         * Versions.def (libc): Add GLIBC_2.19.
14705
14706 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14707
14708         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
14709         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
14710
14711 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
14712
14713         [BZ #14155]
14714         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
14715         intermediate calculations in recurrence.
14716         (__ieee754_ynf): Likewise.
14717         * math/libm-test.inc (jn_test_data): Do not allow spurious
14718         underflow exception.  Add more tests.
14719         (yn_test_data): Add more tests.
14720         * sysdeps/i386/fpu/libm-test-ulps: Update.
14721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14722
14723 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
14724
14725         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
14726
14727 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14728
14729         * csu/init-first.c: Fix then/than typos.
14730         * locale/programs/ld-collate.c: Likewise.
14731         * locale/programs/linereader.h: Likewise.
14732         * manual/charset.texi: Likewise.
14733         * manual/filesys.texi: Likewise.
14734         * manual/stdio.texi: Likewise.
14735         * manual/string.texi: Likewise.
14736         * stdlib/fmtmsg.c: Likewise.
14737         * sysdeps/i386/stpncpy.S: Likewise.
14738         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14739         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14740         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14741         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14742
14743 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14744
14745         * elf/dl-open.c: Fix typos.
14746         * iconvdata/gbbig5.c: Likewise.
14747         * iconvdata/iso-2022-jp.c: Likewise.
14748         * iconv/gconv_int.h: Likewise.
14749         * iconv/loop.c: Likewise.
14750         * nis/rpcsvc/nis.h: Likewise.
14751         * resolv/ns_name.c: Likewise.
14752         * stdio-common/vfscanf.c: Likewise.
14753         * streams/stropts.h: Likewise.
14754         * sunrpc/rpc_thread.c: Likewise.
14755         * sysdeps/i386/strpbrk.S: Likewise.
14756         * sysdeps/ieee754/k_standard.c: Likewise.
14757         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14758         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14759         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
14760         * sysdeps/mach/hurd/profil.c: Likewise.
14761         * sysdeps/s390/dl-procinfo.h: Likewise.
14762         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
14763         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
14764         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
14765         * sysdeps/x86_64/dl-trampoline.S: Likewise.
14766         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14767
14768 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
14769
14770         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
14771         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
14772
14773 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
14774
14775         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
14776         aix specific files.
14777         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
14778         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
14779         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
14780         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
14781         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
14782         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
14783         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
14784         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
14785
14786 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14787             Roland McGrath  <roland@hack.frob.com>
14788
14789         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
14790         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14791
14792 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14793
14794         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
14795         __executable_start symbol instead of _start.
14796
14797 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14798
14799         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
14800         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
14801         Move macros to...
14802         * sysdeps/gnu/ldsodefs.h: ... this new file.
14803
14804         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
14805         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
14806         instead of ELFOSABI_LINUX.
14807
14808         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
14809         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
14810         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
14811         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
14812         Likewise.
14813         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
14814         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
14815         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
14816         Likewise.
14817         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14818         (ibm_extended_long_double): Add ieee_nan member.
14819         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
14820         (do_test): New function.
14821
14822         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
14823         TEST_TRUNC.
14824         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
14825         functions, renamed from truncdfsf_test, trunctfsf_test,
14826         trunctfdf_test.
14827         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
14828         functions.
14829         (do_test): Run all these.
14830
14831 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
14832
14833         * argp/argp-help.c: Fix typos.
14834         * argp/argp-parse.c: Likewise.
14835         * debug/backtracesyms.c: Likewise.
14836         * elf/elf.h: Likewise.
14837         * malloc/malloc.c: Likewise.
14838         * nis/nis_print.c: Likewise.
14839         * resolv/res_comp.c: Likewise.
14840         * stdlib/stdlib.h: Likewise.
14841         * sunrpc/clnt_tcp.c: Likewise.
14842         * sunrpc/clnt_udp.c: Likewise.
14843         * sunrpc/clnt_unix.c: Likewise.
14844         * sysdeps/unix/bsd/ptsname.c: Likewise.
14845         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
14846         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
14847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
14848         Likewise.
14849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
14850         Likewise.
14851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
14852         Likewise.
14853         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
14854
14855 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14856
14857         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
14858         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14859
14860 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
14861
14862         [BZ #15897]
14863         * dlfcn/Makefile (tests): Add bug-dl-leaf.
14864         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
14865         ($(objpfx)bug-dl-leaf): New rule.
14866         ($(objpfx)bug-dl-leaf.so): Likewise.
14867         ($(objpfx)bug-dl-leaf.out): Likewise.
14868         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
14869         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
14870         * dlfcn/bug-dl-leaf.c: New test.
14871         * dlfcn/bug-dl-leaf-lib.c: Likewise.
14872         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
14873         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
14874         (dlclose): Likewise.
14875         (dlmopen): Likewise.
14876
14877 2013-08-27  Roland McGrath  <roland@hack.frob.com>
14878
14879         * include/netdb.h [!_ISOMAC]:
14880         Don't include <tls.h>.
14881         (h_errno, __libc_h_errno): Move declaration and macros out of
14882         [_LIBC_REENTRANT].
14883
14884         * include/resolv.h [_RESOLV_H_]:
14885         Don't include <tls.h>.
14886         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
14887         * resolv/res_libc.c: Don't include <tls.h>.
14888         (_res): Use __attribute__ ((nocommon)) in place of
14889         __attribute__ ((section (".bss"))).
14890
14891         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
14892         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
14893
14894         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
14895
14896         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
14897         only under [SIOCGIFCONF && SIOCGIFNETMASK].
14898
14899         * resolv/res_mkquery.c: Include <sys/time.h>.
14900
14901         * inet/ifreq.c: Moved to ...
14902         * sysdeps/unix/ifreq.c: ... here.
14903         * inet/ifreq.c: New file, true stub version.
14904
14905         * socket/sa_len.c: New file.
14906         * socket/Makefile (aux): Add it.
14907         * sysdeps/unix/sysv/linux/Makefile
14908         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
14909         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
14910         and #include <socket/sa_len.c>.
14911         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
14912         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
14913
14914         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
14915         * bits/socket.h: ... here.
14916
14917         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
14918         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
14919         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
14920
14921 2013-08-27  Andreas Schwab  <schwab@suse.de>
14922
14923         [BZ #15736]
14924         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
14925         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
14926         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
14927         * string/test-strcasecmp.c (test_main): Run tests in several
14928         locales.
14929         * string/test-strncasecmp.c (test_main): Likewise.
14930
14931         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
14932         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
14933         to __strcasecmp_nonascii and __strncasecmp_nonascii.
14934         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
14935         (__strncasecmp_ssse3) [PIC]: Likewise.
14936
14937 2013-08-26  Roland McGrath  <roland@hack.frob.com>
14938
14939         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
14940
14941         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
14942         instead of explicitly declaring xdecrypt.
14943         * nis/nss_nis/nis-publickey.c: Likewise.
14944
14945 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14946
14947         [BZ #15890]
14948         * nscd/aicache.c: Include res_hconf.h.
14949         (addhstaiX): Initialize res_hconf.
14950
14951 2013-08-26  Andreas Schwab  <schwab@suse.de>
14952
14953         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
14954         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
14955
14956 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14957
14958         * nscd/aicache.c (addhstaiX): Fix indentation.
14959
14960 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
14961
14962         * configure.ac: Quote $build_pt_chown test.
14963         * configure: Regenerated.
14964
14965 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
14966
14967         [BZ #15532]
14968         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
14969         * math/s_cexpf.c (__cexpf): Likewise.
14970         * math/s_cexpl.c (__cexpl): Likewise.
14971         * math/libm-test.inc (cexp_test_data): Correct expected return
14972         value for NaN + i0.  Add another test.
14973
14974 2013-08-22  David S. Miller  <davem@davemloft.net>
14975
14976         * po/ca.po: Update Catalan translation from translation project.
14977         * po/uk.po: Add Ukrainian translations from translation project.
14978
14979 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
14980
14981         [BZ #15797]
14982         * math/s_fdim.c (__fdim): Check for infinite arguments if result
14983         is infinite, not alongside NaN test.
14984         * math/s_fdimf.c (__fdimf): Likewise.
14985         * math/s_fdiml.c (__fdiml): Likewise.
14986         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
14987         errno is unchanged.
14988
14989 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
14990
14991         * argp/argp-help.c: Fix typos.
14992         * crypt/speeds.c: Likewise.
14993         * csu/check_fds.c: Likewise.
14994         * elf/dl-load.c: Likewise.
14995         * elf/dl-open.c: Likewise.
14996         * elf/reldep3.c: Likewise.
14997         * elf/reldep.c: Likewise.
14998         * elf/sprof.c: Likewise.
14999         * iconv/iconv_charmap.c: Likewise.
15000         * iconv/skeleton.c: Likewise.
15001         * iconv/strtab.c: Likewise.
15002         * io/lockf64.c: Likewise.
15003         * libio/libioP.h: Likewise.
15004         * resolv/gai_notify.c: Likewise.
15005         * resolv/ns_name.c: Likewise.
15006         * resolv/ns_samedomain.c: Likewise.
15007         * resolv/res_send.c: Likewise.
15008         * stdlib/random.c: Likewise.
15009         * sunrpc/rpc/xdr.h: Likewise.
15010         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
15011         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
15012         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
15013         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
15014         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
15015         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
15016         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
15017         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
15018         * sysdeps/mach/hurd/check_fds.c: Likewise.
15019         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
15020         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
15021         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15022         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
15023         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
15024         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
15025         * sysdeps/pthread/aio_notify.c: Likewise.
15026         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
15027         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
15028         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
15029         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15030         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
15031
15032 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15033
15034         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
15035         version if bit_Slow_SSE4_2 is set.
15036         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15037         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15038
15039 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15040
15041         [BZ #15867]
15042         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
15043         trampoline stack frame information.
15044         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
15045         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
15046         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
15047         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
15048         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
15049         * sysdeps/unix/sysv/linux/powerpc/init-first.c
15050         (_libc_vdso_platform_setup): Initialize the signal trampolines.
15051         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
15052         sa_flags value.
15053         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
15054         interrupting a syscall and set with option SA_SIGINFO.
15055
15056 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15057
15058         [BZ #15531]
15059         * math/s_cproj.c (__cproj): Only return an infinity if one part of
15060         argument is infinite.
15061         * math/s_cprojf.c (__cprojf): Likewise.
15062         * math/s_cprojl.c (__cprojl): Likewise.
15063         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
15064         * math/libm-test.inc (cproj_test_data): Add more tests.
15065
15066         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
15067
15068         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
15069         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
15070         size.  Use __ffs to determine corresponding shift.
15071
15072 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15073             Roland McGrath  <roland@hack.frob.com>
15074
15075         * Makefile (INSTALL): Remove trailing blank lines from output of
15076         makeinfo.
15077
15078 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15079
15080         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
15081         Align 32 bit compat elf_greg to 8 bytes.
15082
15083 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15084
15085         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
15086
15087 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
15088
15089         * string/strcoll_l.c (coll_seq): New structure.
15090         (get_next_seq_cached): New function.
15091         (get_next_seq): New function.
15092         (do_compare): New function.
15093         (STRCOLL): Use GNU style definition.  Simplify implementation
15094         by using get_next_seq, get_next_seq_cached and do_compare.
15095
15096 2013-08-16  Florian Weimer  <fweimer@redhat.com>
15097
15098         [BZ #14699]
15099         CVE-2013-4237
15100         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
15101         member.
15102         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
15103         member.
15104         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
15105         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
15106         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
15107         conditional.
15108         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
15109         GETDENTS_64BIT_ALIGNED.
15110         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15111         * manual/filesys.texi (Reading/Closing Directory): Document
15112         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
15113         strongly.
15114         * manual/conf.texi (Limits for Files): Add portability note to
15115         NAME_MAX, PATH_MAX.
15116         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
15117
15118 2013-08-13  Andreas Schwab  <schwab@suse.de>
15119
15120         [BZ #15749]
15121         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
15122         of fabs.
15123         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
15124         LDBL_MAX_EXP >= 16384]: Add tests for it.
15125
15126 2013-08-12  David S. Miller  <davem@davemloft.net>
15127
15128         * version.h (RELEASE): Set to "development".
15129         (VERSION): Set to "2.18.90".
15130         * NEWS: Add 2.19 section.
15131
15132 2013-08-03  David S. Miller  <davem@davemloft.net>
15133
15134         * po/ko.po: Update Korean translation from translation project.
15135
15136 2013-08-01  David S. Miller  <davem@davemloft.net>
15137
15138         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
15139         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
15140         Bilka.
15141
15142 2013-07-30  David S. Miller  <davem@davemloft.net>
15143
15144         * po/fr.po: Update French translation from translation project.
15145
15146 2013-07-28  David S. Miller  <davem@davemloft.net>
15147
15148         * po/cs.po: Update Czech translation from translation project.
15149
15150         * po/sv.po: Update Swedish translation from translation project.
15151
15152 2013-07-27  David S. Miller  <davem@davemloft.net>
15153
15154         * po/eo.po: Update Esperanto translation from translation project.
15155
15156         * po/vi.po: Update Vietnamese translation from translation project.
15157
15158         * po/de.po: Update German translation from translation project.
15159
15160 2013-07-26  David S. Miller  <davem@davemloft.net>
15161
15162         * po/bg.po: Update Bulgarian translation from translation project.
15163
15164         * po/nl.po: Update Dutch translation from translation project.
15165         * po/pl.po: Update Polish translation from translation project.
15166         * po/ru.po: Update Russian translation from translation project.
15167
15168 2013-07-24  David S. Miller  <davem@davemloft.net>
15169
15170         * po/libc.pot: Update.
15171
15172 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15173
15174         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
15175         variable page size.
15176         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
15177         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
15178         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
15179
15180 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15181
15182         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
15183
15184 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15185             Andreas Schwab  <schwab@suse.de>
15186             Roland McGrath  <roland@hack.frob.com>
15187             Joseph Myers  <joseph@codesourcery.com>
15188             Carlos O'Donell  <carlos@redhat.com>
15189
15190         [BZ #15755]
15191         * config.h.in: Define HAVE_PT_CHOWN.
15192         * config.make.in (build-pt-chown): New variable.
15193         * configure.in (--enable-pt_chown): New configure option.
15194         * configure: Regenerate.
15195         * login/Makefile: Include Makeconfig.  Build pt_chown only if
15196         build-pt-chown is enabled.
15197         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
15198         pt_chown to fix pty ownership.
15199         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
15200         CLOSE_ALL_FDS.
15201         * manual/install.texi (Configuring and compiling): Mention
15202         --enable-pt_chown. Add @findex for grantpt.
15203         * INSTALL: Regenerate.
15204
15205 2013-07-20  David S. Miller  <davem@davemloft.net>
15206
15207         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
15208         difference between 32-bit and 64-bit.
15209
15210 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
15211
15212         [BZ #15711]
15213         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
15214         Avoid system header dependency with -ffreestanding.
15215         ($(objpfx)bits/syscall%d): Likewise.
15216
15217 2013-07-13  David S. Miller  <davem@davemloft.net>
15218
15219         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
15220         underflows from atanl/atan2l due to bug 15319.
15221         (casinh_test_data): Likewise.
15222
15223 2013-07-07  David S. Miller  <davem@davemloft.net>
15224
15225         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
15226
15227 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
15228
15229         * sysdeps/i386/fpu/libm-test-ulps: Update.
15230         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15231
15232 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15233
15234         * configure.in (--enable-lock-elision): Fix message text.
15235         * INSTALL: Regenerate.
15236         * configure: Regenerate.
15237
15238 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15239
15240         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15241
15242 2013-07-03  Andreas Jaeger  <aj@suse.de>
15243
15244         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
15245         define.
15246         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
15247         (ptrace_peeksiginfo_args): Add.
15248         (__ptrace_peeksiginfo_flags): Add.
15249         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15250         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15251         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15252
15253 2013-07-03  Allan McRae  <allan@archlinux.org>
15254
15255         * sysdeps/i386/fpu/libm-test-ulps: Update.
15256
15257 2013-07-02  David S. Miller  <davem@davemloft.net>
15258
15259         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15260
15261 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
15262
15263         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15264
15265 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15266
15267         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
15268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15269
15270 2013-07-02  Andi Kleen <ak@linux.intel.com>
15271
15272         * config.h.in (ENABLE_LOCK_ELISION): Add.
15273         * configure.in (--enable-lock-elision): Add option.
15274         * manual/install.texi: Document --enable lock elision.
15275         * configure: Regenerate
15276         * INSTALL: Regenerate.
15277
15278 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
15279
15280         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
15281         SSE4.2 strcasecmp for libc.a.
15282         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
15283
15284 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15285
15286         [BZ #13304]
15287         * soft-fp/op-common.h (_FP_FMA): New macro.
15288         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
15289         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
15290         (_FP_MUL_MEAT_1_imm): ... here.
15291         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
15292         (_FP_MUL_MEAT_1_wide): ... here.
15293         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
15294         (_FP_MUL_MEAT_1_hard): ... here.
15295         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
15296         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
15297         (_FP_MUL_MEAT_2_wide): ... here.
15298         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
15299         (_FP_MUL_MEAT_2_wide_3mul): ... here.
15300         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
15301         (_FP_MUL_MEAT_2_gmp): ... here.
15302         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
15303         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
15304         (_FP_MUL_MEAT_4_wide): ... here.
15305         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
15306         (_FP_MUL_MEAT_4_gmp): ... here.
15307         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
15308         (_FP_WFRACBITS_DW_S): Likewise.
15309         (_FP_WFRACXBITS_DW_S): Likewise.
15310         (_FP_HIGHBIT_DW_S): Likewise.
15311         (FP_FMA_S): Likewise.
15312         (_FP_FRAC_HIGH_DW_S): Likewise.
15313         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
15314         (_FP_WFRACBITS_DW_D): Likewise.
15315         (_FP_WFRACXBITS_DW_D): Likewise.
15316         (_FP_HIGHBIT_DW_D): Likewise.
15317         (FP_FMA_D): Likewise.
15318         (_FP_FRAC_HIGH_DW_D): Likewise.
15319         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
15320         (_FP_WFRACBITS_DW_E): Likewise.
15321         (_FP_WFRACXBITS_DW_E): Likewise.
15322         (_FP_HIGHBIT_DW_E): Likewise.
15323         (FP_FMA_E): Likewise.
15324         (_FP_FRAC_HIGH_DW_E): Likewise.
15325         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
15326         (_FP_WFRACBITS_DW_Q): Likewise.
15327         (_FP_WFRACXBITS_DW_Q): Likewise.
15328         (_FP_HIGHBIT_DW_Q): Likewise.
15329         (FP_FMA_Q): Likewise.
15330         (_FP_FRAC_HIGH_DW_Q): Likewise.
15331         * soft-fp/fmasf4.c: New file.
15332         * soft-fp/fmadf4.c: Likewise.
15333         * soft-fp/fmatf4.c: Likewise.
15334
15335 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15336
15337         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15338         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
15339         Silvermont.
15340         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
15341         macro.
15342         (index_Slow_SSE4_2): Likewise.
15343         (index_Prefer_PMINUB_for_stringop): Likewise.
15344         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
15345         bit_Slow_SSE4_2 is set.
15346         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
15347         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15348
15349 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15350
15351         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
15352         rtld_global._dl_hwcap2.
15353         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
15354         POWER8.
15355         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
15356         POWER8 feature descriptions defined in _dl_hwcap2.
15357         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
15358         string handling for POWER8 feature bits.
15359         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
15360         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
15361         _dl_powerpc_cap_flags.
15362         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
15363         * sysdeps/powerpc/rtld-global-offsets.sym
15364         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
15365         _dl_hwcap2 in the rtld_global_ro structure.
15366
15367 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15368
15369         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
15370         hardware capabilities in support of AT_HWCAP2.
15371         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
15372         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
15373         GLRO(dl_hwcap2).
15374         (_dl_show_auxv): Add support for calling _dl_procinfo to display
15375         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
15376         explicitly the unknown a_type display mechanism is used.
15377         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
15378         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
15379         struct member.
15380         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
15381         to macro prototype for AT_HWCAP2 support.
15382         * sysdeps/i386/dl-procinfo.h: Likewise.
15383         * sysdeps/s390/dl-procinfo.h: Likewise.
15384         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
15385         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
15386         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
15387         return -1 for unknown a_type display fallback.
15388         * sysdeps/sparc/dl-procinfo.h: Likewise.
15389         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
15390         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
15391
15392 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
15393
15394         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
15395         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
15396
15397 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
15398
15399         [BZ #12492]
15400         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
15401         mprotect making __stack_prot writable.
15402
15403 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15404             Joseph Myers  <joseph@codesourcery.com>
15405
15406         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
15407         as being properly aligned.
15408
15409 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
15410
15411         * dlfcn/modstatic5.c: New file.
15412         * dlfcn/tststatic5.c: New file.
15413         * dlfcn/Makefile (tests): Add tststatic5.
15414         (tests-static): Likewise.
15415         (modules-names): Add modstatic5.
15416         (tststatic5-ENV): New variable.
15417         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
15418
15419         [BZ #15022]
15420         * elf/dl-support.c (_dl_main_map): New variable.
15421         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
15422         (_dl_nns, _dl_load_adds): Set to 1.
15423         (_dl_initial_searchlist): Refer to _dl_main_map.
15424         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
15425         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
15426         call to _dl_get_origin.
15427         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
15428         around call_map.
15429         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
15430         * dlfcn/modstatic3.c: New file.
15431         * dlfcn/tststatic3.c: New file.
15432         * dlfcn/tststatic4.c: New file.
15433         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
15434         (tests-static): Likewise.
15435         (modules-names): Add modstatic3.
15436         (tststatic3-ENV, tststatic4-ENV): New variables.
15437         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
15438         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
15439
15440 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
15441
15442         * configure.in (CC): Require GCC version 4.4 or later.
15443         * configure: Regenerated.
15444         * manual/install.texi (Tools for Compilation): Update GCC version
15445         requirement.
15446         * INSTALL: Regenerated.
15447
15448 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15449
15450         [BZ #15674]
15451         * string/test-memcmp.c (check2): New.
15452         (main): Call check2.
15453
15454         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
15455
15456 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
15457
15458         [BZ #15022]
15459         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
15460         over to...
15461         (dl_open_worker) [!SHARED]: ... here.
15462
15463 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15464
15465         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
15466
15467 2013-06-25  Richard Henderson  <rth@redhat.com>
15468
15469         * locale/programs/locarchive.c: Include <libc-internal.h>
15470
15471 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
15472
15473         * manual/texinfo.tex: Update to version 2013-06-21.17, with
15474         trailing whitespace removed.
15475
15476 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15477
15478         [BZ #10283]
15479         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
15480         * locale/programs/locarchive.c: Include libc-mmap.h.
15481         (prepare_address_space): Take two new outputs (the mmap base and len).
15482         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
15483         values.
15484         (create_archive): Declare new mmap base and len values for
15485         prepare_address_space, and store the result in ah.
15486         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
15487         (enlarge_archive): If ah->mmap_base is not NULL, use that and
15488         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15489         Declare new mmap base and len values for
15490         prepare_address_space, and store the result in new_ah.
15491         (open_archive): Declare new mmap base and len values for
15492         prepare_address_space, and store the result in ah.
15493         (close_archive): If ah->mmap_base is not NULL, use that and
15494         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15495         * sysdeps/generic/libc-mmap.h: New file.
15496
15497 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15498
15499         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
15500         (ALIGN_UP): Likewise.
15501         (PTR_ALIGN_DOWN): Likewise.
15502         (PTR_ALIGN_UP): Likewise.
15503
15504 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15505
15506         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
15507         entry mapped to PPC_PLATFORM_POWER8.
15508         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
15509         POWER8.
15510         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
15511         (_dl_string_platform): Add case for exporting platform position for
15512         POWER8.
15513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
15514         search path to sysdeps/powerpc/powerpc32/power8 directory.
15515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
15516         search path to sysdeps/powerpc/powerpc64/power8 directory.
15517         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
15518         power7 directories.
15519         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
15520         power7 directories.
15521
15522 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15523
15524         * INSTALL: Regenerate.
15525
15526         * nscd/connections.c (nscd_init): Fix comment.
15527
15528 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
15529
15530         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
15531
15532         [BZ #15667]
15533         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
15534         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
15535
15536 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15537
15538         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
15539         DL_DST_REQ_STATIC.
15540         (DL_DST_REQ_STATIC): Remove macro.
15541
15542 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
15543
15544         [BZ #7006]
15545         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
15546         with a shift of 0 bits.
15547
15548 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15549
15550         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
15551         $(tststatic-ENV).
15552
15553 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15554
15555         [BZ #15655]
15556         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
15557
15558 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15559
15560         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
15561         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
15562         accepts -fno-tree-loop-distribute-patterns.
15563         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
15564         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
15565         recursive call.
15566         * string/memset.c (memset): Likewise.
15567         * string/test-memmove.c (simple_memmove): Disable loop transformation
15568         to library calls.
15569         * string/test-memset.c (simple_memset): Likewise.
15570         * benchtests/bench-memmove.c (simple_memmove): Likewise.
15571         * benchtests/bench-memset.c (simple_memset): Likewise.
15572         * configure: Regenerated.
15573
15574 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
15575
15576         * math/test-misc.c (main): Ignore fesetround failure when failures
15577         of subsequent rounding tests would be ignored.
15578
15579         [BZ #15654]
15580         * math/fedisblxcpt.c (fedisableexcept): Return 0.
15581         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
15582         * math/fegetenv.c (__fegetenv): Return 0.
15583         * math/fegetexcept.c (fegetexcept): Return 0.
15584         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
15585         FE_TONEAREST.
15586         * math/feholdexcpt.c (feholdexcept): Return 0.
15587         * math/fesetenv.c (__fesetenv): Return 0.
15588         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
15589         argument FE_TONEAREST.
15590         * math/feupdateenv.c (__feupdateenv): Return 0.
15591         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
15592
15593 2013-06-18  Roland McGrath  <roland@hack.frob.com>
15594
15595         * elf/rtld-Rules (rtld-compile-command.S): New variable.
15596         (rtld-compile-command.s, rtld-compile-command.c): New variables.
15597         ($(objpfx)rtld-%.os rules): Use them.
15598
15599 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15600
15601         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
15602         fields.
15603
15604 2013-06-17  Roland McGrath  <roland@hack.frob.com>
15605
15606         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
15607         length of target pattern, then descending length of dependency pattern.
15608         * configure.in (AWK): Require gawk 3.1.2 or newer.
15609         * manual/install.texi (Tools for Compilation): Say that we do.
15610         * configure: Regenerated.
15611
15612         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
15613         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
15614         * scripts/sysd-rules.awk: ... this new script.
15615         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
15616         than a glob-style pattern.
15617
15618 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
15619
15620         * math/test-misc.c (main): Do not treat incorrectly rounded
15621         conversions as failure unless ROUNDING_TESTS passes.
15622
15623 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
15624
15625         [BZ #15631]
15626         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
15627         restore exception state around main square root computation, then
15628         check for inexactness explicitly.
15629
15630         * math/libm-test.inc (fma_test_data): Add another test.
15631
15632 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
15633
15634         * manual/threads.texi (Non-POSIX Extensions): New document
15635         node.  Document pthread_getattr_default_np and
15636         pthread_setattr_default_np.
15637
15638         * Versions.def (libpthread): Add GLIBC_2.18.
15639         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
15640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15641         Likewise.
15642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15643         Likewise.
15644         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15645         Likewise.
15646         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15647         Likewise.
15648         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
15649         Likewise.
15650         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
15651         Likewise.
15652         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
15653         Likewise.
15654         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15655         Likewise.
15656         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
15657         Likewise.
15658
15659 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15660
15661         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15662         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
15663
15664 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15665             H.J. Lu  <hjl.tools@gmail.com>
15666
15667         [BZ #15627]
15668         * sysdeps/x86_64/rtld-memset.c: Remove file.
15669         * sysdeps/x86_64/rtld-memset.S: New file.
15670
15671 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
15672
15673         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
15674         (test_in_one_mode): Take arguments for whether the rounding mode
15675         is supported for each floating-point type.
15676         (do_test): Pass new arguments to test_in_one_mode using
15677         ROUNDING_TESTS.
15678
15679 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15680
15681         * posix/tst-waitid.c (do_test): Distinguish different instances of
15682         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
15683         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
15684         before entering the kernel for waitpid.
15685
15686 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15687
15688         * NEWS: Fix note on clock function precision.  Text by Roland
15689         McGrath.
15690
15691 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15692
15693         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
15694         it into place only when and if the sanity check passes.
15695
15696 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
15697
15698         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
15699         output for whether conversion result is exact.  Take argument
15700         indicating whether type is IBM long double.
15701         (round_for_all): Change need_exact field to ibm_ld.
15702         * stdlib/tst-strtod-round.c (struct exactness): New type.
15703         (struct test): Change bool ld_ok field to struct exactness exact.
15704         (TEST): Update all definitions for change to field.
15705         (tests): Regenerate array contents.
15706         (test_in_one_mode): Take pointer to new field instead of old ld_ok
15707         field value.  Check for IBM long double here.
15708         (do_test): Update calls to test_in_one_mode.
15709
15710 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15711
15712         [BZ #12515]
15713         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
15714         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
15715
15716 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15717
15718         [BZ #15605]
15719         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
15720         generated by the compiler on loop optimizations.
15721         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
15722         general definitions.
15723
15724 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
15725
15726         * math/bug-nextafter.c: Include <math-tests.h>.
15727         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15728         the relevant type.
15729         * math/bug-nexttoward.c: Include <math-tests.h>.
15730         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15731         the relevant type.
15732         * math/test-misc.c: Include <math-tests.h>.
15733         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15734         the relevant type.
15735
15736 2013-06-12  Andreas Jaeger  <aj@suse.de>
15737
15738         * po/ia.po: Update Interlingua translation from translation
15739         project.
15740
15741 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
15742
15743         * include/fenv.h: Include stdbool.h.
15744         (struct rm_ctx): New structure.
15745         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
15746         Define macro.
15747         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
15748         (SET_RESTORE_ROUNDF): Likewise.
15749         (SET_RESTORE_ROUNDL): Likewise.
15750         (SET_RESTORE_ROUND_NOEX): Likewise.
15751         (SET_RESTORE_ROUND_NOEXF): Likewise.
15752         (SET_RESTORE_ROUND_NOEXL): Likewise.
15753         (SET_RESTORE_ROUND_53BIT): Likewise.
15754         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
15755         (libc_feresetround_noexf_ctx): Likewise.
15756         (libc_feresetround_noexl_ctx): Likewise.
15757         (libc_feholdsetround_53bit_ctx): Likewise.
15758         (libc_feresetround_53bit_ctx): Likewise.
15759         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
15760         (libc_feholdexcept_setround_sse_ctx): New function.
15761         (libc_fesetenv_sse_ctx): Likewise.
15762         (libc_feupdateenv_sse_ctx): Likewise.
15763         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
15764         (libc_feholdexcept_setround_387_ctx): Likewise.
15765         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
15766         (libc_feholdsetround_387_prec_ctx): Likewise.
15767         (libc_feholdsetround_387_ctx): Likewise.
15768         (libc_feholdsetround_387_53bit_ctx): Likewise.
15769         (libc_feholdsetround_sse_ctx): Likewise.
15770         (libc_feresetround_sse_ctx): Likewise.
15771         (libc_feresetround_387_ctx): Likewise.
15772         (libc_feupdateenv_387_ctx): Likewise.
15773         (libc_feholdexcept_setroundf_ctx): Define macro.
15774         (libc_fesetenvf_ctx): Likewise.
15775         (libc_feupdateenvf_ctx): Likewise.
15776         (libc_feholdsetroundf_ctx): Likewise.
15777         (libc_feresetroundf_ctx): Likewise.
15778         (libc_feholdexcept_setround_ctx): Likewise.
15779         (libc_fesetenv_ctx): Likewise.
15780         (libc_feupdateenv_ctx): Likewise.
15781         (libc_feholdsetround_ctx): Likewise.
15782         (libc_feresetround_ctx): Likewise.
15783         (libc_feholdexcept_setroundl_ctx): Likewise.
15784         (libc_feupdateenvl_ctx): Likewise.
15785         (libc_feholdsetroundl_ctx): Likewise.
15786         (libc_feresetroundl_ctx): Likewise.
15787         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
15788         (libc_feresetround_53bit_ctx): Likewise.
15789
15790 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15791
15792         * locale/iso-639.def: Convert to UTF-8.
15793
15794 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
15795
15796         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
15797         (EXCEPTION_TESTS_double): Likewise.
15798         (EXCEPTION_TESTS_long_double): Likewise.
15799         (EXCEPTION_TESTS): Likewise.
15800         * math/libm-test.inc (test_exceptions): Only test exceptions if
15801         EXCEPTION_TESTS (FLOAT).
15802
15803 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15804
15805         * benchtests/Makefile (string-bench): Add strcpy_chk and
15806         stpcpy_chk.
15807         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
15808         * benchtests/bench-stpcpy_chk.c: New file.
15809         * benchtests/bench-strcpy_chk-ifunc.c: New file.
15810         * benchtests/bench-strcpy_chk.c: New file.
15811         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
15812         code.
15813         (do_test): Likewise.
15814
15815 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15816
15817         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
15818         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
15819         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
15820         with tabs where appropriate.
15821         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
15822         dl-procinfo.h.
15823         [PPC_PLATFORM_PPC440]: Likewise.
15824         [PPC_PLATFORM_PPC464]: Likewise.
15825         [PPC_PLATFORM_PPC476]: Likewise.
15826         (_dl_string_platform): Add support for detecting ppc405, ppc440,
15827         ppc464, and ppc476 platform strings merging from ports/
15828         dl-procinfo.h.
15829
15830 2013-06-11  Andreas Schwab  <schwab@suse.de>
15831
15832         [BZ #14991]
15833         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
15834         (from_ucs4_idx): Regenerate.
15835         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
15836         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
15837         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
15838         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
15839         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
15840         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
15841         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
15842         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
15843         from FROM_LOOP and TO_LOOP specific macros.
15844         (BODY): Handle combining characters.
15845         * iconvdata/BIG5HKSCS.irreversible: Update.
15846         * iconvdata/BIG5HKSCS.precomposed: New file.
15847         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
15848         characters.
15849         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
15850
15851 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15852
15853         * include/sys/time.h: Fix indentation and add copyright header.
15854
15855         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
15856         (do_test): Likewise.
15857         * string/test-memchr.c (do_one_test): Likewise.
15858         (do_test): Likewise.
15859         * string/test-memcmp.c (do_one_test): Likewise.
15860         (do_test): Likewise.
15861         * string/test-memcpy.c (do_one_test): Likewise.
15862         (do_test): Likewise.
15863         * string/test-memmem.c (do_one_test): Likewise.
15864         (do_test): Likewise.
15865         (do_random_tests): Likewise.
15866         * string/test-memmove.c (do_one_test): Likewise.
15867         (do_test): Likewise.
15868         * string/test-memset.c (do_one_test): Likewise.
15869         (do_test): Likewise.
15870         * string/test-rawmemchr.c (do_one_test): Likewise.
15871         (do_test): Likewise.
15872         * string/test-strcasecmp.c (do_one_test): Likewise.
15873         (do_test): Likewise.
15874         * string/test-strcasestr.c (do_one_test): Likewise.
15875         (do_test): Likewise.
15876         * string/test-strcat.c (do_one_test): Likewise.
15877         (do_test): Likewise.
15878         * string/test-strchr.c (do_one_test): Likewise.
15879         (do_test): Likewise.
15880         * string/test-strcmp.c (do_one_test): Likewise.
15881         (do_test): Likewise.
15882         * string/test-strcpy.c (do_one_test): Likewise.
15883         (do_test): Likewise.
15884         * string/test-string.h: Likewise.
15885         (test_init): Likewise.
15886         * string/test-strlen.c (do_one_test): Likewise.
15887         (do_test): Likewise.
15888         * string/test-strncasecmp.c (do_one_test): Likewise.
15889         (do_test): Likewise.
15890         * string/test-strncat.c (do_one_test): Likewise.
15891         (do_test): Likewise.
15892         * string/test-strncmp.c (do_one_test): Likewise.
15893         (do_test_limit): Likewise.
15894         (do_test): Likewise.
15895         * string/test-strncpy.c (do_one_test): Likewise.
15896         (do_test): Likewise.
15897         * string/test-strnlen.c (do_one_test): Likewise.
15898         (do_test): Likewise.
15899         * string/test-strpbrk.c (do_one_test): Likewise.
15900         (do_test): Likewise.
15901         * string/test-strrchr.c (do_one_test): Likewise.
15902         (do_test): Likewise.
15903         * string/test-strspn.c (do_one_test): Likewise.
15904         (do_test): Likewise.
15905         * string/test-strstr.c (do_one_test): Likewise.
15906         (do_test): Likewise.
15907
15908         * benchtests/Makefile (string-bench): Add string benchmarks.
15909         * benchtests/bench-bcopy-ifunc.c: New file.
15910         * benchtests/bench-bcopy.c: New file.
15911         * benchtests/bench-bzero-ifunc.c: New file.
15912         * benchtests/bench-bzero.c: New file.
15913         * benchtests/bench-memccpy-ifunc.c: New file.
15914         * benchtests/bench-memccpy.c: New file.
15915         * benchtests/bench-memchr-ifunc.c: New file.
15916         * benchtests/bench-memchr.c: New file.
15917         * benchtests/bench-memcmp-ifunc.c: New file.
15918         * benchtests/bench-memcmp.c: New file.
15919         * benchtests/bench-memmem-ifunc.c: New file.
15920         * benchtests/bench-memmem.c: New file.
15921         * benchtests/bench-memmove-ifunc.c: New file.
15922         * benchtests/bench-memmove.c: New file.
15923         * benchtests/bench-mempcpy-ifunc.c: New file.
15924         * benchtests/bench-mempcpy.c: New file.
15925         * benchtests/bench-memset-ifunc.c: New file.
15926         * benchtests/bench-memset.c: New file.
15927         * benchtests/bench-rawmemchr-ifunc.c: New file.
15928         * benchtests/bench-rawmemchr.c: New file.
15929         * benchtests/bench-stpcpy-ifunc.c: New file.
15930         * benchtests/bench-stpcpy.c: New file.
15931         * benchtests/bench-stpncpy-ifunc.c: New file.
15932         * benchtests/bench-stpncpy.c: New file.
15933         * benchtests/bench-strcasecmp-ifunc.c: New file.
15934         * benchtests/bench-strcasecmp.c: New file.
15935         * benchtests/bench-strcasestr-ifunc.c: New file.
15936         * benchtests/bench-strcasestr.c: New file.
15937         * benchtests/bench-strcat-ifunc.c: New file.
15938         * benchtests/bench-strcat.c: New file.
15939         * benchtests/bench-strchr-ifunc.c: New file.
15940         * benchtests/bench-strchr.c: New file.
15941         * benchtests/bench-strchrnul-ifunc.c: New file.
15942         * benchtests/bench-strchrnul.c: New file.
15943         * benchtests/bench-strcmp-ifunc.c: New file.
15944         * benchtests/bench-strcmp.c: New file.
15945         * benchtests/bench-strcpy-ifunc.c: New file.
15946         * benchtests/bench-strcpy.c: New file.
15947         * benchtests/bench-strcspn-ifunc.c: New file.
15948         * benchtests/bench-strcspn.c: New file.
15949         * benchtests/bench-strlen-ifunc.c: New file.
15950         * benchtests/bench-strlen.c: New file.
15951         * benchtests/bench-strncasecmp-ifunc.c: New file.
15952         * benchtests/bench-strncasecmp.c: New file.
15953         * benchtests/bench-strncat-ifunc.c: New file.
15954         * benchtests/bench-strncat.c: New file.
15955         * benchtests/bench-strncmp-ifunc.c: New file.
15956         * benchtests/bench-strncmp.c: New file.
15957         * benchtests/bench-strncpy-ifunc.c: New file.
15958         * benchtests/bench-strncpy.c: New file.
15959         * benchtests/bench-strnlen-ifunc.c: New file.
15960         * benchtests/bench-strnlen.c: New file.
15961         * benchtests/bench-strpbrk-ifunc.c: New file.
15962         * benchtests/bench-strpbrk.c: New file.
15963         * benchtests/bench-strrchr-ifunc.c: New file.
15964         * benchtests/bench-strrchr.c: New file.
15965         * benchtests/bench-strspn-ifunc.c: New file.
15966         * benchtests/bench-strspn.c: New file.
15967         * benchtests/bench-strstr-ifunc.c: New file.
15968         * benchtests/bench-strstr.c: New file.
15969
15970         * benchtests/Makefile: Disable parallel execution of targets.
15971         (string-bench): Add memcpy.
15972         (benchset): New variable to store a list of benchmark sets.
15973         (bench-func): Renamed from bench.
15974         (bench-set): New target.
15975         (bench): Depend on bench-func and bench-set.
15976         * benchtests/README: Add section on benchmark sets.
15977         * benchtests/bench-memcpy-ifunc.c: New file.
15978         * benchtests/bench-memcpy.c: New file.
15979         * benchtests/bench-string.h: New file.
15980
15981 2013-06-11  Andreas Schwab  <schwab@suse.de>
15982
15983         [BZ #15577]
15984         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
15985         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
15986         values in the triple.
15987         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
15988         terminator in the group key.
15989
15990 2013-06-11  Andreas Jaeger  <aj@suse.de>
15991
15992         * po/zh_TW.po: Update Chinese (traditional) translation from
15993         translation project.
15994
15995 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15996
15997         * include/time.h (__clock_gettime): Add libc_hidden_proto.
15998         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
15999         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
16000         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
16001         (clock_getcpuclockid): Likewise.
16002         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
16003         Add weak_alias and libc_hidden_def.
16004         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
16005         * rt/clock_gettime.c (clock_gettime): Rename to
16006         __clock_gettime.  Add weak_alias and libc_hidden_def.
16007         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
16008         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
16009         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
16010         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
16011         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
16012         Likewise.
16013         * rt/clock_settime.c (clock_settime): Rename to
16014         __clock_settime.  Add weak_alias and libc_hidden_def.
16015         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
16016
16017 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
16018
16019         * mach/err_boot.sub: Remove trailing whitespace.
16020         * mach/err_ipc.sub: Likewise.
16021         * mach/err_mach.sub: Likewise.
16022
16023         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
16024         (ROUNDING_TESTS_double): Likewise.
16025         (ROUNDING_TESTS_long_double): Likewise.
16026         (ROUNDING_TESTS): Likewise.
16027         * math/libm-test.inc: Include <math-tests.h>.
16028         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
16029         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
16030         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
16031         (IF_ROUND_INIT_FE_UPWARD): Likewise.
16032
16033 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16034
16035         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
16036         of assigning.
16037
16038 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
16039
16040         * sysdeps/gnu/errlist.awk: Do not generate space at end of
16041         otherwise empty TRANS lines.
16042         * sysdeps/gnu/errlist.c: Regenerated.
16043
16044         * catgets/gencat.c (error_print): Use (void) in function
16045         definition.
16046         * crypt/crypt_util.c (__init_des): Likewise.
16047         * crypt/speeds.c (Stop): Likewise.
16048         (main): Likewise.
16049         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
16050         * inet/ruserpass.c (token): Likewise.
16051         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
16052         * intl/localealias.c (extend_alias_table): Likewise.
16053         * intl/plural-exp.c (init_germanic_plural): Likewise.
16054         * libio/fcloseall.c (__fcloseall): Likewise.
16055         * libio/genops.c (_IO_flush_all): Likewise.
16056         (_IO_flush_all_linebuffered): Likewise.
16057         (_IO_cleanup): Likewise.
16058         (_IO_iter_begin): Likewise.
16059         (_IO_iter_end): Likewise.
16060         (_IO_list_lock): Likewise.
16061         (_IO_list_unlock): Likewise.
16062         (_IO_list_resetlock): Likewise.
16063         * libio/getchar.c (getchar): Likewise.
16064         * libio/getchar_u.c (getchar_unlocked): Likewise.
16065         * libio/getwchar.c (getwchar): Likewise.
16066         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
16067         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
16068         * login/getpt.c (__getpt): Likewise.
16069         * login/tst-utmp.c (main): Likewise.
16070         * malloc/hooks.c (__malloc_check_init): Likewise.
16071         * malloc/malloc.c (__malloc_stats): Likewise.
16072         * malloc/mtrace.c (tr_break): Likewise.
16073         (mtrace): Likewise.
16074         (muntrace): Likewise.
16075         * misc/fstab.c (endfsent): Likewise.
16076         * misc/getclktck.c (__getclktck): Likewise.
16077         * misc/getdtsz.c (__getdtablesize): Likewise.
16078         * misc/gethostid.c (gethostid): Likewise.
16079         * misc/getpagesize.c (__getpagesize): Likewise.
16080         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
16081         (__get_nprocs): Likewise.
16082         (__get_phys_pages): Likewise.
16083         (__get_avphys_pages): Likewise.
16084         * misc/getttyent.c (getttyent): Likewise.
16085         (setttyent): Likewise.
16086         (endttyent): Likewise.
16087         * misc/getusershell.c (getusershell): Likewise.
16088         (endusershell): Likewise.
16089         (setusershell): Likewise.
16090         (initshells): Likewise.
16091         * misc/hsearch.c (__hdestroy): Likewise.
16092         * misc/sync.c (sync): Likewise.
16093         * misc/syslog.c (closelog_internal): Likewise.
16094         (closelog): Likewise.
16095         * misc/ttyslot.c (ttyslot): Likewise.
16096         * misc/vhangup.c (vhangup): Likewise.
16097         * posix/fork.c (__fork): Likewise.
16098         * posix/getegid.c (__getegid): Likewise.
16099         * posix/geteuid.c (__geteuid): Likewise.
16100         * posix/getgid.c (__getgid): Likewise.
16101         * posix/getpid.c (__getpid): Likewise.
16102         * posix/getppid.c (__getppid): Likewise.
16103         * posix/getuid.c (__getuid): Likewise.
16104         * posix/pause.c (pause): Likewise.
16105         * posix/setpgrp.c (setpgrp): Likewise.
16106         * posix/setsid.c (__setsid): Likewise.
16107         * posix/test-vfork.c (noop): Likewise.
16108         * resolv/gethnamaddr.c (_endhtent): Likewise.
16109         (_gethtent): Likewise.
16110         (ht_endhostent): Likewise.
16111         (gethostent): Likewise.
16112         (dns_service): Likewise.
16113         * stdlib/drand48.c (drand48): Likewise.
16114         * stdlib/lrand48.c (lrand48): Likewise.
16115         * stdlib/mrand48.c (mrand48): Likewise.
16116         * stdlib/rand.c (rand): Likewise.
16117         * stdlib/random.c (__random): Likewise.
16118         * stdlib/setenv.c (clearenv): Likewise.
16119         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
16120         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
16121         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
16122         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
16123         (__get_nprocs): Likewise.
16124         (__get_phys_pages): Likewise.
16125         (__get_avphys_pages): Likewise.
16126         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
16127         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
16128         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
16129         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
16130         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
16131         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
16132         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
16133         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
16134         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
16135         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
16136         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
16137         * sysdeps/mach/hurd/sync.c (sync): Likewise.
16138         * sysdeps/posix/clock.c (clock): Likewise.
16139         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
16140         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
16141         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
16142         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
16143         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
16144         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
16145         (__get_nprocs_conf): Likewise.
16146         (__get_phys_pages): Likewise.
16147         (__get_avphys_pages): Likewise.
16148         * time/clock.c (clock): Likewise.
16149         * time/tzset.c (__tzname_max): Likewise.
16150
16151 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
16152
16153         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
16154         (__bswap_32): Do not use "register".
16155         * crypt/crypt.c (_ufc_doit_r): Likewise.
16156         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
16157         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
16158         * gmon/gmon.c (__monstartup): Likewise.
16159         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
16160         * hurd/hurdmalloc.c (more_memory): Likewise.
16161         (malloc): Likewise.
16162         (free): Likewise.
16163         (realloc): Likewise.
16164         (malloc_fork_prepare): Likewise.
16165         (malloc_fork_parent): Likewise.
16166         (malloc_fork_child): Likewise.
16167         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
16168         (_svcauth_des): Likewise.
16169         * inet/inet_lnaof.c (inet_lnaof): Likewise.
16170         * inet/inet_net.c (inet_network): Likewise.
16171         * inet/inet_netof.c (inet_netof): Likewise.
16172         * inet/rcmd.c (__validuser2_sa): Likewise.
16173         * io/fts.c (fts_open): Likewise.
16174         (fts_load): Likewise.
16175         (fts_close): Likewise.
16176         (fts_read): Likewise.
16177         (fts_children): Likewise.
16178         (fts_build): Likewise.
16179         (fts_stat): Likewise.
16180         (fts_sort): Likewise.
16181         (fts_alloc): Likewise.
16182         (fts_lfree): Likewise.
16183         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
16184         (_IO_file_xsgetn): Likewise.
16185         (_IO_file_xsgetn_mmap): Likewise.
16186         * libio/iofopncook.c (_IO_cookie_read): Likewise.
16187         (_IO_cookie_write): Likewise.
16188         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
16189         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
16190         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
16191         * malloc/obstack.c (_obstack_begin): Likewise.
16192         (_obstack_begin_1): Likewise.
16193         (_obstack_newchunk): Likewise.
16194         (_obstack_allocated_p): Likewise.
16195         (obstack_free): Likewise.
16196         (_obstack_memory_used): Likewise.
16197         * misc/getttyent.c (getttynam): Likewise.
16198         (getttyent): Likewise.
16199         (skip): Likewise.
16200         (value): Likewise.
16201         * misc/getusershell.c (initshells): Likewise.
16202         * misc/syslog.c (__vsyslog_chk): Likewise.
16203         * misc/ttyslot.c (ttyslot): Likewise.
16204         * nis/nis_hash.c (__nis_hash): Likewise.
16205         * posix/fnmatch_loop.c (FCT): Likewise.
16206         * posix/getconf.c (print_all): Likewise.
16207         (main): Likewise.
16208         * posix/getopt.c (exchange): Likewise.
16209         * posix/glob.c (globfree): Likewise.
16210         (prefix_array): Likewise.
16211         (__glob_pattern_type): Likewise.
16212         * resolv/arpa/nameser.h (NS_GET16): Likewise.
16213         (NS_GET32): Likewise.
16214         (NS_PUT16): Likewise.
16215         (NS_PUT32): Likewise.
16216         * resolv/gethnamaddr.c (getanswer): Likewise.
16217         (gethostbyname2): Likewise.
16218         (gethostbyaddr): Likewise.
16219         (_gethtent): Likewise.
16220         (_gethtbyname2): Likewise.
16221         (_gethtbyaddr): Likewise.
16222         * resolv/ns_print.c (dst_s_get_int16): Likewise.
16223         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
16224         * resolv/res_init.c (__res_vinit): Likewise.
16225         (net_mask): Likewise.
16226         * resolv/res_mkquery.c (outchar): Likewise.
16227         (PRINT): Likewise.
16228         * stdio-common/printf_fp.c (outchar): Likewise.
16229         (PRINT): Likewise.
16230         * stdio-common/printf_fphex.c (outchar): Likewise.
16231         (PRINT): Likewise.
16232         * stdio-common/printf_size.c (outchar): Likewise.
16233         (PRINT): Likewise.
16234         * stdio-common/test_rdwr.c (main): Likewise.
16235         * stdio-common/tfformat.c (matches): Likewise.
16236         * stdio-common/vfprintf.c (outchar): Likewise.
16237         (printf_unknown): Likewise.
16238         (buffered_vfprintf): Likewise.
16239         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
16240         * stdio-common/xbug.c (AppendToBuffer): Likewise.
16241         (ReadFile): Likewise.
16242         * stdlib/qsort.c (SWAP): Likewise.
16243         (_quicksort): Likewise.
16244         * stdlib/setenv.c (__add_to_environ): Likewise.
16245         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
16246         * stdlib/strtol_l.c (__strtol_l): Likewise.
16247         * stdlib/tst-strtod.c (main): Likewise.
16248         * stdlib/tst-strtol.c (main): Likewise.
16249         * stdlib/tst-strtoll.c (main): Likewise.
16250         * string/bits/string2.h (__strcmp_cc): Likewise.
16251         (__strcmp_cg): Likewise.
16252         (__strcspn_c1): Likewise.
16253         (__strcspn_c2): Likewise.
16254         (__strcspn_c3): Likewise.
16255         (__strspn_c1): Likewise.
16256         (__strspn_c2): Likewise.
16257         (__strspn_c3): Likewise.
16258         (__strsep_1c): Likewise.
16259         (__strsep_2c): Likewise.
16260         (__strsep_3c): Likewise.
16261         * string/memccpy.c (__memccpy): Likewise.
16262         * string/stpcpy.c (__stpcpy): Likewise.
16263         * string/strcmp.c (strcmp): Likewise.
16264         * string/strrchr.c (strrchr): Likewise.
16265         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
16266         Likewise.
16267         * sysdeps/mach/hurd/getcwd.c
16268         (_hurd_canonicalize_directory_name_internal): Likewise.
16269         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
16270         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
16271         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
16272         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
16273         Likewise, in both definitions.
16274         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
16275         definitions.
16276         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
16277         64] (__bswap_64): Likewise.
16278         * time/test_time.c (main): Likewise.
16279         * time/tzfile.c (__tzfile_read): Likewise.
16280         (__tzfile_compute): Likewise.
16281         * time/tzset.c (__tzset_parse_tz): Likewise.
16282         (tzset_internal): Likewise.
16283         (compute_change): Likewise.
16284         * wcsmbs/wcscat.c (__wcscat): Likewise.
16285         * wcsmbs/wcschr.c (wcschr): Likewise.
16286         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16287         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16288         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16289         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
16290         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16291         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16292         * wcsmbs/wmemchr.c (wmemchr): Likewise.
16293         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16294         * wcsmbs/wmemset.c (wmemset): Likewise.
16295
16296 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
16297
16298         * scripts/config.guess: Update to version 2013-05-16.
16299         * scripts/config.sub: Update to version 2013-04-24.
16300         * scripts/install-sh: Update to version 2011-11-20.07.
16301         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
16302         * scripts/move-if-change: Update to version 2012-01-06 07:23.
16303
16304 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
16305
16306         * debug/fgetws_u_chk.c: Fix leading whitespaces.
16307         * elf/sln.c: Likewise.
16308         * hurd/hurd/ioctl.h: Likewise.
16309         * hurd/hurdmalloc.c: Likewise.
16310         * hurd/xattr.c: Likewise.
16311         * include/shlib-compat.h: Likewise.
16312         * inet/ruserpass.c: Likewise.
16313         * libio/iofgets_u.c: Likewise.
16314         * libio/iofgetws_u.c: Likewise.
16315         * locale/programs/ld-identification.c: Likewise.
16316         * locale/programs/ld-time.c: Likewise.
16317         * mach/msg-destroy.c: Likewise.
16318         * nss/nss_files/files-netgrp.c: Likewise.
16319         * resolv/res_data.c: Likewise.
16320         * soft-fp/op-1.h: Likewise.
16321         * soft-fp/op-2.h: Likewise.
16322         * soft-fp/op-4.h: Likewise.
16323         * soft-fp/op-common.h: Likewise.
16324         * stdio-common/printf_fphex.c: Likewise.
16325         * stdlib/strtod_l.c: Likewise.
16326         * sunrpc/rpc/clnt.h: Likewise.
16327         * sysdeps/generic/framestate.c: Likewise.
16328         * sysdeps/i386/bsd-_setjmp.S: Likewise.
16329         * sysdeps/i386/bsd-setjmp.S: Likewise.
16330         * sysdeps/i386/__longjmp.S: Likewise.
16331         * sysdeps/i386/setjmp.S: Likewise.
16332         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16333         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16334         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16335         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16336         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16337         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16338         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16339         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16340         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16341         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
16342         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16343         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16344         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16345         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16346         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16347         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16348         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16349         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
16350         * sysdeps/ieee754/support.c: Likewise.
16351         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
16352         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
16353         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
16354         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
16355         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
16356         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
16357         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
16358         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
16359         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
16360         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
16361         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
16362         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
16363         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
16364         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
16365         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
16366         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
16367         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
16369
16370 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
16371
16372         * posix/transbug.c: Remove executable mode.
16373
16374 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
16375
16376         * crypt/speeds.c: Remove trailing whitespace.
16377         * dlfcn/default.c: Likewise.
16378         * elf/ifuncdep2.c: Likewise.
16379         * elf/ifuncmain1.c: Likewise.
16380         * elf/ifuncmain1vis.c: Likewise.
16381         * elf/testobj.h: Likewise.
16382         * elf/tst-stackguard1.c: Likewise.
16383         * gmon/sys/gmon.h: Likewise.
16384         * hurd/hurdmsg.c: Likewise.
16385         * hurd/new-fd.c: Likewise.
16386         * hurd/ports-get.c: Likewise.
16387         * iconvdata/ibm1008_420.c: Likewise.
16388         * inet/tst-getni1.c: Likewise.
16389         * inet/tst-getni2.c: Likewise.
16390         * libio/ioungetc.c: Likewise.
16391         * libio/wfiledoalloc.c: Likewise.
16392         * manual/libm-err-tab.pl: Likewise.
16393         * math/w_dremf.c: Likewise.
16394         * misc/ftruncate.c: Likewise.
16395         * posix/bug-glob2.c: Likewise.
16396         * posix/tst-pcre.c: Likewise.
16397         * posix/wait4.c: Likewise.
16398         * resolv/README: Likewise.
16399         * resolv/res_debug.h: Likewise.
16400         * resolv/tst-inet_ntop.c: Likewise.
16401         * setjmp/bug269-setjmp.c: Likewise.
16402         * soft-fp/extended.h: Likewise.
16403         * soft-fp/op-1.h: Likewise.
16404         * soft-fp/op-2.h: Likewise.
16405         * soft-fp/op-4.h: Likewise.
16406         * soft-fp/op-8.h: Likewise.
16407         * soft-fp/testit.c: Likewise.
16408         * stdio-common/bug16.c: Likewise.
16409         * stdlib/random.c: Likewise.
16410         * sunrpc/rpcsvc/rquota.x: Likewise.
16411         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
16412         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16413         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16414         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16415         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16416         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16417         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16418         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16419         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16420         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16421         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16422         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
16423         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16424         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16425         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16426         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16427         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16428         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16429         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16430         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16431         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16432         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16433         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
16434         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16435         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16436         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16437         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
16438         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16439         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16440         * sysdeps/ieee754/s_lib_version.c: Likewise.
16441         * sysdeps/mach/hurd/check_fds.c: Likewise.
16442         * sysdeps/mach/hurd/getsockname.c: Likewise.
16443         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
16444         * sysdeps/mach/hurd/recvfrom.c: Likewise.
16445         * sysdeps/powerpc/bits/link.h: Likewise.
16446         * sysdeps/powerpc/dl-procinfo.c: Likewise.
16447         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
16448         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
16449         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
16450         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
16451         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16452         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
16453         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
16454         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
16455         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16456         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
16457         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
16458         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
16459         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16460         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16461         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16462         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
16463         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
16464         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16465         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16466         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16467         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
16468         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
16469         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
16470         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
16471         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
16472         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
16473         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16474         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16475         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
16476         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
16477         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
16478         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
16479         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16480         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
16481         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
16482         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
16483         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
16484         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
16485         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
16486         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
16487         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
16488         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
16489         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
16490         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
16491         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
16492         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
16493         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
16494         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
16495         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
16496         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16497         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16498         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
16499         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
16500         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
16501         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
16502         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
16503         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
16504         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
16505         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
16506         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
16507         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
16508         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
16509         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
16510         * sysdeps/powerpc/sysdep.h: Likewise.
16511         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16512         * sysdeps/s390/s390-64/sub_n.S: Likewise.
16513         * sysdeps/sh/dl-trampoline.S: Likewise.
16514         * sysdeps/sh/memset.S: Likewise.
16515         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
16516         * sysdeps/sh/strlen.S: Likewise.
16517         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
16518         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
16519         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
16520         * sysdeps/sparc/sparc32/rem.S: Likewise.
16521         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
16522         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
16523         * sysdeps/sparc/sparc32/strchr.S: Likewise.
16524         * sysdeps/sparc/sparc32/udiv.S: Likewise.
16525         * sysdeps/sparc/sparc32/urem.S: Likewise.
16526         * sysdeps/sparc/sparc64/add_n.S: Likewise.
16527         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
16528         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
16529         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
16530         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
16531         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
16532         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
16533         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
16534         * sysdeps/unix/bsd/times.c: Likewise.
16535         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
16536         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
16537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
16538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
16539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
16540         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
16541         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
16542         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
16543         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
16544         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
16545         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
16546         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
16547         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
16548         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
16549         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
16550         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
16551         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
16552         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
16553         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
16554         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
16555         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
16556         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
16557         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
16558         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
16559         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
16560         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
16561         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
16562         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16563         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
16564         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
16565         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
16566         * sysdeps/x86_64/strcspn.S: Likewise.
16567
16568 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16569
16570         * locale/C-translit.h: Revert #include <stdint.h> because this is a
16571         generated file.  Regenerate properly from gen-translit.pl.
16572         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
16573         locale/C-translit.h.
16574
16575 2013-06-05  Andreas Schwab  <schwab@suse.de>
16576
16577         [BZ #15100]
16578         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
16579         week as 6 instead of -1.
16580         * time/tst-strptime.c (day_tests): Add test case.
16581
16582 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
16583
16584         * sysdeps/generic/math_private.h
16585         (libc_feholdexcept_setround_53bit): Replace with
16586         libc_feholdsetround_53bit.
16587         (libc_feupdateenv_53bit): Replace with
16588         libc_feresetround_53bit.
16589         (SET_RESTORE_ROUND_53BIT): Adjust.
16590
16591 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
16592
16593         * string/test-strchrnul.c: Add copyright header.
16594
16595         * posix/tst-getaddrinfo4.c: Increase test timeout.
16596
16597 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
16598
16599         [BZ #15536]
16600         * math/libm-test.inc (MAX_EXP): Remove
16601         (MIN_EXP): Define.
16602         (ulp): Use MIN_EXP - MANT_DIG.
16603         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
16604
16605 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
16606
16607         * po/be.po: Revert last change.
16608         * po/zh_CN.po: Likewise.
16609         * po/header.pot: Likewise.
16610
16611 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
16612
16613         * Makefile ($(common-objpfx)linkobj/libc.so): Define
16614         link-libc-deps to empty as target-specific variable.
16615         * Makerules (link-libc-args): New variable.
16616         (libc-for-link): Likewise.
16617         (link-libc-deps): Likewise.
16618         (lib%.so): Depend on $(link-libc-deps).  Link with
16619         $(link-libc-args).
16620         (build-module): Link with $(link-libc-args).
16621         (build-module-asneeded): Likewise.
16622         (build-module-helper-objlist): Filter out $(link-libc-deps) from
16623         list of objects.
16624         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
16625         target-specific variable.
16626         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
16627         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
16628         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
16629         libc.
16630         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
16631         libc and ld.so.
16632         ($(objpfx)libpcprofile.so): Likewise.
16633         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
16634         libc_nonshared.a.
16635         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
16636         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
16637         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
16638         $(link-libc-deps).
16639         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
16640         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
16641         * login/Makefile ($(objpfx)libutil.so): Likewise.
16642         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
16643         * math/Makefile ($(objpfx)libm.so): Likewise.
16644         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
16645         $(objpfx)libnsl.so): Define libc-for-link as target-specific
16646         variable instead of depending directly on libc.
16647         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
16648         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
16649         $(link-libc-deps).
16650         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
16651         libc.
16652         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
16653         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
16654         ($(objpfx)libanl.so): Likewise.
16655         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
16656         ld.so.
16657         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
16658         $(link-libc-deps).
16659         * sysdeps/i386/fpu/Makefile: Remove file.
16660         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
16661         ($(objpfx)libm.so): Remove dependency on ld.so.
16662
16663 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
16664
16665         [BZ # 15553]
16666         * nis/yp_xdr.c (XDRMAXNAME): Define.
16667         (XDRMAXRECORD): Define.
16668         (xdr_domainname): Use XDRMAXNAME.
16669         (xdr_mapname): Likewise.
16670         (xdr_peername): Likewise.
16671         (xdr_keydat): Use XDRMAXRECORD.
16672         (xdr_valdat): Likewise.
16673
16674 2013-05-30  Jeff Law  <law@redhat.com>
16675
16676         [BZ #14256]
16677         * manual/errno.texi (ESTALE): Update to account for more than
16678         just NFS file systems.
16679         * sysdeps/gnu/errlist.c: Regenerated.
16680
16681 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
16682
16683         [BZ #15465]
16684         * elf/Makefile (tests): Add tst-null-argv.
16685         (modules-names):  Add tst-null-argv-lib.
16686         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
16687         (tst-null-argv-ENV): Set environment for tst-null-argv.
16688         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
16689         (RTLD_PROGNAME): New macro.
16690         * elf/tst-null-argv.c: New test case.
16691         * elf/tst-null-argv-lib.c: Library for test case.
16692         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
16693         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
16694         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
16695         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
16696         * elf/dl-init.c (call_init): Likewise.
16697         (_dl_init): Likewise.
16698         * elf/dl-load.c (print_search_path): Likewise.
16699         (_dl_map_object): Likewise.
16700         * elf/dl-lookup.c (do_lookup_x): Likewise.
16701         (add_dependency): Likewise.
16702         (_dl_lookup_symbol_x): Likewise.
16703         (_dl_debug_bindings): Likewise.
16704         * elf/dl-open.c (_dl_show_scope): Likewise.
16705         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
16706         * elf/dl-version.c (match_symbol): Likewise.
16707         (_dl_check_map_versions): Likewise.
16708         * elf/rtld.c (dl_main): Likewise.
16709         (print_unresolved): Use RTLD_PROGNAME.
16710         (print_missing_version): Likewise.
16711         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16712         (elf_machine_rela): Likewise.
16713         * sysdeps/powerpc/powerpc32/dl-machine.c
16714         (__process_machine_rela): Likewise.
16715         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16716         Likewise.
16717         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16718         Likewise.
16719         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16720         Likewise.
16721         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16722         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16723         Likewise.
16724         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16725         Likewise.
16726         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16727
16728 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
16729
16730         * po/be.po: Add descriptive title.
16731         * po/zh_CN.po: Likewise.
16732         * po/header.pot: Likewise.
16733
16734 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
16735
16736         * locale/programs/locarchive.c (create_archive): Inlucde fname in
16737         error message.
16738         (enlarge_archive): Likewise.
16739
16740 2013-05-28  Ben North  <ben@redfrontdoor.org>
16741
16742         * manual/arith.texi (frexp): It is the magnitude of the return
16743         value which lies in [0.5, 1), not the return value itself.
16744
16745 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16746
16747         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16748
16749 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
16750
16751         * stdio-common/bug26.c (main): Correct fscanf template.
16752
16753         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
16754         declare _dl_skip_args.
16755
16756         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
16757         Don't declare.
16758
16759         * manual/platform.texi: Add missing @end deftypefun.
16760
16761 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16762
16763         [BZ #15529]
16764         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
16765         bit of mantissa of 2^16382.
16766         * math/libm-test.inc (hypot_test_data): Add more tests.
16767
16768         * math/libm-test.inc: Add drem and pow10 to list of tested
16769         functions.
16770         (pow10_test): New function.
16771         (drem_test): Likewise.
16772         (drem_test_tonearest): Likewise.
16773         (drem_test_towardzero): Likewise.
16774         (drem_test_downward): Likewise.
16775         (drem_test_upward): Likewise.
16776         (main): Call the new functions.
16777
16778         * math/libm-test.inc (finite_test_data): Remove.
16779         (finite_test): Run tests from isfinite_test_data.
16780         (gamma_test_data): Remove.
16781         (gamma_test): Run tests from lgamma_test_data.
16782         * sysdeps/i386/fpu/libm-test-ulps: Update.
16783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16784
16785 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16786
16787         * manual/platform.texi: Add PowerPC PPR function set documentation.
16788         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
16789         implementation.
16790
16791 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
16792
16793         * math/libm-test.inc (MAX_EXP): Define.
16794         (ULPDIFF): Define.
16795         (ulp): New function.
16796         (check_float_internal): Use ULPDIFF.
16797         (cpow_test): Disable failing test.
16798         (check_ulp): Test ulp() implemetnation.
16799         (main): Call check_ulp before starting tests.
16800
16801 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16802
16803         * math/gen-libm-test.pl (generate_testfile): Do not handle
16804         START_DATA and END_DATA.
16805         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
16806         END_DATA.
16807         (acos_tonearest_test_data): Likewise.
16808         (acos_towardzero_test_data): Likewise.
16809         (acos_downward_test_data): Likewise.
16810         (acos_upward_test_data): Likewise.
16811         (acosh_test_data): Likewise.
16812         (asin_test_data): Likewise.
16813         (asin_tonearest_test_data): Likewise.
16814         (asin_towardzero_test_data): Likewise.
16815         (asin_downward_test_data): Likewise.
16816         (asin_upward_test_data): Likewise.
16817         (asinh_test_data): Likewise.
16818         (atan_test_data): Likewise.
16819         (atanh_test_data): Likewise.
16820         (atan2_test_data): Likewise.
16821         (cabs_test_data): Likewise.
16822         (cacos_test_data): Likewise.
16823         (cacosh_test_data): Likewise.
16824         (carg_test_data): Likewise.
16825         (casin_test_data): Likewise.
16826         (casinh_test_data): Likewise.
16827         (catan_test_data): Likewise.
16828         (catanh_test_data): Likewise.
16829         (cbrt_test_data): Likewise.
16830         (ccos_test_data): Likewise.
16831         (ccosh_test_data): Likewise.
16832         (ceil_test_data): Likewise.
16833         (cexp_test_data): Likewise.
16834         (cimag_test_data): Likewise.
16835         (clog_test_data): Likewise.
16836         (clog10_test_data): Likewise.
16837         (conj_test_data): Likewise.
16838         (copysign_test_data): Likewise.
16839         (cos_test_data): Likewise.
16840         (cos_tonearest_test_data): Likewise.
16841         (cos_towardzero_test_data): Likewise.
16842         (cos_downward_test_data): Likewise.
16843         (cos_upward_test_data): Likewise.
16844         (cosh_test_data): Likewise.
16845         (cosh_tonearest_test_data): Likewise.
16846         (cosh_towardzero_test_data): Likewise.
16847         (cosh_downward_test_data): Likewise.
16848         (cosh_upward_test_data): Likewise.
16849         (cpow_test_data): Likewise.
16850         (cproj_test_data): Likewise.
16851         (creal_test_data): Likewise.
16852         (csin_test_data): Likewise.
16853         (csinh_test_data): Likewise.
16854         (csqrt_test_data): Likewise.
16855         (ctan_test_data): Likewise.
16856         (ctan_tonearest_test_data): Likewise.
16857         (ctan_towardzero_test_data): Likewise.
16858         (ctan_downward_test_data): Likewise.
16859         (ctan_upward_test_data): Likewise.
16860         (ctanh_test_data): Likewise.
16861         (ctanh_tonearest_test_data): Likewise.
16862         (ctanh_towardzero_test_data): Likewise.
16863         (ctanh_downward_test_data): Likewise.
16864         (ctanh_upward_test_data): Likewise.
16865         (erf_test_data): Likewise.
16866         (erfc_test_data): Likewise.
16867         (exp_test_data): Likewise.
16868         (exp_tonearest_test_data): Likewise.
16869         (exp_towardzero_test_data): Likewise.
16870         (exp_downward_test_data): Likewise.
16871         (exp_upward_test_data): Likewise.
16872         (exp10_test_data): Likewise.
16873         (exp2_test_data): Likewise.
16874         (expm1_test_data): Likewise.
16875         (fabs_test_data): Likewise.
16876         (fdim_test_data): Likewise.
16877         (finite_test_data): Likewise.
16878         (floor_test_data): Likewise.
16879         (fma_test_data): Likewise.
16880         (fma_towardzero_test_data): Likewise.
16881         (fma_downward_test_data): Likewise.
16882         (fma_upward_test_data): Likewise.
16883         (fmax_test_data): Likewise.
16884         (fmin_test_data): Likewise.
16885         (fmod_test_data): Likewise.
16886         (fpclassify_test_data): Likewise.
16887         (frexp_test_data): Likewise.
16888         (gamma_test_data): Likewise.
16889         (hypot_test_data): Likewise.
16890         (ilogb_test_data): Likewise.
16891         (isfinite_test_data): Likewise.
16892         (isgreater_test_data): Likewise.
16893         (isgreaterequal_test_data): Likewise.
16894         (isinf_test_data): Likewise.
16895         (isless_test_data): Likewise.
16896         (islessequal_test_data): Likewise.
16897         (islessgreater_test_data): Likewise.
16898         (isnan_test_data): Likewise.
16899         (isnormal_test_data): Likewise.
16900         (issignaling_test_data): Likewise.
16901         (isunordered_test_data): Likewise.
16902         (j0_test_data): Likewise.
16903         (j1_test_data): Likewise.
16904         (jn_test_data): Likewise.
16905         (ldexp_test_data): Likewise.
16906         (lgamma_test_data): Likewise.
16907         (lrint_test_data): Likewise.
16908         (lrint_tonearest_test_data): Likewise.
16909         (lrint_towardzero_test_data): Likewise.
16910         (lrint_downward_test_data): Likewise.
16911         (lrint_upward_test_data): Likewise.
16912         (llrint_test_data): Likewise.
16913         (llrint_tonearest_test_data): Likewise.
16914         (llrint_towardzero_test_data): Likewise.
16915         (llrint_downward_test_data): Likewise.
16916         (llrint_upward_test_data): Likewise.
16917         (log_test_data): Likewise.
16918         (log10_test_data): Likewise.
16919         (log1p_test_data): Likewise.
16920         (log2_test_data): Likewise.
16921         (logb_test_data): Likewise.
16922         (logb_downward_test_data): Likewise.
16923         (lround_test_data): Likewise.
16924         (llround_test_data): Likewise.
16925         (modf_test_data): Likewise.
16926         (nearbyint_test_data): Likewise.
16927         (nextafter_test_data): Likewise.
16928         (nexttoward_test_data): Likewise.
16929         (pow_test_data): Likewise.
16930         (pow_tonearest_test_data): Likewise.
16931         (pow_towardzero_test_data): Likewise.
16932         (pow_downward_test_data): Likewise.
16933         (pow_upward_test_data): Likewise.
16934         (remainder_test_data): Likewise.
16935         (remainder_tonearest_test_data): Likewise.
16936         (remainder_towardzero_test_data): Likewise.
16937         (remainder_downward_test_data): Likewise.
16938         (remainder_upward_test_data): Likewise.
16939         (remquo_test_data): Likewise.
16940         (rint_test_data): Likewise.
16941         (rint_tonearest_test_data): Likewise.
16942         (rint_towardzero_test_data): Likewise.
16943         (rint_downward_test_data): Likewise.
16944         (rint_upward_test_data): Likewise.
16945         (round_test_data): Likewise.
16946         (scalb_test_data): Likewise.
16947         (scalbn_test_data): Likewise.
16948         (scalbln_test_data): Likewise.
16949         (signbit_test_data): Likewise.
16950         (sin_test_data): Likewise.
16951         (sin_tonearest_test_data): Likewise.
16952         (sin_towardzero_test_data): Likewise.
16953         (sin_downward_test_data): Likewise.
16954         (sin_upward_test_data): Likewise.
16955         (sincos_test_data): Likewise.
16956         (sinh_test_data): Likewise.
16957         (sinh_tonearest_test_data): Likewise.
16958         (sinh_towardzero_test_data): Likewise.
16959         (sinh_downward_test_data): Likewise.
16960         (sinh_upward_test_data): Likewise.
16961         (sqrt_test_data): Likewise.
16962         (tan_test_data): Likewise.
16963         (tan_tonearest_test_data): Likewise.
16964         (tan_towardzero_test_data): Likewise.
16965         (tan_downward_test_data): Likewise.
16966         (tan_upward_test_data): Likewise.
16967         (tanh_test_data): Likewise.
16968         (tgamma_test_data): Likewise.
16969         (trunc_test_data): Likewise.
16970         (y0_test_data): Likewise.
16971         (y1_test_data): Likewise.
16972         (yn_test_data): Likewise.
16973         (significand_test_data): Likewise.
16974
16975         * math/gen-libm-test.pl (@functions): Remove variable.
16976         (generate_testfile): Don't handle START and END lines.
16977         * math/libm-test.inc (START): New macro.
16978         (END): Likewise.
16979         (END_COMPLEX): Likewise.
16980         (acos_test): Use END macro without arguments.
16981         (acos_test_tonearest): Likewise.
16982         (acos_test_towardzero): Likewise.
16983         (acos_test_downward): Likewise.
16984         (acos_test_upward): Likewise.
16985         (acosh_test): Likewise.
16986         (asin_test): Likewise.
16987         (asin_test_tonearest): Likewise.
16988         (asin_test_towardzero): Likewise.
16989         (asin_test_downward): Likewise.
16990         (asin_test_upward): Likewise.
16991         (asinh_test): Likewise.
16992         (atan_test): Likewise.
16993         (atanh_test): Likewise.
16994         (atan2_test): Likewise.
16995         (cabs_test): Likewise.
16996         (cacos_test): Use END_COMPLEX macro without arguments.
16997         (cacosh_test): Likewise.
16998         (carg_test): Use END macro without arguments.
16999         (casin_test): Use END_COMPLEX macro without arguments.
17000         (casinh_test): Likewise.
17001         (catan_test): Likewise.
17002         (catanh_test): Likewise.
17003         (cbrt_test): Use END macro without arguments.
17004         (ccos_test): Use END_COMPLEX macro without arguments.
17005         (ccosh_test): Likewise.
17006         (ceil_test): Use END macro without arguments.
17007         (cexp_test): Use END_COMPLEX macro without arguments.
17008         (cimag_test): Use END macro without arguments.
17009         (clog_test): Use END_COMPLEX macro without arguments.
17010         (clog10_test): Likewise.
17011         (conj_test): Likewise.
17012         (copysign_test): Use END macro without arguments.
17013         (cos_test): Likewise.
17014         (cos_test_tonearest): Likewise.
17015         (cos_test_towardzero): Likewise.
17016         (cos_test_downward): Likewise.
17017         (cos_test_upward): Likewise.
17018         (cosh_test): Likewise.
17019         (cosh_test_tonearest): Likewise.
17020         (cosh_test_towardzero): Likewise.
17021         (cosh_test_downward): Likewise.
17022         (cosh_test_upward): Likewise.
17023         (cpow_test): Use END_COMPLEX macro without arguments.
17024         (cproj_test): Likewise.
17025         (creal_test): Use END macro without arguments.
17026         (csin_test): Use END_COMPLEX macro without arguments.
17027         (csinh_test): Likewise.
17028         (csqrt_test): Likewise.
17029         (ctan_test): Likewise.
17030         (ctan_test_tonearest): Likewise.
17031         (ctan_test_towardzero): Likewise.
17032         (ctan_test_downward): Likewise.
17033         (ctan_test_upward): Likewise.
17034         (ctanh_test): Likewise.
17035         (ctanh_test_tonearest): Likewise.
17036         (ctanh_test_towardzero): Likewise.
17037         (ctanh_test_downward): Likewise.
17038         (ctanh_test_upward): Likewise.
17039         (erf_test): Use END macro without arguments.
17040         (erfc_test): Likewise.
17041         (exp_test): Likewise.
17042         (exp_test_tonearest): Likewise.
17043         (exp_test_towardzero): Likewise.
17044         (exp_test_downward): Likewise.
17045         (exp_test_upward): Likewise.
17046         (exp10_test): Likewise.
17047         (exp2_test): Likewise.
17048         (expm1_test): Likewise.
17049         (fabs_test): Likewise.
17050         (fdim_test): Likewise.
17051         (finite_test): Likewise.
17052         (floor_test): Likewise.
17053         (fma_test): Likewise.
17054         (fma_test_towardzero): Likewise.
17055         (fma_test_downward): Likewise.
17056         (fma_test_upward): Likewise.
17057         (fmax_test): Likewise.
17058         (fmin_test): Likewise.
17059         (fmod_test): Likewise.
17060         (fpclassify_test): Likewise.
17061         (frexp_test): Likewise.
17062         (gamma_test): Likewise.
17063         (hypot_test): Likewise.
17064         (ilogb_test): Likewise.
17065         (isfinite_test): Likewise.
17066         (isgreater_test): Likewise.
17067         (isgreaterequal_test): Likewise.
17068         (isinf_test): Likewise.
17069         (isless_test): Likewise.
17070         (islessequal_test): Likewise.
17071         (islessgreater_test): Likewise.
17072         (isnan_test): Likewise.
17073         (isnormal_test): Likewise.
17074         (issignaling_test): Likewise.
17075         (isunordered_test): Likewise.
17076         (j0_test): Likewise.
17077         (j1_test): Likewise.
17078         (jn_test): Likewise.
17079         (ldexp_test): Likewise.
17080         (lgamma_test): Likewise.
17081         (lrint_test): Likewise.
17082         (lrint_test_tonearest): Likewise.
17083         (lrint_test_towardzero): Likewise.
17084         (lrint_test_downward): Likewise.
17085         (lrint_test_upward): Likewise.
17086         (llrint_test): Likewise.
17087         (llrint_test_tonearest): Likewise.
17088         (llrint_test_towardzero): Likewise.
17089         (llrint_test_downward): Likewise.
17090         (llrint_test_upward): Likewise.
17091         (log_test): Likewise.
17092         (log10_test): Likewise.
17093         (log1p_test): Likewise.
17094         (log2_test): Likewise.
17095         (logb_test): Likewise.
17096         (logb_test_downward): Likewise.
17097         (lround_test): Likewise.
17098         (llround_test): Likewise.
17099         (modf_test): Likewise.
17100         (nearbyint_test): Likewise.
17101         (nextafter_test): Likewise.
17102         (nexttoward_test): Likewise.
17103         (pow_test): Likewise.
17104         (pow_test_tonearest): Likewise.
17105         (pow_test_towardzero): Likewise.
17106         (pow_test_downward): Likewise.
17107         (pow_test_upward): Likewise.
17108         (remainder_test): Likewise.
17109         (remainder_test_tonearest): Likewise.
17110         (remainder_test_towardzero): Likewise.
17111         (remainder_test_downward): Likewise.
17112         (remainder_test_upward): Likewise.
17113         (remquo_test): Likewise.
17114         (rint_test): Likewise.
17115         (rint_test_tonearest): Likewise.
17116         (rint_test_towardzero): Likewise.
17117         (rint_test_downward): Likewise.
17118         (rint_test_upward): Likewise.
17119         (round_test): Likewise.
17120         (scalb_test): Likewise.
17121         (scalbn_test): Likewise.
17122         (scalbln_test): Likewise.
17123         (signbit_test): Likewise.
17124         (sin_test): Likewise.
17125         (sin_test_tonearest): Likewise.
17126         (sin_test_towardzero): Likewise.
17127         (sin_test_downward): Likewise.
17128         (sin_test_upward): Likewise.
17129         (sincos_test): Likewise.
17130         (sinh_test): Likewise.
17131         (sinh_test_tonearest): Likewise.
17132         (sinh_test_towardzero): Likewise.
17133         (sinh_test_downward): Likewise.
17134         (sinh_test_upward): Likewise.
17135         (sqrt_test): Likewise.
17136         (tan_test): Likewise.
17137         (tan_test_tonearest): Likewise.
17138         (tan_test_towardzero): Likewise.
17139         (tan_test_downward): Likewise.
17140         (tan_test_upward): Likewise.
17141         (tanh_test): Likewise.
17142         (tgamma_test): Likewise.
17143         (trunc_test): Likewise.
17144         (y0_test): Likewise.
17145         (y1_test): Likewise.
17146         (yn_test): Likewise.
17147         (significand_test): Likewise.
17148
17149 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
17150
17151         [BZ #15381]
17152         * libio/genops.c (_IO_no_init): Initialize wide struct info.
17153
17154 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17155
17156         [BZ #14894]
17157         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
17158         __ppc_mdoio and __ppc_mdoom.
17159         * manual/platform.texi: Document new functions __ppc_yield,
17160         __ppc_mdoio and __ppc_mdoom.
17161
17162 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
17163
17164         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
17165         (main): Mention "tls" pseudo-hwcap is legacy.
17166         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
17167
17168 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17169
17170         * math/gen-libm-test.pl (parse_args): Output only string of
17171         arguments as text for test name, not full call or descriptions of
17172         tests for extra outputs.
17173         (generate_testfile): Do not pass function name to parse_args.
17174         Generate this_func variable from START.
17175         * math/libm-test.inc (struct test_f_f_data): Rename test_name
17176         field to arg_str.
17177         (struct test_ff_f_data): Likewise.
17178         (test_ff_f_data_nexttoward): Likewise.
17179         (struct test_fi_f_data): Likewise.
17180         (struct test_fl_f_data): Likewise.
17181         (struct test_if_f_data): Likewise.
17182         (struct test_fff_f_data): Likewise.
17183         (struct test_c_f_data): Likewise.
17184         (struct test_f_f1_data): Likewise.  Remove field extra_name.
17185         (struct test_fF_f1_data): Likewise.
17186         (struct test_ffI_f1_data): Likewise.
17187         (struct test_c_c_data): Rename test_name field to arg_str.
17188         (struct test_cc_c_data): Likewise.
17189         (struct test_f_i_data): Likewise.
17190         (struct test_ff_i_data): Likewise.
17191         (struct test_f_l_data): Likewise.
17192         (struct test_f_L_data): Likewise.
17193         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
17194         and extra2_name.
17195         (COMMON_TEST_SETUP): New macro.
17196         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
17197         (COMMON_TEST_CLEANUP): Likewise.
17198         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
17199         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
17200         macros.
17201         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
17202         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
17203         macros.
17204         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
17205         (RUN_TEST_fff_f): Take argument string.  Call new setup and
17206         cleanup macros.
17207         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
17208         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
17209         macros.
17210         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
17211         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
17212         macros.
17213         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17214         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
17215         cleanup macros.
17216         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17217         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
17218         cleanup macros.
17219         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17220         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
17221         cleanup macros.
17222         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17223         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
17224         macros.
17225         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
17226         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
17227         macros.
17228         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
17229         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
17230         macros.
17231         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
17232         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
17233         cleanup macros.
17234         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
17235         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
17236         cleanup macros.
17237         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
17238         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
17239         macros.
17240         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
17241         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
17242         cleanup macros.
17243         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
17244         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
17245         macros.
17246         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
17247         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
17248         macros.
17249         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
17250         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
17251         cleanup macros.
17252         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
17253
17254 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
17255
17256         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
17257         to _sifields.sigfault.
17258         (si_addr_lsb): Define new macro.
17259         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17260         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17261         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
17262
17263 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
17264
17265         [BZ #15441]
17266         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
17267         returns -1.
17268         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
17269         null return -1.
17270         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
17271         loading the domain.
17272
17273 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17274
17275         * math/gen-libm-test.pl (parse_args): Do not include expected
17276         result in test name.
17277         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
17278         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17279         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17280         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17281         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17283
17284 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17285
17286         * benchtests/Makefile: Sort function entries.
17287
17288         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
17289         tanh, asinh, acosh, atanh.
17290         * benchtests/acos-inputs: New file.
17291         * benchtests/acosh-inputs: New file.
17292         * benchtests/asin-inputs: New file.
17293         * benchtests/asinh-inputs: New file.
17294         * benchtests/atanh-inputs: New file.
17295         * benchtests/cosh-inputs: New file.
17296         * benchtests/log-inputs: New file.
17297         * benchtests/sinh-inputs: New file.
17298         * benchtests/tanh-inputs: New file.
17299
17300 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
17301
17302         [BZ #15339]
17303         * posix/tst-getaddrinfo4.c: New test.
17304         * posix/Makefile (tests): Add it.
17305
17306 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17307
17308         [BZ #15339]
17309         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
17310         when no services were used.
17311         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
17312         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
17313
17314 2013-05-21  Andreas Schwab  <schwab@suse.de>
17315
17316         [BZ #15014]
17317         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
17318         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
17319         successful.
17320         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
17321         redundant variable declarations and reallocation of buffer when
17322         parsing as IPv6 address.  Always set NSS status when called from
17323         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
17324         buffer too small.  Correct computation of needed size.
17325         * nss/Makefile (tests): Add test-digits-dots.
17326         * nss/test-digits-dots.c: New test.
17327
17328 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17329
17330         * benchtests/Makefile: Remove instructions for adding
17331         benchmark tests.
17332         * benchtests/README: New file to explain how to execute and
17333         enhance the benchmark tests.
17334
17335 2013-05-21  Andreas Schwab  <schwab@suse.de>
17336
17337         [BZ #15493]
17338         * setjmp/Makefile (tests): Add tst-sigsetjmp.
17339         * setjmp/tst-sigsetjmp.c: New test.
17340
17341 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17342
17343         * sysdeps/x86_64/memset.S (memset): New implementation.
17344         (__bzero): Likewise.
17345         (__memset_tail): New function.
17346
17347 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17348
17349         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
17350         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
17351         __memcpy_sse2_unaligned ifunc selection.
17352         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
17353         Add memcpy-sse2-unaligned.S.
17354         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
17355         Add: __memcpy_sse2_unaligned.
17356
17357 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
17358
17359         [BZ #15490]
17360         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
17361         math_force_eval before restoring floating-point envrionment.
17362         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
17363         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
17364         Likewise.
17365         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
17366         <math_private.h>.
17367         (__nearbyintl): Use math_force_eval before restoring
17368         floating-point environment.
17369         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
17370
17371         * math/gen-libm-test.pl (special_functions): Remove.
17372         (parse_args): Don't handle TEST_extra.  Handle functions with no
17373         return value.
17374         * math/libm-test.inc (struct test_sincos_data): Replace with
17375         struct test_fFF_11_data.
17376         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
17377         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
17378         (sincos_test_data): Change element type to struct
17379         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
17380         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
17381         RUN_TEST_LOOP_sincos.
17382         * math/README.libm-test: Don't mention special handling of
17383         individual functions.
17384         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
17385         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17386         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17387         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17388         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17390
17391         * math/gen-libm-test.pl (get_variable): Remove function.
17392         (parse_args): Don't show pointer parameters to call in test
17393         names.  Use "extra output N" in test names for extra outputs
17394         rather than naming variables.
17395
17396 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
17397
17398         [BZ #15488]
17399         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
17400         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
17401         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
17402         double tests.
17403         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
17404         disable.
17405         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
17406         check_long_double.
17407
17408         * math/gen-libm-test.pl (@tests): Remove variable.
17409         ($count): Likewise.
17410         (new_test): Remove function.
17411         (show_exceptions): New function.
17412         (special_functions): Use show_exceptions instead of new_test.
17413         (parse_args): Likewise.
17414         (generate_testfile): Pass only function name in generated call to
17415         print_max_error or print_complex_max_error.
17416         (get_ulps): Do not handle complex tests specially.
17417         (output_test): Rename to ...
17418         (get_all_ulps_for_test): ... this.  Return a string rather than
17419         printing to a file.  Require ulps to be present.
17420         (output_ulps): Generate arrays rather than #defines.
17421         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
17422         (struct ulp_data): New type.
17423         (BUILD_COMPLEX_ULP): Remove macro.
17424         (compare_ulp_data): New function.
17425         (find_ulps): Likewise.
17426         (find_test_ulps): Likewise.
17427         (find_function_ulps): Likewise.
17428         (find_complex_function_ulps): Likewise.
17429         (print_max_error): Determine allowed ulps using
17430         find_function_ulps.
17431         (print_complex_max_error): Determine allowed ulps using
17432         find_complex_function_ulps.
17433         (check_float_internal): Determine max ulps using find_test_ulps.
17434         (check_float): Do not take max_ulp parameter.  Update call to
17435         check_float_internal.
17436         (check_complex): Likewise.
17437         (check_int): Do not take max_ulp parameter.
17438         (check_long): Likewise.
17439         (check_bool): Likewise.
17440         (check_longlong): Likewise.
17441         (struct test_f_f_data): Remove max_ulp field.
17442         (struct test_ff_f_data): Likewise.
17443         (struct test_ff_f_data_nexttoward): Likewise.
17444         (struct test_fi_f_data): Likewise.
17445         (struct test_fl_f_data): Likewise.
17446         (struct test_if_f_data): Likewise.
17447         (struct test_fff_f_data): Likewise.
17448         (struct test_c_f_data): Likewise.
17449         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
17450         (struct test_fF_f1_data): Likewise.
17451         (struct test_ffI_f1_data): Likewise.
17452         (struct test_c_c_data): Remove max_ulp field.
17453         (struct test_cc_c_data): Likewise.
17454         (struct test_f_i_data): Likewise.
17455         (struct test_ff_i_data): Likewise.
17456         (struct test_f_l_data): Likewise.
17457         (struct test_f_L_data): Likewise.
17458         (struct test_sincos_data): Likewise.
17459         (RUN_TEST_f_f): Do not handle ulps.
17460         (RUN_TEST_LOOP_f_f): Likewise.
17461         (RUN_TEST_2_f): Likewise.
17462         (RUN_TEST_LOOP_2_f): Likewise.
17463         (RUN_TEST_fff_f): Likewise.
17464         (RUN_TEST_LOOP_fff_f): Likewise.
17465         (RUN_TEST_c_f): Likewise.
17466         (RUN_TEST_LOOP_c_f): Likewise.
17467         (RUN_TEST_f_f1): Likewise.
17468         (RUN_TEST_LOOP_f_f1): Likewise.
17469         (RUN_TEST_fF_f1): Likewise.
17470         (RUN_TEST_LOOP_fF_f1): Likewise.
17471         (RUN_TEST_fI_f1): Likewise.
17472         (RUN_TEST_LOOP_fI_f1): Likewise.
17473         (RUN_TEST_ffI_f1): Likewise.
17474         (RUN_TEST_LOOP_ffI_f1): Likewise.
17475         (RUN_TEST_c_c): Likewise.
17476         (RUN_TEST_LOOP_c_c): Likewise.
17477         (RUN_TEST_cc_c): Likewise.
17478         (RUN_TEST_LOOP_cc_c): Likewise.
17479         (RUN_TEST_f_i): Likewise.
17480         (RUN_TEST_LOOP_f_i): Likewise.
17481         (RUN_TEST_f_i_tg): Likewise.
17482         (RUN_TEST_LOOP_f_i_tg): Likewise.
17483         (RUN_TEST_ff_i_tg): Likewise.
17484         (RUN_TEST_LOOP_ff_i_tg): Likewise.
17485         (RUN_TEST_f_b): Likewise.
17486         (RUN_TEST_LOOP_f_b): Likewise.
17487         (RUN_TEST_f_b_tg): Likewise.
17488         (RUN_TEST_LOOP_f_b_tg): Likewise.
17489         (RUN_TEST_f_l): Likewise.
17490         (RUN_TEST_LOOP_f_l): Likewise.
17491         (RUN_TEST_f_L): Likewise.
17492         (RUN_TEST_LOOP_f_L): Likewise.
17493         (RUN_TEST_sincos): Likewise.
17494         (RUN_TEST_LOOP_sincos): Likewise.
17495
17496 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
17497
17498         [BZ #15480]
17499         [BZ #15485]
17500         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
17501         main case of finite arguments, set rounding mode to FE_TONEAREST
17502         and discard exceptions.
17503         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
17504         exceptions.
17505         (remainder_tonearest_test_data): New variable.
17506         (remainder_test_tonearest): New function.
17507         (remainder_towardzero_test_data): New variable.
17508         (remainder_test_towardzero): New function.
17509         (remainder_downward_test_data): New variable.
17510         (remainder_test_downward): New function.
17511         (remainder_upward_test_data): New variable.
17512         (remainder_test_upward): New function.
17513         (main): Call the new test functions.
17514
17515         * math/libm-test.inc (struct test_f_f1_data): Remove field
17516         extra_init.
17517         (struct test_fF_f1_data): Likewise.
17518         (struct test_ffI_f1_data): Likewise.
17519         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
17520         based on value of EXTRA_EXPECTED.
17521         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17522         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
17523         EXTRA_VAR based on value of EXTRA_EXPECTED.
17524         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17525         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
17526         EXTRA_VAR based on value of EXTRA_EXPECTED.
17527         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17528         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
17529         EXTRA_VAR based on value of EXTRA_EXPECTED.
17530         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17531         * math/gen-libm-test.pl (parse_args): Don't output initializers
17532         for extra output values.
17533
17534         * math/libm-test.inc (check_int): Expect result to be exactly
17535         equal to expected value and do not handle ulps.
17536         (check_long): Likewise.
17537         (check_longlong): Likewise.
17538
17539         * math/libm-test.inc (ceil_test_data): Test for "inexact"
17540         exceptions.
17541         (cimag_test_data): Likewise.
17542         (conj_test_data): Likewise.
17543         (copysign_test_data): Likewise.
17544         (cproj_test_data): Likewise.
17545         (creal_test_data): Likewise.
17546         (fabs_test_data): Likewise.
17547         (fdim_test_data): Likewise.
17548         (finite_test_data): Likewise.
17549         (floor_test_data): Likewise.
17550         (fmax_test_data): Likewise.
17551         (fmin_test_data): Likewise.
17552         (fmod_test_data): Likewise.
17553         (fpclassify_test_data): Likewise.
17554         (frexp_test_data): Likewise.
17555         (ilogb_test_data): Likewise.
17556         (isfinite_test_data): Likewise.
17557         (isgreater_test_data): Likewise.
17558         (isgreaterequal_test_data): Likewise.
17559         (isinf_test_data): Likewise.
17560         (isless_test_data): Likewise.
17561         (islessequal_test_data): Likewise.
17562         (islessgreater_test_data): Likewise.
17563         (isnan_test_data): Likewise.
17564         (isnormal_test_data): Likewise.
17565         (issignaling_test_data): Likewise.
17566         (isunordered_test_data): Likewise.
17567         (ldexp_test_data): Likewise.
17568         (lrint_test_data): Likewise.
17569         (lrint_test_data) [TEST_FLOAT]: Disable one test.
17570         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
17571         (lrint_tonearest_test_data): Test for "inexact" exceptions.
17572         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17573         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
17574         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17575         test input.
17576         (lrint_towardzero_test_data): Test for "inexact" exceptions.
17577         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17578         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
17579         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
17580         that test input.
17581         (lrint_downward_test_data): Test for "inexact" exceptions.
17582         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17583         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
17584         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17585         test input.
17586         (lrint_upward_test_data): Test for "inexact" exceptions.
17587         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
17588         test input.
17589         (llrint_test_data): Test for "inexact" exceptions.
17590         (llrint_test_data) [TEST_FLOAT]: Disable one test.
17591         (llrint_tonearest_test_data): Test for "inexact" exceptions.
17592         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17593         (llrint_towardzero_test_data): Test for "inexact" exceptions.
17594         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17595         (llrint_downward_test_data): Test for "inexact" exceptions.
17596         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17597         (llrint_upward_test_data): Test for "inexact" exceptions.
17598         (logb_test_data): Likewise.
17599         (logb_downward_test_data): Likewise.
17600         (nextafter_test_data): Likewise.
17601         (nexttoward_test_data): Likewise.
17602         (remainder_test_data): Likewise.
17603         (remquo_test_data): Likewise.
17604         (scalbn_test_data): Likewise.
17605         (scalbln_test_data): Likewise.
17606         (signbit_test_data): Likewise.
17607         (sqrt_test_data): Likewise.
17608         (significand_test_data): Likewise.
17609
17610 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
17611
17612         [BZ #15424]
17613         * benchtests/bench-modf.c (struct args): Mark arg0 as
17614         volatile.
17615         * scripts/bench.pl: Mark members of struct args as volatile.
17616
17617 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17618
17619         [BZ # 15497]
17620         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
17621         negative infinity on POWER6 or lower.
17622         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
17623
17624 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
17625
17626         [BZ #15442]
17627         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
17628         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
17629         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
17630         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
17631         (_FP_SETQNAN): New macro.
17632         (_FP_SETQNAN_SEMIRAW): Likewise.
17633         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
17634         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
17635         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
17636         (FP_EXTEND): Use _FP_FRAC_SNANP.
17637         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
17638         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
17639         into account.
17640         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17641         New macro.
17642         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17643         Likewise.
17644
17645 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17646
17647         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
17648         with DIVIDE_BY_ZERO_EXCEPTION.
17649         (gamma_test_data): Likewise.
17650         (lgamma_test_data): Likewise.
17651         (log_test_data): Likewise.
17652         (log10_test_data): Likewise.
17653         (log2_test_data): Likewise.
17654         (tgamma_test_data): Likewise.
17655
17656         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
17657         (acos_test_tonearest): Likewise.
17658         (acos_test_towardzero): Likewise.
17659         (acos_test_downward): Likewise.
17660         (acos_test_upward): Likewise.
17661         (acosh_test): Likewise.
17662         (asin_test): Likewise.
17663         (asin_test_tonearest): Likewise.
17664         (asin_test_towardzero): Likewise.
17665         (asin_test_downward): Likewise.
17666         (asin_test_upward): Likewise.
17667         (asinh_test): Likewise.
17668         (atan_test): Likewise.
17669         (atanh_test): Likewise.
17670         (atan2_test): Likewise.
17671         (cabs_test): Likewise.
17672         (cacos_test): Likewise.
17673         (cacosh_test): Likewise.
17674         (casin_test): Likewise.
17675         (casinh_test): Likewise.
17676         (catan_test): Likewise.
17677         (catanh_test): Likewise.
17678         (cbrt_test): Likewise.
17679         (ccos_test): Likewise.
17680         (ccosh_test): Likewise.
17681         (cexp_test): Likewise.
17682         (clog_test): Likewise.
17683         (clog10_test): Likewise.
17684         (cos_test): Likewise.
17685         (cos_test_tonearest): Likewise.
17686         (cos_test_towardzero): Likewise.
17687         (cos_test_downward): Likewise.
17688         (cos_test_upward): Likewise.
17689         (cosh_test): Likewise.
17690         (cosh_test_tonearest): Likewise.
17691         (cosh_test_towardzero): Likewise.
17692         (cosh_test_downward): Likewise.
17693         (cosh_test_upward): Likewise.
17694         (cpow_test): Likewise.
17695         (csin_test): Likewise.
17696         (csinh_test): Likewise.
17697         (csqrt_test): Likewise.
17698         (ctan_test): Likewise.
17699         (ctan_test_tonearest): Likewise.
17700         (ctan_test_towardzero): Likewise.
17701         (ctan_test_downward): Likewise.
17702         (ctan_test_upward): Likewise.
17703         (ctanh_test): Likewise.
17704         (ctanh_test_tonearest): Likewise.
17705         (ctanh_test_towardzero): Likewise.
17706         (ctanh_test_downward): Likewise.
17707         (ctanh_test_upward): Likewise.
17708         (erf_test): Likewise.
17709         (erfc_test): Likewise.
17710         (exp_test): Likewise.
17711         (exp_test_tonearest): Likewise.
17712         (exp_test_towardzero): Likewise.
17713         (exp_test_downward): Likewise.
17714         (exp_test_upward): Likewise.
17715         (exp10_test): Likewise.
17716         (exp2_test): Likewise.
17717         (expm1_test): Likewise.
17718         (fmod_test): Likewise.
17719         (gamma_test): Likewise.
17720         (hypot_test): Likewise.
17721         (j0_test): Likewise.
17722         (j1_test): Likewise.
17723         (jn_test): Likewise.
17724         (lgamma_test): Likewise.
17725         (log_test): Likewise.
17726         (log10_test): Likewise.
17727         (log1p_test): Likewise.
17728         (log2_test): Likewise.
17729         (logb_test_downward): Likewise.
17730         (pow_test): Likewise.
17731         (pow_test_tonearest): Likewise.
17732         (pow_test_towardzero): Likewise.
17733         (pow_test_downward): Likewise.
17734         (pow_test_upward): Likewise.
17735         (remainder_test): Likewise.
17736         (remquo_test): Likewise.
17737         (sin_test): Likewise.
17738         (sin_test_tonearest): Likewise.
17739         (sin_test_towardzero): Likewise.
17740         (sin_test_downward): Likewise.
17741         (sin_test_upward): Likewise.
17742         (sincos_test): Likewise.
17743         (sinh_test): Likewise.
17744         (sinh_test_tonearest): Likewise.
17745         (sinh_test_towardzero): Likewise.
17746         (sinh_test_downward): Likewise.
17747         (sinh_test_upward): Likewise.
17748         (sqrt_test): Likewise.
17749         (tan_test): Likewise.
17750         (tan_test_tonearest): Likewise.
17751         (tan_test_towardzero): Likewise.
17752         (tan_test_downward): Likewise.
17753         (tan_test_upward): Likewise.
17754         (tanh_test): Likewise.
17755         (tgamma_test): Likewise.
17756         (y0_test): Likewise.
17757         (y1_test): Likewise.
17758         (yn_test): Likewise.
17759
17760         * math/gen-libm-test.pl (adjust_arg): Remove function.
17761         (special_function): Remove argument $in_func.  Only handle
17762         generating output for tables of tests, not inside functions.
17763         (parse_args): Likewise.
17764         (generate_testfile): Remove variable $in_func.  Update call to
17765         parse_args.
17766         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
17767         (MINUS_ZERO_INIT): Rename macro to minus_zero.
17768         (PLUS_INFTY_INIT): Rename macro to plus_infty.
17769         (MINUS_INFTY_INIT): Rename macro to minus_infty.
17770         (QNAN_VALUE_INIT): Rename macro to qnan_value.
17771         (MAX_VALUE_INIT): Rename macro to max_value.
17772         (MIN_VALUE_INIT): Rename macro to min_value.
17773         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
17774         (plus_zero): Remove variable.
17775         (minus_zero): Likewise.
17776         (plus_infty): Likewise.
17777         (minus_infty): Likewise.
17778         (qnan_value): Likewise.
17779         (max_value): Likewise.
17780         (min_value): Likewise.
17781         (min_subnorm_value): Likewise.
17782
17783 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17784
17785         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
17786         uint64_t or uint32_t usage.
17787         * crypt/sha256-block.c: Likewise.
17788         * crypt/sha256-crypt.c: Likewise.
17789         * crypt/sha256.c: Likewise.
17790         * crypt/sha512-block.c: Likewise.
17791         * crypt/sha512-crypt.c: Likewise.
17792         * crypt/sha512.c: Likewise.
17793         * debug/backtrace-tst.c: Likewise.
17794         * debug/pcprofiledump.c: Likewise.
17795         * elf/cache.c: Likewise.
17796         * elf/dl-cache.c: Likewise.
17797         * elf/dl-misc.c: Likewise.
17798         * elf/dl-profile.c: Likewise.
17799         * elf/dl-support.c: Likewise.
17800         * elf/ldconfig.c: Likewise.
17801         * elf/sprof.c: Likewise.
17802         * iconv/dummy-repertoire.c: Likewise.
17803         * iconv/iconv_charmap.c: Likewise.
17804         * iconv/skeleton.c: Likewise.
17805         * iconvdata/8bit-generic.c: Likewise.
17806         * iconvdata/cp737.h: Likewise.
17807         * iconvdata/cp775.h: Likewise.
17808         * iconvdata/ibm1008.h: Likewise.
17809         * iconvdata/ibm1025.h: Likewise.
17810         * iconvdata/ibm1046.h: Likewise.
17811         * iconvdata/ibm1097.h: Likewise.
17812         * iconvdata/ibm1112.h: Likewise.
17813         * iconvdata/ibm1122.h: Likewise.
17814         * iconvdata/ibm1123.h: Likewise.
17815         * iconvdata/ibm1124.h: Likewise.
17816         * iconvdata/ibm1129.h: Likewise.
17817         * iconvdata/ibm1130.h: Likewise.
17818         * iconvdata/ibm1132.h: Likewise.
17819         * iconvdata/ibm1133.h: Likewise.
17820         * iconvdata/ibm1137.h: Likewise.
17821         * iconvdata/ibm1140.h: Likewise.
17822         * iconvdata/ibm1141.h: Likewise.
17823         * iconvdata/ibm1142.h: Likewise.
17824         * iconvdata/ibm1143.h: Likewise.
17825         * iconvdata/ibm1144.h: Likewise.
17826         * iconvdata/ibm1145.h: Likewise.
17827         * iconvdata/ibm1146.h: Likewise.
17828         * iconvdata/ibm1147.h: Likewise.
17829         * iconvdata/ibm1148.h: Likewise.
17830         * iconvdata/ibm1149.h: Likewise.
17831         * iconvdata/ibm1153.h: Likewise.
17832         * iconvdata/ibm1154.h: Likewise.
17833         * iconvdata/ibm1155.h: Likewise.
17834         * iconvdata/ibm1156.h: Likewise.
17835         * iconvdata/ibm1157.h: Likewise.
17836         * iconvdata/ibm1158.h: Likewise.
17837         * iconvdata/ibm1160.h: Likewise.
17838         * iconvdata/ibm1161.h: Likewise.
17839         * iconvdata/ibm1162.h: Likewise.
17840         * iconvdata/ibm1163.h: Likewise.
17841         * iconvdata/ibm1164.h: Likewise.
17842         * iconvdata/ibm1166.h: Likewise.
17843         * iconvdata/ibm1167.h: Likewise.
17844         * iconvdata/ibm12712.h: Likewise.
17845         * iconvdata/ibm1390.h: Likewise.
17846         * iconvdata/ibm1399.h: Likewise.
17847         * iconvdata/ibm16804.h: Likewise.
17848         * iconvdata/ibm4517.h: Likewise.
17849         * iconvdata/ibm4899.h: Likewise.
17850         * iconvdata/ibm4909.h: Likewise.
17851         * iconvdata/ibm4971.h: Likewise.
17852         * iconvdata/ibm5347.h: Likewise.
17853         * iconvdata/ibm803.h: Likewise.
17854         * iconvdata/ibm856.h: Likewise.
17855         * iconvdata/ibm901.h: Likewise.
17856         * iconvdata/ibm902.h: Likewise.
17857         * iconvdata/ibm9030.h: Likewise.
17858         * iconvdata/ibm9066.h: Likewise.
17859         * iconvdata/ibm921.h: Likewise.
17860         * iconvdata/ibm922.h: Likewise.
17861         * iconvdata/ibm9448.h: Likewise.
17862         * iconvdata/isiri-3342.h: Likewise.
17863         * iconvdata/jis0201.h: Likewise.
17864         * include/link.h: Likewise.
17865         * include/netdb.h: Likewise.
17866         * inet/check_native.c: Likewise.
17867         * inet/check_pf.c: Likewise.
17868         * inet/getipv4sourcefilter.c: Likewise.
17869         * inet/getnameinfo.c: Likewise.
17870         * inet/getsourcefilter.c: Likewise.
17871         * inet/htonl.c: Likewise.
17872         * inet/setipv4sourcefilter.c: Likewise.
17873         * inet/setsourcefilter.c: Likewise.
17874         * inet/test-inet6_opt.c: Likewise.
17875         * inet/tst-network.c: Likewise.
17876         * locale/C-collate.c: Likewise.
17877         * locale/C-ctype.c: Likewise.
17878         * locale/C-time.c: Likewise.
17879         * locale/C-translit.h: Likewise.
17880         * locale/loadarchive.c: Likewise.
17881         * locale/programs/3level.h: Likewise.
17882         * locale/programs/charmap.c: Likewise.
17883         * locale/programs/charmap.h: Likewise.
17884         * locale/programs/ld-address.c: Likewise.
17885         * locale/programs/ld-collate.c: Likewise.
17886         * locale/programs/ld-ctype.c: Likewise.
17887         * locale/programs/ld-identification.c: Likewise.
17888         * locale/programs/ld-measurement.c: Likewise.
17889         * locale/programs/ld-messages.c: Likewise.
17890         * locale/programs/ld-monetary.c: Likewise.
17891         * locale/programs/ld-name.c: Likewise.
17892         * locale/programs/ld-numeric.c: Likewise.
17893         * locale/programs/ld-paper.c: Likewise.
17894         * locale/programs/ld-telephone.c: Likewise.
17895         * locale/programs/ld-time.c: Likewise.
17896         * locale/programs/linereader.c: Likewise.
17897         * locale/programs/locale.c: Likewise.
17898         * locale/programs/locarchive.c: Likewise.
17899         * locale/programs/locfile.h: Likewise.
17900         * locale/programs/repertoire.c: Likewise.
17901         * locale/programs/simple-hash.c: Likewise.
17902         * locale/programs/simple-hash.h: Likewise.
17903         * malloc/memusage.c: Likewise.
17904         * malloc/memusagestat.c: Likewise.
17905         * nis/nis_defaults.c: Likewise.
17906         * nis/nis_hash.c: Likewise.
17907         * nis/nis_print.c: Likewise.
17908         * nis/nis_xdr.c: Likewise.
17909         * nscd/connections.c: Likewise.
17910         * nscd/hstcache.c: Likewise.
17911         * nscd/nscd_gethst_r.c: Likewise.
17912         * nscd/nscd_getserv_r.c: Likewise.
17913         * nscd/nscd_helper.c: Likewise.
17914         * nscd/servicescache.c: Likewise.
17915         * nss/makedb.c: Likewise.
17916         * nss/nss_db/db-XXX.c: Likewise.
17917         * nss/nss_db/db-initgroups.c: Likewise.
17918         * nss/nss_db/db-netgrp.c: Likewise.
17919         * nss/nss_files/files-network.c: Likewise.
17920         * nss/nss_files/files-parse.c: Likewise.
17921         * posix/bug-regex5.c: Likewise.
17922         * posix/fnmatch_loop.c: Likewise.
17923         * posix/regcomp.c: Likewise.
17924         * posix/regexec.c: Likewise.
17925         * posix/tst-rfc3484-2.c: Likewise.
17926         * posix/tst-rfc3484-3.c: Likewise.
17927         * posix/tst-rfc3484.c: Likewise.
17928         * resolv/nss_dns/dns-canon.c: Likewise.
17929         * resolv/nss_dns/dns-network.c: Likewise.
17930         * resolv/res_init.c: Likewise.
17931         * resolv/res_mkquery.c: Likewise.
17932         * resolv/tst-aton.c: Likewise.
17933         * stdlib/cxa_atexit.c: Likewise.
17934         * stdlib/cxa_finalize.c: Likewise.
17935         * stdlib/gen-fpioconst.c: Likewise.
17936         * stdlib/strtol_l.c: Likewise.
17937         * string/tst-endian.c: Likewise.
17938         * sunrpc/auth_des.c: Likewise.
17939         * sunrpc/clnt_udp.c: Likewise.
17940         * sunrpc/rtime.c: Likewise.
17941         * sunrpc/svcauth_des.c: Likewise.
17942         * sunrpc/xdr.c: Likewise.
17943         * sunrpc/xdr_intXX_t.c: Likewise.
17944         * sunrpc/xdr_rec.c: Likewise.
17945         * sysdeps/generic/ldconfig.h: Likewise.
17946         * sysdeps/generic/ldsodefs.h: Likewise.
17947         * sysdeps/generic/memusage.h: Likewise.
17948         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17949         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
17950         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
17951         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17952         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17953         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17954         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17955         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17956         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17957         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17958         * sysdeps/posix/getaddrinfo.c: Likewise.
17959         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17960         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17961         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17962         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17963         * sysdeps/powerpc/test-gettimebase.c: Likewise.
17964         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
17965         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
17966         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
17967         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
17968         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
17969         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17970         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17971         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
17972         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
17973         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
17974         * sysdeps/x86_64/dl-tls.h: Likewise.
17975         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
17976         * time/alt_digit.c: Likewise.
17977         * time/era.c: Likewise.
17978         * wcsmbs/tst-c16c32-1.c: Likewise.
17979
17980 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17981
17982         * math/libm-test.inc (struct test_sincos_data): New type.
17983         (RUN_TEST_LOOP_sincos): New macro.
17984         (sincos_test_data): New variable.
17985         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
17986
17987 2013-05-16  Richard Henderson  <rth@redhat.com>
17988
17989         * math/atest-exp2.c (LIMB64): New macro.
17990         (CONSTSZ): New macro.
17991         (mp_exp1, mp_exp_m1, mp_log2): New variables.
17992         (hexdig): Move ...
17993         (print_mpn_fp): ... to function scope.
17994         (read_mpn_hex): Remove.
17995         (get_log2): Remove.
17996         (exp2_mpn): Use mp_log2.
17997         (main): Use mp_exp1.
17998
17999 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18000
18001         * math/libm-test.inc: Remove comment about not testing "inexact"
18002         exceptions.
18003         (INEXACT_EXCEPTION): New macro.
18004         (NO_INEXACT_EXCEPTION): Likewise.
18005         (INVALID_EXCEPTION_OK): Update value.
18006         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18007         (OVERFLOW_EXCEPTION_OK): Likewise.
18008         (UNDERFLOW_EXCEPTION_OK): Likewise.
18009         (IGNORE_ZERO_INF_SIGN): Likewise.
18010         (ERRNO_UNCHANGED): Likewise.
18011         (ERRNO_EDOM): Likewise.
18012         (ERRNO_ERANGE): Likewise.
18013         (test_exceptions): Handle testing "inexact" exceptions.
18014         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
18015         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
18016         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
18017         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
18018         INEXACT_EXCEPTION.
18019         (rint_towardzero_test_data): Likewise.
18020         (rint_downward_test_data): Likewise.
18021         (rint_upward_test_data): Likewise.
18022
18023         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
18024         with OVERFLOW_EXCEPTION.
18025         (exp10_test_data): Likewise.
18026         (exp2_test_data): Likewise.
18027         (expm1_test_data): Likewise.
18028         (lgamma_test_data): Likewise.
18029         (pow_test_data): Likewise.
18030         (tgamma_test_data): Likewise.
18031         (yn_test_data): Remove duplicate test of overflow.
18032
18033         * math/libm-test.inc (struct test_cc_c_data): New type.
18034         (RUN_TEST_LOOP_cc_c): New macro.
18035         (cpow_test_data): New variable.
18036         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
18037
18038         * math/libm-test.inc (struct test_f_L_data): New type.
18039         (RUN_TEST_LOOP_f_L): New macro.
18040         (llrint_test_data): New variable.
18041         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
18042         (llrint_tonearest_test_data): New variable.
18043         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
18044         (llrint_towardzero_test_data): New variable.
18045         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
18046         (llrint_downward_test_data): New variable.
18047         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
18048         (llrint_upward_test_data): New variable.
18049         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
18050         (llround_test_data): New variable.
18051         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
18052
18053 2013-05-13  Peter Collingbourne  <pcc@google.com>
18054
18055         * math/atest-exp2.c (get_log2): Remove const attribute.
18056
18057 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18058
18059         * math/libm-test.inc (struct test_f_l_data): New type.
18060         (RUN_TEST_LOOP_f_l): New macro.
18061         (lrint_test_data): New variable.
18062         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
18063         (lrint_tonearest_test_data): New variable.
18064         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
18065         (lrint_towardzero_test_data): New variable.
18066         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
18067         (lrint_downward_test_data): New variable.
18068         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
18069         (lrint_upward_test_data): New variable.
18070         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
18071         (lround_test_data): New variable.
18072         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
18073
18074 2013-05-15  Peter Collingbourne  <pcc@google.com>
18075
18076         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
18077         (EXTRACT_WORDS64) Use where appropriate.
18078         (INSERT_WORDS64) Likewise.
18079
18080         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
18081         constraints with x constraints.
18082         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
18083
18084         * malloc/obstack.c (_obstack_compat): Add initializer.
18085
18086 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
18087
18088         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
18089         si_trapno and add si_addr_lsb to _sifields.sigfault.
18090         (si_trapno): Remove macro.
18091         (si_addr_lsb): Define new macro.
18092         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
18093
18094 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18095
18096         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
18097         instead of TEST_f_l.
18098         (llrint_test_tonearest): Likewise.
18099         (llrint_test_towardzero): Likewise.
18100         (llrint_test_downward): Likewise.
18101         (llrint_test_upward): Likewise.
18102         (llround_test): Likewise.
18103
18104         * math/libm-test.inc (struct test_f_i_data): Add comment.
18105         (RUN_TEST_LOOP_f_b): New macro.
18106         (RUN_TEST_LOOP_f_b_tg): Likewise.
18107         (finite_test_data): New variable.
18108         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
18109         (isfinite_test_data): New variable.
18110         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18111         (isinf_test_data): New variable.
18112         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18113         (isnan_test_data): New variable.
18114         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18115         (isnormal_test_data): New variable.
18116         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18117         (issignaling_test_data): New variable.
18118         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18119         (signbit_test_data): New variable.
18120         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18121
18122         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
18123         with INVALID_EXCEPTION.
18124         (acosh_test_data): Likewise.
18125         (asin_test_data): Likewise.
18126         (atanh_test_data): Likewise.
18127         (fmod_test_data): Likewise.
18128         (log_test_data): Likewise.
18129         (log10_test_data): Likewise.
18130         (log2_test_data): Likewise.
18131         (pow_test_data): Likewise.
18132         (sqrt_test_data): Likewise.
18133         (y0_test_data): Likewise.
18134         (y1_test_data): Likewise.
18135         (yn_test_data): Likewise.
18136
18137         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
18138         function contents.
18139
18140         * math/libm-test.inc (struct test_ff_i_data): New type.
18141         (RUN_TEST_LOOP_ff_i_tg): New macro.
18142         (isgreater_test_data): New variable.
18143         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18144         (isgreaterequal_test_data): New variable.
18145         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18146         (isless_test_data): New variable.
18147         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18148         (islessequal_test_data): New variable.
18149         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18150         (islessgreater_test_data): New variable.
18151         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18152         (isunordered_test_data): New variable.
18153         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18154
18155 2013-05-14  David S. Miller  <davem@davemloft.net>
18156
18157         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18158
18159 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
18160
18161         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
18162
18163         * math/libm-test.inc (struct test_fF_f1_data): Change type of
18164         extra_test to int.
18165         (struct test_f_i_data): Change type of max_ulp to int.
18166
18167         * math/libm-test.inc (test_ffI_f1_data): New type.
18168         (RUN_TEST_LOOP_ffI_f1): New macro.
18169         (remquo_test_data): New variable.
18170         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
18171
18172         * setjmp/tst-setjmp-fp.c: New file.
18173         * setjmp/Makefile (tests): Add tst-setjmp-fp.
18174         (link-libm): New variable.
18175         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
18176
18177         * math/libm-test.inc (struct test_f_i_data): New type.
18178         (RUN_TEST_LOOP_f_i): New macro.
18179         (RUN_TEST_LOOP_f_i_tg): Likewise.
18180         (fpclassify_test_data): New variable.
18181         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
18182         (ilogb_test_data): New variable.
18183         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
18184
18185         * math/libm-test.inc (scalbln_test): Correct function name in END
18186         call.
18187
18188         * math/libm-test.inc (struct test_f_f1_data): Add comment.
18189         (RUN_TEST_LOOP_fI_f1): New macro.
18190         (frexp_test_data): New variable.
18191         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
18192
18193         * math/libm-test.inc (struct test_fF_f1_data): New type.
18194         (RUN_TEST_LOOP_fF_f1): New macro.
18195         (modf_test_data): New variable.
18196         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
18197
18198         * math/libm-test.inc (struct test_f_f1_data): New type.
18199         (RUN_TEST_LOOP_f_f1): New macro.
18200         (gamma_test_data): New variable.
18201         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18202         (lgamma_test_data): New variable.
18203         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18204
18205 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
18206
18207         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
18208         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
18209         (main): Comment "tls" pseudo-hwcap.
18210
18211 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
18212
18213         * math/libm-test.inc (struct test_fl_f_data): New type.
18214         (RUN_TEST_LOOP_fl_f): New variable.
18215         (scalbln_test_data): New variable.
18216         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
18217
18218         * math/libm-test.inc (struct test_fi_f_data): New type.
18219         (RUN_TEST_LOOP_fi_f): New macro.
18220         (ldexp_test_data): New variable.
18221         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
18222         (scalbn_test_data): New variable.
18223         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
18224
18225         * math/libm-test.inc (struct test_c_f_data): New type.
18226         (RUN_TEST_LOOP_c_f): New macro.
18227         (cabs_test_data): New variable.
18228         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
18229         (carg_test_data): New variable.
18230         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
18231         (cimag_test_data): New variable.
18232         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
18233         (creal_test_data): New variable.
18234         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
18235
18236         * math/libm-test.inc (struct test_if_f_data): New type.
18237         (RUN_TEST_LOOP_if_f): New macro.
18238         (jn_test_data): New variable.
18239         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
18240         (yn_test_data): New variable.
18241         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
18242
18243         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
18244
18245 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18246
18247         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
18248         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
18249
18250 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
18251
18252         * benchtests/Makefile (CPPFLAGS-nonlib): Add
18253         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
18254         (bench-deps): Add bench-timing.h.
18255         * benchtests-bench-skeleton.c: Include bench-timing.h.
18256         (main): Use TIMING_* macros instead of clock_gettime.
18257         * benchtests/bench-timing.h: New file.
18258
18259         [BZ #14582]
18260         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
18261         Renamed from _LIB_VERSION.
18262         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
18263
18264 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
18265
18266         * math/libm-test.inc (struct test_fff_f_data): New type.
18267         (RUN_TEST_LOOP_fff_f): New macro.
18268         (fma_test_data): New variable.
18269         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
18270         (fma_towardzero_test_data): New variable.
18271         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
18272         (fma_downward_test_data): New variable.
18273         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
18274         (fma_upward_test_data): New variable.
18275         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
18276
18277         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
18278         (struct test_c_c_data): New type.
18279         (RUN_TEST_LOOP_c_c): New macro.
18280         (cacos_test_data): New variable.
18281         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
18282         (cacosh_test_data): New variable.
18283         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
18284         (casin_test_data): New variable.
18285         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
18286         (casinh_test_data): New variable.
18287         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
18288         (catan_test_data): New variable.
18289         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
18290         (catanh_test_data): New variable.
18291         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
18292         (ccos_test_data): New variable.
18293         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
18294         (ccosh_test_data): New variable.
18295         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
18296         (cexp_test_data): New variable.
18297         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
18298         (clog_test_data): New variable.
18299         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
18300         (clog10_test_data): New variable.
18301         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
18302         (conj_test_data): New variable.
18303         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
18304         (cproj_test_data): New variable.
18305         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
18306         (csin_test_data): New variable.
18307         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
18308         (csinh_test_data): New variable.
18309         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
18310         (csqrt_test_data): New variable.
18311         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
18312         (ctan_test_data): New variable.
18313         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
18314         (ctan_tonearest_test_data): New variable.
18315         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18316         (ctan_towardzero_test_data): New variable.
18317         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18318         (ctan_downward_test_data): New variable.
18319         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18320         (ctan_upward_test_data): New variable.
18321         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18322         (ctanh_test_data): New variable.
18323         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
18324         (ctanh_tonearest_test_data): New variable.
18325         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18326         (ctanh_towardzero_test_data): New variable.
18327         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18328         (ctanh_downward_test_data): New variable.
18329         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18330         (ctanh_upward_test_data): New variable.
18331         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18332         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
18333         of BUILD_COMPLEX.
18334
18335         * math/libm-test.inc (struct test_ff_f_data): New type.
18336         (struct test_ff_f_data_nexttoward): Likewise.
18337         (RUN_TEST_LOOP_2_f): New macro.
18338         (RUN_TEST_LOOP_ff_f): Likewise.
18339         (atan2_test_data): New variable.
18340         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
18341         (copysign_test_data): New variable.
18342         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
18343         (fdim_test_data): New variable.
18344         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
18345         (fmax_test_data): New variable.
18346         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
18347         (fmin_test_data): New variable.
18348         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
18349         (fmod_test_data): New variable.
18350         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
18351         (hypot_test_data): New variable.
18352         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
18353         (nextafter_test_data): New variable.
18354         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
18355         (nexttoward_test_data): New variable.
18356         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
18357         (pow_test_data): New variable.
18358         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
18359         (pow_tonearest_test_data): New variable.
18360         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
18361         (pow_towardzero_test_data): New variable.
18362         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
18363         (pow_downward_test_data): New variable.
18364         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
18365         (pow_upward_test_data): New variable.
18366         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
18367         (remainder_test_data): New variable.
18368         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
18369         (scalb_test_data): New variable.
18370         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
18371         * sysdeps/i386/fpu/libm-test-ulps: Update.
18372
18373 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
18374
18375         * math/libm-test.inc (fma_test): Use max_value instead of local
18376         variable fltmax.
18377         (nextafter_test): Likewise.
18378
18379         * math/libm-test.inc (acos_towardzero_test_data): New variable.
18380         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18381         (acos_downward_test_data): New variable.
18382         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18383         (acos_upward_test_data): New variable.
18384         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18385         (acosh_test_data): New variable.
18386         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
18387         (asin_test_data): New variable.
18388         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
18389         (asin_tonearest_test_data): New variable.
18390         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18391         (asin_towardzero_test_data): New variable.
18392         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18393         (asin_downward_test_data): New variable.
18394         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18395         (asin_upward_test_data): New variable.
18396         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18397         (asinh_test_data): New variable.
18398         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
18399         (atan_test_data): New variable.
18400         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
18401         (atanh_test_data): New variable.
18402         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
18403         (cbrt_test_data): New variable.
18404         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
18405         (ceil_test_data): New variable.
18406         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
18407         (cos_test_data): New variable.
18408         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
18409         (cos_tonearest_test_data): New variable.
18410         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18411         (cos_towardzero_test_data): New variable.
18412         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18413         (cos_downward_test_data): New variable.
18414         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18415         (cos_upward_test_data): New variable.
18416         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18417         (cosh_test_data): New variable.
18418         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
18419         (cosh_tonearest_test_data): New variable.
18420         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18421         (cosh_towardzero_test_data): New variable.
18422         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18423         (cosh_downward_test_data): New variable.
18424         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18425         (cosh_upward_test_data): New variable.
18426         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18427         (erf_test_data): New variable.
18428         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
18429         (erfc_test_data): New variable.
18430         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
18431         (exp_test_data): New variable.
18432         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
18433         (exp_tonearest_test_data): New variable.
18434         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18435         (exp_towardzero_test_data): New variable.
18436         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18437         (exp_downward_test_data): New variable.
18438         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18439         (exp_upward_test_data): New variable.
18440         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18441         (exp10_test_data): New variable.
18442         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
18443         (exp2_test_data): New variable.
18444         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
18445         (expm1_test_data): New variable.
18446         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
18447         (fabs_test_data): New variable.
18448         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
18449         (floor_test_data): New variable.
18450         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
18451         (j0_test_data): New variable.
18452         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
18453         (j1_test_data): New variable.
18454         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
18455         (log_test_data): New variable.
18456         (log_test): Run tests with RUN_TEST_LOOP_f_f.
18457         (log10_test_data): New variable.
18458         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
18459         (log1p_test_data): New variable.
18460         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
18461         (log2_test_data): New variable.
18462         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
18463         (logb_test_data): New variable.
18464         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
18465         (logb_downward_test_data): New variable.
18466         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18467         (nearbyint_test_data): New variable.
18468         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
18469         (rint_test_data): New variable.
18470         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
18471         (rint_tonearest_test_data): New variable.
18472         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18473         (rint_towardzero_test_data): New variable.
18474         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18475         (rint_downward_test_data): New variable.
18476         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18477         (rint_upward_test_data): New variable.
18478         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18479         (round_test_data): New variable.
18480         (round_test): Run tests with RUN_TEST_LOOP_f_f.
18481         (sin_test_data): New variable.
18482         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
18483         (sin_tonearest_test_data): New variable.
18484         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18485         (sin_towardzero_test_data): New variable.
18486         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18487         (sin_downward_test_data): New variable.
18488         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18489         (sin_upward_test_data): New variable.
18490         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18491         (sinh_test_data): New variable.
18492         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
18493         (sinh_tonearest_test_data): New variable.
18494         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18495         (sinh_towardzero_test_data): New variable.
18496         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18497         (sinh_downward_test_data): New variable.
18498         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18499         (sinh_upward_test_data): New variable.
18500         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18501         (sqrt_test_data): New variable.
18502         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
18503         (tan_test_data): New variable.
18504         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
18505         (tan_tonearest_test_data): New variable.
18506         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18507         (tan_towardzero_test_data): New variable.
18508         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18509         (tan_downward_test_data): New variable.
18510         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18511         (tan_upward_test_data): New variable.
18512         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18513         (tanh_test_data): New variable.
18514         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
18515         (tgamma_test_data): New variable.
18516         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
18517         (trunc_test_data): New variable.
18518         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
18519         (y0_test_data): New variable.
18520         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
18521         (y1_test_data): New variable.
18522         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
18523         (significand_test_data): New variable.
18524         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
18525
18526 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
18527
18528         [BZ #12387]
18529         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
18530
18531 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18532
18533         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
18534
18535 2013-05-10  Andreas Jaeger  <aj@suse.de>
18536
18537         [BZ #15448]
18538         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
18539         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
18540
18541 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18542
18543         * math/gen-libm-test.pl (adjust_arg): New function.
18544         (special_functions): Handle generating output in both functions
18545         and arrays.
18546         (parse_args): Likewise.
18547         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
18548         $in_func argument to parse_args.
18549         * math/libm-test.inc (struct test_f_f_data): New type.
18550         (IF_ROUND_INIT_): New macro.
18551         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
18552         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
18553         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
18554         (IF_ROUND_INIT_FE_UPWARD): Likewise.
18555         (ROUND_RESTORE_): Likewise.
18556         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
18557         (ROUND_RESTORE_FE_TONEAREST): Likewise.
18558         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
18559         (ROUND_RESTORE_FE_UPWARD): Likewise.
18560         (RUN_TEST_LOOP_f_f): New macro.
18561         (acos_test_data): New variable.
18562         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
18563         (acos_tonearest_test_data): New variable.
18564         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18565
18566 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18567
18568         * benchtests/bench-skeleton.c (startup): Fix coding style.
18569
18570 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18571
18572         [BZ #6809]
18573         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
18574         negative infinity argument.
18575         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
18576         negative infinity argument.
18577         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
18578         negative infinity argument.
18579         * math/libm-test.inc (tgamma_test): Expect errno to be set for
18580         domain errors.
18581
18582 2013-05-10  Florian Weimer  <fweimer@redhat.com>
18583
18584         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
18585         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
18586         * iconv/iconv_prog.c (main): Likewise.
18587         * locale/programs/charmap-dir.c (charmap_readdir)
18588         (fopen_uncompressed): Likewise.
18589         * locale/programs/locfile.c (siblings_uncached)
18590         (write_locale_data): Use lstat64 instead of lstat.
18591         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
18592         stat.
18593
18594 2013-05-10  Andreas Jaeger  <aj@suse.de>
18595
18596         [BZ #15395]
18597         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
18598         localization.
18599         Include <locale.h>.
18600
18601 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
18602
18603         * elf/dl-close.c (_dl_close_worker): Add comments.
18604
18605 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
18606
18607         [BZ #15359]
18608         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
18609         high part of pi/2.
18610         (__ieee754_rem_pio2l): Update comments.
18611
18612         [BZ #15429]
18613         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
18614         high part of pi/2.
18615         (__ieee754_rem_pio2l): Update comments.
18616
18617         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
18618         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
18619
18620         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
18621         M_PI_4l.
18622
18623         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
18624         (M_PI_34_LOG10El): Likewise.
18625         (M_PI2_LOG10El): Likewise.
18626         (M_PI4_LOG10El): Likewise.
18627         (M_PI_LOG10El): Likewise.
18628
18629 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18630
18631         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18632
18633 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
18634
18635         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
18636         (MINUS_ZERO_INIT): Likewise.
18637         (PLUS_INFTY_INIT): Likewise.
18638         (MINUS_INFTY_INIT): Likewise.
18639         (QNAN_VALUE_INIT): Likewise.
18640         (MAX_VALUE_INIT): Likewise.
18641         (MIN_VALUE_INIT): Likewise.
18642         (MIN_SUBNORM_VALUE_INIT): Likewise.
18643         (plus_zero): Initialize with PLUS_ZERO_INIT.
18644         (minus_zero): Initialize with MINUS_ZERO_INIT.
18645         (plus_infty): Initialize with PLUS_INFTY_INIT.
18646         (minus_infty): Initialize with MINUS_INFTY_INIT.
18647         (qnan_value): Initialize with QNAN_VALUE_INIT.
18648         (max_value): Initialize with MAX_VALUE_INIT.
18649         (min_value): Initialize with MIN_VALUE_INIT.
18650         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
18651
18652         * math/libm-test.inc (RUN_TEST_if_f): New macro.
18653         (jn_test): Use TEST_if_f instead of TEST_ff_f.
18654         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
18655         (yn_test): Use TEST_if_f instead of TEST_ff_f.
18656
18657         * math/libm-test.inc (RUN_TEST_f_f): New macro.
18658         (RUN_TEST_2_f): Likewise.
18659         (RUN_TEST_ff_f): Likewise.
18660         (RUN_TEST_fi_f): Likewise.
18661         (RUN_TEST_fl_f): Likewise.
18662         (RUN_TEST_fff_f): Likewise.
18663         (RUN_TEST_c_f): Likewise.
18664         (RUN_TEST_f_f1): Likewise.
18665         (RUN_TEST_fF_f1): Likewise.
18666         (RUN_TEST_fI_f1): Likewise.
18667         (RUN_TEST_ffI_f1): Likewise.
18668         (RUN_TEST_c_c): Likewise.
18669         (RUN_TEST_cc_c): Likewise.
18670         (RUN_TEST_f_i): Likewise.
18671         (RUN_TEST_f_i_tg): Likewise.
18672         (RUN_TEST_ff_i_tg): Likewise.
18673         (RUN_TEST_f_b): Likewise.
18674         (RUN_TEST_f_b_tg): Likewise.
18675         (RUN_TEST_f_l): Likewise.
18676         (RUN_TEST_f_L): Likewise.
18677         (RUN_TEST_sincos): Likewise.
18678         * math/gen-libm-test.pl (new_test): Take new argument to indicate
18679         whether to show exceptions.  Do not include ");\n" in return
18680         value.
18681         (special_functions): Output call to RUN_TEST_sincos instead of
18682         check_float calls.  Update calls to new_test.
18683         (parse_args): Output call to single RUN_TEST_* macro instead of
18684         check_* calls and other assignments.  Update calls to new_test.
18685
18686         [BZ #2546]
18687         [BZ #2560]
18688         [BZ #5159]
18689         [BZ #15426]
18690         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
18691         input to result for tgamma overflow.
18692         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
18693         (gamma_coeff): New variable.
18694         (NCOEFF): New macro.
18695         (gamma_positive): New function.
18696         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
18697         underflow here.  Use gamma_positive instead of exp (lgamma) for
18698         other arguments.
18699         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
18700         (gamma_coeff): New variable.
18701         (NCOEFF): New macro.
18702         (gammaf_positive): New function.
18703         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
18704         underflow here.  Use gamma_positive instead of exp (lgamma) for
18705         other arguments.
18706         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
18707         (gamma_coeff): New variable.
18708         (NCOEFF): New macro.
18709         (gammal_positive): New function.
18710         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
18711         underflow here.  Use gamma_positive instead of exp (lgamma) for
18712         other arguments.
18713         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
18714         (gamma_coeff): New variable.
18715         (NCOEFF): New macro.
18716         (gammal_positive): New function.
18717         (__ieee754_gammal_r): Handle positive infinity, overflow and
18718         underflow here.  Handle NaN the same as positive infinity.  Remove
18719         check x < 0xffffffff for negative integers.  Use gamma_positive
18720         instead of exp (lgamma) for other arguments.
18721         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
18722         (gamma_coeff): New variable.
18723         (NCOEFF): New macro.
18724         (gammal_positive): New function.
18725         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
18726         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18727         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
18728         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
18729         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18730         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
18731         * sysdeps/generic/math_private.h (__gamma_productf): New
18732         prototype.
18733         (__gamma_product): Likewise.
18734         (__gamma_productl): Likewise.
18735         * math/Makefile (libm-calls): Add gamma_product.
18736         * math/libm-test.inc (tgamma_test): Add more tests.
18737         * sysdeps/i386/fpu/libm-test-ulps: Update.
18738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18739
18740 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
18741
18742         * benchtests/bench-skeleton.c (main): Preheat CPU.
18743
18744 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
18745
18746         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
18747
18748 2013-05-07  Roland McGrath  <roland@hack.frob.com>
18749
18750         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
18751         and _dl_skip_args_internal.
18752
18753 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
18754
18755         * manual/message.texi (Message Translation): Talk about users.
18756         Message to key mapping impacts design.
18757
18758 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18759
18760         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
18761
18762         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
18763
18764         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
18765         * sysdeps/wordsize-64/glob64.c: ... here.
18766
18767         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
18768         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
18769         New macros.
18770
18771         * debug/getlogin_r_chk.c: Moved to ...
18772         * login/getlogin_r_chk.c: ... here.
18773         * debug/Makefile (routines): Move getlogin_r_chk to ...
18774         * login/Makefile (routines): ... here.
18775         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
18776         * login/Versions (libc: GLIBC_2.4): ... here.
18777
18778         * io/poll.c (__poll): Renamed from poll.
18779         Add libc_hidden_def.
18780         (poll): Define as weak alias.
18781
18782         * debug/ptsname_r_chk.c: Moved to ...
18783         * login/ptsname_r_chk.c: ... here.
18784         * debug/Makefile (routines): Move ptsname_r_chk to ...
18785         * login/Makefile (routines): ... here.
18786         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
18787         * login/Versions (libc: GLIBC_2.4): ... here.
18788
18789         * posix/getlogin.c: Moved to ...
18790         * login/getlogin.c: ... here.
18791         * posix/getlogin_r.c: Moved to ...
18792         * login/getlogin_r.c: ... here.
18793         * posix/getlogin_r.c: Moved to ...
18794         * login/getlogin_r.c: ... here.
18795         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
18796         * login/Makefile (routines): ... here.
18797         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
18798         * login/Versions (libc: GLIBC_2.0): ... here.
18799
18800         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
18801         (setrlimit): Define as weak alias.
18802
18803         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
18804         Call __ names for open, ftruncate, and close.
18805         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
18806         (truncate): Define as weak alias.
18807
18808 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
18809
18810         * math/gen-libm-test.pl (parse_args): Initialize x before each
18811         test of frexp, modf and remquo.
18812
18813         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
18814         test signgam value.
18815
18816 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18817
18818         [BZ #15418]
18819         [BZ #15419]
18820         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
18821         internal tests.
18822         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18823
18824 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18825
18826         * elf/dl-writev.h: New file.
18827         * elf/dl-misc.c: Include it.
18828         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
18829         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
18830
18831 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
18832
18833         * math/libm-test.inc (noXFails): Remove variable.
18834         (noXPasses): Likewise.
18835         (BUILD_COMPLEX_INT): Remove macro.
18836         (print_screen): Remove xfail argument.
18837         (print_screen_max_error): Likewise.
18838         (update_stats): Likewise.
18839         (print_max_error): Likewise.  Update calls to other affected
18840         functions.
18841         (print_complex_max_error): Likewise.
18842         (test_single_exception): Update calls to print_screen.
18843         (test_single_errno): Likewise.
18844         (check_float_internal): Remove xfail argument.  Update calls to
18845         other affected functions.
18846         (check_float): Likewise.
18847         (check_complex): Likewise.
18848         (check_int): Likewise.
18849         (check_long): Likewise.
18850         (check_bool): Likewise.
18851         (check_longlong): Likewise.
18852         (main): Don't print noXFails and noXPasses.
18853         * math/gen-libm-test.pl (top level): Don't mention expected
18854         failure handling in comment.
18855         (new_test): Don't handle expected failures.
18856         (parse_args): Don't mention expected failure handling in comment.
18857         (generate_testfile): Don't handle expected failures.
18858         (parse_ulps): Likewise.
18859         (print_ulps_file): Likewise.
18860         (get_failure): Remove function.
18861         (output_test): Don't handle expected failures.
18862         * make/README.libm-test: Don't mention expected failure handling.
18863
18864         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
18865         (minus_zero): Likewise.
18866         (plus_infty): Likewise.
18867         (minus_infty): Likewise.
18868         (qnan_value): Likewise.
18869         (max_value): Likewise.
18870         (min_value): Likewise.
18871         (min_subnorm_value): Likewise.
18872         (initialize): Do not initialize those variables dynamically.
18873
18874 2013-05-03  Roland McGrath  <roland@hack.frob.com>
18875
18876         * io/open.c (__open_2): Moved to ...
18877         * io/open_2.c: ... this new file.
18878         * io/open64.c (__open64_2): Moved to ...
18879         * io/open64_2.c: ... this new file.
18880         * io/openat.c (__openat_2): Moved to ...
18881         * io/openat_2.c: ... this new file.
18882         * io/openat64.c (__openat64_2): Moved to ...
18883         * io/openat64_2.c: ... this new file.
18884         * io/Makefile (routines): Add them.
18885         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
18886         * sysdeps/unix/sysv/linux/open_2.c: File removed.
18887         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
18888         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
18889         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
18890         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
18891         (__openat64): Add hidden_ver.
18892         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
18893         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
18894
18895         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
18896         Separately conditionalize setting of GLRO(dl_sysinfo) so
18897         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
18898         as well, but the actual setting is only under [NEED_DL_SYSINFO].
18899
18900 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18901
18902         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
18903         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
18904         definition.
18905         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
18906         * sysdeps/unix/sysv/linux/powerpc/init-first.c
18907         (_libc_vdso_platform_setup): Add __vdso_time initialization.
18908         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
18909         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
18910
18911 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
18912
18913         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
18914         test signgam value.
18915
18916         * math/libm-test.inc (hypot_test): Do not use
18917         IGNORE_ZERO_INF_SIGN.
18918
18919 2013-05-03  Andreas Jaeger  <aj@suse.de>
18920
18921         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
18922         Linux 3.9.
18923         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
18924         (PF_MAX): Adjust for VSOCK change.
18925
18926 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18927
18928         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18929
18930 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
18931
18932         [BZ #15264]
18933         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
18934         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
18935         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
18936
18937 2013-05-02  David S. Miller  <davem@davemloft.net>
18938
18939         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18940
18941 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
18942
18943         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
18944
18945 2013-05-01  Roland McGrath  <roland@hack.frob.com>
18946
18947         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
18948
18949 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
18950
18951         [BZ #14952]
18952         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
18953         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18954         Use __attribute__ ((__gnu_inline__)).
18955         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18956         Don't use __attribute__ ((__gnu_inline__)).
18957
18958 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
18959
18960         [BZ #15423]
18961         * math/s_catan.c (__catan): Handle small real or imaginary part of
18962         input specially to avoid spurious underflow.
18963         * math/s_catanf.c (__catanf): Likewise.
18964         * math/s_catanh.c (__catanh): Likewise.
18965         * math/s_catanhf.c (__catanhf): Likewise.
18966         * math/s_catanhl.c (__catanhl): Likewise.
18967         * math/s_catanl.c (__catanl): Likewise.
18968         * math/libm-test.inc (catan_test): Add more tests.
18969         (catanh_test): Likewise.
18970         * sysdeps/i386/fpu/libm-test-ulps: Update.
18971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18972
18973 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18974
18975         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18976
18977 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
18978
18979         [BZ #15416]
18980         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
18981         accurately for denominator in atan2.
18982         * math/s_catanf.c (__catanf): Likewise.
18983         * math/s_catanh.c (__catanh): Likewise.
18984         * math/s_catanhf.c (__catanhf): Likewise.
18985         * math/s_catanhl.c (__catanhl): Likewise.
18986         * math/s_catanl.c (__catanl): Likewise.
18987         * math/libm-test.inc (catan_test): Add more tests.
18988         (catanh_test): Likewise.
18989         * sysdeps/i386/fpu/libm-test-ulps: Update.
18990         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18991
18992 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18993
18994         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
18995
18996         * benchtests/Makefile (bench): Remove slow benchmarks.
18997         * benchtests/atan-inputs: Add slow benchmark inputs.
18998         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
18999         (BENCH_FUNC): Accept variant offset.
19000         (VARIANT): Define.
19001         * benchtests/bench-skeleton.c (main): Run benchmark for each
19002         variant.
19003         * benchtests/cos-inputs: Add slow benchmark inputs.
19004         * benchtests/exp-inputs: Likewise.
19005         * benchtests/pow-inputs: Likewise.
19006         * benchtests/sin-inputs: Likewise.
19007         * benchtests/slowatan-inputs: Remove.
19008         * benchtests/slowatan.c: Remove.
19009         * benchtests/slowcos-inputs: Remove.
19010         * benchtests/slowcos.c: Remove.
19011         * benchtests/slowexp-inputs: Remove.
19012         * benchtests/slowexp.c: Remove.
19013         * benchtests/slowpow-inputs: Remove.
19014         * benchtests/slowpow.c: Remove.
19015         * benchtests/slowsin-inputs: Remove.
19016         * benchtests/slowsin.c: Remove.
19017         * benchtests/slowtan-inputs: Remove.
19018         * benchtests/slowtan.c: Remove.
19019         * benchtests/tan-inputs: Add slow benchmark inputs.
19020         * scripts/bench.pl: Parse comments and directives.
19021
19022         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
19023         in CPPFLAGS.
19024         ($(objpfx)bench-%.c): Remove *-ITER.
19025         * benchtests/bench-modf.c: Remove definition of ITER.
19026         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
19027         (main): Loop for DURATION seconds instead of fixed number of
19028         iterations.
19029         * scripts/bench.pl: Don't expect iterations in parameters.
19030
19031 2013-04-29  Roland McGrath  <roland@hack.frob.com>
19032
19033         * io/fchdir.c (__fchdir): Renamed from fchdir.
19034         (fchdir): Define as weak alias.
19035
19036 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19037
19038         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
19039         (ERRNO_EDOM): Likewise.
19040         (ERRNO_ERANGE): Likewise.
19041         (noErrnoTests): New variable.
19042         (init_max_error): Set errno to 0.
19043         (test_single_errno): New function.
19044         (test_errno): Likewise.
19045         (check_float_internal): Call test_errno.  Set errno to 0.
19046         (check_complex): Refer to errno tests in comment.
19047         (check_int): Call test_errno.  Set errno to 0.
19048         (check_long): Likewise.
19049         (check_bool): Likewise.
19050         (check_longlong): Likewise.
19051         (cos_test): Use ERRNO_* flags for errno tests instead of
19052         check_int.
19053         (expm1_test): Likewise.
19054         (fmod_test): Likewise.
19055         (ilogb_test): Likewise.
19056         (lgamma_test): Likewise.
19057         (pow_test): Likewise.
19058         (remainder_test): Likewise.
19059         (sin_test): Likewise.
19060         (tan_test): Likewise.
19061         (yn_test): Likewise.
19062         (initialize): Set errno to 0.
19063         (main): Print number of errno tests.
19064         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
19065
19066 2013-04-29  Andreas Jaeger  <aj@suse.de>
19067
19068         [BZ #15084]
19069         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
19070         and RES_USEVC.
19071
19072         [BZ #15085]
19073         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
19074         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
19075         unimplemented.
19076
19077         [BZ #15380]
19078         * stdlib/random.c (__initstate): Return NULL if
19079         __initstate fails.
19080
19081         [BZ #15086]
19082         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
19083         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
19084         RES_SNGLKUPREOP.
19085
19086 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19087
19088         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19089
19090 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19091
19092         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
19093         of individual tests.
19094         (casin_test): Likewise.
19095         (casinh_test): Likewise.
19096
19097 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
19098
19099         [BZ #15409]
19100         * math/s_catan.c (__catan): Handle arguments with large real or
19101         imaginary part separately without squaring.
19102         * math/s_catanf.c (__catanf): Likewise.
19103         * math/s_catanh.c (__catanh): Likewise.
19104         * math/s_catanhf.c (__catanhf): Likewise.
19105         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19106         and redefine.
19107         (__catanhl): Handle arguments with large real or imaginary part
19108         separately without squaring.
19109         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19110         and redefine.
19111         (__catanl): Handle arguments with large real or imaginary part
19112         separately without squaring.
19113         * math/libm-test.inc (catan_test): Add more tests.
19114         (catanh_test): Likewise.
19115         * sysdeps/i386/fpu/libm-test-ulps: Update.
19116         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19117
19118 2013-04-27  Andreas Jaeger  <aj@suse.de>
19119
19120         [BZ #15007]
19121         * stdlib/stdlib.h: Update guards for qecvt.
19122         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
19123         <stdlib.h>.
19124
19125 2013-04-27  Allan McRae  <allan@archlinux.org>
19126
19127         * sysdeps/i386/fpu/libm-test-ulps: Update.
19128
19129 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
19130
19131         [BZ #15406]
19132         * math/s_catan.c: Include <float.h>.
19133         (__catan): Ensure underflow exception occurs for underflowed
19134         result.
19135         * math/s_catanf.c: Include <float.h>.
19136         (__catanf): Ensure underflow exception occurs for underflowed
19137         result.
19138         * math/s_catanh.c: Include <float.h>.
19139         (__catanh): Ensure underflow exception occurs for underflowed
19140         result.
19141         * math/s_catanhf.c: Include <float.h>.
19142         (__catanhf): Ensure underflow exception occurs for underflowed
19143         result.
19144         * math/s_catanhl.c: Include <float.h>.
19145         (__catanhl): Ensure underflow exception occurs for underflowed
19146         result.
19147         * math/s_catanl.c: Include <float.h>.
19148         (__catanl): Ensure underflow exception occurs for underflowed
19149         result.
19150         * math/libm-test.inc (catan_test): Add more tests.
19151         (catanh_test): Likewise.
19152
19153         [BZ #15405]
19154         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
19155         underflowed result.
19156         * math/s_ccoshf.c (__ccoshf): Likewise.
19157         * math/s_ccoshl.c (__ccoshl): Likewise.
19158         * math/s_csin.c (__csin): Likewise.
19159         * math/s_csinf.c (__csinf): Likewise.
19160         * math/s_csinh.c (__csinh): Likewise.
19161         * math/s_csinhf.c (__csinhf): Likewise.
19162         * math/s_csinhl.c (__csinhl): Likewise.
19163         * math/s_csinl.c (__csinl): Likewise.
19164         * math/libm-test.inc (ccos_test): Add more tests.
19165         (ccosh_test): Likewise.
19166         (csin_test): Likewise.
19167         (csinh_test): Likewise.
19168
19169 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19170
19171         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
19172         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
19173         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
19174         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
19175         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
19176         powerpc/power5+/fpu folders.
19177         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
19178
19179
19180 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19181
19182         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19183
19184 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
19185
19186         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
19187         additions to variable.
19188         [$(config-machine) = x86_64] (modules-names): Likewise.
19189         ($(objpfx)tst-audit3): Remove dependency.
19190         ($(objpfx)tst-audit3.out): Likewise.
19191         ($(objpfx)tst-audit4): Likewise.
19192         ($(objpfx)tst-audit4.out): Likewise.
19193         ($(objpfx)tst-audit5): Likewise.
19194         ($(objpfx)tst-audit5.out): Likewise.
19195         ($(objpfx)tst-audit6): Likewise.
19196         ($(objpfx)tst-audit6.out): Likewise.
19197         ($(objpfx)tst-audit7): Likewise.
19198         ($(objpfx)tst-audit7.out): Likewise.
19199         (tst-audit3-ENV): Remove variable.
19200         (tst-audit4-ENV): Likewise.
19201         (tst-audit5-ENV): Likewise.
19202         (tst-audit6-ENV): Likewise.
19203         (tst-audit7-ENV): Likewise.
19204         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
19205         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
19206         addition to variable.
19207         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
19208         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
19209         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
19210         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
19211         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
19212         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
19213         tst-audit3, tst-audit4 and tst-audit5.
19214         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
19215         tst-audit6 and tst-audit7.
19216         [$(subdir) = elf] (modules-names): Add audit modules for those
19217         tests.
19218         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
19219         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
19220         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
19221         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
19222         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
19223         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
19224         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
19225         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
19226         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
19227         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
19228         [$(subdir) = elf] (tst-audit3-ENV): New variable.
19229         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
19230         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
19231         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
19232         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
19233         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
19234         Likewise.
19235         [$(subdir) = elf && $(config-cflags-avx) = yes]
19236         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
19237         [$(subdir) = elf && $(config-cflags-avx) = yes]
19238         (CFLAGS-tst-auditmod4a.c): Likewise.
19239         [$(subdir) = elf && $(config-cflags-avx) = yes]
19240         (CFLAGS-tst-auditmod4b.c): Likewise.
19241         [$(subdir) = elf && $(config-cflags-avx) = yes]
19242         (CFLAGS-tst-auditmod6b.c): Likewise.
19243         [$(subdir) = elf && $(config-cflags-avx) = yes]
19244         (CFLAGS-tst-auditmod6c.c): Likewise.
19245         [$(subdir) = elf && $(config-cflags-avx) = yes]
19246         (CFLAGS-tst-auditmod7b.c): Likewise.
19247         * elf/tst-audit3.c: Move to ...
19248         * sysdeps/x86_64/tst-audit3.c: ... here.
19249         * elf/tst-audit4.c: Move to ...
19250         * sysdeps/x86_64/tst-audit4.c: ... here.
19251         * elf/tst-audit5.c: Move to ...
19252         * sysdeps/x86_64/tst-audit5.c: ... here.
19253         * elf/tst-audit6.c: Move to ...
19254         * sysdeps/x86_64/tst-audit6.c: ... here.
19255         * elf/tst-audit7.c: Move to ...
19256         * sysdeps/x86_64/tst-audit7.c: ... here.
19257         * elf/tst-auditmod3a.c: Move to ...
19258         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
19259         * elf/tst-auditmod3b.c: Move to ...
19260         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
19261         * elf/tst-auditmod4a.c: Move to ...
19262         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
19263         * elf/tst-auditmod4b.c: Move to ...
19264         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
19265         * elf/tst-auditmod5a.c: Move to ...
19266         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
19267         * elf/tst-auditmod5b.c: Move to ...
19268         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
19269         * elf/tst-auditmod6a.c: Move to ...
19270         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
19271         * elf/tst-auditmod6b.c: Move to ...
19272         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
19273         * elf/tst-auditmod6c.c: Move to ...
19274         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
19275         * elf/tst-auditmod7a.c: Move to ...
19276         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
19277         * elf/tst-auditmod7b.c: Move to ...
19278         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
19279
19280 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
19281
19282         [BZ #15366]
19283         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
19284         define unconditionally.
19285         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
19286         define unconditionally.
19287         (INT8_C, INT16_C, etc.): Likewise.
19288
19289 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
19290
19291         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
19292         __ehdr_start with hidden visibility.
19293
19294         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
19295
19296 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
19297
19298         * math/libm-test.inc (cos_test): Use accurate hex constants.
19299         (sincost_test): Likewise.
19300
19301 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
19302
19303         * math/libm-test.inc (catan_test): Add more tests.
19304         (catanh_test): Likewise.
19305
19306         * math/s_catanf.c (__catanf): Use suffixed floating-point
19307         constants.
19308         * math/s_catanhf.c (__catanhf): Likewise.
19309         * math/s_catanhl.c (__catanhl): Likewise.
19310         * math/s_catanl.c (__catanl): Likewise.
19311
19312         [BZ #15394]
19313         * math/s_catan.c (__catan): Calculate imaginary part of result
19314         with log1p not log unless computing log of number close to 0.
19315         * math/s_catanf.c (__catanf): Likewise.
19316         * math/s_catanl.c (__catanl): Likewise.
19317         * math/s_catanh.c (__catanh): Calculate real part of result with
19318         log1p not log unless computing log of number close to 0.
19319         * math/s_catanhf.c (__catanhf): Likewise.
19320         * math/s_catanhl.c (__catanhl): Likewise.
19321         * math/libm-test.inc (catan_test): Add more tests.
19322         (catanh_test): Likewise.
19323         * sysdeps/i386/fpu/libm-test-ulps: Update.
19324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19325
19326 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19327
19328         * benchtests/Makefile: Mention files in which fast and slow
19329         paths of math functions are implemented.
19330
19331 2013-04-23  Roland McGrath  <roland@hack.frob.com>
19332
19333         * sysdeps/posix/timespec_get.c: New file.
19334
19335 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19336
19337         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
19338         POWER.
19339         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
19340         for POWER.
19341         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
19342         powerpc/power5/fpu folders.
19343         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
19344         * benchtests/Makefile: Add modf testcase.
19345         * benchtests/bench-modf.c: New file: Benchmark test for mo
19346
19347 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
19348
19349         [BZ #14888]
19350         * time/Makefile (tests): Add tst-strptime-whitespace.
19351         * time/strptime_l.c (get_number): Use ISSPACE.
19352         (__strptime_internal): Likewise.
19353         * time/tst-strptime-whitespace.c: New test case.
19354
19355 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
19356
19357         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
19358         member.
19359         (_nss_files_init): Set it here.
19360
19361 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
19362
19363         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
19364         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
19365         unsigned.
19366
19367 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
19368
19369         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
19370
19371 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
19372
19373         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
19374         size just once.
19375
19376 2013-04-21  David S. Miller  <davem@davemloft.net>
19377
19378         * po/ru.po: Update Russion translation from translation project.
19379
19380 2013-04-17  Adam Conrad  <adconrad@0c3.net>
19381
19382         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
19383         and setfsgid.
19384
19385 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
19386
19387         * configure.in: Remove i386 configure warning. Remove i386 case.
19388         * configure: Regenerate.
19389         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
19390         Add example to error message.
19391         * sysdeps/i386/configure: Regenerate.
19392
19393 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
19394
19395         * benchtests/Makefile (bench): Add cos, tan, slowcos and
19396         slowtan.
19397         * benchtests/cos-inputs: New file.
19398         * benchtests/slowcos-inputs: New file.
19399         * benchtests/slowcos.c: New file.
19400         * benchtests/slowtan-inputs: New file.
19401         * benchtests/slowtan.c: New file.
19402         * benchtests/tan-inputs: New file.
19403
19404 2013-04-16  Roland McGrath  <roland@hack.frob.com>
19405
19406         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
19407         considered kosher.
19408
19409 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
19410
19411         * benchtests/Makefile: Include cppflags-iterator.mk to add
19412         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
19413
19414         * Makefile.in (bench-clean): New target.
19415         * benchtests/Makefile (bench-clean): Likewise.
19416
19417 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
19418
19419         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
19420
19421 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
19422
19423         * stdio-common/tstdiomisc.c: Fix coding-style violation.
19424
19425 2013-04-15  Andreas Schwab  <schwab@suse.de>
19426
19427         * nscd/grpcache.c (cache_addgr): Properly check for short write.
19428         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19429         * nscd/pwdcache.c (cache_addpw): Likewise.
19430         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
19431         more than recsize.
19432
19433 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19434
19435         * benchtests/Makefile (bench): Write all output to
19436         bench-out.tmp together.
19437
19438 2013-04-15  Andreas Schwab  <schwab@suse.de>
19439
19440         * nscd/nscd.c (main): Don't fork again after closing files.
19441
19442 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19443
19444         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
19445
19446         * benchtests/Rules (bench-deps): Collect dependencies into a
19447         single variable.  Add Makefile to dependencies.
19448         ($(objpfx)bench-%.c): Depend on bench-deps.
19449
19450 2013-04-12  Roland McGrath  <roland@hack.frob.com>
19451             Xavier Roche  <roche+kml2@exalead.com>
19452
19453         [BZ #15361]
19454         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
19455         just that it's a file descriptor.
19456         * manual/llio.texi (Synchronizing AIO Operations): Update description
19457         for EBADF error from aio_fsync.
19458
19459 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
19460
19461         * Rules (bench): Move target definition...
19462         * benchtests/Makefile: ... here.
19463
19464 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
19465
19466         * math/libm-test.inc (cos_test): Fix PI/2 test.
19467         (sincos_test): Likewise.
19468         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
19469         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19470
19471 2013-04-11  Andreas Schwab  <schwab@suse.de>
19472
19473         [BZ #13988]
19474         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
19475         accept exponent character only when digits were seen.
19476         * stdio-common/Makefile (tests): Add bug26.
19477         * stdio-common/bug26.c: New file.
19478
19479         [BZ #14293]
19480         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
19481         non-freeable.
19482
19483 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
19484
19485         * Makeconfig (rtld-prefix): Define built linker prefix.
19486         * Rules (run-bench): Use it.
19487         * math/Makefile (run-regen-ulps): Likewise.
19488
19489         * Rules (bench): Remove eval.
19490
19491 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19492             Roland McGrath  <roland@hack.frob.com>
19493             Ondrej Bilka  <neleai@seznam.cz>
19494
19495         [BZ #15346]
19496         * time/getdate.c: Include ctype.h and alloca.h.
19497         (__getdate_r): Trim leading and trailing spaces of input.
19498         * time/tst-getdate.c (tests): Add tests with leading and
19499         trailing spaces.
19500
19501 2013-04-08  Roland McGrath  <roland@hack.frob.com>
19502
19503         [BZ #14280]
19504         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
19505         when computing value.
19506
19507 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19508
19509         * math/README.libm-test (How can I generate "libm-test-ulps"?):
19510         Use testrun.sh to run libm tests.
19511
19512         [BZ #15309]
19513         * elf/dl-open.c (dl_open_worker): memset all of seen array.
19514
19515 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
19516
19517         [BZ #15264]
19518         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
19519
19520 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19521
19522         * Makefile.in (regen-ulps): New target.
19523         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
19524         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
19525         [ifneq (no,$(PERL)] (regen-ulps): New target.
19526         [ifeq (no,$(PERL)] (regen-ulps): New target.
19527         * math/libm-test.inc (ulps_file_name): Define.
19528         (output_dir): New variable.
19529         (options): Add "output-dir" option.
19530         (parse_opt): Handle 'o' case.
19531         (main): If output_dir is non-NULL use it as a prefix
19532         otherwise use "".
19533         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
19534
19535 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19536
19537         [BZ #10060, #10062]
19538         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
19539         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
19540         fail configure if __sync_val_compare_and_swap is not inlined.
19541         * sysdeps/i386/configure: Regenerate.
19542         * configure.in: Build for i686 when configured for i386.
19543         * configure: Regenerate.
19544         * README: Remove i386 reference.
19545
19546 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19547
19548         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
19549         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19550
19551 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
19552
19553         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
19554         (lmsnanval): New variables.
19555         (F): Add conversion tests.
19556         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
19557         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
19558
19559         * stdio-common/tstdiomisc.c (F): Properly collect individual
19560         tests' results.
19561
19562         [BZ #14686, #15336]
19563         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
19564         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
19565         Instead, use input NaN values or generate a qNaN by arithmetic
19566         operation.  Also fix bugs to comply with the standard.
19567         * math/libm-test.inc (remainder_test): Add more tests.
19568
19569         [BZ #15335, #15342]
19570         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
19571         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
19572         input NaN values or generate a qNaN by arithmetic operation.
19573
19574         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
19575         unreachable code.
19576
19577         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
19578         definitions.
19579
19580 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
19581
19582         [BZ #14478]
19583         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
19584         underflowed result.
19585         * math/s_cexpf.c (__cexpf): Likewise.
19586         * math/s_cexpl.c (__cexpl): Likewise.
19587         * math/libm-test.inc (cexp_test): Add more tests.
19588
19589 2013-04-03  Andreas Schwab  <schwab@suse.de>
19590
19591         [BZ #15330]
19592         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
19593         order arrays from heap if bigger than alloca cutoff.
19594
19595 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
19596
19597         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
19598         (SNAN_TESTS_double): Refer to GCC PR56831.
19599         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
19600         GCC PR56828.
19601
19602 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
19603
19604         * Rules (bench): Move bench.out after the run is complete.
19605
19606         * Rules (bench): Echo currently running benchmark.
19607
19608         * benchtests/Makefile (bench): Add atan and slowatan.
19609         * benchtests/atan-inputs: New file.
19610         * benchtests/slowatan-inputs: New file.
19611         * benchtests/slowatan.c: New file.
19612
19613         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
19614         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
19615         its value.
19616
19617         [BZ #15305]
19618         * sysdeps/unix/sysv/linux/kernel-features.h
19619         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
19620         __ASSUME_XFS_RESTRICTED_CHOWN.
19621         * sysdeps/unix/sysv/linux/pathconf.c
19622         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
19623         Save and restore errno.
19624
19625 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
19626
19627         [BZ #15327]
19628         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
19629         arguments using __kernel_casinh.
19630         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
19631         arguments using __kernel_casinhf.
19632         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
19633         arguments using __kernel_casinhl.
19634         * math/libm-test.inc (cacosh_test): Add more tests.
19635         * sysdeps/i386/fpu/libm-test-ulps: Update.
19636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19637
19638 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
19639
19640         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
19641         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
19642
19643         * bench/Makefile (bench): Add sin and slowsin.
19644         * benchtests/sin-inputs: New file.
19645         * benchtests/slowsin-inputs: New file.
19646         * benchtests/slowsin.c: New file.
19647
19648         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
19649         (bench): Add slowexp and slowpow.
19650         (exp-ITER): Increase iterations.
19651         (pow-ITER): Likewise.
19652         * benchtests/exp-inputs: Change input.
19653         * benchtests/pow-inputs: Likewise.
19654         * benchtests/slowexp-inputs: New file.
19655         * benchtests/slowexp.c: New file.
19656         * benchtests/slowpow-inputs: New file.
19657         * benchtests/slowpow.c: New file.
19658
19659 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19660
19661         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
19662         instructions.
19663         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19664         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
19665         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
19666         * benchtests/Makefile: Add rint benchtest.
19667         * benchtests/rint-inputs: Input for rint benchtest.
19668
19669 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
19670
19671         * Versions.def (libm): Add GLIBC_2.18.
19672         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
19673         hidden libm prototypes.
19674         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
19675         * math/Makefile (libm-calls): Add s_issignaling.
19676         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
19677         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
19678         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
19679         declaration.
19680         * math/math.h [__USE_GNU] (issignaling): New macro.
19681         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
19682         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
19683         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
19684         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
19685         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
19686         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
19687         * manual/arith.texi (issignaling): New section.
19688         * manual/libm-err-tab.pl (@all_functions): Update comment.
19689         * math/gen-libm-test.pl (parse_args): Apply special handling for
19690         issignaling.
19691         * math/libm-test.inc (print_float, issignaling_test): New
19692         functions.
19693         (check_float_internal): Add issignaling checks.
19694         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
19695         default definition.
19696         * sysdeps/powerpc/math-tests.h: New file.
19697         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
19698         tests.
19699         * math/test-snan.c (TEST_FUNC): Likewise.
19700
19701 2013-03-30  David S. Miller  <davem@davemloft.net>
19702
19703         * po/de.po: Update from translation team.
19704
19705 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
19706
19707         [BZ #10357]
19708         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19709         imaginary part less than 1.0 and real part less than 0.5
19710         specially.
19711         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19712         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19713         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
19714         (cacos_test): Add more tests.
19715         (casin_test): Likewise.
19716         (casinh_test): Likewise.
19717         * sysdeps/i386/fpu/libm-test-ulps: Update.
19718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19719
19720 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19721
19722         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
19723         ONE with its value.
19724
19725         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
19726         (__pow_mp): Replace ONE and MONE with their values.
19727         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19728         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
19729         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19730         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
19731         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19732         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19733
19734         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
19735
19736         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
19737         (__pow_mp): Replace ZERO and MZERO with their values.
19738         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19739         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19740         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19741         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
19742         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19743         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
19744         (__sqr): Likewise.
19745
19746         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
19747
19748         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
19749
19750 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19751
19752         * include/stdlib.h [!SHARED] (__call_tls_dtors):
19753         Declare with __attribute__ ((weak)).
19754         * stdlib/exit.c (__libc_atexit) [!SHARED]:
19755         Call __call_tls_dtors only if it's not NULL.
19756
19757 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19758
19759         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
19760         didn't do it already, then set _dl_phdr and _dl_phnum based on the
19761         magic __ehdr_start linker symbol if it's defined.
19762         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
19763         them up here if it was already done.
19764
19765         * elf/dl-support.c (_dl_phdr): Make pointer to const.
19766         (_dl_aux_init): Use const in cast when setting it.
19767         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
19768         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
19769         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
19770
19771         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
19772         Declare them here.
19773         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
19774         * csu/libc-tls.c: Nor here.
19775         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
19776
19777         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
19778         (__libc_message): Never call vsyslog.
19779
19780 2013-03-28  Alan Modra  <amodra@gmail.com>
19781
19782         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
19783         Define as empty.
19784         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
19785         Likewise.
19786
19787 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19788
19789         [BZ #15214]
19790         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
19791         underflow.
19792         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19793
19794 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19795
19796         [BZ #15304]
19797         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
19798         Don't add gid passed as argument.
19799
19800         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
19801
19802 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
19803
19804         [BZ #15307]
19805         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19806         imaginary part between 1.0 and 1.5 and real part less than 0.5
19807         specially.
19808         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19809         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19810         * math/libm-test.inc (cacos_test): Add more tests.
19811         (casin_test): Likewise.
19812         (casinh_test): Likewise.
19813         * sysdeps/i386/fpu/libm-test-ulps: Update.
19814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19815
19816 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19817
19818         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
19819         constants.
19820         (norm): Likewise.
19821         (denorm): Likewise.
19822         (__dbl_mp): Likewise.
19823         (add_magnitudes): Likewise.
19824         (sub_magnitudes): Likewise.
19825         (__add): Likewise.
19826         (__sub): Likewise.
19827         (__mul): Likewise.
19828         (__sqr): Likewise.
19829         (__inv): Likewise.
19830         (__dvd): Likewise.
19831
19832         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
19833         commented code.
19834         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
19835         (__dubcos): Likewise.
19836         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
19837         (__ieee754_acos): Likewise.
19838         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19839         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
19840         (__exp1): Likewise.
19841         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19842         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19843         (log1): Likewise.
19844         (my_log2): Likewise.
19845         (checkint): Likewise.
19846         * sysdeps/ieee754/dbl-64/e_remainder.c
19847         (__ieee754_remainder): Likewise.
19848         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19849         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
19850         (bsloww): Likewise.
19851         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19852
19853         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19854         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
19855         MANTISSA_STORE_T to store computations on mantissa.  Use
19856         macros for rounding and division.
19857         (denorm): Likewise.
19858         (__dbl_mp): Likewise.
19859         (add_magnitudes): Likewise.
19860         (sub_magnitudes): Likewise.
19861         (__mul): Likewise.
19862         (__sqr): Likewise.
19863         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19864         powers of two in terms of TWOPOW macro.
19865         (mp_no): Make type of mantissa as MANTISSA_T.
19866         [!RADIXI]: Define RADIXI.
19867         [!TWO52]: Define TWO52.
19868         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19869
19870 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19871
19872         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
19873         llroundl symbol when building for PPC32.
19874
19875 2013-03-24  Mark H Weaver  <mhw@netris.org>
19876
19877         * manual/arith.texi (Normalization Functions): Fix prototypes for
19878         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
19879
19880 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19881
19882         [BZ #13889]
19883         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
19884         high value to check if expl overflow.
19885         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
19886         to check for underflow and overflow.
19887         * math/libm-test.inc: Add exp test.
19888
19889 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
19890
19891         [BZ #11120]
19892         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
19893         with NOT_IN_libc.
19894
19895 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19896
19897         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
19898         symbol.
19899
19900 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19901
19902         * math/gen-libm-test.pl (parse_args, special_functions): Properly
19903         wrap blocks consisting of several statements.
19904
19905         * sysdeps/generic/math-tests.h: New file.
19906         * sysdeps/i386/fpu/math-tests.h: Likewise.
19907         * math/test-snan.c: Include it.
19908         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
19909
19910 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19911
19912         [BZ #15285]
19913         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
19914         (__ieee754_j0l): Do not improve calculations using cos of twice
19915         input for inputs above LDBL_MAX / 2.0L.
19916         (__ieee754_y0l): Likewise.
19917         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
19918         (__ieee754_j1l): Do not improve calculations using cos of twice
19919         input for inputs above LDBL_MAX / 2.0L.
19920         (__ieee754_y1l): Likewise.
19921         * math/libm-test.inc (j0_test): Add another test.
19922         (j1_test): Likewise.
19923         (y0_test): Likewise.
19924         (y1_test): Likewise.
19925         * sysdeps/i386/fpu/libm-test-ulps: Update.
19926
19927 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19928
19929         * Rules ($(objpfx)bench-%.c): Include code from a C source
19930         file.
19931
19932 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19933
19934         [BZ #15287]
19935         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19936         imaginary part 1.0 and real part less than 0.5 specially.
19937         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19938         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19939         * math/libm-test.inc (cacos_test): Add more tests.
19940         (casin_test): Likewise.
19941         (casinh_test): Likewise.
19942         * sysdeps/i386/fpu/libm-test-ulps: Update.
19943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19944
19945 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19946
19947         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
19948         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
19949
19950 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
19951
19952         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
19953         * config.make.in (config-cflags-sse4): Remove variable.
19954         (config-cflags-avx): Likewise.
19955         (config-cflags-sse2avx): Likewise.
19956         (config-cflags-novzeroupper): Likewise.
19957         (config-asflags-i686): Likewise.
19958         (have-mfma4): Likewise.
19959         (have-as-vis3): Likewise.
19960         (MIG): Likewise.
19961         * configure.in (MIG): Do not AC_SUBST.
19962         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
19963         (libc_cv_cc_sse4): Do not AC_SUBST.
19964         (libc_cv_cc_avx): Likewise.
19965         (libc_cv_cc_sse2avx): Likewise.
19966         (libc_cv_cc_novzeroupper): Likewise.
19967         (libc_cv_cc_fma4): Likewise.
19968         (libc_cv_as_i686): Likewise.
19969         (libc_cv_sparc_as_vis3): Likewise.
19970         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
19971         LIBC_CONFIG_VAR.
19972         (config-asflags-i686): Likewise.
19973         (config-cflags-avx): Likewise.
19974         (config-cflags-sse2avx): Likewise.
19975         (have-mfma4): Likewise.
19976         (config-cflags-novzeroupper): Likewise.
19977         * sysdeps/mach/configure.in (MIG): Likewise.
19978         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
19979         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
19980         LIBC_CONFIG_VAR.
19981         (config-cflags-avx): Likewise.
19982         (config-cflags-sse2avx): Likewise.
19983         (have-mfma4): Likewise.
19984         (config-cflags-novzeroupper): Likewise.
19985         * configure: Regenerated.
19986         * sysdeps/i386/configure: Likewise.
19987         * sysdeps/mach/configure: Likewise.
19988         * sysdeps/sparc/configure: Likewise.
19989         * sysdeps/x86_64/configure: Likewise.
19990
19991 2013-03-20  Roland McGrath  <roland@hack.frob.com>
19992
19993         [BZ #14812]
19994         * locale/programs/localedef.c (options): Put N_ translation marker
19995         on argument names, not just descriptions.
19996
19997 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
19998
19999         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
20000
20001 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
20002
20003         [BZ #14176]
20004         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
20005
20006 2013-03-19  Roland McGrath  <roland@hack.frob.com>
20007
20008         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
20009         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
20010         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
20011         [!BEFORE_ABORT] (before_abort): New function.
20012         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
20013         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
20014         (writev_for_fatal): New function.
20015         (WRITEV_FOR_FATAL): New macro; call that.
20016         (backtrace_and_maps): New function.
20017         (BEFORE_ABORT): New macro; call that.
20018         (struct str_list): Type removed.
20019         (__libc_message, __libc_fatal): Functions removed.
20020         Include <sysdeps/posix/libc_fatal.c> instead.
20021
20022 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
20023
20024         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
20025         constants.
20026         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
20027         double constants.
20028
20029 2013-03-19  Andreas Schwab  <schwab@suse.de>
20030
20031         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
20032         * sysdeps/gnu/configure: Regenerate.
20033
20034         * configure.in: Substitute libc_cv_rtlddir.
20035         * configure: Regenerate.
20036         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
20037         * Makeconfig (rtlddir, inst_rtlddir): New variables.
20038         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
20039         * elf/Makefile (install-others, CFLAGS-interp.c)
20040         (ldso_install, common-ldd-rewrite): Likewise.
20041         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
20042         $(inst_slibdir)/$(rtld-installed-name).
20043         * scripts/rellns-sh: Add -p option.
20044         * Makerules (make-shlib-link): Use rellns-sh to get relative name
20045         for source.
20046
20047 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20048
20049         * manual/nptl.texi: Renamed to ...
20050         * manual/threads.texi: ... this.
20051         * manual/Makefile (chapters): Update.
20052
20053 2013-03-18  Roland McGrath  <roland@hack.frob.com>
20054
20055         [BZ #14812]
20056         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
20057         on argument names, not just descriptions.
20058         * malloc/memusagestat.c (options): Likewise.
20059         * nss/getent.c (options): Likewise.
20060
20061 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
20062
20063         [BZ #14812]
20064         * iconv/iconv_prog.c (options): Put N_ translation marker
20065         on argument names, not just descriptions.
20066         * iconv/iconvconfig.c (options): Likewise.
20067
20068 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
20069
20070         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
20071         implementation which is faster on all x86_64 architectures.
20072         Tested on AMD, Intel Nehalem, SNB, IVB.
20073         * sysdeps/x86_64/strnlen.S: Likewise.
20074
20075         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
20076         Remove all multiarch strlen and strnlen versions.
20077         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
20078         Remove strlen and strnlen related parts.
20079
20080         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
20081         Inline strlen part.
20082         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
20083
20084         * sysdeps/x86_64/multiarch/strlen.S: Remove.
20085         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
20086         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
20087         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
20088         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
20089         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
20090
20091 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
20092
20093         * manual/memory.texi (Malloc Tunable Parameters):
20094         Sort parameters alphabetically. Add comments for missing entries.
20095
20096 2013-03-17  David S. Miller  <davem@davemloft.net>
20097
20098         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20099
20100 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
20101
20102         [BZ #15283]
20103         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
20104         for arguments at most half maximum finite value.
20105         * math/libm-test.inc (j0_test): Add more tests.
20106         (j1_test): Likewise.
20107         (y0_test): Likewise.
20108         (y1_test): Likewise.
20109         * sysdeps/i386/fpu/libm-test-ulps: Update.
20110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20111
20112         [BZ #14155]
20113         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
20114         1 / x and functions P and Q for arguments above 0x1p256L.
20115         (__ieee754_y0l): Likewise.
20116         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20117         (__ieee754_y1l): Likewise.
20118         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
20119         (j1_test): Likewise.
20120         (y0_test): Likewise.
20121         (y1_test): Likewise.
20122
20123 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
20124
20125         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
20126         variable.
20127
20128 2013-03-15  Roland McGrath  <roland@hack.frob.com>
20129
20130         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
20131         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
20132         zero since it's initialized to EXEC_PAGESIZE.
20133
20134         * sysdeps/unix/sysv/linux/ldsodefs.h
20135         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
20136         * sysdeps/generic/ldsodefs.h: ... here.
20137
20138 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
20139
20140         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
20141
20142         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
20143         math/test-snan.c.
20144         * math/test-snan.c: Renamed from
20145         sysdeps/powerpc/fpu/test-powerpc-snan.c.
20146         * math/Makefile (tests): Add test-snan.
20147         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
20148         test-powerpc-snan.
20149
20150         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
20151         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
20152         functions.
20153         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
20154         __builtin_nan family of functions.
20155         * math/libm-test.inc (initialize): Initialize qnan_value with
20156         __builtin_nan family of functions.
20157         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
20158         Remove variables.
20159         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
20160         Remove functions.
20161         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
20162         storage class.  Initialize qNaN_var and sNaN_var with
20163         __builtin_nan and __builtin_nans families of functions,
20164         respectively.
20165
20166         * math/libm-test.inc (acosh_test): Also test with qNaN input.
20167         (sqrt_test): Remove duplicate test with qNaN input.
20168         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
20169         (round_test, signbit_test, significand_test): Note missing +/-Inf
20170         as well as qNaN tests.
20171
20172         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
20173         qNaN_var.  Fix a few strings, too.
20174         * math/libm-test.inc (nan_value): Rename to qnan_value.
20175         * math/gen-libm-test.pl (%beautify): Adjust to that.
20176         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
20177         * math/test-misc.c (main): Likewise.
20178         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
20179         to __qnan_bytes, and __qnan_union, respectively.
20180         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
20181         Likewise.
20182         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
20183         and lqnanval, respectively.
20184         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
20185         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
20186         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
20187         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
20188
20189         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
20190         * math/test-misc.c (main) [__x86_64__]: Enable test for long
20191         doubles.
20192
20193         * math/test-misc.c (main): Fix copy'n'pastos.
20194         * misc/tst-efgcvt.c (special): Likewise.
20195
20196         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
20197         Remove declarations.
20198
20199 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20200
20201         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
20202         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
20203         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
20204         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
20205
20206 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20207
20208         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
20209         macro to return vdso values correctly in IFUNC implementations.
20210         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
20211         Optimization by using IFUNC.
20212
20213 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20214             Richard Henderson  <rth@redhat.com>
20215             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20216
20217         * Makefile.in (bench): New target.
20218         * NEWS: Mention the benchmark framework.
20219         * Rules (bench): Likewise.
20220         (binaries-bench): Generate binaries for functions to
20221         benchmark.
20222         * benchtests/Makefile: New makefile for benchmark tests.
20223         * benchtests/bench-skeleton.c: New skeleton file for benchmark
20224         programs.
20225         * benchtests/exp-inputs: New input file for EXP function.
20226         * benchtests/pow-inputs: New input file for POW function.
20227         * scripts/bench.pl: New script to generate source files for
20228         benchmark programs.
20229
20230 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20231
20232         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20233         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
20234         computations on mantissa.  Use macros for rounding and
20235         division.
20236         (denorm): Likewise.
20237         (__dbl_mp): Likewise.
20238         (add_magnitudes): Likewise.
20239         (sub_magnitudes): Likewise.
20240         (__mul): Likewise.
20241         (__sqr): Likewise.
20242         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20243         powers of two in terms of TWOPOW macro.
20244         (mp_no): Make type of mantissa as MANTISSA_T.
20245         [!RADIXI]: Define RADIXI.
20246         [!TWO52]: Define TWO52.
20247         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20248
20249         * manual/nptl.texi (cindex): Modify threads to pthreads.
20250
20251 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
20252
20253         * sysdeps/x86_64/preconfigure: Regenerated.
20254
20255 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
20256
20257         [BZ #14155]
20258         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
20259         0x1p28 and above.
20260         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
20261         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
20262         0x1p28 and above.
20263         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
20264         * math/libm-test.inc (j0_test): Do not allow one spurious
20265         underflow exception.
20266         (y1_test): Likewise.
20267
20268 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20269
20270         * manual/Makefile (chapters): Add nptl.
20271         * manual/debug.texi (Debugging Support): Add link to Threads
20272         chapter.
20273         * manual/nptl.texi: New file.
20274
20275         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
20276
20277 2013-03-14  Petr Baudis  <pasky@ucw.cz>
20278
20279         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
20280         for non-NULL pointer before the memory validity test. Pointed
20281         out by Holger Brunck <holger.brunck@keymile.com>.
20282
20283 2013-03-13  Andreas Schwab  <schwab@suse.de>
20284
20285         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
20286         instead of .os.
20287
20288 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
20289
20290         * timezone/zic.c: Update from tzcode 2013b.
20291
20292 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
20293
20294         * manual/install.texi (Configuring and compiling):
20295         Mention i686 and i586.
20296         * INSTALL: Regenerate.
20297
20298 2013-03-12  Roland McGrath  <roland@hack.frob.com>
20299
20300         * sysdeps/init_array/elf-init.c: New file.
20301         * csu/elf-init.c
20302         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
20303         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
20304
20305         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
20306         __gmon_start__ as global, but as static with a .preinit_array pointer.
20307         * sysdeps/init_array/gmon-start.c: New file.  Use that.
20308         * sysdeps/init_array/crti.S: New file, empty except for comments.
20309         * sysdeps/init_array/crtn.S: Likewise.
20310
20311 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
20312
20313         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
20314         definining bcopy.
20315         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20316         Remove Prefer_SSE_for_memop.
20317         * sysdeps/x86_64/multiarch/init-arch.h: Remove
20318         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
20319         HAS_PREFER_SSE_FOR_MEMOP.
20320         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
20321         memset-x86-64.
20322         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
20323         Remove bzero, memset ifunc support.
20324         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
20325         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
20326         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20327         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20328
20329 2013-03-11  Andreas Schwab  <schwab@suse.de>
20330
20331         [BZ #15234]
20332         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
20333         by SHLIB_COMPAT.
20334         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
20335         (GLIBC_2.16): Remove pthread_atfork.
20336
20337 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20338
20339         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
20340         (ptestcases.h): Likewise.
20341
20342 2013-03-08  Roland McGrath  <roland@hack.frob.com>
20343
20344         * Makeconfig ($(common-objpfx)config.status): Depend on
20345         sysdeps/*/preconfigure{,.in} too.
20346
20347 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
20348
20349         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
20350         (__free_hook): Use void * instead of __malloc_ptr_t.
20351         (__malloc_hook): Likewise.
20352         (__realloc_hook): Likewise.
20353         (__memalign_hook): Likewise.
20354         (__after_morecore_hook): Likewise.
20355         * malloc/arena.c (save_malloc_hook): Likewise.
20356         (save_free_hook): Likewise.
20357         * malloc/hooks.c (malloc_hook_ini): Likewise.
20358         (realloc_hook_ini): Likewise.
20359         (memalign_hook_ini): Likewise.
20360         * malloc/malloc.c (malloc_hook_ini): Likewise.
20361         (realloc_hook_ini): Likewise.
20362         (memalign_hook_ini): Likewise.
20363         (__free_hook): Likewise.
20364         (__malloc_hook): Likewise.
20365         (__realloc_hook): Likewise.
20366         (__memalign_hook): Likewise.
20367         (__libc_malloc): Likewise.
20368         (__libc_free): Likewise.
20369         (__libc_realloc): Likewise.
20370         (__libc_memalign): Likewise.
20371         (__libc_valloc): Likewise.
20372         (__libc_pvalloc): Likewise.
20373         (__libc_calloc): Likewise.
20374         (__posix_memalign): Likewise.
20375         * malloc/morecore.c (__sbrk): Likewise.
20376         (__default_morecore): Likewise.
20377
20378         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
20379
20380         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
20381         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
20382         __malloc_ptrdiff_t.
20383
20384         * malloc/malloc.h (__malloc_size_t): Remove macro.
20385         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
20386         __malloc_size_t.
20387         (old_memalign_hook): Likewise.
20388         (old_realloc_hook): Likewise.
20389         (struct hdr): Likewise.
20390         (flood): Likewise.
20391         (mallochook): Likewise.
20392         (memalignhook): Likewise.
20393         (reallochook): Likewise.
20394         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
20395         (tr_old_realloc_hook): Likewise.
20396         (tr_old_memalign_hook): Likewise.
20397         (tr_mallochook): Likewise.
20398         (tr_reallochook): Likewise.
20399         (tr_memalignhook): Likewise.
20400
20401 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20402
20403         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
20404         default_ldbl_pack and using as default implementation.
20405         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
20406         implementation.
20407         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
20408         redundant definition.
20409         (ldbl_insert_mantissa): Likewise.
20410         (ldbl_canonicalize): Likewise.
20411         (ldbl_nearbyint): Likewise.
20412         (ldbl_pack): Rename to ldbl_pack_ppc.
20413         (ldbl_unpack): Rename to ldbl_unpack_ppc.
20414         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
20415         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
20416
20417 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
20418
20419         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
20420         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
20421         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
20422         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
20423         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
20424         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
20425         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
20426         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
20427
20428 2013-03-07  Andreas Jaeger  <aj@suse.de>
20429
20430         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20431         bits/mman-linux.h.
20432
20433 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
20434
20435         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
20436         Include mpa.h and declare __MPEXP.
20437         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
20438         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20439         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20440         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
20441         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20442         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20443         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
20444
20445         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
20446         (__slowpow): Use long double EXPL and LOGL functions to
20447         compute POW.
20448         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20449         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20450         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
20451         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20452         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20453         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
20454
20455         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
20456         intermediate variable to calculate exponent.
20457         (__sqr): Likewise.
20458         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20459         Likewise.
20460         (__sqr): Likewise.
20461
20462         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
20463         [!NO__SQR]: Define __sqr.
20464         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
20465         and NO__SQR.  Remove all code except __mul and __sqr.  Include
20466         sysdeps/ieee754/dbl-64/mpa.c.
20467         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20468
20469         [BZ #12723]
20470         * posix/Makefile (tests): Add tst-pathconf.
20471         * posix/tst-pathconf.c: New test case.
20472         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
20473         _PC_PIPE_BUF.
20474         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
20475
20476 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
20477
20478         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
20479
20480 2013-03-06  Andreas Jaeger  <aj@suse.de>
20481
20482         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
20483         definition via __MAP_ANONYMOUS.
20484
20485         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
20486         it's not part of Linux headers.
20487
20488         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
20489         (MAP_HUGE_MASK): Define.
20490
20491         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20492         Define.
20493         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20494         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20495         Define.
20496         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20497         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20498         Define.
20499         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20500         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
20501         Define.
20502         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20503
20504         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
20505         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
20506         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
20507         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
20508         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
20509         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
20510
20511         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20512         Handle f2fs.
20513
20514         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20515         Handle f2fs and efivarfs.
20516
20517         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
20518         f2fs.
20519
20520         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
20521         (EFIVARFS_MAGIC): Add.
20522         (F2FS_LINK_MAX): Add.
20523
20524 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20525
20526         * stdio-common/vfprintf.c: Replace __builtin_expect with
20527         __glibc_unlikely.
20528
20529 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
20530
20531         [BZ #13550]
20532         * sysdeps/generic/bp-sym.h: Remove file.
20533         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
20534         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
20535         <bp-sym.h> and <bp-asm.h>.
20536         (__longjmp): Don't use BP_SYM.
20537         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
20538         and <bp-asm.h>.
20539         (memcpy): Don't use BP_SYM.
20540         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
20541         <bp-sym.h> and <bp-asm.h>.
20542         (memcpy): Don't use BP_SYM.
20543         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
20544         <bp-asm.h>.
20545         (memcpy): Don't use BP_SYM.
20546         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
20547         <bp-asm.h>.
20548         (memset): Don't use BP_SYM.
20549         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20550         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20551         (__bzero): Don't use BP_SYM.
20552         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20553         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20554         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
20555         <bp-sym.h> and <bp-asm.h>.
20556         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20557         pointers.
20558         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
20559         <bp-sym.h> and <bp-asm.h>.
20560         (memcpy): Don't use BP_SYM.
20561         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
20562         <bp-sym.h> and <bp-asm.h>.
20563         (memset): Don't use BP_SYM.
20564         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20565         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20566         (__bzero): Don't use BP_SYM.
20567         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20568         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20569         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
20570         <bp-sym.h> and <bp-asm.h>.
20571         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20572         pointers.
20573         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
20574         <bp-sym.h> and <bp-asm.h>.
20575         (memcpy): Don't use BP_SYM.
20576         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
20577         <bp-sym.h> and <bp-asm.h>.
20578         (memset): Don't use BP_SYM.
20579         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20580         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20581         (__bzero): Don't use BP_SYM.
20582         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20583         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20584         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
20585         <bp-sym.h> and <bp-asm.h>.
20586         (__memchr): Don't use BP_SYM.
20587         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
20588         <bp-sym.h> and <bp-asm.h>.
20589         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20590         pointers.
20591         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
20592         <bp-sym.h> and <bp-asm.h>.
20593         (memcpy): Don't use BP_SYM.
20594         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
20595         <bp-sym.h> and <bp-asm.h>.
20596         (__mempcpy): Don't use BP_SYM.
20597         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
20598         <bp-sym.h> and <bp-asm.h>.
20599         (__memrchr): Don't use BP_SYM.
20600         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
20601         <bp-sym.h> and <bp-asm.h>.
20602         (memset): Don't use BP_SYM.
20603         (__bzero): Likewise.
20604         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
20605         <bp-sym.h> and <bp-asm.h>.
20606         (__rawmemchr): Don't use BP_SYM.
20607         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
20608         <bp-sym.h> and <bp-asm.h>.
20609         (__STRCMP): Don't use BP_SYM.
20610         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
20611         <bp-sym.h> and <bp-asm.h>.
20612         (strchr): Don't use BP_SYM.
20613         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
20614         <bp-sym.h> and <bp-asm.h>.
20615         (__strchrnul): Don't use BP_SYM.
20616         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
20617         <bp-sym.h> and <bp-asm.h>.
20618         (strlen): Don't use BP_SYM.
20619         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
20620         <bp-sym.h> and <bp-asm.h>.
20621         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20622         pointers.
20623         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
20624         <bp-sym.h> and <bp-asm.h>.
20625         (__strnlen): Don't use BP_SYM.
20626         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
20627         <bp-sym.h> and <bp-asm.h>.
20628         (__GI__setjmp): Don't use BP_SYM.
20629         (_setjmp): Likewise.
20630         (__sigsetjmp): Likewise.
20631         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
20632         (L(start_addresses)): Don't use BP_SYM.
20633         (_start): Likewise.
20634         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
20635         <bp-asm.h>.
20636         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
20637         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
20638         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20639         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20640         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
20641         <bp-asm.h>.
20642         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
20643         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
20644         about bounded pointers.
20645         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20646         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20647         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
20648         <bp-asm.h>.
20649         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20650         about bounded pointers.  Remove GKM FIXME comments.
20651         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20652         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
20653         <bp-asm.h>.
20654         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
20655         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
20656         Remove GKM FIXME comments.
20657         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20658         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20659         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
20660         <bp-asm.h>.
20661         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20662         about bounded pointers.  Remove GKM FIXME comment.
20663         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
20664         and <bp-asm.h>.
20665         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20666         pointers.
20667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
20668         <bp-sym.h> and <bp-asm.h>.
20669         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
20671         <bp-sym.h> and <bp-asm.h>.
20672         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20673         comment.
20674
20675 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20676
20677         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
20678         call free(NULL).
20679
20680 2013-03-05  David S. Miller  <davem@davemloft.net>
20681
20682         * po/es.po: Update from translation team.
20683
20684 2013-03-05  Andreas Jaeger  <aj@suse.de>
20685
20686         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
20687         <bits/mman-linux.h>.
20688         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20689         is fine.
20690         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
20691         <bits/mman-linux.h> to end of file.
20692         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20693         is fine.
20694         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
20695         <bits/mman-linux.h> to end of file.
20696         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20697         is fine.
20698         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
20699         <bits/mman-linux.h> to end of file.
20700
20701         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
20702         (MCL_CURRENT, MCL_FUTURE): Define here.
20703
20704 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20705
20706         [BZ #15232]
20707         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
20708         attribute_hidden.
20709         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
20710
20711 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20712
20713         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
20714         fourth parameter needed for rt_sigprocmask syscall.
20715         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
20716         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
20717         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20718         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
20719         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
20720         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
20721
20722 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
20723
20724         [BZ #13550]
20725         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
20726         comment about bounded pointers.
20727         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
20728         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
20729
20730 2013-03-04  Andreas Jaeger  <aj@suse.de>
20731
20732         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
20733         common definitions.
20734
20735         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
20736         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
20737         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
20738         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20739         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20740         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20741
20742 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20743
20744         [BZ #15055]
20745         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20746         __ieee754_sqrl instead of __sqrl.
20747
20748 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
20749
20750         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
20751         * sysdeps/powerpc/fpu_control.h: ... here.
20752         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
20753         * sysdeps/powerpc/bits/fenvinline.h: ... here.
20754         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
20755         * sysdeps/powerpc/bits/mathinline.h: ... here.
20756
20757 2013-03-01  Roland McGrath  <roland@hack.frob.com>
20758
20759         * elf/dl-hwcaps.c (_dl_important_hwcaps):
20760         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
20761         to just [NEED_DL_SYSINFO_DSO].
20762         * elf/dl-support.c: Likewise.
20763         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
20764         * elf/rtld.c (dl_main): Likewise.
20765         * elf/setup-vdso.h (setup_vdso): Likewise.
20766         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
20767         * sysdeps/unix/sysv/linux/dl-sysdep.c
20768         (_dl_discover_osversion): Likewise.
20769
20770 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
20771
20772         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
20773         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20774
20775 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20776
20777         * NEWS: Mention libm performance improvements and non-x86 PI
20778         futex support.
20779
20780         * csu/libc-start.c (__pthread_initialize_minimal): Change
20781         function arguments.
20782         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20783
20784 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
20785
20786         [BZ #13550]
20787         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
20788         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
20789         <bp-sym.h> and <bp-asm.h>.
20790         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20791         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
20792         and <bp-asm.h>.
20793         (memcpy): Don't use BP_SYM.
20794         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
20795         <bp-asm.h>.
20796         (__mpn_add_n): Don't use BP_SYM.
20797         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
20798         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
20799         and <bp-asm.h>.
20800         (__mpn_addmul_1): Don't use BP_SYM.
20801         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20802         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
20803         <bp-sym.h>.
20804         (_setjmp): Don't use BP_SYM.
20805         (__novmx_setjmp): Likewise.
20806         (__GI__setjmp): Likewise.
20807         (__vmx_setjmp): Likewise.
20808         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
20809         <bp-sym.h>.
20810         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
20811         (__bzero): Don't use BP_SYM.
20812         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20813         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20814         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
20815         <bp-sym.h> and <bp-asm.h>.
20816         (memcpy): Don't use BP_SYM.
20817         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
20818         <bp-sym.h> and <bp-asm.h>.
20819         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20820         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
20821         <bp-sym.h> and <bp-asm.h>.
20822         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20823         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
20824         <bp-asm.h>.
20825         (__mpn_lshift): Don't use BP_SYM.
20826         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20827         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
20828         <bp-asm.h>.
20829         (memset): Don't use BP_SYM.
20830         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20831         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20832         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
20833         <bp-asm.h>.
20834         (__mpn_mul_1): Don't use BP_SYM.
20835         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20836         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
20837         <bp-sym.h> and <bp-asm.h>.
20838         (memcmp): Don't use BP_SYM.
20839         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
20840         <bp-sym.h> and <bp-asm.h>.
20841         (memcpy): Don't use BP_SYM.
20842         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
20843         <bp-sym.h> and <bp-asm.h>.
20844         (memset): Don't use BP_SYM.
20845         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
20846         <bp-sym.h> and <bp-asm.h>.
20847         (strncmp): Don't use BP_SYM.
20848         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
20849         <bp-sym.h> and <bp-asm.h>.
20850         (memcpy): Don't use BP_SYM.
20851         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
20852         <bp-sym.h> and <bp-asm.h>.
20853         (memset): Don't use BP_SYM.
20854         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
20855         <bp-sym.h> and <bp-asm.h>.
20856         (__memchr): Don't use BP_SYM.
20857         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
20858         <bp-sym.h> and <bp-asm.h>.
20859         (memcmp): Don't use BP_SYM.
20860         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
20861         <bp-sym.h> and <bp-asm.h>.
20862         (memcpy): Don't use BP_SYM.
20863         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
20864         <bp-sym.h> and <bp-asm.h>.
20865         (__mempcpy): Don't use BP_SYM.
20866         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
20867         <bp-sym.h> and <bp-asm.h>.
20868         (__memrchr): Don't use BP_SYM.
20869         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
20870         <bp-sym.h> and <bp-asm.h>.
20871         (memset): Don't use BP_SYM.
20872         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
20873         <bp-sym.h> and <bp-asm.h>.
20874         (__rawmemchr): Don't use BP_SYM.
20875         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
20876         <bp-sym.h> and <bp-asm.h>.
20877         (__STRCMP): Don't use BP_SYM.
20878         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
20879         <bp-sym.h> and <bp-asm.h>.
20880         (strchr): Don't use BP_SYM.
20881         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
20882         <bp-sym.h> and <bp-asm.h>.
20883         (__strchrnul): Don't use BP_SYM.
20884         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
20885         <bp-sym.h> and <bp-asm.h>.
20886         (strlen): Don't use BP_SYM.
20887         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
20888         <bp-sym.h> and <bp-asm.h>.
20889         (strncmp): Don't use BP_SYM.
20890         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
20891         <bp-sym.h> and <bp-asm.h>.
20892         (__strnlen): Don't use BP_SYM.
20893         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
20894         <bp-asm.h>.
20895         (__mpn_rshift): Don't use BP_SYM.
20896         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20897         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
20898         <bp-sym.h> and <bp-asm.h>.
20899         (__sigsetjmp): Don't use BP_SYM.
20900         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
20901         (L(start_addresses)): Don't use BP_SYM.
20902         (_start): Likewise.
20903         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
20904         <bp-asm.h>.
20905         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
20906         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20907         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20908         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
20909         <bp-asm.h>.
20910         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
20911         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20912         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20913         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
20914         <bp-asm.h>.
20915         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20916         comments.
20917         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20918         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
20919         <bp-asm.h>.
20920         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
20921         FIXME comments.
20922         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20923         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20924         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
20925         <bp-asm.h>.
20926         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20927         comment.
20928         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
20929         and <bp-asm.h>.
20930         (strncmp): Don't use BP_SYM,
20931         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
20932         <bp-asm.h>.
20933         (__mpn_sub_n): Don't use BP_SYM.
20934         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20935         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
20936         and <bp-asm.h>.
20937         (__mpn_submul_1): Don't use BP_SYM.
20938         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
20940         <bp-sym.h> and <bp-asm.h>.
20941         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
20943         <bp-sym.h> and <bp-asm.h>.
20944         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20945         comment.
20946
20947 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20948
20949         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
20950         Use ZK to minimize writes to Z.
20951         (sub_magnitudes): Simplify code a bit.
20952         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
20953         Use ZK to minimize writes to Z.
20954         (sub_magnitudes): Simplify code a bit.
20955
20956 2013-02-27  Roland McGrath  <roland@hack.frob.com>
20957
20958         * csu/gmon-start.c: Add special exception to license text.
20959
20960 2013-02-27  Richard Henderson  <rth@redhat.com>
20961
20962         * scripts/config.guess: Update from config.git.
20963         * scripts/config.sub: Likewise.
20964
20965 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
20966
20967         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
20968
20969         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
20970
20971         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
20972
20973         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
20974
20975         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
20976
20977 2013-02-26  Roland McGrath  <roland@hack.frob.com>
20978
20979         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
20980         [$(build-shared = yes].
20981
20982 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20983
20984         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
20985         (__mul): Reduce iterations for calculating mantissa.
20986
20987         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
20988         MPTWO.
20989         (__mpranred): Likewise.
20990
20991         [BZ #15160]
20992         * malloc/memusagestat.c (main): Draw graphs for heap and stack
20993         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
20994
20995 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20996
20997         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
20998         Define __attribute__.
20999
21000 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21001
21002         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
21003         unused.
21004         * posix/regex_internal.h (__attribute): Remove.
21005         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
21006         (re_string_context_at): Likewise.
21007         (bitset_not): Use __attribute__ and mark function as possibly
21008         unused.
21009         (bitset_merge): Likewise.
21010         (bitset_mask): Likewise.
21011         (re_string_char_size_at): Likewise.
21012         (re_string_wchar_at): Likewise.
21013         (re_string_elem_size_at): Likewise.
21014
21015 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
21016
21017         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
21018         code.
21019         (cc32): Likewise.
21020
21021         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
21022         (__acr): Likewise.
21023         (__cpy): Likewise.
21024         (norm): Likewise.
21025         (denorm): Likewise.
21026         (__dbl_mp): Likewise.
21027         (add_magnitudes): Likewise.
21028         (sub_magnitudes): Likewise.
21029         (__mul): Likewise.
21030         (__inv): Likewise.
21031
21032         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
21033         style.
21034
21035         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
21036         style.
21037
21038         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
21039         code.
21040
21041         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
21042         up changes with default code.
21043         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
21044         Likewise.
21045
21046 2013-02-24  Allan McRae  <allan@archlinux.org>
21047
21048         * manual/socket.texi (The Internet Namespace): Order menu items
21049         to match that in the file.
21050
21051         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
21052         node listing of the info page menu.
21053
21054 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
21055
21056         [BZ #13550]
21057         * sysdeps/i386/bp-asm.h: Remove file.
21058         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21059         (PARMS): Do not use macros from bp-asm.h.
21060         (S1): Likewise.
21061         (S2): Likewise.
21062         (SIZE): Likewise.
21063         (__mpn_add_n): Do not use BP_SYM
21064         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
21065         "bp-asm.h".
21066         (PARMS): Do not use macros from bp-asm.h.
21067         (S1): Likewise.
21068         (SIZE): Likewise.
21069         (__mpn_addmul_1): Do not use BP_SYM
21070         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
21071         "bp-asm.h".
21072         (PARMS): Do not use macros from bp-asm.h.
21073         (SIGMSK): Likewise.
21074         (_setjmp): Likewise.  Do not use BP_SYM.
21075         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
21076         "bp-asm.h".
21077         (PARMS): Do not use macros from bp-asm.h.
21078         (SIGMSK): Likewise.
21079         (setjmp): Likewise.  Do not use BP_SYM.
21080         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
21081         "bp-asm.h".
21082         (PARMS): Do not use macros from bp-asm.h.
21083         (__frexp): Do not use BP_SYM.
21084         (frexp): Likewise.
21085         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
21086         "bp-asm.h".
21087         (PARMS): Do not use macros from bp-asm.h.
21088         (__frexpf): Do not use BP_SYM.
21089         (frexpf): Likewise.
21090         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
21091         "bp-asm.h".
21092         (PARMS): Do not use macros from bp-asm.h.
21093         (__frexpl): Do not use BP_SYM.
21094         (frexpl): Likewise.
21095         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
21096         "bp-asm.h".
21097         (PARMS): Do not use macros from bp-asm.h.
21098         (__remquo): Do not use BP_SYM.
21099         (remquo): Likewise.
21100         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
21101         "bp-asm.h".
21102         (PARMS): Do not use macros from bp-asm.h.
21103         (__remquof): Do not use BP_SYM.
21104         (remquof): Likewise.
21105         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
21106         "bp-asm.h".
21107         (PARMS): Do not use macros from bp-asm.h.
21108         (__remquol): Do not use BP_SYM.
21109         (remquol): Likewise.
21110         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
21111         "bp-asm.h".
21112         (PARMS): Do not use macros from bp-asm.h.
21113         (DEST): Likewise.
21114         (SRC): Likewise.
21115         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
21116         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
21117         "bp-asm.h".
21118         (PARMS): Do not use macros from bp-asm.h.
21119         (strlen): Do not use BP_SYM.
21120         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
21121         "bp-asm.h".
21122         (PARMS): Do not use macros from bp-asm.h.
21123         (S1): Likewise.
21124         (S2): Likewise.
21125         (SIZE): Likewise.
21126         (__mpn_add_n): Do not use BP_SYM.
21127         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
21128         "bp-asm.h".
21129         (PARMS): Do not use macros from bp-asm.h.
21130         (S1): Likewise.
21131         (SIZE): Likewise.
21132         (__mpn_addmul_1): Do not use BP_SYM.
21133         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
21134         weak_alias.
21135         (bzero): Likewise.
21136         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
21137         "bp-asm.h".
21138         (PARMS): Do not use macros from bp-asm.h.
21139         (S): Likewise.
21140         (SIZE): Likewise.
21141         (__mpn_lshift): Do not use BP_SYM.
21142         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
21143         "bp-asm.h".
21144         (PARMS): Do not use macros from bp-asm.h.
21145         (DEST): Likewise.
21146         (SRC): Likewise.
21147         (LEN): Likewise.
21148         (memcpy): Likewise.  Do not use BP_SYM.
21149         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
21150         libc_hidden_def and weak_alias.
21151         (mempcpy): Do not use BP_SYM in weak_alias.
21152         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
21153         "bp-asm.h".
21154         (PARMS): Do not use macros from bp-asm.h.
21155         (DEST): Likewise.
21156         (LEN): Likewise.
21157         [!BZERO_P] (CHR): Likewise.
21158         (memset): Likewise.  Do not use BP_SYM.
21159         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
21160         "bp-asm.h".
21161         (PARMS): Do not use macros from bp-asm.h.
21162         (S1): Likewise.
21163         (SIZE): Likewise.
21164         (__mpn_mul_1): Do not use BP_SYM.
21165         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
21166         "bp-asm.h".
21167         (PARMS): Do not use macros from bp-asm.h.
21168         (S): Likewise.
21169         (SIZE): Likewise.
21170         (__mpn_rshift): Do not use BP_SYM.
21171         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
21172         "bp-asm.h".
21173         (PARMS): Do not use macros from bp-asm.h.
21174         (STR): Likewise.
21175         (CHR): Likewise.
21176         (strchr): Likewise.  Do not use BP_SYM.
21177         (index): Do not use BP_SYM in weak_alias.
21178         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
21179         "bp-asm.h".
21180         (PARMS): Do not use macros from bp-asm.h.
21181         (DEST): Likewise.
21182         (SRC): Likewise.
21183         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
21184         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
21185         "bp-asm.h".
21186         (PARMS): Do not use macros from bp-asm.h.
21187         (strlen): Do not use BP_SYM.
21188         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
21189         "bp-asm.h".
21190         (PARMS): Do not use macros from bp-asm.h.
21191         (S1): Likewise.
21192         (S2): Likewise.
21193         (SIZE): Likewise.
21194         (__mpn_sub_n): Do not use BP_SYM.
21195         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
21196         "bp-asm.h".
21197         (PARMS): Do not use macros from bp-asm.h.
21198         (S1): Likewise.
21199         (SIZE): Likewise.
21200         (__mpn_submul_1): Do not use BP_SYM.
21201         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
21202         "bp-asm.h".
21203         (PARMS): Do not use macros from bp-asm.h.
21204         (S1): Likewise.
21205         (S2): Likewise.
21206         (SIZE): Likewise.
21207         (__mpn_add_n): Do not use BP_SYM.
21208         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
21209         weak_alias.
21210         (bzero): Likewise.
21211         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
21212         "bp-asm.h".
21213         (PARMS): Do not use macros from bp-asm.h.
21214         (BLK2): Likewise.
21215         (LEN): Likewise.
21216         (memcmp): Do not use BP_SYM.
21217         (bcmp): Do not use BP_SYM in weak_alias.
21218         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
21219         "bp-asm.h".
21220         (PARMS): Do not use macros from bp-asm.h.
21221         (DEST): Likewise.
21222         (SRC): Likewise.
21223         (LEN): Likewise.
21224         (memcpy): Likewise.  Do not use BP_SYM.
21225         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
21226         "bp-asm.h".
21227         (PARMS): Do not use macros from bp-asm.h.
21228         (DEST): Likewise.
21229         (SRC): Likewise.
21230         (LEN): Likewise.
21231         (memmove): Likewise.  Do not use BP_SYM.
21232         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
21233         "bp-asm.h".
21234         (PARMS): Do not use macros from bp-asm.h.
21235         (DEST): Likewise.
21236         (SRC): Likewise.
21237         (LEN): Likewise.
21238         (__mempcpy): Likewise.  Do not use BP_SYM.
21239         (mempcpy): Do not use BP_SYM in weak_alias.
21240         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
21241         "bp-asm.h".
21242         (PARMS): Do not use macros from bp-asm.h.
21243         (DEST): Likewise.
21244         (LEN): Likewise.
21245         [!BZERO_P] (CHR): Likewise.
21246         (memset): Likewise.  Do not use BP_SYM.
21247         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
21248         "bp-asm.h".
21249         (PARMS): Do not use macros from bp-asm.h.
21250         (STR2): Likewise.
21251         (strcmp): Do not use BP_SYM.
21252         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
21253         "bp-asm.h".
21254         (PARMS): Do not use macros from bp-asm.h.
21255         (STR): Likewise.
21256         (DELIM): Likewise.
21257         [USE_AS_STRTOK_R] (SAVE): Likewise.
21258         (FUNCTION): Likewise.  Do not use BP_SYM.
21259         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
21260         aliases.
21261         (strtok_r): Likewise.
21262         (__GI___strtok_r): Likewise.
21263         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21264         (PARMS): Do not use macros from bp-asm.h.
21265         (S): Likewise.
21266         (SIZE): Likewise.
21267         (__mpn_lshift): Do not use BP_SYM.
21268         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21269         (PARMS): Do not use macros from bp-asm.h.
21270         (STR): Likewise.
21271         (CHR): Likewise.
21272         (__memchr): Do not use BP_SYM.
21273         (memchr): Do not use BP_SYM in weak_alias.
21274         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21275         (PARMS): Do not use macros from bp-asm.h.
21276         (BLK2): Likewise.
21277         (LEN): Likewise.
21278         (memcmp): Do not use BP_SYM.
21279         (bcmp): Do not use BP_SYM in weak_alias.
21280         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
21281         (PARMS): Do not use macros from bp-asm.h.
21282         (S1): Likewise.
21283         (SIZE): Likewise.
21284         (__mpn_mul_1): Do not use BP_SYM.
21285         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
21286         "bp-asm.h".
21287         (PARMS): Do not use macros from bp-asm.h.
21288         (STR): Likewise.
21289         (CHR): Likewise.
21290         (__rawmemchr): Do not use BP_SYM.
21291         (rawmemchr): Do not use BP_SYM in weak_alias.
21292         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21293         (PARMS): Do not use macros from bp-asm.h.
21294         (S): Likewise.
21295         (SIZE): Likewise.
21296         (__mpn_rshift): Do not use BP_SYM.
21297         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21298         (PARMS): Do not use macros from bp-asm.h.
21299         (SIGMSK): Likewise.
21300         (__sigsetjmp): Likewise.  Do not use BP_SYM.
21301         * sysdeps/i386/start.S: Do not include "bp-sym.h".
21302         (_start): Do not use BP_SYM.
21303         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
21304         (PARMS): Do not use macros from bp-asm.h.
21305         (DEST): Likewise.
21306         (SRC): Likewise.
21307         (__stpcpy): Likewise.  Do not use BP_SYM.
21308         (stpcpy): Do not use BP_SYM in weak_alias.
21309         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
21310         "bp-asm.h".
21311         (PARMS): Do not use macros from bp-asm.h.
21312         (DEST): Likewise.
21313         (SRC): Likewise.
21314         (LEN): Likewise.
21315         (__stpncpy): Likewise.  Do not use BP_SYM.
21316         (stpncpy): Do not use BP_SYM in weak_alias.
21317         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21318         (PARMS): Do not use macros from bp-asm.h.
21319         (STR): Likewise.
21320         (CHR): Likewise.
21321         (strchr): Likewise.  Do not use BP_SYM.
21322         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
21323         "bp-asm.h".
21324         (PARMS): Do not use macros from bp-asm.h.
21325         (STR): Likewise.
21326         (CHR): Likewise.
21327         (__strchrnul): Likewise.  Do not use BP_SYM.
21328         (strchrnul): Do not use BP_SYM in weak_alias.
21329         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
21330         "bp-asm.h".
21331         (PARMS): Do not use macros from bp-asm.h.
21332         (STOP): Likewise.
21333         (strcspn): Do not use BP_SYM.
21334         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
21335         "bp-asm.h".
21336         (PARMS): Do not use macros from bp-asm.h.
21337         (STR): Likewise.
21338         (STOP): Likewise.
21339         (strpbrk): Likewise.  Do not use BP_SYM.
21340         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
21341         "bp-asm.h".
21342         (PARMS): Do not use macros from bp-asm.h.
21343         (STR): Likewise.
21344         (CHR): Likewise.
21345         (strrchr): Likewise.  Do not use BP_SYM.
21346         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
21347         (PARMS): Do not use macros from bp-asm.h.
21348         (SKIP): Likewise.
21349         (strspn): Do not use BP_SYM.
21350         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
21351         (PARMS): Do not use macros from bp-asm.h.
21352         (STR): Likewise.
21353         (DELIM): Likewise.
21354         (SAVE): Likewise.
21355         (FUNCTION): Likewise.  Do not use BP_SYM.
21356         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
21357         aliases.
21358         (strtok_r): Likewise.
21359         (__GI___strtok_r): Likewise.
21360         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21361         (PARMS): Do not use macros from bp-asm.h.
21362         (S1): Likewise.
21363         (S2): Likewise.
21364         (SIZE): Likewise.
21365         (__mpn_sub_n): Do not use BP_SYM.
21366         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
21367         "bp-asm.h".
21368         (PARMS): Do not use macros from bp-asm.h.
21369         (S1): Likewise.
21370         (SIZE): Likewise.
21371         (__mpn_submul_1): Do not use BP_SYM.
21372         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
21373         <bp-sym.h>.
21374         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
21375         and <bp-asm.h>.
21376         (PARMS): Do not use macros from bp-asm.h.
21377         (FLAGS): Likewise.
21378         (PTID): Likewise.
21379         (TLS): Likewise.
21380         (CTID): Likewise.
21381         (__clone): Do not use BP_SYM.
21382         (clone): Do not use BP_SYM in weak_alias.
21383         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
21384         and <bp-asm.h>.
21385         (PARMS): Do not use macros from bp-asm.h.
21386         (LEN): Likewise.
21387         (__mmap64): Do not use BP_SYM.
21388         (mmap64): Do not use BP_SYM in weak_alias.
21389         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
21390         <bp-sym.h> and <bp-asm.h>.
21391         (PARMS): Do not use macros from bp-asm.h.
21392         (__posix_fadvise64_l64): Do not use BP_SYM.
21393         * sysdeps/unix/sysv/linux/i386/semtimedop.S
21394         (PARMS): Do not use macros from bp-asm.h.
21395         (NSOPS): Likewise.
21396         (semtimedop): Do not use BP_SYM.
21397         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
21398         and <bp-asm.h>.
21399
21400 2013-02-21  Allan McRae  <allan@archlinux.org>
21401
21402         * manual/message.texi (Charset conversion in gettext):
21403         Move @end statement to beginning of line.
21404
21405 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21406
21407         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
21408         static.
21409         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
21410         Likewise.
21411
21412         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
21413         (denorm): Likewise.
21414         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
21415         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
21416
21417 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21418
21419         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
21420         tail-call to the resolved function if pltexit isn't needed.
21421
21422 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21423
21424         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
21425         or Y being zero as being unlikely.
21426         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21427         Likewise.
21428
21429 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
21430
21431         * manual/nss.texi (System Databases and Name Service Switch):
21432         Remove frobnicate @pxref.
21433
21434 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21435
21436         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21437         __attribute__ ((unused)) to __attribute__ ((__unused__)).
21438
21439 2013-02-20  Petr Machata  <pmachata@redhat.com>
21440
21441         * elf/elf.h (R_ARM_TARGET1): New macro.
21442         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
21443         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
21444         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
21445         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
21446         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
21447         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
21448         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
21449         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
21450         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
21451         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
21452         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
21453         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
21454         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
21455         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
21456         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
21457         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
21458         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
21459         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
21460         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
21461         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
21462         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
21463         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
21464         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
21465         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
21466         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
21467         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
21468         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
21469         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
21470         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
21471         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
21472         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
21473         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
21474         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
21475         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
21476         (R_ARM_THM_GOT_BREL12): Likewise.
21477         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
21478         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
21479         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
21480         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
21481         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
21482         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
21483         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
21484         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
21485         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
21486
21487 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21488
21489         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21490         __attribute_used__ to __attribute__ ((unused)).
21491
21492 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
21493
21494         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
21495         powerpc mpa.c.
21496         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
21497         comment formatting.
21498         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
21499
21500 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
21501
21502         [BZ #13550]
21503         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
21504         Remove macro.
21505         (ENTER): Remove both macro definitions.
21506         (LEAVE): Likewise.
21507         (CHECK_BOUNDS_LOW): Likewise.
21508         (CHECK_BOUNDS_HIGH): Likewise.
21509         (CHECK_BOUNDS_BOTH): Likewise.
21510         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
21511         (RETURN_BOUNDED_POINTER): Likewise.
21512         (RETURN_NULL_BOUNDED_POINTER): Likewise.
21513         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
21514         (POP_ERRNO_LOCATION_RETURN): Likewise.
21515         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
21516         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21517         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
21518         macros.
21519         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21520         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
21521         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
21522         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
21523         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
21524         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
21525         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
21526         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
21527         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
21528         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
21529         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
21530         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
21531         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21532         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
21533         removed macros.
21534         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21535         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
21536         macros.
21537         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21538         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
21539         * sysdeps/i386/i586/memset.S (memset): Likewise.
21540         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
21541         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21542         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
21543         macros.
21544         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21545         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
21546         Change uses of L(2) to L(out).
21547         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
21548         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
21549         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
21550         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21551         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
21552         removed macros.
21553         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21554         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
21555         macros.
21556         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21557         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
21558         (RETURN): Do not use macro LEAVE.
21559         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
21560         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
21561         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
21562         * sysdeps/i386/i686/memset.S (memset): Likewise.
21563         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
21564         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
21565         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21566         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
21567         Likewise.
21568         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21569         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
21570         L(1_2) and L(1_3) into L(1).
21571         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21572         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
21573         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21574         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
21575         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21576         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
21577         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
21578         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21579         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
21580         macros.
21581         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
21582         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21583         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
21584         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
21585         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
21586         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21587         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
21588         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
21589         * sysdeps/i386/strcspn.S (strcspn): Likewise.
21590         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
21591         * sysdeps/i386/strrchr.S (strrchr): Likewise.
21592         * sysdeps/i386/strspn.S (strspn): Likewise.
21593         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
21594         conditional code.
21595         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21596         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
21597         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21598         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
21599         L(1_3) into L(1_1).
21600         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
21601         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21602         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
21603         macros.
21604         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21605
21606 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
21607
21608         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
21609         macro.
21610
21611 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21612
21613         * math/atest-exp.c (exp_mpn): Remove ROUND.
21614         * math/atest-exp2.c (exp_mpn): Likewise.
21615         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
21616
21617         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
21618         * stdlib/tst-tls-atexit-lib.c: Likewise.
21619         * stdlib/tst-tls-atexit.c: Likewise.
21620
21621 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21622
21623         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
21624         and __attribute_alloc_size__.
21625
21626 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21627
21628         * include/programs/xmalloc.h: Change __attribute_alloc_size to
21629         __attribute_alloc_size__.
21630         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
21631         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
21632
21633 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21634
21635         * include/programs/xmalloc.h: New file.
21636         * catgets/gencat.c: Include it.
21637         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
21638         * elf/pldd.c: Likewise.
21639         * iconv/iconv_charmap.c: Likewise.
21640         * iconv/iconvconfig.c: Likewise.
21641         * iconv/strtab.c: Likewise.
21642         * locale/programs/locale.c: Likewise.
21643         * locale/programs/localedef.h: Likewise.
21644         * locale/programs/simple-hash.c: Likewise.
21645         * nscd/nscd.h: Likewise.
21646         * nss/makedb.c: Likewise.
21647         * sysdeps/generic/ldconfig.h: Likewise.
21648
21649 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21650
21651         * Versions.def: Add GLIBC_2.18.
21652         * include/link.h (struct link_map): New member l_tls_dtor_count.
21653         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
21654         (__call_tls_dtors): Likewise.
21655         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
21656         __cxa_thread_atexit_impl.
21657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21658         Likewise.
21659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21660         Likewise.
21661         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
21662         Likewise.
21663         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
21664         Likewise.
21665         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21666         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
21667         Likewise.
21668         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
21669         Likewise.
21670         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21671         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
21672         Likewise.
21673         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
21674         (tests): Add test case tst-tls-atexit.
21675         (modules-names): Add shared library for tst-tls-atexit.
21676         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
21677         (GLIBC_PRIVATE): Add __call_tls_dtors.
21678         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
21679         for libstdc++.
21680         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
21681         * stdlib/tst-tls-atexit.c: New test case.
21682         * stdlib/tst-tls-atexit-lib.c: New test case.
21683
21684         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
21685
21686         * elf/Versions (ld): Add _dl_find_dso_for_object.
21687         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
21688         * elf/dl-open.c (_dl_find_dso_for_object): New function.
21689         (dl_open_worker): Use _dl_find_dso_for_object.
21690         * elf/dl-sym.c (do_sym): Likewise.
21691         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
21692
21693 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21694
21695         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
21696         Syntactic changes only.
21697         (_dl_runtime_profile): Do a tail-call to the resolved function.
21698
21699 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
21700
21701         [BZ #13550]
21702         * sysdeps/x86_64/bp-asm.h: Remove file.
21703         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
21704         <bp-sym.h> and <bp-asm.h>.
21705         (__clone): Do not use BP_SYM.
21706         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
21707         <bp-sym.h> and <bp-asm.h>.
21708         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21709         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
21710         "bp-asm.h".
21711         (_setjmp): Do not use BP_SYM.
21712         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
21713         "bp-asm.h".
21714         (setjmp): Do not use BP_SYM.
21715         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
21716         libc_hidden_def.
21717         (mempcpy): Do not use BP_SYM in weak_alias.
21718         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
21719         "bp-asm.h".
21720         (strchr): Do not use BP_SYM.
21721         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
21722         "bp-asm.h".
21723         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
21724         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
21725         (_start): Do not use BP_SYM.
21726         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
21727         "bp-asm.h".
21728         (strcat): Do not use BP_SYM.
21729         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
21730         "bp-asm.h".
21731         (STRCMP): Do not use BP_SYM.
21732         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
21733         "bp-asm.h".
21734         (STRCPY): Do not use BP_SYM.
21735         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
21736         "bp-asm.h".
21737         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
21738         "bp-asm.h".
21739         (FUNCTION): Do not use BP_SYM.
21740         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
21741         weak_alias.
21742         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
21743
21744 2013-02-17  Andreas Jaeger  <aj@suse.de>
21745
21746         * time/Versions: Sort entries.
21747         * string/Versions: Likewise.
21748         * resolv/Versions: Likewise.
21749         * posix/Versions: Likewise.
21750         * iconv/Versions: Likewise.
21751         * elf/Versions: Likewise.
21752         * wcsmbs/Versions: Likewise.
21753
21754 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21755
21756         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
21757         loop termination condition.
21758
21759         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
21760         variable to calculate EZ.
21761         (__sqr): Likewise.
21762
21763         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
21764         the lower precision input.
21765
21766 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
21767
21768         [BZ #13550]
21769         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
21770         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
21771         (run-via-rtld-prefix): Do not handle %-bp tests.
21772         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
21773         (all-object-suffixes): Remove .ob.
21774         (bppfx): Remove variable.
21775         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
21776         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
21777         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
21778         [$(build-bounded) = yes] (libtype.ob): Likewise.
21779         * Makerules (elide-routines.ob): Remove variable.
21780         (do-tests-clean): Do not handle *-bp.out.
21781         (common-mostlyclean): Do not handle *-bp and *-bp.out.
21782         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
21783         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
21784         (tests): Do not include $(tests-bp.out).
21785         (xtests): Do not include $(xtests-bp.out).
21786         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
21787         [$(build-bounded) = yes] ($(addprefix
21788         $(objpfx),$(binaries-bounded))): Remove rule.
21789         ($(objpfx)%-bp.out): Remove rule.
21790         * config.make.in (build-bounded): Remove variable.
21791         * crypt/Makefile [$(build-bounded) = yes]
21792         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
21793         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
21794         append to variable.
21795         [$(build-bounded) = yes] (install-lib): Likewise.
21796         [$(build-bounded) = yes] (generated): Likewise.
21797         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
21798         Remove rule.
21799         * intl/Makefile [$(build-bounded) = yes]
21800         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
21801         * math/Makefile [$(build-bounded) = yes]
21802         ($(tests:%=$(objpfx)%-bp): Likewise.
21803         * misc/Makefile [$(build-bounded) = yes]
21804         ($(objpfx)tst-tsearch-bp): Likewise.
21805         * nptl/Makeconfig (bounded-thread-library): Remove variable.
21806         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
21807         Remove dependency.
21808         * string/Makefile (o-objects.ob): Remove variable.
21809         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
21810         (CFLAGS-.ob): Remove variable.
21811         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
21812         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
21813         both definitions of variable.
21814         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
21815         (ASFLAGS-.ob): Remove variable.
21816
21817 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
21818
21819         [BZ #13550]
21820         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
21821         Remove __BOUNDED_POINTERS__ from condition.
21822         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
21823         * string/bits/string2.h [!__NO_STRING_INLINES &&
21824         !__BOUNDED_POINTERS__]: Likewise.
21825         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
21826         Likewise.
21827         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
21828         Remove conditional code.
21829         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
21830         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
21831         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
21832         condition.
21833
21834         [BZ #13550]
21835         * csu/libc-start.c: Do not include <bp-sym.h>.
21836         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
21837         * elf/dl-open.c: Do not include <bp-sym.h>.
21838         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
21839         * math/fegetenv.c: Do not include <bp-sym.h>.
21840         (fegetenv): Do not use BP_SYM in versioned symbols.
21841         * nptl/sysdeps/pthread/bits/libc-lockP.h
21842         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
21843         <bp-sym.h>.
21844         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21845         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
21846         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21847         (__pthread_mutex_destroy): Likewise.
21848         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21849         (__pthread_mutex_lock): Likewise.
21850         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21851         (__pthread_mutex_trylock): Likewise.
21852         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21853         (__pthread_mutex_unlock): Likewise.
21854         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21855         (__pthread_mutexattr_init): Likewise.
21856         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21857         (__pthread_mutexattr_destroy): Likewise.
21858         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21859         (__pthread_mutexattr_settype): Likewise.
21860         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21861         (__pthread_rwlock_init): Likewise.
21862         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21863         (__pthread_rwlock_destroy): Likewise.
21864         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21865         (__pthread_rwlock_rdlock): Likewise.
21866         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21867         (__pthread_rwlock_tryrdlock): Likewise.
21868         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21869         (__pthread_rwlock_wrlock): Likewise.
21870         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21871         (__pthread_rwlock_trywrlock): Likewise.
21872         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21873         (__pthread_rwlock_unlock): Likewise.
21874         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21875         (__pthread_key_create): Likewise.
21876         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21877         (__pthread_setspecific): Likewise.
21878         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21879         (__pthread_getspecific): Likewise.
21880         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
21881         Likewise.
21882         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21883         (_pthread_cleanup_push_defer): Likewise.
21884         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21885         (_pthread_cleanup_pop_restore): Likewise.
21886         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21887         (pthread_setcancelstate): Likewise.
21888         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
21889         <bp-sym.h>.
21890         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
21891         (memchr): Do not use BP_SYM in weak_alias.
21892         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
21893         (fegetenv): Do not use BP_SYM in versioned symbols.
21894         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
21895         (fesetenv): Do not use BP_SYM in versioned symbols.
21896         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21897         (feupdateenv): Do not use BP_SYM in versioned symbols.
21898         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21899         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21900         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
21901         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
21902         (open64): Do not use BP_SYM in weak_alias.
21903         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
21904         (fegetenv): Do not use BP_SYM in versioned symbols.
21905         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
21906         (fesetenv): Do not use BP_SYM in versioned symbols.
21907         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21908         (feupdateenv): Do not use BP_SYM in versioned symbols.
21909         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
21910         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
21911         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
21912         (feraiseexcept): Do not use BP_SYM in versioned symbols.
21913         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21914         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21915         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
21916         <bp-sym.h>.
21917         (__libc_start_main): Do not use BP_SYM.
21918
21919 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21920
21921         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
21922         redundant return line.
21923         (norm): Likewise.
21924         (denorm): Likewise.
21925         (dbl_mp): Likewise.
21926         (sub_magnitudes): Likewise.
21927         (__add): Likewise.
21928         (__sub): Likewise.
21929         (__mul): Likewise.
21930         (__inv): Likewise.
21931         (__dvd): Likewise.
21932         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
21933         (norm): Likewise.
21934         (denorm): Likewise.
21935         (dbl_mp): Likewise.
21936         (sub_magnitudes): Likewise.
21937         (__add): Likewise.
21938         (__sub): Likewise.
21939         (__mul): Likewise.
21940         (__inv): Likewise.
21941         (__dvd): Likewise.
21942
21943         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
21944         instead of __mul.
21945         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21946         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
21947         (cc32): Likewise.
21948
21949         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
21950         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
21951         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
21952         of __mul for squares.
21953         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
21954         function
21955         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
21956         Likewise.
21957         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
21958         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21959
21960 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
21961
21962         [BZ #13550]
21963         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
21964         code.
21965         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
21966         prototype or function definition.  Rename ubp_* variables and
21967         parameters.  Remove argv definitions conditional on
21968         [__BOUNDED_POINTERS__].
21969         * debug/backtrace.c (__backtrace): Do not use __unbounded.
21970         * elf/dl-runtime.c (_dl_fixup): Likewise.
21971         * include/set-hooks.h (RUN_HOOK): Likewise.
21972         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
21973         definition.
21974         * string/strcpy.c (strcpy): Do not use __unbounded.
21975         * sysdeps/generic/frame.h (struct layout): Likewise.
21976         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
21977         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
21978         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
21979         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
21980         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
21981         (__backtrace): Likewise.
21982         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
21983         use __ptrvalue.
21984         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
21985         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
21986         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
21987         Likewise.
21988         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
21989         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
21990         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21991         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21992         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
21993         Do not use __unbounded.
21994         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
21995         Rename __unboundedrlimits parameter to rlimits in prototype.
21996         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
21997         Do not use __unbounded.
21998         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
21999         not use __ptrvalue.
22000         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22001         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
22002         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22003         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
22004         __ptrvalue or __unbounded.
22005         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
22006         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
22007         use __unbounded.
22008         (__new_msgctl): Do not use __ptrvalue.
22009         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
22010         __unbounded.
22011         (__libc_msgrcv): Do not use __ptrvalue.
22012         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
22013         startup_info): Do not use __unbounded.
22014         (__libc_start_main): Likewise.  Rename ubp_* variables and
22015         parameters.  Remove argv definitions conditional on
22016         [__BOUNDED_POINTERS__].
22017         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
22018         __ptrvalue.
22019         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
22020         use __unbounded.
22021         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
22022         or __ptrvalue.
22023         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
22024         use __unbounded.
22025         (__new_shmctl): Do not use __ptrvalue.
22026         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22027         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22028         Likewise.
22029         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22030         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
22031         (__libc_sigaction): Likewise.
22032         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
22033         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
22034         Likewise.
22035         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22036
22037 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
22038
22039         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
22040
22041         * string/mempcpy.c: Implement by calling memcpy.
22042
22043 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
22044
22045         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
22046
22047         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
22048         evaluation.
22049
22050         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
22051         values in the mantissa.
22052
22053         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
22054         minimize writes to Z.
22055         (sub_magnitudes): Simplify code a bit.
22056
22057 2013-02-12  Roland McGrath  <roland@hack.frob.com>
22058
22059         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
22060         from the message.  The linker prefixes all warnings with that already.
22061
22062 2013-02-12  Andreas Schwab  <schwab@suse.de>
22063
22064         [BZ #15078]
22065         * posix/regexec.c (extend_buffers): Add parameter min_len.
22066         (check_matching): Pass minimum needed length.
22067         (clean_state_log_if_needed): Likewise.
22068         (get_subexp): Likewise.
22069         * posix/Makefile (tests): Add bug-regex34.
22070         (bug-regex34-ENV): Define.
22071         * posix/bug-regex34.c: New file.
22072
22073         [BZ #11561]
22074         * posix/regcomp.c (parse_bracket_exp): When looking up collating
22075         elements compare against the byte sequence of it, not its name.
22076         * posix/Makefile (tests): Add bug-regex35.
22077         (bug-regex35-ENV): Define.
22078         * posix/bug-regex35.c: New file.
22079
22080 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22081
22082         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
22083         comment.
22084         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
22085         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
22086         (CHECK_EOL): Add undef.
22087
22088 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
22089
22090         * bits/stdlib-bsearch.h: New file.
22091         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
22092         * stdlib/stdlib.h: Likewise.
22093
22094 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22095
22096         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
22097         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
22098         declaration.
22099         * manual/search.texi (Array Search Function): Add missing const in
22100         lfind prototype.
22101         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
22102         declaration to use rlim_t.
22103         (Basic Scheduling Functions): Remove erroneous const from
22104         sched_getparam prototype.  Remove erroneous * from
22105         sched_get_priority_max and sched_get_priority_min prototypes.
22106         (Resource Usage): Fix summary @comment on vtimes to refer to
22107         sys/vtimes.h rather than vtimes.h.
22108         Add missing *s in vtimes prototype.
22109         (Limits on Resources): Fix ulimit prototype to return long int.
22110         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
22111         prototypes to use long int rather than double.
22112         (BSD Random): Fix initstate and setstate to use char *, not void *.
22113         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
22114         prototype to make second argument 'struct aiocb64 *const[]'.
22115         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
22116         (Status of AIO Operations): Remove erroneous const in aio_return and
22117         aio_return64 prototypes.
22118         (Synchronizing I/O): Fix sync prototype to return void.
22119         * manual/startup.texi (Suboptions): Remove an erroneous const in
22120         getsubopt prototype.
22121         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
22122         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
22123         use size_t rather than int.
22124         (Scanning All Users): Likewise for getpwent_r.
22125         (Setting Groups): Add missing const to setgroups prototype.
22126         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
22127         * manual/socket.texi (Host Names): Fix gethostbyaddr and
22128         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
22129         'const void *' rather than 'const char *'.
22130         (Host Address Functions): Likewise for inet_ntop.
22131         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
22132         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
22133         ssize_t for return value.
22134         (Sending Data): Likewise for send, sendto, sendmsg.
22135         (Socket Option Functions): Add a missing const in setsockopt prototype.
22136         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
22137         use wchar_t for the argument.
22138         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
22139         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
22140         take no arguments.
22141         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
22142         double/float/long double for second argument.
22143         Fix return types of significand, significandf, significandl.
22144         * manual/filesys.texi (Setting Permissions): Use mode_t for second
22145         argument in fchmod prototype.
22146         (File Owner): Use uid_t and gid_t in fchown prototype.
22147         (File Times): Add const to utimes, futimes, and lutimes prototypes.
22148         (Making Special Files): Use mode_t and dev_t in mknod prototype.
22149         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
22150         use 'const struct dirent **' as argument types to CMP function pointer
22151         argument.
22152         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
22153         (File Times): Fix summary magic @comment for struct utimbuf and utime
22154         to refer to utime.h, not time.h.
22155         * manual/string.texi (Argz Functions): Add missing const in
22156         argz_extract and argz_next prototypes.
22157         (Finding Tokens in a String): Likewise for basename.
22158         (String/Array Comparison): Fix typo in wcscasecmp prototype.
22159         (Copying and Concatenation): Fix typo in wmemmove prototype.
22160         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
22161         (Signal Stack): Remove erroneous const in sigstack prototype.
22162         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
22163         prototype.
22164         (Simple Calendar Time): Likewise for stime.
22165         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
22166         prototype.
22167         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
22168         say sys/sysctl.h instead.
22169         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
22170         and vsyslog prototypes.
22171
22172 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22173
22174         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
22175         Remove.
22176
22177 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22178
22179         * misc/sys/mman.h: Fix typo in mremap comment.
22180
22181 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22182
22183         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
22184         the '\0' terminator.
22185
22186 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22187
22188         [BZ #13550]
22189         * debug/segfault.c: Don't include <bp-checks.h>.
22190         * sysdeps/generic/bp-checks.h: Remove file.
22191         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
22192         (__GETDENTS): Don't use CHECK_N.
22193         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
22194         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
22195         (__getgroups): Don't use CHECK_N.
22196         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
22197         (setgroups): Don't use CHECK_N.
22198         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
22199         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
22200         (__libc_msgrcv): Don't use CHECK_N.
22201         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
22202         (__libc_msgsnd): Don't use CHECK_N.
22203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
22204         <bp-checks.h>.
22205         (__libc_pread): Don't use CHECK_N.
22206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
22207         include <bp-checks.h>.
22208         (__libc_pread64): Don't use CHECK_N.
22209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
22210         include <bp-checks.h>.
22211         (__libc_pwrite): Don't use CHECK_N.
22212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
22213         include <bp-checks.h>.
22214         (__libc_pwrite64): Don't use CHECK_N.
22215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
22216         <bp-checks.h>.
22217         (__libc_pread): Don't use CHECK_N.
22218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
22219         include <bp-checks.h>.
22220         (__libc_pread64): Don't use CHECK_N.
22221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
22222         include <bp-checks.h>.
22223         (__libc_pwrite): Don't use CHECK_N.
22224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
22225         include <bp-checks.h>.
22226         (__libc_pwrite64): Don't use CHECK_N.
22227         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
22228         (do_pread): Don't use CHECK_N.
22229         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
22230         (do_pread64): Don't use CHECK_N.
22231         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
22232         (do_pwrite): Don't use CHECK_N.
22233         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
22234         (do_pwrite64): Don't use CHECK_N.
22235         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
22236         (__libc_readv): Don't use CHECK_N.
22237         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
22238         (semop): Don't use CHECK_N.
22239         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
22240         <bp-checks.h>.
22241         (semtimedop): Don't use CHECK_N.
22242         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
22243         (__libc_pread): Don't use CHECK_N.
22244         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
22245         <bp-checks.h>.
22246         (__libc_pread64): Don't use CHECK_N.
22247         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
22248         <bp-checks.h>.
22249         (__libc_pwrite): Don't use CHECK_N.
22250         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
22251         <bp-checks.h>.
22252         (__libc_pwrite64): Don't use CHECK_N.
22253         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
22254         <bp-checks.h>.
22255         (__libc_msgrcv): Don't use CHECK_N.
22256         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
22257         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
22258         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
22259         (__libc_writev): Don't use CHECK_N.
22260
22261 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22262
22263         * string/strcpy.c: Removed unused variable.
22264
22265         * Makeconfig (+sysdep-includes): Define with := rather than =.
22266         Use an existing include/ subdir of each sysdeps dir before it.
22267
22268 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22269
22270         * nscd/connection.c (register_traced_file): Comment function.
22271         [HAVE_INOTIFY] (union __inev): Define.
22272         [HAVE_INOTIFY] (inotify_check_files): New function.
22273         [HAVE_INOTIFY] (clear_db_cache): Likewise.
22274         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
22275         clear_db_cache.
22276         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
22277
22278 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22279
22280         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
22281         loaded if not already and that a failure is permanent.
22282
22283 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22284
22285         [BZ #15006]
22286         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
22287         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
22288
22289 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22290
22291         [BZ #13550]
22292         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
22293         (CHECK_1_NULL_OK): Likewise.
22294         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
22295         (__fxstat): Do not use CHECK_1.
22296         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
22297         <bp-checks.h>.
22298         (___fxstat64): Do not use CHECK_1.
22299         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
22300         <bp-checks.h>.
22301         (__fxstatat): Do not use CHECK_1.
22302         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
22303         <bp-checks.h>.
22304         (__fxstatat64): Do not use CHECK_1.
22305         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
22306         <bp-checks.h>.
22307         (__fxstat): Do not use CHECK_1.
22308         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
22309         <bp-checks.h>.
22310         (__fxstatat): Do not use CHECK_1.
22311         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22312         <bp-checks.h>.
22313         (__getresgid): Do not use CHECK_1.
22314         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22315         <bp-checks.h>.
22316         (__getresuid): Do not use CHECK_1.
22317         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
22318         <bp-checks.h>.
22319         (__lxstat): Do not use CHECK_1.
22320         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22321         <bp-checks.h>.
22322         (__old_msgctl): Do not use CHECK_1.
22323         (__new_msgctl): Likewise.
22324         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
22325         <bp-checks.h>.
22326         (__new_setrlimit): Do not use CHECK_1.
22327         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22328         <bp-checks.h>.
22329         (__old_shmctl): Do not use CHECK_1.
22330         (__new_shmctl): Likewise.
22331         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
22332         <bp-checks.h>.
22333         (__xstat): Do not use CHECK_1.
22334         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
22335         (__lxstat): Do not use CHECK_1.
22336         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
22337         <bp-checks.h>.
22338         (___lxstat64): Do not use CHECK_1.
22339         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
22340         (__old_msgctl): Do not use CHECK_1.
22341         (__new_msgctl): Likewise.
22342         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
22343         <bp-checks.h>.
22344         (__gettimeofday): Do not use CHECK_1.
22345         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
22346         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
22347         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
22348         <bp-checks.h>.
22349         (__gettimeofday): Do not use CHECK_1.
22350         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
22351         (__old_shmctl): Do not use CHECK_1_NULL_OK.
22352         (__new_shmctl): Do not use CHECK_1.
22353         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
22354         <bp-checks.h>.
22355         (do_sigtimedwait): Do not use CHECK_1.
22356         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
22357         <bp-checks.h>.
22358         (do_sigwaitinfo): Do not use CHECK_1.
22359         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
22360         <bp-checks.h>.
22361         (msgctl): Do not use CHECK_1.
22362         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
22363         <bp-checks.h>.
22364         (shmctl): Do not use CHECK_1.
22365         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
22366         (ustat): Do not use CHECK_1.
22367         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
22368         <bp-checks.h>.
22369         (__fxstat): Do not use CHECK_1.
22370         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
22371         <bp-checks.h>.
22372         (__fxstatat): Do not use CHECK_1.
22373         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
22374         <bp-checks.h>.
22375         (__lxstat): Do not use CHECK_1.
22376         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
22377         <bp-checks.h>.
22378         (__xstat): Do not use CHECK_1.
22379         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
22380         (__xstat): Do not use CHECK_1.
22381         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
22382         (___xstat64): Do not use CHECK_1.
22383
22384         [BZ #13550]
22385         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
22386         definitions.
22387         (CHECK_BOUNDS_HIGH): Likewise.
22388         * string/strcpy.c: Do not include <bp-checks.h>.
22389         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
22390
22391 2013-02-07  Roland McGrath  <roland@hack.frob.com>
22392
22393         * nscd/nscd-client.h (__nscd_drop_map_ref):
22394         Add __attribute__ ((unused)).
22395         * nis/nss-nisplus.h (niserr2nss): Likewise.
22396
22397         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
22398         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
22399
22400         * csu/libc-tls.c (init_static_tls, init_slotinfo):
22401         Remove inline keyword.
22402         * include/rounding-mode.h (round_away): Likewise.
22403         * libio/wfileops.c (adjust_wide_data): Likewise.
22404         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
22405         (__m128i_strloadu_tolower): Likewise.
22406         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
22407         (__m128i_strloadu_tolower): Likewise.
22408         * time/mktime.c (ydhms_diff): Likewise.
22409         * locale/elem-hash.h (elem_hash): Likewise.
22410         * locale/setlocale.c (setdata): Likewise.
22411         * posix/regex_internal.h (re_string_char_size_at): Likewise.
22412         (re_string_wchar_at): Likewise.
22413         (bitset_not, bitset_merge, bitset_mask): Likewise.
22414         [!(__GNUC__ > 3)] (inline): Remove macro.
22415         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
22416         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
22417         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22418         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22419         * string/memcmp.c (memcmp_bytes): Likewise.
22420         * locale/programs/locarchive.c (compute_hashval): Likewise.
22421         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
22422         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
22423         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
22424         * nss/getent.c (print_rpc, print_protocols): Likewise.
22425         (print_passwd, print_group, print_aliases): Likewise.
22426         * nis/nss-nisplus.h (niserr2nss): Likewise.
22427         * nscd/connections.c (restart_p): Likewise.
22428         Change return type to bool.
22429
22430 2013-02-05  Roland McGrath  <roland@hack.frob.com>
22431
22432         * Makeconfig (all-Depend-files): Add existing
22433         $(sorted-subdirs:=/Depend) files.
22434         (all-subdirs): Remove nss.
22435         * sysdeps/unix/inet/Subdirs: Add it here instead.
22436         * hesiod/Depend: New file.
22437
22438         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
22439         instead of calling alloca.
22440
22441         * io/lseek.c (__lseek): Rename to __libc_lseek.
22442         Define __lseek as an alias.
22443
22444         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
22445
22446 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
22447
22448         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
22449         else clause and remove check for non-standard endianness.
22450
22451 2013-02-04  David S. Miller  <davem@davemloft.net>
22452
22453         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22454
22455 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
22456
22457         [BZ #13550]
22458         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
22459         (__ubp_memchr): Remove prototype.
22460         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
22461         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22462         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
22463         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22464         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
22465         Remove alias.
22466         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
22467         (__ubp_memchr): Likewise.
22468         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
22469         (__ubp_memchr): Likewise.
22470         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
22471         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
22472         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
22473         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
22474         CHECK_STRING.
22475         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
22476         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
22477         (__getcwd): Do not use CHECK_STRING.
22478         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22479         <bp-checks.h>.
22480         (__real_chown): Do not use CHECK_STRING.
22481         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
22482         <bp-checks.h>.
22483         (fchownat): Do not use CHECK_STRING.
22484         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
22485         CHECK_STRING.
22486         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22487         <bp-checks.h>.
22488         (__lchown): Do not use CHECK_STRING.
22489         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22490         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22491         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22492         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
22493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22494         include <bp-checks.h>.
22495         (truncate64): Do not use CHECK_STRING.
22496         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22497         <bp-checks.h>.
22498         (__real_chown): Do not use CHECK_STRING.
22499         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22500         <bp-checks.h>.
22501         (__lchown): Do not use CHECK_STRING.
22502         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22503         <bp-checks.h>.
22504         (__chown): Do not use CHECK_STRING.
22505         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
22506         <bp-checks.h>.
22507         (truncate64): Do not use CHECK_STRING.
22508         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
22509         Likewise.
22510         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
22511         (__xmknod): Do not use CHECK_STRING.
22512         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
22513         <bp-checks.h>.
22514         (__xmknodat): Do not use CHECK_STRING.
22515         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22516         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
22517
22518 2013-02-04  Andreas Schwab  <schwab@suse.de>
22519
22520         [BZ #14142]
22521         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
22522         * include/netdb.h: Likewise for h_errno.
22523         * elf/tst-stackguard1.c: Include <tls.h>.
22524
22525 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
22526
22527         * elf/link.h (struct link_map): Extend the l_addr comment.
22528         * include/link.h (struct link_map): Likewise.
22529
22530 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
22531
22532         [BZ #13550]
22533         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
22534         (BOUNDED_1): Remove macro.
22535         * debug/backtrace.c: Don't include <bp-checks.h>.
22536         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
22537         (__backtrace): Likewise.
22538         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
22539         <bp-checks.h>.
22540         (__backtrace): Don't use BOUNDED_1.
22541         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
22542         <bp-checks.h>.
22543         (__backtrace): Don't use BOUNDED_1.
22544         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
22545         (__backtrace): Don't use BOUNDED_1.
22546         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
22547         (shmat): Don't use BOUNDED_N.
22548
22549 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
22550
22551         [BZ #13550]
22552         * sysdeps/generic/bp-start.h: Remove file.
22553         * csu/libc-start.c: Don't include <bp-start.h>.
22554         (LIBC_START_MAIN): Set up __environ directly instead of using
22555         INIT_ARGV_and_ENVIRON.
22556         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
22557         <bp-start.h>.
22558
22559         [BZ #13550]
22560         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
22561         definitions.
22562         (CHECK_FCNTL): Likewise.
22563         (CHECK_N_PAGES): Likewise.
22564
22565         [BZ #13550]
22566         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
22567         definitions.
22568         (CHECK_SIGSET_NULL_OK): Likewise.
22569         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
22570         <bp-checks.h>.
22571         (sigpending): Don't use CHECK_SIGSET.
22572         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
22573         <bp-checks.h>.
22574         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22575         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
22576         <bp-checks.h>.
22577         (do_sigsuspend): Don't use CHECK_SIGSET.
22578         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
22579         use CHECK_SIGSET.
22580         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
22581         (do_sigwait): Don't use CHECK_SIGSET.
22582         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
22583         use CHECK_SIGSET.
22584         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
22585         include <bp-checks.h>.
22586         (sigpending): Don't use CHECK_SIGSET.
22587         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
22588         include <bp-checks.h>.
22589         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22590         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
22591         <bp-checks.h>.
22592         (sigpending): Don't use CHECK_SIGSET.
22593         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
22594         <bp-checks.h>.
22595         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22596
22597         [BZ #13550]
22598         * sysdeps/generic/bp-semctl.h: Remove file.
22599         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
22600         <bp-checks.h> and <bp-semctl.h>.
22601         (__old_semctl): Don't use CHECK_SEMCTL.
22602         (__new_semctl): Likewise.
22603         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
22604         and <bp-semctl.h>.
22605         (__old_semctl): Don't use CHECK_SEMCTL.
22606         (__new_semctl): Likewise.
22607         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
22608         <bp-checks.h> and <bp-semctl.h>.
22609         (__old_semctl): Don't use CHECK_SEMCTL.
22610         (__new_semctl): Likewise.
22611         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
22612         <bp-checks.h> and <bp-semctl.h>.
22613         (semctl): Don't use CHECK_SEMCTL.
22614
22615         [BZ #13550]
22616         * Makerules (elide-bp-thunks): Remove variable.
22617         (elide-routines.oS): Don't use $(elide-bp-thunks).
22618         (elide-routines.os): Likewise.
22619         (elide-routines.o): Likewise.
22620         (elide-routines.op): Likewise.
22621         (elide-routines.og): Likewise.
22622         (objects): Don't use $(bp-thunks).
22623         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
22624         include.
22625         (common-generated): Do not add s-proto-bp.d.
22626         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
22627         (int): Likewise.
22628         (typ): Likewise.
22629         Do not generate makefile rules for bounded-pointer thunks.
22630         * sysdeps/generic/bp-thunks.h: Remove file.
22631         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
22632         * sysdeps/unix/s-proto-bp.S: Likewise.
22633
22634         [BZ #15062]
22635         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
22636         parts of result separately when argument is not close to line from
22637         -i to i and one part of argument is small.
22638         * math/k_casinhf.c (__kernel_casinhf): Likewise.
22639         * math/k_casinhl.c (__kernel_casinhl): Likewise.
22640         * math/libm-test.inc (cacos_test): Add more tests.
22641         (casin_test): Likewise.
22642         (casinh_test): Likewise.
22643         * sysdeps/i386/fpu/libm-test-ulps: Update.
22644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22645
22646 2013-01-31  David S. Miller  <davem@davemloft.net>
22647
22648         * po/de.po: Update from translation team.
22649
22650 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
22651
22652         * time/tzfile.c: Include stdint.h for SIZE_MAX.
22653
22654 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
22655
22656         * configure.in (_AC_PROG_CC_C89): New definition.
22657         * configure: Regenerate.
22658
22659         * configure.in (AC_PROG_CPP): New definition.
22660         * configure: Regenerate.
22661
22662 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22663
22664         * debug/tst-backtrace.h: New file.
22665         * debug/tst-backtrace2.c: Include tst-backtrace.h.
22666         (ret): Remove variable.
22667         (x): Likewise.
22668         (FAIL): Remove macro.
22669         (NO_INLINE): Likewise.
22670         (fn1): Use match function instead of strstr.
22671         * debug/tst-backtrace3.c: Include tst-backtrace.h.
22672         (ret): Remove variable.
22673         (x): Likewise.
22674         (FAIL): Remove macro.
22675         (NO_INLINE): Likewise.
22676         (fn): Use match function instead of strstr.
22677         * debug/tst-backtrace4.c: Include tst-backtrace.h.
22678         (ret): Remove variable.
22679         (x): Likewise.
22680         (FAIL): Remove macro.
22681         (NO_INLINE): Likewise.
22682         (handle_signal): Use match function instead of strstr.
22683         * debug/tst-backtrace5.c: Include tst-backtrace.h.
22684         (ret): Remove variable.
22685         (x): Likewise.
22686         (FAIL): Remove macro.
22687         (NO_INLINE): Likewise.
22688         (handle_signal): Use match function instead of strstr.
22689
22690 2013-01-23  Roland McGrath  <roland@hack.frob.com>
22691
22692         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
22693
22694 2013-01-23  David S. Miller  <davem@davemloft.net>
22695
22696         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
22697         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
22698         argument of CAS if possible.
22699         * sysdeps/sparc/sparc64/bits/atomic.h
22700         (__arch_compare_and_exchange_val_32_acq): Likewise.
22701         (__arch_compare_and_exchange_val_64_acq): Likewise.
22702
22703 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
22704
22705         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
22706         * sysdeps/posix/ulimit.c: ... this.
22707         Include <limits.h>.
22708         * sysdeps/unix/bsd/ulimit.c: Remove file.
22709
22710 2013-01-23  Adam Conrad  <adconrad@0c3.net>
22711
22712         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
22713         (LDFLAGS-tst-array5): Likewise.
22714
22715 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22716
22717         [BZ #15036]
22718         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
22719         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
22720         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
22721         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
22722
22723 2013-01-21  David S. Miller  <davem@davemloft.net>
22724
22725         * sysdeps/sparc/backtrace.c: New file.
22726         * sysdeps/sparc/sparc32/backtrace.h: New file.
22727         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
22728         * sysdeps/sparc/sparc64/backtrace.h: New file.
22729         * sysdeps/sparc/sparc64/backtrace.c: Delete.
22730         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
22731         -funwind-tables.
22732
22733 2013-01-21  Andreas Schwab  <schwab@suse.de>
22734
22735         [BZ #15020]
22736         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
22737         closed its stdout.
22738
22739 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
22740
22741         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
22742         "mpa2.h".
22743         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22744
22745 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
22746             Mark Mitchell  <mark@codesourcery.com>
22747             Tom de Vries  <tom@codesourcery.com>
22748             Paul Pluzhnikov  <ppluzhnikov@google.com>
22749
22750         * debug/tst-backtrace2.c: New file.
22751         * debug/tst-backtrace3.c: Likewise.
22752         * debug/tst-backtrace4.c: Likewise.
22753         * debug/tst-backtrace5.c: Likewise.
22754         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
22755         (CFLAGS-tst-backtrace3.c): Likewise.
22756         (CFLAGS-tst-backtrace4.c): Likewise.
22757         (CFLAGS-tst-backtrace5.c): Likewise.
22758         (LDFLAGS-tst-backtrace2): Likewise.
22759         (LDFLAGS-tst-backtrace3): Likewise.
22760         (LDFLAGS-tst-backtrace4): Likewise.
22761         (LDFLAGS-tst-backtrace5): Likewise.
22762         (tests): Add new tests tst-backtrace2, tst-backtrace3,
22763         tst-backtrace4 and tst-backtrace5.
22764
22765 2013-01-18  Anton Blanchard  <anton@samba.org>
22766             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22767
22768         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
22769         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
22770         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
22771         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
22772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22773         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
22774         "+r" and remove output regs list as redundant.  Add explicit inline
22775         asm to specify register of return val to work around compiler codegen
22776         bug.  Remove (int) cast on return value.  Add return type parameter to
22777         use in macro so that this macro does not truncate return value for
22778         64-bit values.
22779         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
22780         pass to INTERNAL_VSYSCALL_NCS.
22781         (INLINE_VSYSCALL): Add 'long int' as return type to
22782         INTERNAL_VSYSCALL_NCS macro invocation.
22783         (INTERNAL_VSYSCALL): Add 'long int' as return type to
22784         INTERNAL_VSYSCALL_NCS macro invocation.
22785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22786
22787 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22788
22789         [BZ #14496]
22790         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
22791         Fix application of SIMD FP exception mask.
22792
22793         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
22794         mp_no from a power of two.
22795         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
22796         __mpexp_twomm1.  Use __pow_mp.
22797
22798         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
22799         multiplication.
22800
22801 2013-01-17  David S. Miller  <davem@davemloft.net>
22802
22803         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22804
22805 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22806
22807         [BZ #15023]
22808         * include/complex.h: Condition contents on [!_COMPLEX_H].
22809         (__kernel_casinhf): New prototype.
22810         (__kernel_casinh): Likewise.
22811         (__kernel_casinhl): Likewise.
22812         * math/Makefile (libm_calls): Add k_casinh.
22813         * math/k_casinh.c: New file.
22814         * math/k_casinhf.c: Likewise.
22815         * math/k_casinhl.c: Likewise.
22816         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
22817         finite nonzero arguments.
22818         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
22819         finite nonzero arguments.
22820         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
22821         finite nonzero arguments.
22822         * math/s_casinh.c: Do not include <float.h>.
22823         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
22824         * math/s_casinhf.c: Do not include <float.h>.
22825         (__casinhf): Move code for finite nonzero arguments to
22826         k_casinhf.c.
22827         * math/s_casinhl.c: Do not include <float.h>.
22828         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
22829         redefine.
22830         (__casinhl): Move code for finite nonzero arguments to
22831         k_casinhl.c.
22832         * math/libm-test.inc (cacos_test): Add more tests.
22833         * sysdeps/i386/fpu/libm-test-ulps: Update.
22834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22835
22836 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
22837
22838         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
22839         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
22840         [!HAVE_MREMAP]: Remove [defined linux] case.
22841         * malloc/arena.c: Do not include <malloc-sysdep.h>.
22842
22843 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
22844
22845         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
22846
22847 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22848
22849         * elf/elf.h (R_386_SIZE32): New relocation.
22850         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
22851         R_386_SIZE32.
22852         (elf_machine_rela): Likewise.
22853         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
22854         R_X86_64_SIZE64 and R_X86_64_SIZE32.
22855
22856 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22857
22858         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
22859         (FP_FAST_FMA): Do not define.
22860         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
22861         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
22862         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
22863         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
22864         !_SOFT_FLOAT]: Likewise.
22865         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
22866         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
22867         value.
22868         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
22869         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
22870         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
22871         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
22872         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
22873         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
22874         file.
22875
22876 2013-01-16  Andreas Schwab  <schwab@suse.de>
22877
22878         [BZ #14327]
22879         * include/stdlib.h (__mktemp): Add declaration.
22880         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
22881         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
22882
22883 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22884
22885         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
22886         definitions.
22887         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22888         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
22889         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
22890         definitions here.
22891         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
22892         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
22893         definitions.
22894         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
22895         and ONE.
22896         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
22897         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
22898         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
22899         definitions.
22900         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
22901         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
22902         definitions.
22903         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22904
22905         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
22906
22907 2013-01-15  David S. Miller  <davem@davemloft.net>
22908
22909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22910         trunc{,f} to libm-sysdep_routes.
22911         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
22913         file.
22914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
22915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
22916         file.
22917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
22918         file.
22919         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
22920         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
22921         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
22922         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
22923         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
22924         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
22925         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
22926         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
22927
22928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22929         nearbyint{,f} to libm-sysdep_routes.
22930         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
22932         New file.
22933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
22934         file.
22935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
22936         New file.
22937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
22938         file.
22939         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
22940         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
22941         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
22942         file.
22943         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
22944         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
22945         file.
22946         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
22947         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
22948         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
22949
22950         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
22951         libc_feholdexcept and libc_fesetenv.
22952
22953 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
22954
22955         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
22956
22957 2013-01-14  David S. Miller  <davem@davemloft.net>
22958
22959         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
22960         (SPARC_ASM_VIS2_IFUNC): Likewise.
22961         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
22962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
22963         use of 'siam' instruction.
22964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
22965         Likewise.
22966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
22967         Likewise.
22968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
22969         Likewise.
22970         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
22971         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
22972         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
22973         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
22974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
22975         file.
22976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
22977         file.
22978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
22979         file.
22980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
22981         file.
22982         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
22983         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
22984         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
22985         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
22986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
22987         new VIS2 routines.
22988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
22989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
22991         Likewise.
22992         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
22993         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
22994         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
22995         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
22996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
22997         routines to libm-sysdep_routines.
22998         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22999
23000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23001         fdim/fdimf to libm-sysdep_routines.
23002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
23003         file.
23004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
23005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
23006         file.
23007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
23008         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
23009         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
23010         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
23011         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
23012         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
23013         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
23014
23015 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
23016
23017         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
23018         to optimize copies.
23019
23020         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
23021         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23022         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23023
23024         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
23025         local variable MPTWO.
23026         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
23027         Likewise.
23028
23029 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23030
23031         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
23032         GLOB_NOESCAPE.
23033
23034 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23035
23036         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
23037
23038 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23039
23040         * manual/pattern.texi (glob_t): Document gl_flags.
23041         (glob64_t): Likewise.
23042
23043 2013-01-11  David S. Miller  <davem@davemloft.net>
23044
23045         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
23046         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
23047         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
23048         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
23049         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
23050         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
23051         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
23052         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
23053         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
23054         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
23055         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
23056         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
23057         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
23058
23059         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23060         sparc V9 rather than using V8 code.
23061         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23062         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23063
23064         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
23065         Move to...
23066         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
23067         Here.
23068
23069 2013-01-11  Roland McGrath  <roland@hack.frob.com>
23070
23071         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
23072         not in the main loop.
23073         * configure: Regenerated.
23074
23075 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
23076
23077         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
23078         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
23079         to just #else.
23080         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
23081         [!__GLIBC_HAVE_LONG_LONG] case.
23082         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
23083         condition to just #else.
23084         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
23085         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
23086         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
23087         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
23088         unconditional.
23089         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
23090         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23091         #elif condition to just #else.
23092         * sysdeps/unix/sysv/linux/sys/sysmacros.h
23093         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
23094         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23095         #elif condition to just #else.
23096
23097 2013-01-11  Steve Ellcey  <sellcey@mips.com>
23098
23099         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
23100         (EF_MIPS_ARCH_64): Fix value.
23101         (EF_MIPS_ARCH_32R2): New.
23102         (EF_MIPS_ARCH_64R2): New.
23103
23104 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
23105
23106         * Makeconfig (+link-pie-before-libc): New.
23107         (+link-pie-after-libc): Likewise.
23108         (+link-pie-tests): Likewise.
23109         (+link-pie): Rewritten.
23110         (link-before-libc): Remove $(config-LDFLAGS).
23111         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
23112         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
23113         (config-LDFLAGS): Renamed to ...
23114         (rtld-LDFLAGS): This.
23115         (rtld-tests-LDFLAGS): New macro.
23116         (link-libc-rpath-link): Likewise.
23117         (link-libc-tests-rpath-link): Likewise.
23118         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
23119         (link-libc): Prepand $(link-libc-rpath-link).
23120         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
23121         (test-program-prefix): New macro.
23122         (test-via-rtld-prefix): Likewise.
23123         (test-program-cmd): Likewise.
23124         (host-test-program-cmd): Likewise.
23125         * Makefile ($(common-objpfx)testrun.sh): Replace
23126         $(run-program-prefix) with $(test-program-prefix).
23127         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
23128         $(rtld-LDFLAGS).
23129         ($(common-objpfx)shlib.lds): Likewise.
23130         (build-module-helper): Likewise.
23131         ($(common-objpfx)format.lds): Likewise.
23132         * Rules (binaries-pie-tests): New.
23133         (binaries-pie-notests): Likewise.
23134         (binaries-pie): Rewritten.
23135         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
23136         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
23137         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
23138         (make-test-out): Replace $(host-built-program-cmd) with
23139         $(host-test-program-cmd).
23140         * config.make.in (build-hardcoded-path-in-tests): New variable.
23141         * configure.in (--enable-hardcoded-path-in-tests): New configure
23142         option.
23143         (hardcoded_path_in_tests): New AC_SUBST.
23144         * configure: Regenerated.
23145         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
23146         $(built-program-cmd) with $(test-program-cmd).
23147         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
23148         (test_program_cmd): This.
23149         * elf/Makefile ($(objpfx)order.out): Run test with
23150         $(test-program-prefix).
23151         ($(objpfx)order2.out): Likewise.
23152         ($(objpfx)tst-initorder.out): Likewise.
23153         ($(objpfx)tst-initorder2.out): Likewise.
23154         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
23155         $(test-program-cmd).
23156         ($(objpfx)tst-array1-static.out): Likewise.
23157         ($(objpfx)tst-array2.out): Likewise.
23158         ($(objpfx)tst-array3.out): Likewise.
23159         ($(objpfx)tst-array4.out): Likewise.
23160         ($(objpfx)tst-array5.out): Likewise.
23161         ($(objpfx)tst-array5-static.out): Likewise.
23162         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
23163         $(test-program-cmd).
23164         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
23165         $(run-program-prefix) with $(test-program-prefix).
23166         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
23167         (test_program_prefix): This.
23168         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
23169         $(run-program-prefix) with $(test-program-prefix).
23170         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
23171         (test_program_prefix): This.
23172         * iconvdata/tst-tables.sh: Likewise.
23173         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
23174         $(run-program-prefix) with $(test-program-prefix).
23175         ($(objpfx)tst-translit.out): Likewise.
23176         ($(objpfx)tst-gettext2.out): Likewise.
23177         ($(objpfx)tst-gettext4.out): Likewise.
23178         ($(objpfx)tst-gettext6.out): Likewise.
23179         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
23180         (test_program_prefix): This.
23181         * intl/tst-gettext2.sh: Likewise.
23182         * intl/tst-gettext4.sh  Likewise.
23183         * intl/tst-gettext6.sh: Likewise.
23184         * intl/tst-translit.sh: Likewise.
23185         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
23186         with $(test-program-cmd).
23187         * libio/Makefile ($(objpfx)test-freopen.out): Replace
23188         $(run-program-prefix) with $(test-program-prefix).
23189         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
23190         (test_program_prefix): This.
23191         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
23192         $(run-program-prefix) with $(test-program-prefix).
23193         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
23194         (test_program_prefix): This.
23195         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
23196         * posix/Makefile ($(objpfx)globtest.out): Replace
23197         $(run-via-rtld-prefix) and $(test-wrapper) with
23198         $(test-program-prefix) and $(test-via-rtld-prefix).
23199         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
23200         $(test-program-prefix).
23201         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
23202         $(host-test-program-cmd).
23203         (tst-spawn-ARGS): Likewise.
23204         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
23205         $(test-program-prefix).
23206         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
23207         (test_via_rtld_prefix): This.
23208         (test_wrapper): Renamed to ...
23209         (test_program_prefix): This.
23210         (run_program_prefix): Replaced by test_program_prefix.
23211         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
23212         (test_program_prefix): This.
23213         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
23214         with $(host-test-program-cmd).
23215         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
23216         $(run-program-prefix) with $(test-program-prefix).
23217         ($(objpfx)tst-printf.out): Likewise.
23218         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
23219         $(test-program-cmd).
23220         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
23221         (test_program_prefix): This.
23222         * stdio-common/tst-unbputc.sh: Likewise.
23223         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
23224         $(run-program-prefix) with $(test-program-prefix).
23225         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
23226         (test_program_prefix): This.
23227         * string/Makefile ($(objpfx)tst-svc.out):  Replace
23228         $(built-program-cmd) with $(test-program-cmd).
23229
23230 2013-01-11  Andreas Jaeger  <aj@suse.de>
23231
23232         [BZ #15003]
23233         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
23234         value. Sync with Linux 3.7.
23235
23236 2013-01-10  David S. Miller  <davem@davemloft.net>
23237
23238         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
23239         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23240         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23241
23242 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23243
23244         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
23245         never set.
23246         * configure: Regenerated.
23247
23248 2013-01-10  David S. Miller  <davem@davemloft.net>
23249
23250         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23251         sparc V9 rather than using V8 code.
23252         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23253         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23254
23255 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23256
23257         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
23258         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
23259         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
23260         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
23261         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
23262         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
23263         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
23264         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
23265         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
23266         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
23267         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
23268         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
23269         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
23270         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
23271         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
23272         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
23273         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
23274         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
23275         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
23276         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
23277         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
23278         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
23279         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
23280         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
23281         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
23282         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
23283         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
23284
23285 2013-01-10  David S. Miller  <davem@davemloft.net>
23286
23287         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23288
23289 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23290
23291         * posix/Makefile (tests-static): New variable.
23292         (tests): Add $(tests-static).
23293         (tst-exec-static-ARGS): New variable.
23294         (tst-spawn-static-ARGS): Likewise.
23295         * posix/tst-exec-static.c: New file.
23296         * posix/tst-spawn-static.c: Likewise.
23297         * posix/tst-exec.c: Support run directly.
23298         * posix/tst-spawn.c: Likewise.
23299
23300 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
23301
23302         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
23303         long.
23304         * math/bits/mathcalls.h (llrint): Likewise.
23305         (llround): Likewise.
23306         * stdlib/stdlib.h (struct drand48_data): Likewise.
23307         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
23308         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
23309         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
23310         Likewise.
23311         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
23312         Likewise.
23313         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
23314         (elf_greg_t): Likewise.
23315         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
23316         (__jmp_buf): Likewise.
23317         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
23318         definitions.
23319         (llrint): Likewise, for all definitions.
23320         (llrintl): Likewise.
23321
23322         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
23323         Remove [__GNUC__] condition.
23324         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
23325         condition to just [__USE_ISOC99].
23326         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
23327
23328 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23329
23330         [BZ #14200]
23331         * sysdeps/unix/sysv/linux/x86/bits/environments.h
23332         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
23333         defined.
23334         (_POSIX_V6_ILP32_OFF32): Likewise.
23335         (_XBS5_ILP32_OFF32): Likewise.
23336         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
23337         (__ILP32_OFFBIG_LDFLAGS): Likewise.
23338
23339 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23340
23341         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
23342
23343         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
23344         doubles __mpexp_twomm1.  Adjust usage.
23345         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
23346         Remove.
23347
23348 2013-01-10  Andreas Schwab  <schwab@suse.de>
23349
23350         [BZ #14964]
23351         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
23352         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
23353
23354 2013-01-09  David S. Miller  <davem@davemloft.net>
23355
23356         [BZ #15003]
23357         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
23358         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
23359         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
23360         (TCP_FASTOPEN): Define.
23361         (tcp_repair_opt): New structure.
23362         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
23363         enum values.
23364         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
23365         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
23366         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
23367         (tcp_cookie_transactions): New structure.
23368
23369 2013-01-09  Anton Blanchard  <anton@samba.org>
23370
23371         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
23372         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
23373         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
23374         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
23375
23376 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
23377
23378         * include/features.h (__USE_ANSI): Remove.
23379
23380 2013-01-09  Roland McGrath  <roland@hack.frob.com>
23381
23382         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
23383
23384         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
23385
23386 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
23387
23388         * sysdeps/s390/fpu/libm-test-ulps: Update.
23389
23390         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23391
23392         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
23393         (__acr): Likewise.
23394         (__cpy): Likewise.
23395         (norm): Likewise.
23396         (denorm): Likewise.
23397         (__mp_dbl): Likewise.
23398         (__dbl_mp): Likewise.
23399         (add_magnitudes): Likewise.
23400         (sub_magnitudes): Likewise.
23401         (__add): Likewise.
23402         (__sub): Likewise.
23403         (__mul): Likewise.
23404         (__inv): Likewise.
23405         (__dvd): Likewise.
23406         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
23407         (__acr): Likewise.
23408         (__cpy): Likewise.
23409         (norm): Likewise.
23410         (denorm): Likewise.
23411         (__mp_dbl): Likewise.
23412         (__dbl_mp): Likewise.
23413         (add_magnitudes): Likewise.
23414         (sub_magnitudes): Likewise.
23415         (__add): Likewise.
23416         (__sub): Likewise.
23417         (__mul): Likewise.
23418         (__inv): Likewise.
23419         (__dvd): Likewise.
23420         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
23421         (__acr): Likewise.
23422         (__cpy): Likewise.
23423         (norm): Likewise.
23424         (denorm): Likewise.
23425         (__mp_dbl): Likewise.
23426         (__dbl_mp): Likewise.
23427         (add_magnitudes): Likewise.
23428         (sub_magnitudes): Likewise.
23429         (__add): Likewise.
23430         (__sub): Likewise.
23431         (__mul): Likewise.
23432         (__inv): Likewise.
23433         (__dvd): Likewise.
23434
23435 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
23436
23437         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
23438         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
23439         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
23440         2 && __USE_EXTERN_INLINES]: Likewise.
23441
23442 2013-01-08  Andreas Jaeger  <aj@suse.de>
23443
23444         [BZ# 14985]
23445         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
23446         Remove.
23447         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23448         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23449
23450 2013-01-07  Anton Blanchard  <anton@samba.org>
23451
23452         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
23453         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
23454         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
23455         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
23456         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
23457         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23458         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
23459         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23460         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23461         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23462         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23463         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23464         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23465         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
23466         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
23467         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23468         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23469         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
23470         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
23471         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
23472         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
23473         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
23474         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
23475         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
23476         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
23477         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
23478         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23479         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
23480         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
23481         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23482         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
23483         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23484         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23485         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
23486         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
23487         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
23488         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
23489         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
23490         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
23491         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
23492         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
23493         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23494         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
23495
23496 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
23497
23498         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
23499         (__MALLOC_PMT): Likewise.
23500         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
23501         [__GNUC__], only on [_LIBC].
23502         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23503         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
23504         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23505         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
23506         forward declaration.
23507         (realloc_hook_ini): Likewise.
23508         (memalign_hook_ini): Likewise.
23509         (__libc_memalign): Do not use __MALLOC_PMT in variable
23510         declaration.
23511         (__libc_valloc): Likewise.
23512         (__libc_pvalloc): Likewise.
23513         (__libc_calloc): Likewise.
23514         (__posix_memalign): Likewise.
23515
23516         [BZ #14996]
23517         * math/s_casinh.c: Include <float.h>.
23518         (__casinh): Do not do computation with squaring and square root
23519         for large arguments.
23520         * math/s_casinhf.c: Include <float.h>.
23521         (__casinhf): Do not do computation with squaring and square root
23522         for large arguments.
23523         * math/s_casinhl.c: Include <float.h>.
23524         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
23525         (__casinhl): Do not do computation with squaring and square root
23526         for large arguments.
23527         * math/libm-test.inc (casin_test): Add more tests.
23528         (casinh_test): Likewise.
23529         * sysdeps/i386/fpu/libm-test-ulps: Update.
23530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23531
23532 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23533
23534         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
23535         (__x86_64_raw_data_cache_size): Likewise.
23536         (__x86_64_data_cache_size_half): Likewise.
23537         (__x86_64_raw_data_cache_size_half): Likewise.
23538         (__x86_64_shared_cache_size): Likewise.
23539         (__x86_64_raw_shared_cache_size): Likewise.
23540         (__x86_64_shared_cache_size_half): Likewise.
23541         (__x86_64_raw_shared_cache_size_half): Likewise.
23542         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
23543         to ...
23544         (__x86_data_cache_size): This.
23545         (__x86_64_raw_data_cache_size): Renamed to ...
23546         (__x86_raw_data_cache_size): This.
23547         (__x86_64_data_cache_size_half): Renamed to ...
23548         (__x86_data_cache_size_half): This.
23549         (__x86_64_raw_data_cache_size_half): Renamed to ...
23550         (__x86_raw_data_cache_size_half): This.
23551         (__x86_64_shared_cache_size): Renamed to ...
23552         (__x86_shared_cache_size): This.
23553         (__x86_64_raw_shared_cache_size): Renamed to ...
23554         (__x86_raw_shared_cache_size): This.
23555         (__x86_64_shared_cache_size_half): Renamed to ...
23556         (__x86_shared_cache_size_half): This.
23557         (__x86_64_raw_shared_cache_size_half): Renamed to ...
23558         (__x86_raw_shared_cache_size_half): This.
23559         * sysdeps/x86_64/memcpy.S: Updated.
23560         * sysdeps/x86_64/memset.S: Likewise.
23561         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23562         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23563         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23564
23565 2013-01-04  David S. Miller  <davem@davemloft.net>
23566
23567         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23568
23569 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
23570
23571         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
23572         1 to avoid redefinition warning.
23573         (__USE_GNU): Don't define.
23574         (init_signaling_nan): Protoize.
23575
23576         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23577
23578 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23579
23580         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
23581         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
23582         (__cpymn): Likewise.
23583         (norm): Remove commented code.
23584         (denorm): Likewise.
23585         (__mp_dbl): Likewise.
23586         (__inv): Likewise.
23587         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
23588         (__cpymn): Likewise.
23589         (norm): Remove commented code.
23590         (denorm): Likewise.
23591         (__mp_dbl): Likewise.
23592         (__inv): Likewise.
23593
23594         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
23595         mp_no value for 1.0 and 2.0.
23596         (norm): Use RADIXI instead of radixi.d.
23597         (denorm): Likewise.
23598         (__mul): Use 0.0 instead of zero.d.
23599         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
23600         mp_no value for 1.0 and 2.0.
23601         (norm): Use RADIXI instead of radixi.d.
23602         (denorm): Likewise.
23603         (__mul): Use 0.0 instead of zero.d.
23604
23605 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
23606
23607         [BZ #14994]
23608         * math/s_casinh.c (__casinh): Reduce finite argument to first
23609         quadrant then set signs of results at the end.
23610         * math/s_casinhf.c (__casinhf): Likewise.
23611         * math/s_casinhl.c (__casinhl): Likewise.
23612         * math/libm-test.inc (casin_test): Add more tests.
23613         (casinh_test): Likewise.
23614         * sysdeps/i386/fpu/libm-test-ulps: Update.
23615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23616
23617 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23618
23619         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
23620
23621         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
23622
23623         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
23624         declarations.
23625         (denorm): Likewise.
23626         (__mp_dbl): Likewise.
23627         (__inv): Likewise.
23628
23629         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
23630         and adjust the header comment.
23631
23632         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
23633         variable name from declaration.
23634
23635 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23636
23637         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23638         Initialize COMMON_CPUID_INDEX_7 element.
23639         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
23640         (CPUID_RTM): Likewise.
23641         (HAS_RTM): Likewise.
23642         (COMMON_CPUID_INDEX_7): New enum.
23643
23644 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
23645
23646         [BZ #14981]
23647         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
23648         size is zero, record memory as freed.
23649
23650 2013-01-03  Andreas Jaeger  <aj@suse.de>
23651
23652         * po/ia.po: Add new Interlingua translation.
23653
23654 2012-01-03  Allan McRae  <allan@archlinux.org>
23655
23656         * locale/programs/localedef.c: Fix description of '--posix' flag.
23657
23658 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
23659
23660         * NEWS: Update dates in second copyright notice.
23661         * README: Update copyright dates in example.
23662         * manual/libc.texinfo: Update copyright dates.
23663         * scripts/test-installation.pl: Update copyright date in --version
23664         output.
23665
23666         * hurd/ctty-input.c: Fix copyright notice formatting.
23667         * hurd/ctty-output.c: Likewise.
23668         * hurd/dtable.c: Likewise.
23669         * hurd/hurd-raise.c: Likewise.
23670         * hurd/hurdprio.c: Likewise.
23671         * hurd/msgportdemux.c: Likewise.
23672         * misc/sys/file.h: Likewise.
23673         * misc/sys/ioctl.h: Likewise.
23674         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
23675         * sysdeps/mach/hurd/chdir.c: Likewise.
23676         * sysdeps/mach/hurd/fchdir.c: Likewise.
23677         * sysdeps/mach/hurd/rename.c: Likewise.
23678         * sysdeps/mach/hurd/rmdir.c: Likewise.
23679         * sysdeps/mach/hurd/seekdir.c: Likewise.
23680         * sysdeps/mach/hurd/setsid.c: Likewise.
23681         * sysdeps/posix/wait3.c: Likewise.
23682
23683         * All files with FSF copyright notices: Update copyright dates
23684         using scripts/update-copyrights.
23685         * intl/plural.c: Regenerated.
23686         * locale/programs/charmap-kw.h: Likewise.
23687         * locale/programs/locfile-kw.h: Likewise.
23688
23689 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
23690
23691         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
23692         four values.
23693
23694         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
23695         calculation loop and add branch prediction.
23696
23697         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
23698         check access beyond bounds of m1np.
23699
23700         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23701         MPTWO.
23702         (__inv): Remove local variable MPTWO to use the global
23703         constant.
23704         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
23705         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23706         variable MPTWO.
23707         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
23708         MP3HALFS static const.
23709
23710 2013-01-01  David S. Miller  <davem@davemloft.net>
23711
23712         * po/ca.po: Update from translation team.
23713
23714 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
23715
23716         * scripts/update-copyrights: New file.
23717         * Makeconfig: Reformat copyright notice.
23718         * ctype/ctype.h: Likewise.
23719         * debug/swprintf_chk.c: Likewise.
23720         * elf/dl-cache.c: Likewise.
23721         * elf/dl-debug.c: Likewise.
23722         * elf/dl-object.c: Likewise.
23723         * grp/initgroups.c: Likewise.
23724         * hurd/Makefile: Likewise.
23725         * hurd/hurd/signal.h: Likewise.
23726         * hurd/hurdfault.c: Likewise.
23727         * hurd/hurdioctl.c: Likewise.
23728         * hurd/hurdlookup.c: Likewise.
23729         * hurd/intr-msg.c: Likewise.
23730         * iconv/gconv_open.c: Likewise.
23731         * libio/swprintf.c: Likewise.
23732         * locale/lc-ctype.c: Likewise.
23733         * locale/nl_langinfo.c: Likewise.
23734         * mach/Machrules: Likewise.
23735         * mach/Makefile: Likewise.
23736         * malloc/obstack.h: Likewise.
23737         * manual/Makefile: Likewise.
23738         * manual/tsort.awk: Likewise.
23739         * misc/bits/stab.def: Likewise.
23740         * nis/nis_print_group_entry.c: Likewise.
23741         * nis/nis_table.c: Likewise.
23742         * nis/nss_compat/compat-pwd.c: Likewise.
23743         * nis/nss_compat/compat-spwd.c: Likewise.
23744         * po/Makefile: Likewise.
23745         * posix/fnmatch.c: Likewise.
23746         * posix/regex.h: Likewise.
23747         * resolv/Makefile: Likewise.
23748         * resolv/nss_dns/dns-network.c: Likewise.
23749         * resolv/res_hconf.c: Likewise.
23750         * scripts/gen-sorted.awk: Likewise.
23751         * soft-fp/soft-fp.h: Likewise.
23752         * stdio-common/printf.h: Likewise.
23753         * stdlib/monetary.h: Likewise.
23754         * stdlib/random.c: Likewise.
23755         * stdlib/random_r.c: Likewise.
23756         * sysdeps/generic/Makefile: Likewise.
23757         * sysdeps/gnu/Makefile: Likewise.
23758         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23759         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23760         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23761         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23762         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23763         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23764         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23765         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23766         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23767         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23768         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23769         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23770         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23771         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23772         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
23773         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23774         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23775         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23776         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23777         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23778         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23779         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23780         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23781         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
23782         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
23783         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23784         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
23785         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
23786         * sysdeps/mach/hurd/errnos.awk: Likewise.
23787         * sysdeps/mach/hurd/fork.c: Likewise.
23788         * sysdeps/mach/hurd/getcwd.c: Likewise.
23789         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
23790         * sysdeps/mach/hurd/mmap.c: Likewise.
23791         * sysdeps/mach/hurd/utimes.c: Likewise.
23792         * sysdeps/mach/hurd/xmknod.c: Likewise.
23793         * sysdeps/posix/profil.c: Likewise.
23794         * sysdeps/posix/readdir_r.c: Likewise.
23795         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23796         * sysdeps/powerpc/bits/setjmp.h: Likewise.
23797         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
23798         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23799         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23800         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23801         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23802         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
23803         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23804         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23805         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23806         * sysdeps/pthread/lio_listio.c: Likewise.
23807         * sysdeps/sparc/dl-procinfo.h: Likewise.
23808         * sysdeps/unix/i386/sysdep.S: Likewise.
23809         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
23810         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
23811         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
23812         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
23813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23814         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
23815         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
23816         * sysdeps/unix/sysv/linux/speed.c: Likewise.
23817         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
23818         * sysdeps/wordsize-32/divdi3.c: Likewise.
23819         * time/sys/time.h: Likewise.
23820         * wcsmbs/Makefile: Likewise.
23821
23822 2013-01-01  David S. Miller  <davem@davemloft.net>
23823
23824         * po/fr.po: Update from translation team.
23825
23826         * catgets/gencat.c: Update copyright year.
23827         * csu/version.c: Likewise.
23828         * debug/catchsegv.sh: Likewise.
23829         * debug/pcprofiledump.c: Likewise.
23830         * debug/xtrace.sh: Likewise.
23831         * elf/ldconfig.c: Likewise.
23832         * elf/ldd.bash.in: Likewise.
23833         * elf/pldd.c: Likewise.
23834         * elf/sotruss.ksh: Likewise.
23835         * elf/sprof.c: Likewise.
23836         * iconv/iconv_prog.c: Likewise.
23837         * iconv/iconvconfig.c: Likewise.
23838         * locale/programs/locale.c: Likewise.
23839         * locale/programs/localedef.c: Likewise.
23840         * login/programs/pt_chown.c: Likewise.
23841         * malloc/memusage.sh: Likewise.
23842         * malloc/memusagestat.c: Likewise.
23843         * malloc/mtrace.pl: Likewise.
23844         * nscd/nscd.c: Likewise.
23845         * nss/getent.c: Likewise.
23846         * nss/makedb.c: Likewise.
23847         * posix/getconf.c: Likewise.
23848
23849 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23850
23851         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
23852         numbers.
23853
23854 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
23855
23856         * math/bits/mathcalls.h (modf): Use __nonnull.
23857
23858 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
23859
23860         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
23861         (split): Use macro CN instead of the bare value.
23862         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
23863         could be used.
23864         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
23865         instead of the bare value.
23866         (power1): Likewise.
23867
23868 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23869
23870         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
23871         __ATAN_TWOM.
23872         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23873
23874         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
23875         their values.
23876         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23877         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
23878         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
23879         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23880
23881 2012-12-28  Andreas Jaeger  <aj@suse.de>
23882
23883         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
23884         values are from Linux 3.7.
23885
23886         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
23887         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
23888
23889 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23890
23891         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
23892         TRUE case.
23893
23894         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
23895         (norm): Likewise.
23896         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
23897         variables with preprocessor constants.
23898         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23899         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23900         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23901
23902 2012-12-27  Bruno Haible  <bruno@clisp.org>
23903
23904         [BZ #14317]
23905         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
23906         only if needed.
23907
23908 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23909
23910         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
23911         and use variable directly.
23912         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
23913
23914         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23915         MPONE.
23916         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
23917         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23918         variable MPONE.
23919         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
23920         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
23921         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
23922         include directive.  Remove local variable MPONE.
23923         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
23924         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
23925         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23926
23927 2012-12-25  David S. Miller  <davem@davemloft.net>
23928
23929         * version.h (RELEASE): Set to "development".
23930         (VERSION): Set to "2.17.90".
23931         * NEWS: Add 2.18 section.
23932
23933 2012-12-21  David S. Miller  <davem@davemloft.net>
23934
23935         * po/hr.po: Update from translation team.
23936
23937 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23938
23939         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
23940
23941 2012-12-19  Steve Ellcey  <sellcey@mips.com>
23942
23943         * NEWS:  Mention new memcpy for MIPS.
23944
23945 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23946
23947         * manual/contrib.texi (Contributors): Spelling correction.
23948
23949 2012-12-15  David S. Miller  <davem@davemloft.net>
23950
23951         * po/ru.po: Update from translation team.
23952
23953 2012-12-13  David S. Miller  <davem@davemloft.net>
23954
23955         * NEWS: Mention IFUNC testsuite enhancements.
23956
23957         * po/pl.po: Update from translation team.
23958         * po/bg.po: Likewise.
23959
23960         * manual/contrib.texi (Contributors): Update entries for Hongjiu
23961         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
23962
23963 2012-12-11  David S. Miller  <davem@davemloft.net>
23964
23965         * po/sv.po: Update from translation team.
23966
23967         * po/vi.po: Update from translation team.
23968
23969         * po/cs.po: Update from translation team.
23970
23971         * po/de.po: Update from translation team.
23972         * po/eo.po: Likewise.
23973         * po/nl.po: Likewise.
23974
23975 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
23976
23977         [BZ #14246]
23978         * manual/argp.texi (Argp Helper Functions): Move node to follow
23979         Argp Parsing State.
23980
23981         [BZ #14872]
23982         * manual/conf.texi (Limits on File System Capacity): Mention if
23983         terminating null is included in the max size.
23984
23985 2012-12-10  Andreas Jaeger  <aj@suse.de>
23986
23987         * po/cs.po: Update from translation team.
23988
23989 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
23990
23991         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
23992         void pointer and cast to uintptr_t.
23993         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
23994         path.
23995         * sysdeps/s390/s390-64/memcpy.S: Likewise.
23996         * sysdeps/s390/s390-64/memset.S: Likewise.
23997
23998 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
23999
24000         [BZ #14833]
24001         * menual/message.texi (Message Translation): Fix typos.
24002         (Helper programs for gettext): Likewise.
24003
24004 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
24005
24006         [BZ #14898]
24007         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
24008         Change to -1.
24009
24010 2012-12-07  David S. Miller  <davem@davemloft.net>
24011
24012         * po/libc.pot: Update.
24013
24014 2012-12-07  Richard Henderson  <rth@redhat.com>
24015
24016         [BZ #10114]
24017         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
24018         normal/normal case to before the switch.
24019         (_FP_DIV): Likewise.
24020
24021 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
24022             Mike Frysinger  <vapier@gentoo.org>
24023
24024         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
24025         check for __NR_fadvise64_64.
24026
24027 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
24028
24029         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
24030         0, not just to plain "0" as a statement.
24031         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
24032         with cw.
24033
24034 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
24035
24036         * NEWS: Use sourceware.org in Bugzilla URL.
24037
24038 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
24039
24040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24041         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24042
24043         * stdio-common/tst-put-error.c (do_test): Add newline to the
24044         padded test to ensure flush.
24045
24046 2012-12-05  Jeff Law  <law@redhat.com>
24047
24048         * sunrpc/etc.rpc (fedfs_admin): Add entry.
24049
24050 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
24051
24052         * README: Don't refer to ports add-on as distributed separately.
24053         Mention AArch64 in list of systems supported in the ports add-on.
24054
24055         * LICENSES: Add more non-FSF copyright and license notices.
24056
24057         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
24058         ((unused)).
24059
24060         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
24061
24062         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
24063         10000 as width of padded output.
24064
24065 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24066
24067         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
24068
24069         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
24070         variable LX with __attribute__ ((unused)).
24071         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
24072         Likewise.
24073         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
24074         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24075         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
24076         with __attribute__ ((unused)).
24077
24078 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
24079
24080         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
24081
24082 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24083
24084         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
24085         (CFLAGS-nldbl-acos.c): New variable.
24086         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
24087         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
24088         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
24089         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
24090         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
24091         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
24092         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
24093         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
24094         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
24095         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
24096         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
24097         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
24098         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
24099         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
24100         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
24101         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
24102         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
24103         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
24104         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
24105         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
24106         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
24107         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
24108         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
24109         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
24110         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
24111         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
24112         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
24113         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
24114         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
24115         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
24116         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
24117         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
24118         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
24119         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
24120         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
24121         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
24122         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
24123         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
24124         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
24125         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
24126         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
24127         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
24128         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
24129         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
24130         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
24131         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
24132         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
24133         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
24134         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
24135         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
24136         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
24137         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
24138         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
24139         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
24140         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
24141         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
24142         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
24143         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
24144         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
24145         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
24146         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
24147         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
24148         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
24149         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
24150         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
24151         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
24152         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
24153         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
24154         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
24155         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
24156         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
24157         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
24158         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
24159         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
24160         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
24161         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
24162         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
24163         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
24164         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
24165         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
24166         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
24167         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
24168         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
24169         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
24170         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
24171         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
24172         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
24173         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
24174         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
24175         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
24176         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
24177         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
24178         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
24179         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
24180         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
24181         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
24182         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
24183
24184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24185         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24186
24187         [BZ #14914]
24188         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
24189         whole low double instead of just low 47 bits when splitting values
24190         into two parts.
24191
24192 2012-12-03  Allan McRae  <allan@archlinux.org>
24193
24194         * manual/stdio.texi (Predefined Printf Handlers): Remove
24195         @hsep and @vsep usage.
24196
24197 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
24198
24199         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
24200         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
24201
24202 2012-12-03  Jeff Law  <law@redhat.com>
24203
24204         * time/sys/time.h (settimeofday): Do not mark TV argument
24205         as __nonnull.
24206
24207 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
24208
24209         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
24210         when currently writing and seek to current position when not.
24211         * libio/Makefile (tests): Remove bug-fclose1.
24212         * libio/bug-fclose1.c: Delete.
24213
24214 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
24215
24216         * manual/arith.texi (feenableexcept): Fix typo.
24217         (fedisableexcept): Likewise.
24218
24219 2012-11-30  Roland McGrath  <roland@hack.frob.com>
24220
24221         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
24222         second, differently-typed declaration, rather than a cast.
24223
24224 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
24225
24226         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
24227         * include/rpc/svc.h: ... here.
24228
24229 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
24230
24231         [BZ #13013]
24232         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
24233         depending n and resplen2 to catch cases where answer
24234         equals answerp2.
24235
24236 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
24237
24238         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
24239         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
24240
24241 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
24242
24243         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
24244
24245 2012-11-29  Roland McGrath  <roland@hack.frob.com>
24246
24247         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
24248
24249 2012-11-28  Jeff Law  <law@redhat.com>
24250
24251         [BZ #13761]
24252         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
24253         dataset_temporary.  Track alloca usage into alloca_used.
24254         If dataset is large allocate and release it via malloc/free.
24255
24256 2012-06-04  Florian Weimer  <fweimer@redhat.com>
24257
24258         [BZ #14197]
24259         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
24260
24261 2012-11-28  David S. Miller  <davem@davemloft.net>
24262
24263         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24264
24265 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24266
24267         [BZ #14803]
24268         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
24269         of pi/2 rounded to nearest to 64 bits.
24270         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
24271         nearest to 64 bits.
24272         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
24273         bits.
24274
24275 2012-11-28  Jeff Law <law@redhat.com>
24276             Martin Osvald <mosvald@redhat.com>
24277
24278         [BZ #14889]
24279         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
24280         * sunrpc/svc.c: Include time.h.
24281         (__svc_accept_failed): New function.
24282         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
24283         any reason other than EINTR, call __svc_accept_failed.
24284         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
24285         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
24286
24287 2012-11-28  Andreas Schwab  <schwab@suse.de>
24288
24289         * scripts/abilist.awk: Also handle indirect functions in .opd
24290         section.
24291
24292 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24293
24294         [BZ #13881]
24295         * sysdeps/x86/fpu/powl_helper.c: New file.
24296         * sysdeps/x86/fpu/Makefile: Likewise.
24297         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
24298         (p3): New object.
24299         (__ieee754_powl): Use __powl_helper for finite arguments except
24300         integer exponents below 8.
24301         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
24302         (p3): New object.
24303         (__ieee754_powl): Use __powl_helper for finite arguments except
24304         integer exponents below 8.
24305         * math/libm-test.inc (pow_test): Add more tests and enable some
24306         previously disabled tests.
24307         * sysdeps/i386/fpu/libm-test-ulps: Update.
24308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24309
24310 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24311             Carlos O'Donell  <carlos_odonell@mentor.com>
24312
24313         * nss/makedb.c (is_prime): Assert that input is odd and greater
24314         than 4.  Note that fact in a comment too.
24315         (next_prime): Add 4 to input.
24316
24317 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24318
24319         [BZ #11741]
24320         * libio/Makefile (tests): Add test case tst-fwrite-error.
24321         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
24322         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
24323         * libio/tst-fwrite-error.c: New test case.
24324
24325 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
24326
24327         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
24328         before casting to void *.
24329         * include/libc-internal.h (__pointer_type): New macro.
24330         (__integer_if_pointer_type_sub): Likewise.
24331         (__integer_if_pointer_type): Likewise.
24332         (cast_to_integer): Likewise.
24333         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
24334         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
24335         before casting to atomic64_t.
24336         (atomic_exchange_acq): Likewise.
24337         (__arch_exchange_and_add_body): Likewise.
24338         (__arch_add_body): Likewise.
24339         (atomic_add_negative): Likewise.
24340         (atomic_add_zero): Likewise.
24341
24342 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
24343
24344         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
24345         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
24346         (add_fdes): Likewise.
24347         (linear_search_fdes): Likewise.
24348         (binary_search_unencoded_fdes): Likewise.
24349
24350 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
24351
24352         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
24353
24354 2012-11-24  Adam Conrad  <adconrad@0c3.net>
24355
24356         * configure.in: Autodetect C++ header directories.
24357         * configure: Regenerated.
24358
24359 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
24360
24361         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
24362
24363 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
24364
24365         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24366
24367 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
24368
24369         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
24370         LDBL_MANT_DIG == 106]: Disable some tests.
24371         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24372         Likewise.
24373         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24374         Likewise.
24375
24376         [BZ #14871]
24377         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
24378         input for small inputs.  Return +/- pi/2 for large inputs.
24379         * math/libm-test.inc (atan_test): Add more tests.
24380
24381         * sysdeps/generic/unwind-dw2-fde-glibc.c
24382         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
24383         __attribute__ ((unused)).
24384
24385         [BZ #14645]
24386         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
24387         x * y if x and y are nonzero and z is zero.
24388
24389         [BZ #14811]
24390         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
24391         nonzero exponents with absolute value below 0x1p-117 to +/-
24392         0x1p-117.
24393
24394         [BZ #14869]
24395         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
24396         up arguments below 2**-450, not just those below 2**-500.
24397         * math/libm-test.inc (hypot_test): Add another test.
24398
24399         [BZ #14868]
24400         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24401         Return a+b for ratio over 2**120, not 2**60.
24402         * math/libm-test.inc (hypot_test): Add another test.
24403
24404         * math/libm-test.inc (clog_test): Use
24405         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
24406         (clog10_test): Likewise.
24407
24408         [BZ #6778]
24409         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
24410
24411 2012-11-22  Andreas Schwab  <schwab@suse.de>
24412
24413         * sysdeps/i386/fpu/libm-test-ulps: Update.
24414
24415 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
24416
24417         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
24418         printf output with newline.
24419
24420 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
24421
24422         [BZ #14865]
24423         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
24424         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
24425         -z nodlopen, -z initfirst and -z execstack support.
24426         * configure: Regenerated.
24427
24428         * elf/elf.h (DF_1_NODIRECT): New macro.
24429         (DF_1_IGNMULDEF): Likewise.
24430         (DF_1_NOKSYMS): Likewise.
24431         (DF_1_NOHDR): Likewise.
24432         (DF_1_EDITED): Likewise.
24433         (DF_1_NORELOC): Likewise.
24434         (DF_1_SYMINTPOSE): Likewise.
24435         (DF_1_GLOBAUDIT): Likewise.
24436         (DF_1_SINGLETON): Likewise.
24437         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
24438         DT_1_SUPPORTED_MASK bits.
24439         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
24440
24441 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
24442
24443         * sysdeps/unix/make-syscalls.sh: Document prefixes.
24444
24445 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
24446
24447         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
24448         macro.
24449
24450         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
24451         (sendmmsg): Move declarations...
24452         * socket/sys/socket.h: ... here.
24453         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
24454         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
24455         include it from...
24456         * socket/recvmmsg.c: ... this new file.
24457         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
24458         (sendmmsg): Rename to __sendmmsg, create weak alias and make
24459         definition of __sendmmsg hidden.
24460         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
24461         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
24462         Move ENOSYS stub into and include it from...
24463         * socket/sendmmsg.c: ... this new file.
24464         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
24465         (sysdep_routines): Move recvmmsg and sendmmsg...
24466         * socket/Makefile (routines): ... here.
24467         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
24468         (GLIBC_PRIVATE): Add __sendmmsg.
24469         * include/sys/socket.h (__sendmmsg): Add declarations.
24470         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
24471         sendmmsg.
24472
24473 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
24474
24475         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
24476         variable I1 with __attribute__ ((unused)).
24477         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
24478
24479 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24480
24481         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
24482         DUMMY variables with __attribute__ ((unused)).
24483
24484         * bits/byteswap.h: Include <bits/types.h>.
24485         (__bswap_64): Use __uint64_t instead of unsigned long long int.
24486
24487 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24488
24489         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
24490         string_t.  Do not manually set errno.
24491         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
24492         length with __strnlen.  Make sure to both set errno and return it on
24493         failure.
24494
24495 2012-11-19  David S. Miller  <davem@davemloft.net>
24496
24497         With help from Joseph Myers.
24498         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
24499         very large arguments properly.
24500         * math/libm-test.inc (atan_test): New tests.
24501         (atan2_test): New tests.
24502         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24503         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24504
24505 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24506
24507         [BZ #14856]
24508         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
24509         Define to 3.
24510
24511         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
24512         [POSIX] (EADDRNOTAVAIL): Likewise.
24513         [POSIX] (EAFNOSUPPORT): Likewise.
24514         [POSIX] (EALREADY): Likewise.
24515         [POSIX] (ECONNABORTED): Likewise.
24516         [POSIX] (ECONNREFUSED): Likewise.
24517         [POSIX] (ECONNRESET): Likewise.
24518         [POSIX] (EDESTADDRREQ): Likewise.
24519         [POSIX] (EDQUOT): Likewise.
24520         [POSIX] (EHOSTUNREACH): Likewise.
24521         [POSIX] (EIDRM): Likewise.
24522         [POSIX] (EISCONN): Likewise.
24523         [POSIX] (ELOOP): Likewise.
24524         [POSIX] (EMULTIHOP): Likewise.
24525         [POSIX] (ENETDOWN): Likewise.
24526         [POSIX] (ENETUNREACH): Likewise.
24527         [POSIX] (ENOBUFS): Likewise.
24528         [POSIX] (ENODATA): Likewise.
24529         [POSIX] (ENOLINK): Likewise.
24530         [POSIX] (ENOMSG): Likewise.
24531         [POSIX] (ENOPROTOOPT): Likewise.
24532         [POSIX] (ENOSR): Likewise.
24533         [POSIX] (ENOSTR): Likewise.
24534         [POSIX] (ENOTCONN): Likewise.
24535         [POSIX] (ENOTSOCK): Likewise.
24536         [POSIX] (EOPNOTSUPP): Likewise.
24537         [POSIX] (EOVERFLOW): Likewise.
24538         [POSIX] (EPROTO): Likewise.
24539         [POSIX] (EPROTONOSUPPORT): Likewise.
24540         [POSIX] (EPROTOTYPE): Likewise.
24541         [POSIX] (ESTALE): Likewise.
24542         [POSIX] (ETIME): Likewise.
24543         [POSIX] (ETXTBSY): Likewise.
24544         [POSIX] (EWOULDBLOCK): Likewise.
24545         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
24546         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
24547         [POSIX] (SEEK_CUR): Likewise.
24548         [POSIX] (SEEK_END): Likewise.
24549         [POSIX || UNIX98] (mode_t): Do not require.
24550         [POSIX] (off_t): Likewise.
24551         [POSIX] (pid_t): Likewise.
24552         [POSIX] (sys/stat.h): Do not allow header.
24553         [POSIX] (unistd.h): Likewise.
24554         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
24555         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
24556         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
24557         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
24558         require.
24559         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
24560         sigevent): Specify elements.
24561         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
24562         entry.
24563         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
24564         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
24565
24566         * conform/data/cpio.h-data [POSIX]: Disable whole file.
24567         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
24568         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
24569         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
24570         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
24571         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
24572         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
24573         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
24574         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
24575         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
24576         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
24577         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
24578         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
24579         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
24580         Likewise.
24581         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
24582         Likewise.
24583         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
24584         Likewise.
24585         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
24586         Likewise.
24587         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
24588         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
24589         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
24590         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
24591         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
24592         Specify lower bound on value.
24593         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
24594         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
24595         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
24596         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
24597         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
24598         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
24599         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
24600         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
24601         value.
24602         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
24603         as optional.
24604         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
24605         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
24606         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
24607         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
24608         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
24609         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
24610         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
24611         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
24612         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
24613         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
24614         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
24615         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
24616         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
24617         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
24618         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
24619         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
24620         entry.
24621         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
24622         optional.
24623         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
24624         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
24625         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
24626         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
24627         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
24628         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
24629         Likewise.
24630         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
24631         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
24632         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
24633         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
24634         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
24635         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
24636         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
24637         as optional.
24638         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
24639         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
24640         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
24641         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
24642         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
24643         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
24644         specify as optional.
24645         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
24646         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
24647         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
24648         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
24649         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
24650         [XPG3] (NL_LANGMAX): Likewise.
24651         [POSIX || XPG3] (NL_MSGMAX): Likewise.
24652         [POSIX || XPG3] (NL_NMAX): Likewise.
24653         [POSIX || XPG3] (NL_SETMAX): Likewise.
24654         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
24655         [XPG3] (NZERO): Likewise.
24656         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
24657         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
24658         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
24659         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
24660         (REG_ERANGE): Expect.
24661         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
24662         optional-constant.
24663         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
24664         Use (void) in prototype.
24665         [POSIX] (*_t): Allow.
24666         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
24667         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
24668         (WRDE_BADVAL): Expect.
24669
24670         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
24671         expect.
24672         [XPG3 || XPG4] (O_RSYNC): Likewise.
24673         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
24674         Likewise.
24675         [XPG3 || XPG4] (pthread_sigmask): Likewise.
24676         [XPG3 || XPG4] (sigqueue): Likewise.
24677         [XPG3 || XPG4] (sigtimedwait): Likewise.
24678         [XPG3 || XPG4] (sigwaitinfo): Likewise.
24679         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
24680         [XPG3 || XPG4] (vsnprintf): Likewise.
24681         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
24682         Likewise.
24683         [XPG3 || XPG4] (blksize_t): Likewise.
24684         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
24685         Likewise.
24686         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
24687         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
24688         [XPG3 || XPG4] (struct itimerspec): Likewise.
24689         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
24690         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
24691         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
24692         [XPG3 || XPG4] (clockid_t): Likewise.
24693         [XPG3 || XPG4] (timer_t): Likewise.
24694         [XPG3 || XPG4] (clock_getres): Likewise.
24695         [XPG3 || XPG4] (clock_gettime): Likewise.
24696         [XPG3 || XPG4] (clock_settime): Likewise.
24697         [XPG3 || XPG4] (nanosleep): Likewise.
24698         [XPG3 || XPG4] (timer_create): Likewise.
24699         [XPG3 || XPG4] (timer_delete): Likewise.
24700         [XPG3 || XPG4] (timer_gettime): Likewise.
24701         [XPG3 || XPG4] (timer_getoverrun): Likewise.
24702         [XPG3 || XPG4] (timer_settime): Likewise.
24703         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
24704         [XPG3 || XPG4] (getlogin_r): Likewise.
24705         [XPG3 || XPG4] (pread): Likewise.
24706         [XPG3 || XPG4] (pthread_atfork): Likewise.
24707         [XPG3 || XPG4] (pwrite): Likewise.
24708
24709         [BZ #14835]
24710         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
24711         <bits/siginfo.h>.
24712
24713 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24714
24715         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
24716         finalizing MALLSTREAM.
24717
24718         * sysdeps/mach/hurd/syncfs.c: New file.
24719
24720 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24721
24722         [BZ #14719]
24723         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
24724         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
24725         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
24726         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
24727         (_nss_dns_gethostbyname4_r): Likewise.
24728         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
24729         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
24730
24731 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
24732
24733         [BZ #13763]
24734         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
24735
24736 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
24737
24738         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
24739         * elf/cache.c (print_entry): Print ",AArch64" for
24740         FLAG_AARCH64_LIB64
24741
24742         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
24743         * elf/cache.c (print_entry): Print ",hard-float" for
24744         FLAG_ARM_LIBHF.
24745
24746 2012-11-18  David S. Miller  <davem@davemloft.net>
24747
24748         With help from Joseph Myers.
24749         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
24750         cutoff to 2**-13.
24751         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
24752         cutoff to 2**-25.
24753         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
24754         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
24755         small.
24756         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
24757         * math/libm-test.inc (y0_test): New tests.
24758         (y1_test): New tests.
24759         * sysdeps/i386/fpu/libm-test-ulps: Update.
24760         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24762
24763 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
24764
24765         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
24766         64-bit targets.
24767         * configure: Regenerated.
24768
24769 2012-11-17  David S. Miller  <davem@davemloft.net>
24770
24771         [BZ #14811]
24772         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
24773         nonzero exponents with absolute value below 0x1p-128 to +/-
24774         0x1p-128.
24775
24776 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
24777
24778         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
24779
24780         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
24781
24782         * posix/getconf-speclist.c: New file.
24783         * posix/posix-envs.def: Likewise.
24784         * posix/confstr.c (START_ENV_GROUP): New macro.
24785         (END_ENV_GROUP): Likewise.
24786         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24787         (KNOWN_PRESENT_ENV_STRING): Likewise.
24788         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24789         (UNKNOWN_ENVIRONMENT): Likewise.
24790         (confstr): Include posix-envs.def instead of handling
24791         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
24792         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
24793         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
24794         (END_ENV_GROUP): Likewise.
24795         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24796         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24797         (UNKNOWN_ENVIRONMENT): Likewise.
24798         (__sysconf): Include posix-envs.def instead of handling associated
24799         cases directly here.
24800         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
24801         preprocessing getconf-speclist.c rather than running getconf or
24802         generating empty file.
24803
24804 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
24805
24806         * scripts/check-local-headers.sh: Ignore 'mach' headers.
24807
24808 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
24809
24810         [BZ #14672]
24811         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
24812
24813 2012-11-16  David S. Miller  <davem@davemloft.net>
24814
24815         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
24816         smaller than LDBL_EPSILON/2.0L, just return xm1.
24817
24818 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
24819
24820         * elf/tst-array1.c (init): Set constructor priority to 1000.
24821         (fini): Set destructor priority to 1000.
24822         * elf/tst-array2dep.c: Likewise.
24823
24824 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24825
24826         [BZ #11741]
24827         * libio/fileops.c (_IO_new_file_write): Correctly return error.
24828         (_IO_new_file_xsputn): Also return EOF if none of the input
24829         data was written when overflow failed.
24830         * libio/iopadn.c (_IO_padn): Likewise.
24831         * libio/iowpadn.c (_IO_wpadn): Likewise.
24832         * stdio-common/tst-put-error.c: Add copyright notice.
24833         (do_test): Add case for printing padded string.
24834         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
24835         _IO_padn returned error.
24836         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
24837         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
24838         return EOF.
24839
24840 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24841
24842         * libio/libioP.h: Add comment note that the references to C++
24843         bits are now obsolete.
24844
24845 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24846
24847         * math/libm-test.inc (check_complex): Use asprintf.
24848
24849 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
24850
24851         * debug/pcprofiledump.c (print_version): Update copyright year.
24852         * malloc/memusagestat.c (print_version): Likewise.
24853
24854 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
24855
24856         [BZ #14831]
24857         * elf/Makefile (tests): Add tst-audit8.
24858         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
24859         ($(objpfx)tst-audit8.out): New target.
24860         (tst-audit8-ENV): New variable.
24861         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
24862         audit if l_reloc_result is NULL.
24863         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
24864         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
24865         * elf/tst-audit8.c: New file.
24866
24867 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24868
24869         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
24870         * misc/Makefile (CFLAGS-select.c): Define.
24871         * posix/Makefile (CFLAGS-pause.c): Define.
24872
24873 2012-11-13  David S. Miller  <davem@davemloft.net>
24874
24875         * crypt/Makefile: Move test targets after toplevel Rules
24876         inclusion.  Grab any necessary sysdep routines when linking.
24877         * crypt/md5.c (md5_process_block): Remove define, we will always
24878         name it __md5_process_block.
24879         (md5_finish_ctx): Update md5_process_block call.
24880         (md5_stream): Likewise.
24881         (md5_process_bytes): Likewise.
24882         (md5_process_block): Rename to __md5_process_block and move to ...
24883         * crypt/md5-block.c: ... here.
24884         * crypt/sha256.c (sha256_process_block): Move to ...
24885         * crypt/sha256-block.c: ... here.
24886         * crypt/sha512.c (sha512_process_block): Move to ...
24887         * crypt/sha512-block.c: ... here.
24888         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
24889         path.
24890         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
24891         * sysdeps/sparc/sparc64/multiarch/Makefile
24892         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
24893         crypt subdir.
24894         (localedef-aux): Add md5 crypto assembler when in locale subdir.
24895         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
24896         multiarch changes.
24897         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
24898         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
24899         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
24900         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
24901         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
24902         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
24903         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
24904         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
24905         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
24906         file.
24907         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
24908         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
24909         file.
24910         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
24911
24912 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
24913
24914         * timezone/tzselect.ksh: Update from tzcode git revision
24915         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
24916         * timezone/zdump.c: Likewise.
24917         * timezone/zic.c: Likewise.
24918         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
24919         in TZVERSION setting, not $(PKGVERSION).
24920         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
24921         REPORT_BUGS_TO settings.
24922
24923         [BZ #14838]
24924         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
24925         macro.
24926
24927 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24928
24929         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
24930         detection to immediately after _FP_ROUND().
24931         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
24932         bits are 0.
24933
24934 2012-11-11  David S. Miller  <davem@davemloft.net>
24935
24936         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
24937         inttypes.h
24938         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
24939         __close rather than their public counterparts.
24940
24941 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
24942
24943         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
24944         file.
24945         [UNIX98] (sem_timedwait): Do not expect.
24946         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
24947         [XPG4 || UNIX98] (sockatmark): Do not expect.
24948         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
24949         (clock_getcpuclockid): Do not expect.
24950         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
24951         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
24952         Do not expect.
24953         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
24954         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
24955         [UNIX98] (vwscanf): Likewise.
24956         [UNIX98] (vswscanf): Likewise.
24957
24958 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
24959
24960         * timezone/version.h: Remove file.
24961         * timezone/README: Do not refer to version.h.
24962         * timezone/Makefile ($(objpfx)zic.o): New dependency on
24963         $(objpfx)version.h.
24964         ($(objpfx)zdump.o): Likewise.
24965         ($(objpfx)version.h): New target.
24966
24967         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
24968         2012i.
24969         * timezone/README: Don't mention modification to tzselect.ksh.
24970         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
24971         work on unmodified tzselect.ksh.  Substitute version numbers in
24972         tzselect.ksh.
24973
24974         * Makefile (format-me): Remove.
24975         (INSTALL): Adjust indentation.  Use commands directly instead of
24976         using $(format-me).
24977
24978         * aclocal.m4 (ACX_PKGVERSION): New macro.
24979         (ACX_BUGURL): Likewise.
24980         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
24981         (PKGVERSION): New AC_DEFINE_UNQUOTED.
24982         (REPORT_BUGS_TO): Likewise.
24983         * configure: Regenerated.
24984         * config.h.in (PKGVERSION): New macro.
24985         (REPORT_BUGS_TO): Likewise.
24986         * config.make.in (PKGVERSION): New variable.
24987         (PKGVERSION_TEXI): Likewise.
24988         (REPORT_BUGS_TO): Likewise.
24989         (REPORT_BUGS_TEXI): Likewise.
24990         * Makefile (format-me): Use -I$(common-objpfx)manual.
24991         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
24992         ($(common-objpfx)manual/%): New target.
24993         (manual/%): Remove target.
24994         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
24995         (print_version): Use PKGVERSION.
24996         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
24997         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
24998         and REPORT_BUGS_TO.
24999         ($(objpfx)xtrace): Likewise.
25000         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
25001         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
25002         (print_version): Use PKGVERSION.
25003         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
25004         (do_version): Use PKGVERSION.
25005         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
25006         REPORT_BUGS_TO.
25007         (common-ldd-rewrite): Likewise.
25008         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
25009         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
25010         (print_version): Use PKGVERSION.
25011         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
25012         * elf/pldd.c (argp_program_bug_address): Remove variable.
25013         (more_help): New function.
25014         (argp): Use more_help.
25015         (print_version): Use PKGVERSION.
25016         * elf/sln.c (main): Use PKGVERSION.
25017         (usage): Use REPORT_BUGS_TO.
25018         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
25019         (top level): Use PKGVERSION.
25020         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
25021         (print_version): Use PKGVERSION.
25022         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
25023         (print_version): Use PKGVERSION.
25024         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
25025         (print_version): Use PKGVERSION.
25026         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
25027         (print_version): Use PKGVERSION.
25028         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
25029         (print_version): Use PKGVERSION.
25030         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
25031         (print_version): Use PKGVERSION.
25032         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
25033         and BUGURL.
25034         ($(objpfx)memusage): Likewise.
25035         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
25036         (do_version): Use PKGVERSION.
25037         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
25038         (print_version): Use PKGVERSION.
25039         * malloc/mtrace.pl ($PACKAGE): Remove variable.
25040         ($PKGVERSION): New variable.
25041         ($REPORT_BUGS_TO): Likewise.
25042         (usage): Use $REPORT_BUGS_TO.
25043         (top level): Use $PKGVERSION.
25044         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
25045         ($(objpfx)pkgvers.texi): New rule.
25046         ($(objpfx)stamp-pkgvers): Likewise.
25047         * manual/install.texi: Include pkgvers.texi.
25048         (--with-pkgversion): Document new configure option.
25049         (--with-bugurl): Likewise.
25050         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
25051         than necessarily for this particular distribution.  Use
25052         REPORT_BUGS_TO for where to report bugs.
25053         * INSTALL: Regenerated.
25054         * manual/libc.texinfo: Include pkgvers.texi.
25055         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
25056         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
25057         (print_version): Use PKGVERSION.
25058         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
25059         (print_version): Use PKGVERSION.
25060         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
25061         (print_version): Use PKGVERSION.
25062         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
25063         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
25064         macro.
25065         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
25066         (print_version): Use PKGVERSION.
25067         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
25068         (print_version): Use PKGVERSION.
25069         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
25070         and PKGVERSION.
25071
25072         * timezone/checktab.awk: Update from tzcode 2012i.
25073         * timezone/ialloc.c: Likewise.
25074         * timezone/private.h: Likewise.
25075         * timezone/scheck.c: Likewise.
25076         * timezone/tzfile.h: Likewise.
25077         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
25078         (TZVERSION): Hardcode tzcode version number.
25079         * timezone/zdump.c: Update from tzcode 2012i.
25080         * timezone/zic.c: Likewise.
25081         * timezone/version.h: New file.
25082         * timezone/README: Describe version.h.  Update upstream location.
25083
25084         [BZ #14824]
25085         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
25086         (mktemp): Enable declaration.
25087         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
25088         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
25089         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
25090         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
25091         Likewise.
25092         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
25093         Likewise.
25094         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
25095         Likewise.
25096         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
25097         Likewise.
25098         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
25099         Likewise.
25100         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
25101         Likewise.
25102
25103         [BZ #14821]
25104         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
25105         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
25106         for copies of such integer values.
25107         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
25108         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
25109
25110 2012-11-09  Andreas Jaeger  <aj@suse.de>
25111
25112         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
25113         definitions and declarations that are provided by
25114         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
25115
25116 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25117
25118         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
25119         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
25120         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
25121         definition.
25122
25123 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25124
25125         * elf/elf.h: Update comment before AArch64 relocations.
25126
25127 2012-11-07  David S. Miller  <davem@davemloft.net>
25128
25129         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
25130         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
25131         (__start_context): Declare.
25132         (__makecontext_ret): Delete.
25133         (__makecontext): Hook up __start_context instead of
25134         __makecontext_ret.
25135         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
25136         (sysdep_routines): Add __start_context when in stdlib.
25137
25138 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25139
25140         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
25141         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
25142         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
25143         hardcoded "nm".
25144         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
25145         (READELF): New variable.  Use it instead of hardcoded "readelf".
25146
25147 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25148
25149         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
25150         * sysdeps/x86/Makefile: Here.
25151         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
25152         * sysdeps/x86/tst-xmmymm.sh: This.
25153
25154 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25155
25156         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
25157         expectations.
25158         [UNIX98] (pthread_barrier_t): Do not expect.
25159         [UNIX98] (pthread_barrierattr_t): Likewise.
25160         [UNIX98] (pthread_spinlock_t): Likewise.
25161         [UNIX98] (pthread_barrier_destroy): Likewise.
25162         [UNIX98] (pthread_barrier_init): Likewise.
25163         [UNIX98] (pthread_barrier_wait): Likewise.
25164         [UNIX98] (pthread_barrierattr_destroy): Likewise.
25165         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
25166         [UNIX98] (pthread_barrierattr_init): Likewise.
25167         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
25168         [UNIX98] (pthread_getcpuclockid): Likewise.
25169         [UNIX98] (pthread_mutex_timedlock): Likewise.
25170         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
25171         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
25172         [UNIX98] (pthread_sigmask): Likewise.
25173         [UNIX98] (pthread_spin_destroy): Likewise.
25174         [UNIX98] (pthread_spin_init): Likewise.
25175         [UNIX98] (pthread_spin_lock): Likewise.
25176         [UNIX98] (pthread_spin_trylock): Likewise.
25177         [UNIX98] (pthread_spin_unlock): Likewise.
25178         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
25179         Do not expect.
25180         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
25181         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
25182         [XPG3 || XPG4] (pthread_cond_t): Likewise.
25183         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
25184         [XPG3 || XPG4] (pthread_key_t): Likewise.
25185         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
25186         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
25187         [XPG3 || XPG4] (pthread_once_t): Likewise.
25188         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
25189         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
25190         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
25191         [XPG3 || XPG4] (pthread_t): Likewise.
25192
25193         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
25194         not expect.
25195         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
25196
25197         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
25198         Change function return type to int.
25199
25200         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
25201         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
25202         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
25203         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
25204         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
25205         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
25206         [!POSIX] (posix_madvise): Likewise.
25207         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
25208         && !UNIX98].
25209         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
25210         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
25211         (mode_t): Likewise.
25212         (posix_mem_offset): Likewise.
25213         (posix_typed_mem_get_info): Likewise.
25214         (posix_typed_mem_open): Likewise.
25215
25216         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
25217         Change condition to [XOPEN2K8].
25218
25219         * conform/conformtest.pl: Preprocess allow-header data with -x c
25220         instead of from stdin.
25221         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
25222         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
25223         [C99-based standards] (cerfc): Likewise.
25224         [C99-based standards] (cexp2): Likewise.
25225         [C99-based standards] (cexpm1): Likewise.
25226         [C99-based standards] (clog10): Likewise.
25227         [C99-based standards] (clog1p): Likewise.
25228         [C99-based standards] (clog2): Likewise.
25229         [C99-based standards] (clgamma): Likewise.
25230         [C99-based standards] (ctgamma): Likewise.
25231         [C99-based standards] (cerff): Likewise.
25232         [C99-based standards] (cerfcf): Likewise.
25233         [C99-based standards] (cexp2f): Likewise.
25234         [C99-based standards] (cexpm1f): Likewise.
25235         [C99-based standards] (clog10f): Likewise.
25236         [C99-based standards] (clog1pf): Likewise.
25237         [C99-based standards] (clog2f): Likewise.
25238         [C99-based standards] (clgammaf): Likewise.
25239         [C99-based standards] (ctgammaf): Likewise.
25240         [C99-based standards] (cerfl): Likewise.
25241         [C99-based standards] (cerfcl): Likewise.
25242         [C99-based standards] (cexp2l): Likewise.
25243         [C99-based standards] (cexpm1l): Likewise.
25244         [C99-based standards] (clog10l): Likewise.
25245         [C99-based standards] (clog1pl): Likewise.
25246         [C99-based standards] (clog2l): Likewise.
25247         [C99-based standards] (clgammal): Likewise.
25248         [C99-based standards] (ctgammal): Likewise.
25249         * conform/data/inttypes.h-data [C99-based standards]: Include
25250         stdint.h-data.  Remove all expectations for stdint.h contents.
25251         [C99-based standards] (PRI*): Do not allow.
25252         [C99-based standards] (SCN*): Likewise.
25253         [C99-based standards] (*_t): Likewise.
25254         [C99-based-standards] (PRId8): Expect macro.
25255         [C99-based-standards] (PRIi8): Likewise.
25256         [C99-based-standards] (PRIo8): Likewise.
25257         [C99-based-standards] (PRIu8): Likewise.
25258         [C99-based-standards] (PRIx8): Likewise.
25259         [C99-based-standards] (PRIX8): Likewise.
25260         [C99-based-standards] (SCNd8): Likewise.
25261         [C99-based-standards] (SCNi8): Likewise.
25262         [C99-based-standards] (SCNo8): Likewise.
25263         [C99-based-standards] (SCNu8): Likewise.
25264         [C99-based-standards] (SCNx8): Likewise.
25265         [C99-based-standards] (PRIdLEAST8): Likewise.
25266         [C99-based-standards] (PRIiLEAST8): Likewise.
25267         [C99-based-standards] (PRIoLEAST8): Likewise.
25268         [C99-based-standards] (PRIuLEAST8): Likewise.
25269         [C99-based-standards] (PRIxLEAST8): Likewise.
25270         [C99-based-standards] (PRIXLEAST8): Likewise.
25271         [C99-based-standards] (SCNdLEAST8): Likewise.
25272         [C99-based-standards] (SCNiLEAST8): Likewise.
25273         [C99-based-standards] (SCNoLEAST8): Likewise.
25274         [C99-based-standards] (SCNuLEAST8): Likewise.
25275         [C99-based-standards] (SCNxLEAST8): Likewise.
25276         [C99-based-standards] (PRIdFAST8): Likewise.
25277         [C99-based-standards] (PRIiFAST8): Likewise.
25278         [C99-based-standards] (PRIoFAST8): Likewise.
25279         [C99-based-standards] (PRIuFAST8): Likewise.
25280         [C99-based-standards] (PRIxFAST8): Likewise.
25281         [C99-based-standards] (PRIXFAST8): Likewise.
25282         [C99-based-standards] (SCNdFAST8): Likewise.
25283         [C99-based-standards] (SCNiFAST8): Likewise.
25284         [C99-based-standards] (SCNoFAST8): Likewise.
25285         [C99-based-standards] (SCNuFAST8): Likewise.
25286         [C99-based-standards] (SCNxFAST8): Likewise.
25287         [C99-based-standards] (PRId16): Likewise.
25288         [C99-based-standards] (PRIi16): Likewise.
25289         [C99-based-standards] (PRIo16): Likewise.
25290         [C99-based-standards] (PRIu16): Likewise.
25291         [C99-based-standards] (PRIx16): Likewise.
25292         [C99-based-standards] (PRIX16): Likewise.
25293         [C99-based-standards] (SCNd16): Likewise.
25294         [C99-based-standards] (SCNi16): Likewise.
25295         [C99-based-standards] (SCNo16): Likewise.
25296         [C99-based-standards] (SCNu16): Likewise.
25297         [C99-based-standards] (SCNx16): Likewise.
25298         [C99-based-standards] (PRIdLEAST16): Likewise.
25299         [C99-based-standards] (PRIiLEAST16): Likewise.
25300         [C99-based-standards] (PRIoLEAST16): Likewise.
25301         [C99-based-standards] (PRIuLEAST16): Likewise.
25302         [C99-based-standards] (PRIxLEAST16): Likewise.
25303         [C99-based-standards] (PRIXLEAST16): Likewise.
25304         [C99-based-standards] (SCNdLEAST16): Likewise.
25305         [C99-based-standards] (SCNiLEAST16): Likewise.
25306         [C99-based-standards] (SCNoLEAST16): Likewise.
25307         [C99-based-standards] (SCNuLEAST16): Likewise.
25308         [C99-based-standards] (SCNxLEAST16): Likewise.
25309         [C99-based-standards] (PRIdFAST16): Likewise.
25310         [C99-based-standards] (PRIiFAST16): Likewise.
25311         [C99-based-standards] (PRIoFAST16): Likewise.
25312         [C99-based-standards] (PRIuFAST16): Likewise.
25313         [C99-based-standards] (PRIxFAST16): Likewise.
25314         [C99-based-standards] (PRIXFAST16): Likewise.
25315         [C99-based-standards] (SCNdFAST16): Likewise.
25316         [C99-based-standards] (SCNiFAST16): Likewise.
25317         [C99-based-standards] (SCNoFAST16): Likewise.
25318         [C99-based-standards] (SCNuFAST16): Likewise.
25319         [C99-based-standards] (SCNxFAST16): Likewise.
25320         [C99-based-standards] (PRId32): Likewise.
25321         [C99-based-standards] (PRIi32): Likewise.
25322         [C99-based-standards] (PRIo32): Likewise.
25323         [C99-based-standards] (PRIu32): Likewise.
25324         [C99-based-standards] (PRIx32): Likewise.
25325         [C99-based-standards] (PRIX32): Likewise.
25326         [C99-based-standards] (SCNd32): Likewise.
25327         [C99-based-standards] (SCNi32): Likewise.
25328         [C99-based-standards] (SCNo32): Likewise.
25329         [C99-based-standards] (SCNu32): Likewise.
25330         [C99-based-standards] (SCNx32): Likewise.
25331         [C99-based-standards] (PRIdLEAST32): Likewise.
25332         [C99-based-standards] (PRIiLEAST32): Likewise.
25333         [C99-based-standards] (PRIoLEAST32): Likewise.
25334         [C99-based-standards] (PRIuLEAST32): Likewise.
25335         [C99-based-standards] (PRIxLEAST32): Likewise.
25336         [C99-based-standards] (PRIXLEAST32): Likewise.
25337         [C99-based-standards] (SCNdLEAST32): Likewise.
25338         [C99-based-standards] (SCNiLEAST32): Likewise.
25339         [C99-based-standards] (SCNoLEAST32): Likewise.
25340         [C99-based-standards] (SCNuLEAST32): Likewise.
25341         [C99-based-standards] (SCNxLEAST32): Likewise.
25342         [C99-based-standards] (PRIdFAST32): Likewise.
25343         [C99-based-standards] (PRIiFAST32): Likewise.
25344         [C99-based-standards] (PRIoFAST32): Likewise.
25345         [C99-based-standards] (PRIuFAST32): Likewise.
25346         [C99-based-standards] (PRIxFAST32): Likewise.
25347         [C99-based-standards] (PRIXFAST32): Likewise.
25348         [C99-based-standards] (SCNdFAST32): Likewise.
25349         [C99-based-standards] (SCNiFAST32): Likewise.
25350         [C99-based-standards] (SCNoFAST32): Likewise.
25351         [C99-based-standards] (SCNuFAST32): Likewise.
25352         [C99-based-standards] (SCNxFAST32): Likewise.
25353         [C99-based-standards] (PRId64): Likewise.
25354         [C99-based-standards] (PRIi64): Likewise.
25355         [C99-based-standards] (PRIo64): Likewise.
25356         [C99-based-standards] (PRIu64): Likewise.
25357         [C99-based-standards] (PRIx64): Likewise.
25358         [C99-based-standards] (PRIX64): Likewise.
25359         [C99-based-standards] (SCNd64): Likewise.
25360         [C99-based-standards] (SCNi64): Likewise.
25361         [C99-based-standards] (SCNo64): Likewise.
25362         [C99-based-standards] (SCNu64): Likewise.
25363         [C99-based-standards] (SCNx64): Likewise.
25364         [C99-based-standards] (PRIdLEAST64): Likewise.
25365         [C99-based-standards] (PRIiLEAST64): Likewise.
25366         [C99-based-standards] (PRIoLEAST64): Likewise.
25367         [C99-based-standards] (PRIuLEAST64): Likewise.
25368         [C99-based-standards] (PRIxLEAST64): Likewise.
25369         [C99-based-standards] (PRIXLEAST64): Likewise.
25370         [C99-based-standards] (SCNdLEAST64): Likewise.
25371         [C99-based-standards] (SCNiLEAST64): Likewise.
25372         [C99-based-standards] (SCNoLEAST64): Likewise.
25373         [C99-based-standards] (SCNuLEAST64): Likewise.
25374         [C99-based-standards] (SCNxLEAST64): Likewise.
25375         [C99-based-standards] (PRIdFAST64): Likewise.
25376         [C99-based-standards] (PRIiFAST64): Likewise.
25377         [C99-based-standards] (PRIoFAST64): Likewise.
25378         [C99-based-standards] (PRIuFAST64): Likewise.
25379         [C99-based-standards] (PRIxFAST64): Likewise.
25380         [C99-based-standards] (PRIXFAST64): Likewise.
25381         [C99-based-standards] (SCNdFAST64): Likewise.
25382         [C99-based-standards] (SCNiFAST64): Likewise.
25383         [C99-based-standards] (SCNoFAST64): Likewise.
25384         [C99-based-standards] (SCNuFAST64): Likewise.
25385         [C99-based-standards] (SCNxFAST64): Likewise.
25386         [C99-based-standards] (PRIdMAX): Likewise.
25387         [C99-based-standards] (PRIiMAX): Likewise.
25388         [C99-based-standards] (PRIoMAX): Likewise.
25389         [C99-based-standards] (PRIuMAX): Likewise.
25390         [C99-based-standards] (PRIxMAX): Likewise.
25391         [C99-based-standards] (PRIXMAX): Likewise.
25392         [C99-based-standards] (SCNdMAX): Likewise.
25393         [C99-based-standards] (SCNiMAX): Likewise.
25394         [C99-based-standards] (SCNoMAX): Likewise.
25395         [C99-based-standards] (SCNuMAX): Likewise.
25396         [C99-based-standards] (SCNxMAX): Likewise.
25397         [C99-based-standards] (PRIdPTR): Likewise.
25398         [C99-based-standards] (PRIiPTR): Likewise.
25399         [C99-based-standards] (PRIoPTR): Likewise.
25400         [C99-based-standards] (PRIuPTR): Likewise.
25401         [C99-based-standards] (PRIxPTR): Likewise.
25402         [C99-based-standards] (PRIXPTR): Likewise.
25403         [C99-based-standards] (SCNdPTR): Likewise.
25404         [C99-based-standards] (SCNiPTR): Likewise.
25405         [C99-based-standards] (SCNoPTR): Likewise.
25406         [C99-based-standards] (SCNuPTR): Likewise.
25407         [C99-based-standards] (SCNxPTR): Likewise.
25408         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
25409         allow.
25410         * conform/data/stdint.h-data: Update comments to clarify
25411         requirements.
25412         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
25413         type.
25414         [C99-based standards] (INT8_MAX): Likewise.
25415         [C99-based standards] (INT16_MIN): Likewise.
25416         [C99-based standards] (INT16_MAX): Likewise.
25417         [C99-based standards] (INT32_MIN): Likewise.
25418         [C99-based standards] (INT32_MAX): Likewise.
25419         [C99-based standards] (INT64_MIN): Likewise.
25420         [C99-based standards] (INT64_MAX): Likewise.
25421         [C99-based standards] (UINT8_MAX): Likewise.
25422         [C99-based standards] (UINT16_MAX): Likewise.
25423         [C99-based standards] (UINT32_MAX): Likewise.
25424         [C99-based standards] (UINT64_MAX): Likewise.
25425         [C99-based standards] (INT_LEAST8_MIN): Likewise.
25426         [C99-based standards] (INT_LEAST8_MAX): Likewise.
25427         [C99-based standards] (INT_LEAST16_MIN): Likewise.
25428         [C99-based standards] (INT_LEAST16_MAX): Likewise.
25429         [C99-based standards] (INT_LEAST32_MIN): Likewise.
25430         [C99-based standards] (INT_LEAST32_MAX): Likewise.
25431         [C99-based standards] (INT_LEAST64_MIN): Likewise.
25432         [C99-based standards] (INT_LEAST64_MAX): Likewise.
25433         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
25434         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
25435         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
25436         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
25437         [C99-based standards] (INT_FAST8_MIN): Likewise.
25438         [C99-based standards] (INT_FAST8_MAX): Likewise.
25439         [C99-based standards] (INT_FAST16_MIN): Likewise.
25440         [C99-based standards] (INT_FAST16_MAX): Likewise.
25441         [C99-based standards] (INT_FAST32_MIN): Likewise.
25442         [C99-based standards] (INT_FAST32_MAX): Likewise.
25443         [C99-based standards] (INT_FAST64_MIN): Likewise.
25444         [C99-based standards] (INT_FAST64_MAX): Likewise.
25445         [C99-based standards] (UINT_FAST8_MAX): Likewise.
25446         [C99-based standards] (UINT_FAST16_MAX): Likewise.
25447         [C99-based standards] (UINT_FAST32_MAX): Likewise.
25448         [C99-based standards] (UINT_FAST64_MAX): Likewise.
25449         [C99-based standards] (INTPTR_MIN): Likewise.
25450         [C99-based standards] (INTPTR_MAX): Likewise.
25451         [C99-based standards] (UINTPTR_MAX): Likewise.
25452         [C99-based standards] (INTMAX_MIN): Likewise.
25453         [C99-based standards] (INTMAX_MAX): Likewise.
25454         [C99-based standards] (UINTMAX_MAX): Likewise.
25455         [C99-based standards] (PTRDIFF_MIN): Likewise.
25456         [C99-based standards] (PTRDIFF_MAX): Likewise.
25457         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
25458         [C99-based standards] (SIZE_MAX): Likewise.
25459         [C99-based standards] (WCHAR_MAX): Likewise.
25460         [C99-based standards] (WINT_MAX): Likewise.
25461         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
25462         constraint on value.
25463         [C99-based standards] (WCHAR_MIN): Likewise.
25464         [C99-based standards] (WINT_MIN): Likewise.
25465         [C99-based standards] (*_t): Allow.
25466         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
25467         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
25468         Include math.h-data and complex.h-data.  Remove all expectations
25469         of math.h and complex.h contents.
25470         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
25471         at end of line.
25472         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
25473         (struct tm): Expect tag.
25474         [C99-based-standards] (wcstof): Expect function.
25475         [C99-based-standards] (wcstold): Likewise.
25476         [C99-based-standards] (wcstoll): Likewise.
25477         [C99-based-standards] (wcstoull): Likewise.
25478         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
25479         macro-int-constant.  Specify type.
25480         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
25481         constraint on value.
25482         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25483         Specify type.
25484         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
25485         Specify value.
25486         [ISO C standards]: Do not allow headers.
25487         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
25488         wcs[abcdefghijklmnopqrstuvwxyz]*.
25489         [ISO C standards] (*_t): Do not allow.
25490         * conform/data/wctype.h-data [C99-based standards] (iswblank):
25491         Expect function.
25492         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
25493         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25494         Specify type.
25495         [ISO C standards]: Do not allow headers.
25496         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
25497         is[abcdefghijklmnopqrstuvwxyz]*.
25498         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
25499         to[abcdefghijklmnopqrstuvwxyz]*.
25500         [ISO C standards] (*_t): Do not allow.
25501         * conform/data/stdalign.h-data: New file.
25502         * conform/data/stdbool.h-data: Likewise.
25503         * conform/data/stdnoreturn.h-data: Likewise.
25504
25505 2012-11-07  Roland McGrath  <roland@hack.frob.com>
25506
25507         [BZ #14815]
25508         * manual/filesys.texi (Directory Entries): Typo fix.
25509         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
25510
25511 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25512
25513         * elf/elf.h (EM_AARCH64): New macro.
25514         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
25515         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
25516         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
25517         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
25518         (R_AARCH64_TLSDESC): Likewise.
25519         (NT_ARM_TLS): Likewise.
25520         (NT_ARM_HW_BREAK): Likewise.
25521         (NT_ARM_HW_WATCH): Likewise.
25522
25523 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25524
25525         [BZ #14811]
25526         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
25527         (__ieee754_powl): Saturate nonzero exponents with absolute value
25528         below 0x1p-79 to +/- 0x1p-79.
25529         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
25530         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
25531         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
25532         nonzero exponents with absolute value below 0x1p-32 to +/-
25533         0x1p-32.
25534         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
25535         (__ieee754_powl): Saturate nonzero exponents with absolute value
25536         below 0x1p-79 to +/- 0x1p-79.
25537         * math/libm-test.inc (pow_test): Add more tests.
25538
25539 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25540
25541         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
25542         _dl_s390_cap_flags with kernel. Increase string length.
25543         (_dl_s390_platforms): Add z196 and zEC12.
25544
25545 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25546
25547         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
25548         Change XOPEN21K to XOPEN2K.
25549
25550 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25551
25552         * string/memmove.c: Use memcpy when possible.
25553
25554 2012-11-06  Andreas Jaeger  <aj@suse.de>
25555
25556         * po/eo.po: Update from translation team.
25557
25558 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
25559
25560         [BZ #14793]
25561         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
25562         exponent and small x and y exponents, scale x or y up.  Increase
25563         by 2 the exponent used in scaling up.
25564         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25565         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25566         * math/libm-test.inc (fma_test): Add more tests.
25567         (fma_test_towardzero): Likewise.
25568         (fma_test_downward): Likewise.
25569         (fma_test_upward): Likewise.
25570
25571 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
25572
25573         [BZ #14805]
25574         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
25575         fenv_t *.
25576
25577         [BZ #14801]
25578         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
25579         namespace for names of struct fields.
25580         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
25581         fenv_t fields.
25582         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
25583         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
25584
25585 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25586
25587         [BZ #3665]
25588         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
25589
25590 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25591
25592         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
25593         PTR_DEMANGLE.
25594
25595         [BZ #5246]
25596         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
25597         PTR_DEMANGLE.
25598
25599 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
25600
25601         [BZ #14797]
25602         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
25603         definitely overflow as x * y not x * y + z.
25604         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25605         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25606         * math/libm-test.inc (fma_test): Add more tests.
25607         (fma_test_towardzero): Likewise.
25608         (fma_test_downward): Likewise.
25609         (fma_test_upward): Likewise.
25610
25611 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25612
25613         [BZ #157]
25614
25615         * include/stub-tag.h: Remove file.
25616         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
25617         '#include' of it.
25618         * manual/maint.texi (Porting): Don't reference it.
25619         * Makerules ($(objpfx)stubs): Likewise.
25620         * dirent/closedir.c: Don't include <stub-tag.h>.
25621         * dirent/dirfd.c: Likewise.
25622         * dirent/fdopendir.c: Likewise.
25623         * dirent/getdents.c: Likewise.
25624         * dirent/getdents64.c: Likewise.
25625         * dirent/opendir.c: Likewise.
25626         * dirent/readdir.c: Likewise.
25627         * dirent/readdir64.c: Likewise.
25628         * dirent/readdir64_r.c: Likewise.
25629         * dirent/readdir_r.c: Likewise.
25630         * dirent/rewinddir.c: Likewise.
25631         * dirent/seekdir.c: Likewise.
25632         * dirent/telldir.c: Likewise.
25633         * gmon/profil.c: Likewise.
25634         * grp/setgroups.c: Likewise.
25635         * inet/if_index.c: Likewise.
25636         * io/access.c: Likewise.
25637         * io/chdir.c: Likewise.
25638         * io/chmod.c: Likewise.
25639         * io/chown.c: Likewise.
25640         * io/close.c: Likewise.
25641         * io/dup.c: Likewise.
25642         * io/dup2.c: Likewise.
25643         * io/dup3.c: Likewise.
25644         * io/euidaccess.c: Likewise.
25645         * io/faccessat.c: Likewise.
25646         * io/fchdir.c: Likewise.
25647         * io/fchmod.c: Likewise.
25648         * io/fchmodat.c: Likewise.
25649         * io/fchown.c: Likewise.
25650         * io/fchownat.c: Likewise.
25651         * io/fcntl.c: Likewise.
25652         * io/flock.c: Likewise.
25653         * io/fstatfs.c: Likewise.
25654         * io/fstatfs64.c: Likewise.
25655         * io/fstatvfs.c: Likewise.
25656         * io/fstatvfs64.c: Likewise.
25657         * io/futimens.c: Likewise.
25658         * io/fxstat.c: Likewise.
25659         * io/fxstat64.c: Likewise.
25660         * io/fxstatat.c: Likewise.
25661         * io/fxstatat64.c: Likewise.
25662         * io/getcwd.c: Likewise.
25663         * io/isatty.c: Likewise.
25664         * io/lchmod.c: Likewise.
25665         * io/lchown.c: Likewise.
25666         * io/link.c: Likewise.
25667         * io/linkat.c: Likewise.
25668         * io/lseek.c: Likewise.
25669         * io/lseek64.c: Likewise.
25670         * io/lxstat64.c: Likewise.
25671         * io/mkdir.c: Likewise.
25672         * io/mkdirat.c: Likewise.
25673         * io/mkfifo.c: Likewise.
25674         * io/mkfifoat.c: Likewise.
25675         * io/open.c: Likewise.
25676         * io/open64.c: Likewise.
25677         * io/openat.c: Likewise.
25678         * io/openat64.c: Likewise.
25679         * io/pipe.c: Likewise.
25680         * io/pipe2.c: Likewise.
25681         * io/poll.c: Likewise.
25682         * io/posix_fadvise.c: Likewise.
25683         * io/posix_fadvise64.c: Likewise.
25684         * io/posix_fallocate.c: Likewise.
25685         * io/posix_fallocate64.c: Likewise.
25686         * io/read.c: Likewise.
25687         * io/readlink.c: Likewise.
25688         * io/readlinkat.c: Likewise.
25689         * io/rmdir.c: Likewise.
25690         * io/sendfile.c: Likewise.
25691         * io/sendfile64.c: Likewise.
25692         * io/statfs.c: Likewise.
25693         * io/statfs64.c: Likewise.
25694         * io/statvfs.c: Likewise.
25695         * io/statvfs64.c: Likewise.
25696         * io/symlink.c: Likewise.
25697         * io/symlinkat.c: Likewise.
25698         * io/ttyname.c: Likewise.
25699         * io/ttyname_r.c: Likewise.
25700         * io/umask.c: Likewise.
25701         * io/unlink.c: Likewise.
25702         * io/unlinkat.c: Likewise.
25703         * io/utime.c: Likewise.
25704         * io/utimensat.c: Likewise.
25705         * io/write.c: Likewise.
25706         * io/xmknod.c: Likewise.
25707         * io/xmknodat.c: Likewise.
25708         * io/xstat.c: Likewise.
25709         * io/xstat64.c: Likewise.
25710         * login/getpt.c: Likewise.
25711         * login/grantpt.c: Likewise.
25712         * login/unlockpt.c: Likewise.
25713         * math/e_acoshl.c: Likewise.
25714         * math/e_acosl.c: Likewise.
25715         * math/e_asinl.c: Likewise.
25716         * math/e_atan2l.c: Likewise.
25717         * math/e_atanhl.c: Likewise.
25718         * math/e_coshl.c: Likewise.
25719         * math/e_expl.c: Likewise.
25720         * math/e_fmodl.c: Likewise.
25721         * math/e_gammal_r.c: Likewise.
25722         * math/e_hypotl.c: Likewise.
25723         * math/e_j0l.c: Likewise.
25724         * math/e_j1l.c: Likewise.
25725         * math/e_jnl.c: Likewise.
25726         * math/e_lgammal_r.c: Likewise.
25727         * math/e_log10l.c: Likewise.
25728         * math/e_log2l.c: Likewise.
25729         * math/e_logl.c: Likewise.
25730         * math/e_powl.c: Likewise.
25731         * math/e_rem_pio2l.c: Likewise.
25732         * math/e_sinhl.c: Likewise.
25733         * math/e_sqrtl.c: Likewise.
25734         * math/fclrexcpt.c: Likewise.
25735         * math/fedisblxcpt.c: Likewise.
25736         * math/feenablxcpt.c: Likewise.
25737         * math/fegetenv.c: Likewise.
25738         * math/fegetexcept.c: Likewise.
25739         * math/fegetround.c: Likewise.
25740         * math/feholdexcpt.c: Likewise.
25741         * math/fesetenv.c: Likewise.
25742         * math/fesetround.c: Likewise.
25743         * math/feupdateenv.c: Likewise.
25744         * math/fgetexcptflg.c: Likewise.
25745         * math/fraiseexcpt.c: Likewise.
25746         * math/fsetexcptflg.c: Likewise.
25747         * math/ftestexcept.c: Likewise.
25748         * math/k_cosl.c: Likewise.
25749         * math/k_rem_pio2l.c: Likewise.
25750         * math/k_sinl.c: Likewise.
25751         * math/k_tanl.c: Likewise.
25752         * math/s_asinhl.c: Likewise.
25753         * math/s_atanl.c: Likewise.
25754         * math/s_cbrtl.c: Likewise.
25755         * math/s_erfl.c: Likewise.
25756         * math/s_expm1l.c: Likewise.
25757         * math/s_log1pl.c: Likewise.
25758         * math/s_tanhl.c: Likewise.
25759         * misc/acct.c: Likewise.
25760         * misc/brk.c: Likewise.
25761         * misc/chflags.c: Likewise.
25762         * misc/chroot.c: Likewise.
25763         * misc/fchflags.c: Likewise.
25764         * misc/fgetxattr.c: Likewise.
25765         * misc/flistxattr.c: Likewise.
25766         * misc/fremovexattr.c: Likewise.
25767         * misc/fsetxattr.c: Likewise.
25768         * misc/fsync.c: Likewise.
25769         * misc/ftruncate.c: Likewise.
25770         * misc/futimes.c: Likewise.
25771         * misc/futimesat.c: Likewise.
25772         * misc/getdomain.c: Likewise.
25773         * misc/getdtsz.c: Likewise.
25774         * misc/gethostid.c: Likewise.
25775         * misc/gethostname.c: Likewise.
25776         * misc/getloadavg.c: Likewise.
25777         * misc/getpagesize.c: Likewise.
25778         * misc/getsysstats.c: Likewise.
25779         * misc/getxattr.c: Likewise.
25780         * misc/gtty.c: Likewise.
25781         * misc/ioctl.c: Likewise.
25782         * misc/lgetxattr.c: Likewise.
25783         * misc/listxattr.c: Likewise.
25784         * misc/llistxattr.c: Likewise.
25785         * misc/lremovexattr.c: Likewise.
25786         * misc/lsetxattr.c: Likewise.
25787         * misc/lutimes.c: Likewise.
25788         * misc/madvise.c: Likewise.
25789         * misc/mincore.c: Likewise.
25790         * misc/mlock.c: Likewise.
25791         * misc/mlockall.c: Likewise.
25792         * misc/mmap.c: Likewise.
25793         * misc/mprotect.c: Likewise.
25794         * misc/msync.c: Likewise.
25795         * misc/munlock.c: Likewise.
25796         * misc/munlockall.c: Likewise.
25797         * misc/munmap.c: Likewise.
25798         * misc/preadv.c: Likewise.
25799         * misc/preadv64.c: Likewise.
25800         * misc/ptrace.c: Likewise.
25801         * misc/pwritev.c: Likewise.
25802         * misc/pwritev64.c: Likewise.
25803         * misc/readv.c: Likewise.
25804         * misc/reboot.c: Likewise.
25805         * misc/remap_file_pages.c: Likewise.
25806         * misc/removexattr.c: Likewise.
25807         * misc/revoke.c: Likewise.
25808         * misc/select.c: Likewise.
25809         * misc/setdomain.c: Likewise.
25810         * misc/setegid.c: Likewise.
25811         * misc/seteuid.c: Likewise.
25812         * misc/sethostid.c: Likewise.
25813         * misc/sethostname.c: Likewise.
25814         * misc/setregid.c: Likewise.
25815         * misc/setreuid.c: Likewise.
25816         * misc/setxattr.c: Likewise.
25817         * misc/sstk.c: Likewise.
25818         * misc/stty.c: Likewise.
25819         * misc/swapoff.c: Likewise.
25820         * misc/swapon.c: Likewise.
25821         * misc/sync.c: Likewise.
25822         * misc/syncfs.c: Likewise.
25823         * misc/syscall.c: Likewise.
25824         * misc/truncate.c: Likewise.
25825         * misc/ualarm.c: Likewise.
25826         * misc/usleep.c: Likewise.
25827         * misc/ustat.c: Likewise.
25828         * misc/utimes.c: Likewise.
25829         * misc/vhangup.c: Likewise.
25830         * misc/writev.c: Likewise.
25831         * posix/_exit.c: Likewise.
25832         * posix/alarm.c: Likewise.
25833         * posix/execve.c: Likewise.
25834         * posix/fexecve.c: Likewise.
25835         * posix/fork.c: Likewise.
25836         * posix/fpathconf.c: Likewise.
25837         * posix/getaddrinfo.c: Likewise.
25838         * posix/getegid.c: Likewise.
25839         * posix/geteuid.c: Likewise.
25840         * posix/getgid.c: Likewise.
25841         * posix/getgroups.c: Likewise.
25842         * posix/getlogin.c: Likewise.
25843         * posix/getlogin_r.c: Likewise.
25844         * posix/getpgid.c: Likewise.
25845         * posix/getpid.c: Likewise.
25846         * posix/getppid.c: Likewise.
25847         * posix/getresgid.c: Likewise.
25848         * posix/getresuid.c: Likewise.
25849         * posix/getsid.c: Likewise.
25850         * posix/getuid.c: Likewise.
25851         * posix/glob64.c: Likewise.
25852         * posix/nanosleep.c: Likewise.
25853         * posix/pathconf.c: Likewise.
25854         * posix/pause.c: Likewise.
25855         * posix/posix_madvise.c: Likewise.
25856         * posix/pread.c: Likewise.
25857         * posix/pread64.c: Likewise.
25858         * posix/pwrite.c: Likewise.
25859         * posix/pwrite64.c: Likewise.
25860         * posix/sched_getaffinity.c: Likewise.
25861         * posix/sched_getp.c: Likewise.
25862         * posix/sched_gets.c: Likewise.
25863         * posix/sched_primax.c: Likewise.
25864         * posix/sched_primin.c: Likewise.
25865         * posix/sched_rr_gi.c: Likewise.
25866         * posix/sched_setaffinity.c: Likewise.
25867         * posix/sched_setp.c: Likewise.
25868         * posix/sched_sets.c: Likewise.
25869         * posix/sched_yield.c: Likewise.
25870         * posix/setgid.c: Likewise.
25871         * posix/setlogin.c: Likewise.
25872         * posix/setpgid.c: Likewise.
25873         * posix/setresgid.c: Likewise.
25874         * posix/setresuid.c: Likewise.
25875         * posix/setsid.c: Likewise.
25876         * posix/setuid.c: Likewise.
25877         * posix/sleep.c: Likewise.
25878         * posix/spawni.c: Likewise.
25879         * posix/sysconf.c: Likewise.
25880         * posix/times.c: Likewise.
25881         * posix/wait.c: Likewise.
25882         * posix/wait3.c: Likewise.
25883         * posix/wait4.c: Likewise.
25884         * posix/waitpid.c: Likewise.
25885         * resolv/gai_sigqueue.c: Likewise.
25886         * resource/getpriority.c: Likewise.
25887         * resource/getrlimit.c: Likewise.
25888         * resource/getrusage.c: Likewise.
25889         * resource/nice.c: Likewise.
25890         * resource/setpriority.c: Likewise.
25891         * resource/setrlimit.c: Likewise.
25892         * resource/ulimit.c: Likewise.
25893         * rt/aio_cancel.c: Likewise.
25894         * rt/aio_fsync.c: Likewise.
25895         * rt/aio_read.c: Likewise.
25896         * rt/aio_sigqueue.c: Likewise.
25897         * rt/aio_suspend.c: Likewise.
25898         * rt/aio_write.c: Likewise.
25899         * rt/clock_getres.c: Likewise.
25900         * rt/clock_gettime.c: Likewise.
25901         * rt/clock_nanosleep.c: Likewise.
25902         * rt/clock_settime.c: Likewise.
25903         * rt/lio_listio.c: Likewise.
25904         * rt/mq_close.c: Likewise.
25905         * rt/mq_getattr.c: Likewise.
25906         * rt/mq_notify.c: Likewise.
25907         * rt/mq_open.c: Likewise.
25908         * rt/mq_receive.c: Likewise.
25909         * rt/mq_send.c: Likewise.
25910         * rt/mq_setattr.c: Likewise.
25911         * rt/mq_timedreceive.c: Likewise.
25912         * rt/mq_timedsend.c: Likewise.
25913         * rt/mq_unlink.c: Likewise.
25914         * rt/shm_open.c: Likewise.
25915         * rt/shm_unlink.c: Likewise.
25916         * rt/timer_create.c: Likewise.
25917         * rt/timer_delete.c: Likewise.
25918         * rt/timer_getoverr.c: Likewise.
25919         * rt/timer_gettime.c: Likewise.
25920         * rt/timer_settime.c: Likewise.
25921         * setjmp/__longjmp.c: Likewise.
25922         * setjmp/setjmp.c: Likewise.
25923         * signal/kill.c: Likewise.
25924         * signal/killpg.c: Likewise.
25925         * signal/raise.c: Likewise.
25926         * signal/sigaction.c: Likewise.
25927         * signal/sigaltstack.c: Likewise.
25928         * signal/sigblock.c: Likewise.
25929         * signal/sigignore.c: Likewise.
25930         * signal/sigintr.c: Likewise.
25931         * signal/signal.c: Likewise.
25932         * signal/sigpause.c: Likewise.
25933         * signal/sigpending.c: Likewise.
25934         * signal/sigqueue.c: Likewise.
25935         * signal/sigreturn.c: Likewise.
25936         * signal/sigset.c: Likewise.
25937         * signal/sigsetmask.c: Likewise.
25938         * signal/sigstack.c: Likewise.
25939         * signal/sigsuspend.c: Likewise.
25940         * signal/sigtimedwait.c: Likewise.
25941         * signal/sigvec.c: Likewise.
25942         * signal/sigwait.c: Likewise.
25943         * signal/sigwaitinfo.c: Likewise.
25944         * signal/sysv_signal.c: Likewise.
25945         * socket/accept.c: Likewise.
25946         * socket/accept4.c: Likewise.
25947         * socket/bind.c: Likewise.
25948         * socket/connect.c: Likewise.
25949         * socket/getpeername.c: Likewise.
25950         * socket/getsockname.c: Likewise.
25951         * socket/getsockopt.c: Likewise.
25952         * socket/isfdtype.c: Likewise.
25953         * socket/listen.c: Likewise.
25954         * socket/recv.c: Likewise.
25955         * socket/recvfrom.c: Likewise.
25956         * socket/recvmsg.c: Likewise.
25957         * socket/send.c: Likewise.
25958         * socket/sendmsg.c: Likewise.
25959         * socket/sendto.c: Likewise.
25960         * socket/setsockopt.c: Likewise.
25961         * socket/shutdown.c: Likewise.
25962         * socket/sockatmark.c: Likewise.
25963         * socket/socket.c: Likewise.
25964         * socket/socketpair.c: Likewise.
25965         * stdio-common/ctermid.c: Likewise.
25966         * stdio-common/cuserid.c: Likewise.
25967         * stdio-common/remove.c: Likewise.
25968         * stdio-common/rename.c: Likewise.
25969         * stdio-common/renameat.c: Likewise.
25970         * stdio-common/tempname.c: Likewise.
25971         * stdlib/getcontext.c: Likewise.
25972         * stdlib/makecontext.c: Likewise.
25973         * stdlib/setcontext.c: Likewise.
25974         * stdlib/swapcontext.c: Likewise.
25975         * stdlib/system.c: Likewise.
25976         * streams/fattach.c: Likewise.
25977         * streams/fdetach.c: Likewise.
25978         * streams/getmsg.c: Likewise.
25979         * streams/getpmsg.c: Likewise.
25980         * streams/putmsg.c: Likewise.
25981         * streams/putpmsg.c: Likewise.
25982         * sysdeps/unix/bsd/getpt.c: Likewise.
25983         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
25984         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
25985         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
25986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
25987         Likewise.
25988         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
25989         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
25990         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
25991         * sysvipc/msgctl.c: Likewise.
25992         * sysvipc/msgget.c: Likewise.
25993         * sysvipc/msgrcv.c: Likewise.
25994         * sysvipc/msgsnd.c: Likewise.
25995         * sysvipc/semctl.c: Likewise.
25996         * sysvipc/semget.c: Likewise.
25997         * sysvipc/semop.c: Likewise.
25998         * sysvipc/semtimedop.c: Likewise.
25999         * sysvipc/shmat.c: Likewise.
26000         * sysvipc/shmctl.c: Likewise.
26001         * sysvipc/shmdt.c: Likewise.
26002         * sysvipc/shmget.c: Likewise.
26003         * termios/tcdrain.c: Likewise.
26004         * termios/tcflow.c: Likewise.
26005         * termios/tcflush.c: Likewise.
26006         * termios/tcgetattr.c: Likewise.
26007         * termios/tcgetpgrp.c: Likewise.
26008         * termios/tcsendbrk.c: Likewise.
26009         * termios/tcsetattr.c: Likewise.
26010         * termios/tcsetpgrp.c: Likewise.
26011         * time/adjtime.c: Likewise.
26012         * time/clock.c: Likewise.
26013         * time/getitimer.c: Likewise.
26014         * time/gettimeofday.c: Likewise.
26015         * time/setitimer.c: Likewise.
26016         * time/settimeofday.c: Likewise.
26017         * time/stime.c: Likewise.
26018         * time/time.c: Likewise.
26019
26020 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
26021
26022         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
26023         /usr/old/bin.
26024
26025         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
26026         instead of spaces.
26027         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
26028
26029 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
26030
26031         [BZ #14796]
26032         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
26033         FE_TONEAREST before applying Dekker multiplication and Knuth
26034         addition.  Clear inexact exceptions and check for exact zero
26035         results afterwards.
26036         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26037         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26038         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26039         * math/libm-test.inc (fma_test): Add more tests.
26040         (fma_test_towardzero): Likewise.
26041         (fma_test_downward): Likewise.
26042         (fma_test_upward): Likewise.
26043         * sysdeps/generic/math_private.h (default_libc_fesetround): New
26044         function.
26045         (libc_fesetround): New macro.
26046         (libc_fesetroundf): Likewise.
26047         (libc_fesetroundl): Likewise.
26048         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
26049         function.
26050         (libc_fesetround_387): Likewise.
26051         (libc_fesetroundf): New macro.
26052         (libc_fesetround): Likewise.
26053         (libc_fesetroundl): Likewise.
26054         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
26055         function.
26056         (libc_fesetroundf): New macro.
26057         (libc_fesetround): Likewise.
26058         (libc_fesetroundl): Likewise.
26059         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
26060         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
26061         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
26062         libm_hidden_ver.
26063         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
26064         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
26065         libm_hidden_def.
26066         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
26067         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
26068         libm_hidden_ver.
26069         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
26070         libm_hidden_def.
26071
26072         [BZ #3439]
26073         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
26074         integer constant usable in #if and use that to give value to enum
26075         constant.
26076         (FE_DIVBYZERO): Likewise.
26077         (FE_UNDERFLOW): Likewise.
26078         (FE_OVERFLOW): Likewise.
26079         (FE_INVALID): Likewise.
26080         (FE_INVALID_SNAN): Likewise.
26081         (FE_INVALID_ISI): Likewise.
26082         (FE_INVALID_IDI): Likewise.
26083         (FE_INVALID_ZDZ): Likewise.
26084         (FE_INVALID_IMZ): Likewise.
26085         (FE_INVALID_COMPARE): Likewise.
26086         (FE_INVALID_SOFTWARE): Likewise.
26087         (FE_INVALID_SQRT): Likewise.
26088         (FE_INVALID_INTEGER_CONVERSION): Likewise.
26089         (FE_TONEAREST): Likewise.
26090         (FE_TOWARDZERO): Likewise.
26091         (FE_UPWARD): Likewise.
26092         (FE_DOWNWARD): Likewise.
26093         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
26094         (FE_DIVBYZERO): Likewise.
26095         (FE_OVERFLOW): Likewise.
26096         (FE_UNDERFLOW): Likewise.
26097         (FE_INEXACT): Likewise.
26098         (FE_TONEAREST): Likewise.
26099         (FE_DOWNWARD): Likewise.
26100         (FE_UPWARD): Likewise.
26101         (FE_TOWARDZERO): Likewise.
26102         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
26103         (FE_UNDERFLOW): Likewise.
26104         (FE_OVERFLOW): Likewise.
26105         (FE_DIVBYZERO): Likewise.
26106         (FE_INVALID): Likewise.
26107         (FE_TONEAREST): Likewise.
26108         (FE_TOWARDZERO): Likewise.
26109         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
26110         (FE_OVERFLOW): Likewise.
26111         (FE_UNDERFLOW): Likewise.
26112         (FE_DIVBYZERO): Likewise.
26113         (FE_INEXACT): Likewise.
26114         (FE_TONEAREST): Likewise.
26115         (FE_TOWARDZERO): Likewise.
26116         (FE_UPWARD): Likewise.
26117         (FE_DOWNWARD): Likewise.
26118         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
26119         (FE_DIVBYZERO): Likewise.
26120         (FE_OVERFLOW): Likewise.
26121         (FE_UNDERFLOW): Likewise.
26122         (FE_INEXACT): Likewise.
26123         (FE_TONEAREST): Likewise.
26124         (FE_DOWNWARD): Likewise.
26125         (FE_UPWARD): Likewise.
26126         (FE_TOWARDZERO): Likewise.
26127
26128 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
26129
26130         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
26131
26132 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
26133
26134         * scripts/cross-test-ssh.sh (command): Use newlines to separate
26135         commands.  Quote $PWD.
26136         (blacklist_exports): Don't use remove_newlines.  Replace "declare
26137         -x" by "export".
26138         (remove_newlines): Remove.
26139
26140 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
26141
26142         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
26143         * stdlib/stdlib.h (atof): Moved to ...
26144         * include/bits/stdlib-float.h: Here.  New file.
26145         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
26146         * stdlib/bits/stdlib-float.h: New file.
26147         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
26148         -mno-sse -mno-mmx.
26149         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
26150         <xmmintrin.h>.
26151
26152 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26153
26154         * conform/conformtest.pl (@headers): Add fenv.h.
26155         * conform/data/fenv.h-data: New file.
26156         * include/fenv.h [_ISOMAC]: Disable all contents of file except
26157         include of <math/fenv.h>.
26158
26159         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
26160         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
26161         && !UNIX98].  Enables tests for XOPEN2K8.
26162         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
26163         POSIX2008]: Likewise.
26164
26165         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
26166         (struct rusage): Do not expect type or its members.
26167
26168         [BZ #3439]
26169         * math/math.h (FP_NAN): Define macro to integer constant usable in
26170         #if and use that to give value to enum constant.
26171         (FP_INFINITE): Likewise.
26172         (FP_ZERO): Likewise.
26173         (FP_SUBNORMAL): Likewise.
26174         (FP_NORMAL): Likewise.
26175
26176 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
26177
26178         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
26179         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
26180         arguments.
26181
26182 2012-11-02  Roland McGrath  <roland@hack.frob.com>
26183
26184         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
26185         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
26186         autoconf-time if not.
26187         * configure.in: Remove AC_PREREQ.
26188
26189 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26190
26191         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
26192         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
26193         of the internal implementation.
26194
26195 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26196
26197         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
26198         except include of <misc/sys/syslog.h>.
26199
26200 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26201
26202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
26203         function returns with a NULL context exit with zero.
26204
26205 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26206
26207         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
26208
26209 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26210
26211         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
26212         (run_program_cmd): This.
26213         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
26214         (tst_langinfo): New variable.  Use it.
26215
26216 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
26217
26218         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
26219         floating point opcodes.
26220
26221 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26222
26223         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
26224         variable.
26225
26226         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
26227
26228         * sysdeps/mach/hurd/powerpc: Remove directory.
26229         * sysdeps/mach/powerpc: Likewise.
26230
26231 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26232
26233         * scripts/check-local-headers.sh: Ignore c++ headers.
26234
26235 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26236
26237         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
26238         __libc_cleanup_region_start argument.
26239
26240 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
26241
26242         [BZ #14784]
26243         [BZ #14785]
26244         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
26245         x * y using scaling, not as x * y + z.
26246         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26247         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26248         * math/libm-test.inc (fma_test): Add more tests.
26249         (fma_test_towardzero): Likewise.
26250         (fma_test_downward): Likewise.
26251         (fma_test_upward): Likewise.
26252
26253 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26254
26255         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
26256
26257 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26258
26259         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
26260         New variable.
26261
26262 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
26263
26264         * rt/tst-shm.c (worker): Correct checking for mmap failure.
26265
26266 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26267
26268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26269         Fix sort order.
26270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26271         Likewise.
26272
26273 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26274
26275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26276         Fix the order of the list for glibc 2.17.
26277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26278         Likewise.
26279
26280 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26281
26282         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26283
26284 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26285
26286         [BZ #14610]
26287         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
26288         for low part of x being zero before using __atanl (y).
26289         * math/libm-test.inc (atan2_test): Add another test.
26290
26291         * manual/install.texi (Configuring and compiling): Document
26292         general use of test-wrapper and test-wrapper-env.
26293         * INSTALL: Regenerated.
26294
26295         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
26296         (__fma): Do not extract and scale down low bits on after-rounding
26297         systems when result rounded to normal precision would have normal
26298         exponent.
26299         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
26300         (__fmal): Do not extract and scale down low bits on after-rounding
26301         systems when result rounded to normal precision would have normal
26302         exponent.
26303         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
26304         (__fmal): Do not extract and scale down low bits on after-rounding
26305         systems when result rounded to normal precision would have normal
26306         exponent.
26307         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
26308         macro.
26309         (fma_test): Add more tests.
26310         (fma_test_towardzero): Likewise.
26311         (fma_test_downward): Likewise.
26312         (fma_test_upward): Likewise.
26313
26314 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26315
26316         * sysdeps/i386/tininess.h: Renamed to ...
26317         * sysdeps/x86/tininess.h: This.
26318         * sysdeps/x86_64/tininess.h: Removed.
26319
26320 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26321
26322         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
26323         input.  Use $(build-program-cmd).
26324         ($(objpfx)tst-array1-static.out): Likewise.
26325         ($(objpfx)tst-array2.out): Likewise.
26326         ($(objpfx)tst-array3.out): Likewise.
26327         ($(objpfx)tst-array4.out): Likewise.
26328         ($(objpfx)tst-array5.out): Likewise.
26329         ($(objpfx)tst-array5-static.out): Likewise.
26330
26331 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
26332
26333         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
26334         if defined.
26335
26336         * nss/nsswitch.h (nss_interface_function): Provide new
26337         macro for use with NSS functions.
26338         * grp/initgroups.c: Use new macro.
26339         * nss/getXXbyYY.c: Likewise.
26340         * nss/getXXbyYY_r.c: Likewise.
26341         * nss/getXXent.c: Likewise.
26342         * nss/getXXent_r.c: Likewise.
26343         * sysdeps/posix/getaddrinfo.c: Likewise.
26344
26345 2012-10-30  Andreas Jaeger  <aj@suse.de>
26346
26347         * po/ru.po: Update Russion translation from translation project.
26348
26349 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26350
26351         [BZ #14152]
26352         [BZ #14783]
26353         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
26354         result and shift together with sticky bit instead of replicating
26355         round-to-nearest rounding.
26356         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26357         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26358         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
26359         missing underflow exceptions.
26360         (fma_test_towardzero): Add more tests.
26361         (fma_test_downward): Likewise.
26362         (fma_test_upward): Likewise.
26363
26364         [BZ #14047]
26365         * sysdeps/generic/tininess.h: New file.
26366         * sysdeps/i386/tininess.h: Likewise.
26367         * sysdeps/sh/tininess.h: Likewise.
26368         * sysdeps/x86_64/tininess.h: Likewise.
26369         * stdlib/tst-strtod-underflow.c: Likewise.
26370         * stdlib/tst-tininess.c: Likewise.
26371         * stdlib/strtod_l.c: Include <tininess.h>.
26372         (round_and_return): Do not set errno for exact underflow cases.
26373         Force an underflow exception when setting errno for underflow.
26374         Determine underflow based on rounding to normal precision if
26375         TININESS_AFTER_ROUNDING.
26376         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
26377         ERANGE for exact underflow cases.
26378         * stdlib/Makefile (tests): Add tst-tininess and
26379         tst-strtod-underflow.
26380         ($(objpfx)tst-tininess): Use $(link-libm).
26381         ($(objpfx)tst-strtod-underflow): Likewise.
26382
26383 2012-10-30  Andreas Jaeger  <aj@suse.de>
26384
26385         [BZ#14767]
26386         * elf/Makefile (tests): Remove conditional for have-initfini-array
26387         since this is now always required and the variable does not exist
26388         anymore.
26389         (tests-static): Likewise.
26390         (modules-names): Likewise.
26391
26392         * po/eo.po: Add Esperanto translation from translation project.
26393
26394         * elf/tst-array1.c (fini_array): Make writeable so that it can be
26395         merged with constructor/destructor.
26396         (init_array): Likewise.
26397         * elf/tst-array2dep.c (fini_array): Likewise.
26398         (init_array): Likewise.
26399
26400 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
26401
26402         * manual/message.texi: Delete @cartouche tags.
26403
26404 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
26405
26406         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
26407         EOPNOTSUPP.
26408         * sysdeps/mach/hurd/fsync.c: Likewise.
26409
26410         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
26411         [_POSIX_REALTIME_SIGNALS]: Change condition to
26412         [_POSIX_REALTIME_SIGNALS > 0].
26413
26414 2012-10-27  Andreas Jaeger  <aj@suse.de>
26415
26416         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
26417         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
26418         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
26419         [__WORDSIZE != 64]: Likewise.
26420
26421 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
26422
26423         *  iconvdata/tst-table.sh: Remove ${SHELL}.
26424         *  iconvdata/tst-tables.sh: Likewise.
26425
26426 2012-10-25  David S. Miller  <davem@davemloft.net>
26427
26428         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26429         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
26430         of strtoull.
26431
26432         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
26433         ifunc-impl-list.c
26434         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26435         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
26436         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
26437         file.
26438
26439 2012-10-25  Roland McGrath  <roland@hack.frob.com>
26440
26441         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26442         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
26443         __getdirentries.
26444
26445 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26446             Jim Blandy  <jimb@codesourcery.com>
26447
26448         * scripts/cross-test-ssh.sh: New file.
26449         * manual/install.texi (Configuring and compiling): Document use of
26450         cross-test-ssh.sh.
26451         * INSTALL: Regenerated.
26452
26453 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
26454
26455         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
26456         EOPNOTSUPP.
26457
26458 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26459
26460         * Makeconfig (run-program-prefix): Fix comment.
26461
26462 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26463             Jim Blandy  <jimb@codesourcery.com>
26464
26465         * Makeconfig (test-wrapper): New variable,
26466         (test-wrapper-env): Likewise.
26467         [$(cross-compiling) = yes && $(test-wrapper) != ""]
26468         (run-built-tests): Define to yes.
26469         (run-program-prefix): Use $(test-wrapper).
26470         (built-program-cmd): Likewise.
26471         * Rules (make-test-out): Use $(test-wrapper-env) and
26472         $(host-built-program-cmd).
26473         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
26474         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
26475         tst-pathopt.sh.
26476         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
26477         $(test-wrapper-env) to tst-rtld-load-self.sh.
26478         ($(objpfx)order2.out): Use $(test-wrapper).
26479         ($(objpfx)tst-initorder.out): Likewise.
26480         ($(objpfx)tst-initorder2.out): Likewise.
26481         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
26482         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
26483         (test_wrapper_env): New variable.  Use it to run ld.so.
26484         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
26485         Use it to run ld.so.
26486         (test_wrapper_env): Likewise.
26487         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
26488         $(test-wrapper) to run-iconv-test.sh.
26489         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
26490         (ICONV): Use $test_wrapper.
26491         * posix/Makefile ($(objpfx)globtest.out): Pass
26492         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
26493         globtest.sh, not $(run-program-prefix).
26494         * posix/globtest.sh (run_via_rtld_prefix): New variable.
26495         (test_wrapper): Likewise.
26496         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
26497         set together with run_via_rtld_prefix.
26498         (run_program_prefix): Define in terms of test_wrapper and
26499         run_via_rtld_prefix.
26500
26501 2012-10-24  Roland McGrath  <roland@hack.frob.com>
26502
26503         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
26504         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
26505         Targets removed.
26506
26507         [BZ #14743]
26508         * include/time.h: Remove librt_hidden_proto (clock_gettime).
26509         Declare __clock_getres, __clock_gettime, __clock_settime,
26510         __clock_nanosleep, and __clock_getcpuclockid.
26511         * rt/clock_gettime.c: Define __clock_gettime as an alias.
26512         Remove librt_hidden_def (clock_gettime).
26513         * sysdeps/unix/clock_gettime.c: Likewise.
26514         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
26515         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
26516         * rt/clock_getres.c: Define __clock_getres as an alias.
26517         * sysdeps/posix/clock_getres.c: Likewise.
26518         * rt/clock_settime.c: Define __clock_settime as an alias.
26519         * sysdeps/unix/clock_settime.c: Likewise.
26520         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
26521         * sysdeps/unix/clock_nanosleep.c: Likewise.
26522         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
26523         * rt/clock-compat.c: New file.
26524         * rt/Makefile (librt-routines): Add clock-compat and move
26525         $(clock-routines) to ...
26526         (routines): ... here, new variable.
26527         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
26528         Don't add get_clockfreq here.
26529         * rt/Versions (libc: GLIBC_2.17): New version set.
26530         Add clock_* symbols here.
26531         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
26532         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
26533         (GLIBC_2.17): Add clock_* symbols.
26534         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
26535         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
26536         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
26537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26538         Likewise.
26539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26540         Likewise.
26541         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
26542         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
26543         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
26544         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
26545         * NEWS: Mention the move.
26546
26547         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
26548         Use __open, __read, __close rather than their public counterparts.
26549         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26550         (__get_clockfreq_via_cpuinfo): Likewise.
26551         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
26552         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
26553
26554         * config.h.in (HAVE_IFUNC): New #undef.
26555         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
26556         was successful.
26557         * configure: Regenerated.
26558
26559 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26560
26561         * configure.in: Move READELF check to start of file.
26562         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
26563         libc_cv_asm_gnu_indirect_function in the process.
26564         * configure: Regenerated.
26565
26566 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26567
26568         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
26569         send the output to /dev/null.
26570         (libc_cv_cc_with_libunwind): Likewise.
26571         (libc_cv_as_noexecstack): Likewise.
26572         * configure: Regenerate.
26573
26574 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26575
26576         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
26577
26578         * posix/globtest.sh (TMPDIR): Do not set.
26579         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
26580         (testout): Likewise.
26581
26582 2012-10-24  Andreas Jaeger  <aj@suse.de>
26583
26584         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
26585         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
26586         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
26587         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
26588         posix_fadvise64, posix_fallocate64.
26589
26590         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
26591         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
26592         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
26593         Likewise.
26594         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
26595         Likewise.
26596         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
26597
26598         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
26599         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
26600         <bits/fcntl-linux.h>.
26601         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
26602
26603         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
26604         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
26605         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
26606         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
26607         [__WORDSIZE != 64]: Likewise.
26608
26609 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26610
26611         * Makeconfig (run-built-tests): New variable.
26612         * Rules [$(cross-compiling) = yes]: Change condition to
26613         [$(run-built-tests) = no].
26614         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
26615         to [$(run-built-tests) = yes].
26616         * elf/Makefile [$(cross-compiling) = no]: Likewise
26617         * grp/Makefile [$(cross-compiling) = no]: Likewise.
26618         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
26619         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
26620         * intl/Makefile [$(cross-compiling) = no]: Likewise.
26621         * io/Makefile [$(cross-compiling) = no]: Likewise.
26622         * libio/Makefile [$(cross-compiling) = no]: Likewise.
26623         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
26624         * misc/Makefile [$(cross-compiling) = no]: Likewise.
26625         * posix/Makefile [$(cross-compiling) = no]: Likewise.
26626         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
26627         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
26628         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
26629         * string/Makefile [$(cross-compiling) = no]: Likewise.
26630
26631         * posix/Makefile ($(objpfx)globtest.out): Pass
26632         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
26633         $(rtld-installed-name).
26634         * posix/globtest.sh (elf_objpfx): Remove variable.
26635         (rtld_installed_name): Likewise.
26636         (library_path): Likewise.
26637         (run_program_prefix): New variable.  Use for running globtest
26638         binary.
26639
26640 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
26641             Joseph Myers  <joseph@codesourcery.com>
26642
26643         * Makeconfig (host-built-program-cmd): New variable.
26644         * elf/Makefile (tst-stackguard1-ARGS): Use
26645         $(host-built-program-cmd).
26646         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
26647         (tst-spawn-ARGS): Likewise.
26648         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
26649
26650 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26651             Jim Blandy  <jimb@codesourcery.com>
26652
26653         * Makeconfig (run-via-rtld-prefix): New variable.
26654         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
26655         (built-program-cmd): Likewise.
26656
26657 2012-10-22  Andreas Jaeger  <aj@suse.de>
26658
26659         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
26660         __O_RSYNC if it exists, otherwise to O_SYNC.
26661
26662 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
26663             Joseph Myers  <joseph@codesourcery.com>
26664
26665         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
26666         /dev/null.
26667         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
26668         from /dev/null
26669         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
26670         /dev/null.
26671
26672 2012-10-22  Andreas Jaeger  <aj@suse.de>
26673
26674         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
26675         Define always.
26676         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
26677
26678         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26679         bits/fcntl-linux.h.
26680
26681         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
26682         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
26683
26684         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
26685         to __O_LARGEFILE.
26686         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
26687         to __O_LARGEFILE.
26688
26689 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
26690             Joseph Myers  <joseph@codesourcery.com>
26691
26692         * config.make.in (NM): New variable.
26693
26694 2012-10-21  Andreas Jaeger  <aj@suse.de>
26695
26696         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
26697         definitions and declarations that are provided by
26698         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
26699
26700 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26701
26702         [BZ #14683]
26703         * elf/Makefile (tests-static): Add tst-leaks1-static.
26704         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
26705         ($(objpfx)tst-leaks1-static): New rule.
26706         ($(objpfx)tst-leaks1-static-mem): Likewise.
26707         (tst-leaks1-static-ENV): New macro.
26708         * elf/dl-open.c (dl_open_worker): Check the main application
26709         only if SHARED is defined.
26710         * elf/tst-leaks1-static.c: New file.
26711
26712 2012-10-20  Andreas Jaeger  <aj@suse.de>
26713
26714         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
26715         generic values for Linux.
26716         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
26717         and declarations that are provided by <bits/fcntl-linux.h> and
26718         include <bits/fcntl-linux.h>.
26719         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26720         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26721
26722 2012-10-20  Roland McGrath  <roland@hack.frob.com>
26723
26724         * io/fcntl.h: Move include of <bits/types.h> to the top and
26725         include it unconditionally.
26726
26727 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26728
26729         * wcsmbs/Makefile (tests-ifunc): New variable.
26730         (tests): Add $(tests-ifunc).
26731         * wcsmbs/test-wcschr-ifunc.c: New file.
26732         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
26733         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
26734         * wcsmbs/test-wcslen-ifunc.c: Likewise.
26735         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
26736         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26737
26738         * string/Makefile (tests-ifunc): New variable.
26739         (tests): Add $(tests-ifunc).
26740         * string/test-memccpy.c (TEST_NAME): New macro.
26741         * string/test-memchr.c (TEST_NAME): Likewise.
26742         * string/test-memcmp.c (TEST_NAME): Likewise.
26743         * string/test-memcpy.c (TEST_NAME): Likewise.
26744         * string/test-memmem.c (TEST_NAME): Likewise.
26745         * string/test-memmove.c (TEST_NAME): Likewise.
26746         * string/test-memset.c (TEST_NAME): Likewise.
26747         * string/test-rawmemchr.c (TEST_NAME): Likewise.
26748         * string/test-stpcpy.c (TEST_NAME): Likewise.
26749         * string/test-stpncpy.c (TEST_NAME): Likewise.
26750         * string/test-strcasecmp.c (TEST_NAME): Likewise.
26751         * string/test-strcasestr.c (TEST_NAME): Likewise.
26752         * string/test-strcat.c (TEST_NAME): Likewise.
26753         * string/test-strchr.c (TEST_NAME): Likewise.
26754         * string/test-strcmp.c(TEST_NAME): Likewise.
26755         * string/test-strcpy.c (TEST_NAME): Likewise.
26756         * string/test-strcspn.c (TEST_NAME): Likewise.
26757         * string/test-strlen.c (TEST_NAME): Likewise.
26758         * string/test-strncasecmp.c (TEST_NAME): Likewise.
26759         * string/test-strncmp.c (TEST_NAME): Likewise.
26760         * string/test-strncpy.c (TEST_NAME): Likewise.
26761         * string/test-strnlen.c (TEST_NAME): Likewise.
26762         * string/test-strpbrk.c (TEST_NAME): Likewise.
26763         * string/test-strrchr.c (TEST_NAME): Likewise.
26764         * string/test-strspn.c (TEST_NAME): Likewise.
26765         * string/test-strstr.c (TEST_NAME): Likewise.
26766         * string/test-bcopy-ifunc.c: New file.
26767         * string/test-bzero-ifunc.c: Likewise.
26768         * string/test-memccpy-ifunc.c: Likewise.
26769         * string/test-memchr-ifunc.c: Likewise.
26770         * string/test-memcmp-ifunc.c: Likewise.
26771         * string/test-memcpy-ifunc.c: Likewise.
26772         * string/test-memmem-ifunc.c: Likewise.
26773         * string/test-memmove-ifunc.c: Likewise.
26774         * string/test-mempcpy-ifunc.c: Likewise.
26775         * string/test-memset-ifunc.c: Likewise.
26776         * string/test-rawmemchr-ifunc.c: Likewise.
26777         * string/test-stpcpy-ifunc.c: Likewise.
26778         * string/test-stpncpy-ifunc.c: Likewise.
26779         * string/test-strcasecmp-ifunc.c: Likewise.
26780         * string/test-strcasestr-ifunc.c: Likewise.
26781         * string/test-strcat-ifunc.c: Likewise.
26782         * string/test-strchr-ifunc.c: Likewise.
26783         * string/test-strchrnul-ifunc.c: Likewise.
26784         * string/test-strcmp-ifunc.c: Likewise.
26785         * string/test-strcpy-ifunc.c: Likewise.
26786         * string/test-strcspn-ifunc.c: Likewise.
26787         * string/test-strlen-ifunc.c: Likewise.
26788         * string/test-strncasecmp-ifunc.c: Likewise.
26789         * string/test-strncat-ifunc.c: Likewise.
26790         * string/test-strncmp-ifunc.c: Likewise.
26791         * string/test-strncpy-ifunc.c: Likewise.
26792         * string/test-strnlen-ifunc.c: Likewise.
26793         * string/test-strpbrk-ifunc.c: Likewise.
26794         * string/test-strrchr-ifunc.c: Likewise.
26795         * string/test-strspn-ifunc.c: Likewise.
26796         * string/test-strstr-ifunc.c: Likewise.
26797
26798         * debug/Makefile (tests-ifunc): New variable.
26799         (tests): Add $(tests-ifunc).
26800         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
26801         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
26802         * debug/test-stpcpy_chk-ifunc.c: New file.
26803         * debug/test-strcpy_chk-ifunc.c: Likewise.
26804
26805 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
26806
26807         [BZ #13601]
26808         * elf/dl-load.c (open_verify): Retry read if the entire ELF
26809         header is not read in.
26810
26811 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
26812
26813         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
26814         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
26815         directly.  Pass built executable to script as
26816         $(built-program-cmd).
26817         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
26818         $testprogram without using LD_LIBRARY_PATH and $ldso.
26819
26820         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
26821         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
26822         $(rtld-installed-name).
26823         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
26824         (rtld_installed_name): Likewise.
26825         (library_path): Likewise.
26826         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
26827         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
26828         $(run-program-prefix) to tst-tables.sh.
26829         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26830         it to run tst-table-from and tst-table-to.
26831         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
26832         Pass it to tst-table.sh.
26833         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
26834         $(run-program-prefix) to tst-gettext.sh.
26835         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
26836         tst-translit.sh.
26837         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
26838         tst-gettext2.sh.
26839         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
26840         to run tst-gettext.
26841         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
26842         to run tst-gettext2.
26843         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
26844         to run tst-translit.
26845         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
26846         $(run-program-prefix) to tst-mtrace.sh.
26847         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
26848         to run tst-mtrace.
26849         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
26850         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
26851         $(rtld-installed-name).
26852         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
26853         (rtld_installed_name): Likewise.
26854         (run_program_prefix): New variable.  Use it to run wordexp-test.
26855
26856         * Makeconfig (ARCH): Remove all definitions.
26857         (machine): Likewise.
26858         [ARCH]: Remove conditional code.
26859         [!objdir]: Give error.
26860         [!objdir] (objpfx): Remove.
26861         [!objdir] (common-objpfx): Likewise.
26862         [!objdir] (common-objdir): Likewise.
26863         * configure.in (config_makefile): Remove.  Hardcode Makefile in
26864         AC_CONFIG_FILES call.
26865         * configure: Regenerated.
26866
26867         [BZ #13888]
26868         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
26869         or TMPDIR.
26870         (testout): Likewise.
26871
26872         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
26873         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
26874         $(rtld-installed-name).
26875         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
26876         (rtld_installed_name): Likwise.
26877         (runit): Remove function.
26878         (run_getconf): New variable,  Use it for running getconf binary.
26879
26880 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
26881
26882         [BZ #14716]
26883         * string/test-memmem.c (check_result): New function.
26884         (do_one_test): Use it.
26885         (check1): New function.
26886         (test_main): Use it.
26887
26888 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
26889
26890         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
26891
26892 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
26893
26894         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
26895         (_G_LSEEK64): Likewise.
26896         (_G_MMAP64): Likewise.
26897         (_G_FSTAT64): Likewise.
26898         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
26899         (_G_LSEEK64): Likewise.
26900         (_G_MMAP64): Likewise.
26901         (_G_FSTAT64): Likewise.
26902         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
26903         unconditional.  Call __mmap64 directly.
26904         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
26905         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
26906         __lseek64 directly.
26907         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
26908         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
26909         __mmap64 directly.
26910         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
26911         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26912         __lseek64 directly.
26913         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
26914         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26915         __lseek64 directly.
26916         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
26917         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
26918         __lseek64 directly.
26919         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
26920         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
26921         __fxstat64 directly.
26922         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
26923         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
26924         unconditional.
26925         (freopen64) [!_G_OPEN64]: Remove conditional code.
26926         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
26927         unconditional.
26928         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
26929         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
26930         unconditional.
26931         (ftello64) [!_G_LSEEK64]: Remove conditional code.
26932         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
26933         unconditional.
26934         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26935         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
26936         unconditional.
26937         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
26938         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
26939         unconditional.
26940         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26941         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
26942         unconditional.
26943         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26944         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
26945         unconditional.
26946         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26947
26948 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26949
26950         [BZ #12140]
26951         * manual/memory.texi (Malloc Tunable Parameters): Add note
26952         about free list pointers overwriting some perturb bytes.
26953         Wording suggested by Roland McGrath.
26954
26955 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
26956
26957         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
26958         (lgamma_test): Likewise.
26959         (tgamma_test): Likewise.
26960
26961 2012-10-16  Florian Weimer  <fweimer@redhat.com>
26962
26963         [BZ #14700]
26964         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
26965         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
26966
26967 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
26968
26969         * NEWS: Mention BZ #14716.
26970         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
26971         when removing AVAILABLE1_USES_J macro.
26972
26973 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
26974
26975         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
26976         (__bswap_64): __uint64_t for unsigned 64-bit int.
26977
26978 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
26979
26980         * include/string.h (memmem): Declare libc hidden alias.
26981         * string/memmem.c (memmem): Define libc hidden alias.
26982         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
26983         __read, __close instead of open, read, close.
26984
26985 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
26986
26987         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
26988         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
26989         global and hidden.
26990         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
26991         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
26992         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
26993         Likewise.
26994         (__rawmemchr_sse2): Likewise.
26995         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
26996         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
26997         (__strchr_sse2): Likewise.
26998         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
26999         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
27000         (__strcasecmp_sse2): Likewise.
27001         (__strncasecmp_sse2): Likewise.
27002         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
27003         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
27004         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
27005         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
27006         (__strrchr_sse2): Likewise.
27007         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
27008         ifunc-impl-list.c.
27009         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27010         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27011         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27012         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27013         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27014         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27015         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27016         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27017         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
27018         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
27019         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
27020         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
27021         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
27022         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27023         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27024         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27025         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27026         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27027         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
27028         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
27029         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
27030         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
27031         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
27032         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
27033         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
27034         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
27035         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27036         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
27037         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27038         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27039
27040         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
27041         global and hidden.
27042         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
27043         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
27044         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
27045         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
27046         Likewise.
27047         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
27048         Likewise.
27049         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
27050         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
27051         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
27052         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
27053         ifunc-impl-list.c.
27054         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27055         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27056         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27057         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27058         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27059         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27060         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27061         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27062         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27063         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27064         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27065         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27066         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27067         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
27068         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
27069         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27070         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
27071         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
27072         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27073         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27074         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27075         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27076         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27077         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27078         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27079         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
27080         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
27081         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
27082         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
27083         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27084         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
27085         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27086         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27087         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
27088         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27089         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27090         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27091         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27092         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27093         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27094         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
27095
27096         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
27097         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
27098         * include/ifunc-impl-list.h: New file.
27099         * misc/ifunc-impl-list.c: Likewise.
27100         * misc/Makefile (routines): Add ifunc-impl-list.
27101         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
27102         * string/test-string.h: Include <ifunc-impl-list.h>.
27103         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
27104         TEST_NAME]: New variables.
27105         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
27106         are defined.
27107         (test_init): Call __libc_ifunc_impl_list to initialize
27108         func_list if TEST_IFUNC and TEST_NAME are defined.
27109
27110         * string/Makefile (strop-tests): Add bcopy and bzero.
27111         * string/test-bcopy.c: New file.
27112         * string/test-bzero.c: Likewise.
27113         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
27114         defined.
27115         * string/test-memset.c: Support bzero test if TEST_BZERO is
27116         defined.
27117         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
27118         __libc_memmove.
27119         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
27120         __libc_memset.
27121         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
27122         of memset.
27123
27124 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
27125
27126         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
27127         * configure: Regenerated.
27128
27129         * Makeconfig (+link-static-before-libc): Don't include
27130         $(link-static-libc).
27131
27132         * libio/libio.h (_IO_pos_t): Remove.
27133
27134 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27135
27136         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
27137         McGrath.
27138
27139 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27140
27141         * crypt/crypt-entry.c: Include fips-private.h.
27142         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
27143         * crypt/md5c-test.c (main): Tolerate disabled MD5.
27144         * sysdeps/unix/sysv/linux/fips-private.h: New file.
27145         * sysdeps/generic/fips-private.h: New file, dummy fallback.
27146
27147 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27148
27149         * crypt/crypt-private.h: Include stdbool.h.
27150         (_ufc_setup_salt_r): Return bool.
27151         * crypt/crypt-entry.c: Include errno.h.
27152         (__crypt_r): Return NULL with EINVAL for bad salt.
27153         * crypt/crypt_util.c (bad_for_salt): New.
27154         (_ufc_setup_salt_r): Check that salt is long enough and within
27155         the specified alphabet.
27156         * crypt/badsalttest.c: New file.
27157         * crypt/Makefile (tests): Add it.
27158         ($(objpfx)badsalttest): New.
27159
27160 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
27161
27162         * NEWS: Add entry for BZ #14602.
27163
27164 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27165
27166         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
27167         type-generic.
27168         * math/libm-test.inc: Update comment listing what functions and
27169         macros are tested.
27170         (isgreater_test): New function.
27171         (isgreaterequal_test): Likewise.
27172         (isless_test): Likewise.
27173         (islessequal_test): Likewise.
27174         (islessgreater_test): Likewise.
27175         (isunordered_test): Likewise.
27176         (main): Call the new functions.
27177
27178 2012-10-09  Roland McGrath  <roland@hack.frob.com>
27179
27180         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
27181         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
27182         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
27183         * sysdeps/i386/configure: Regenerated.
27184         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
27185         * sysdeps/mach/configure: Regenerated.
27186         * sysdeps/mach/hurd/configure: Regenerated.
27187         * sysdeps/powerpc/configure: Regenerated.
27188         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27189         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27190         * sysdeps/s390/s390-32/configure: Regenerated.
27191         * sysdeps/s390/s390-64/configure: Regenerated.
27192         * sysdeps/sh/configure: Regenerated.
27193         * sysdeps/sparc/configure: Regenerated.
27194         * sysdeps/unix/sysv/linux/configure: Regenerated.
27195         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
27196         * sysdeps/x86_64/configure: Regenerated.
27197
27198         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
27199         defined.  Don't check if MAP is NULL.
27200
27201 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27202
27203         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
27204         (_G_stat64): Likewise.
27205         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
27206         (_G_stat64): Likewise.
27207         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
27208         instead of struct _G_stat64.
27209         * libio/fileops.c (mmap_remap_check): Likewise.
27210         (decide_maybe_mmap): Likewise.
27211         (_IO_new_file_seekoff): Likewise.
27212         (_IO_file_stat): Likewise.
27213         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
27214         _G_off64_t.
27215         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
27216         instead of struct _G_stat64.
27217         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27218
27219 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
27220
27221         [BZ #14602]
27222         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27223         Replace with ...
27224         (CHECK_EOL): New macro.
27225         (two_way_short_needle): Check beginning of haystack for EOL.  Use
27226         CHECK_EOL.
27227         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27228         Replace with CHECK_EOL.
27229         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27230         Replace with CHECK_EOL.
27231
27232 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
27233
27234         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
27235         type-generic.
27236         * math/libm-test.inc: Update comment listing what functions and
27237         macros are tested.
27238         (finite_test): New function.
27239         (isinf_test): Likewise.
27240         (isnan_test): Likewise.
27241         (fpclassify_test): Test subnormal input.
27242         (isfinite_test): Likewise.
27243         (isnormal_test): Likewise.
27244         (main): Call the new functions.
27245
27246 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
27247
27248         [BZ #14660]
27249         * Makerules (%.dynsym): Force C locale when running
27250         $(OBJDUMP) --dynamic-syms.
27251
27252 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
27253
27254         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
27255         <stdint.h>.
27256
27257 2012-10-06  David S. Miller  <davem@davemloft.net>
27258
27259         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
27260         upper 32-bits of the length value in %o2 since we use branch-on-register
27261         tests which consider the entire 64-bit register.
27262
27263 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
27264
27265         * string/test-strstr.c (check2): Add a test for page boundary.
27266
27267 2012-10-05  David S. Miller  <davem@davemloft.net>
27268
27269         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
27270         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
27271         file.
27272         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27273         sysdep_routines.
27274         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27275         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
27276         and bzero when HWCAP_SPARC_CRYPTO is present.
27277
27278 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
27279
27280         [BZ #14602]
27281         * string/test-strstr.c (check2): New function.
27282         (test_main): Call check2.
27283
27284         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
27285         and bug-strchr1.
27286         * string/bug-strcasestr1.c (do_test): Moved to ...
27287         * string/test-strcasestr.c (check1): Here.  New function.
27288         (do_one_test): Break out result checking code into ...
27289         (check_result): This.  New function.
27290         (do_one_test): Call check_result.
27291         (test_main): Call check1.
27292         * string/bug-strchr1.c (do_test): Moved to ...
27293         * string/test-strchr.c (check1): Here.  New function.
27294         (do_one_test): Break out result checking code into ...
27295         (check_result): This.  New function.
27296         (do_one_test): Call check_result.
27297         (test_main): Call check1.
27298         * string/bug-strstr1.c (main): Moved to ...
27299         * string/test-strstr.c (check1): Here.  New function.
27300         (do_one_test): Break out result checking code into ...
27301         (check_result): This.  New function.
27302         (do_one_test): Call check_result.
27303         (test_main): Call check1.
27304         * string/bug-strcasestr1.c: Removed.
27305         * string/bug-strchr1.c: Likewise.
27306         * string/bug-strstr1.c: Likewise.
27307
27308         * elf/Makefile (dl-routines): Add hwcaps.
27309         * elf/dl-support.c (_dl_important_hwcaps): Removed.
27310         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
27311         (_dl_important_hwcaps): Moved to ...
27312         * elf/dl-hwcaps.c: Here.  New file.
27313         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
27314
27315         [BZ #14557]
27316         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
27317         if IS_IN_rtld isn't defined.
27318
27319         * elf/dl-support.c (_dl_sysinfo_map): New.
27320         Include "get-dynamic-info.h" and "setup-vdso.h".
27321         (_dl_non_dynamic_init): Call setup_vdso.
27322         * elf/dynamic-link.h: Don't include <assert.h>.
27323         (elf_get_dynamic_info): Moved to ...
27324         * elf/get-dynamic-info.h: Here.  New file.
27325         * elf/dynamic-link.h: Include "get-dynamic-info.h".
27326         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
27327         * elf/setup-vdso.h: Here.  New file.
27328         * elf/rtld.c: Include "setup-vdso.h".
27329         (dl_main): Call setup_vdso.
27330
27331 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
27332
27333         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
27334         creal in comment listing functions tested.  List finite, isinf,
27335         isnan, isless, islessequal, isgreater, isgreaterequal,
27336         islessgreater, isunordered, lgamma_r and pow10 as functions and
27337         macros not tested.  Mention which functions not tested are aliases
27338         for other functions.  Fix typo.  Note that signs of NaNs are not
27339         tested.
27340
27341         * scripts/config.guess: Update from config.git.
27342         * scripts/config.sub: Likewise.
27343
27344 2012-10-04  Roland McGrath  <roland@hack.frob.com>
27345
27346         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
27347         * misc/madvise.c (madvise): Renamed to __madvise.
27348         Make madvise a weak alias.
27349         * include/sys/mman.h: Declare __madvise.
27350         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
27351         * sysdeps/unix/syscalls.list
27352         (madvise): Make __madvise the strong name, and madvise a weak alias.
27353         * sysdeps/unix/sysv/linux/syscalls.list
27354         (madvise, mmap): Remove redundant entries.
27355         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
27356         * malloc/malloc.c (mtrim): Likewise.
27357         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
27358
27359 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27360
27361         * sysdeps/mach/hurd/dl-cache.c: File removed.
27362         * config.h.in (USE_LDCONFIG): New #undef.
27363         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
27364         * configure: Regenerated.
27365         * elf/Makefile (dl-routines): Add dl-cache only under
27366         [$(use-ldconfig) = yes].
27367         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
27368         cache on [USE_LDCONFIG].
27369         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
27370         [USE_LDCONFIG].
27371         * elf/rtld.c (dl_main): Likewise.
27372
27373 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
27374
27375         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
27376         _SC_LEVEL4_CACHE_LINESIZE.
27377
27378 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27379
27380         * sysdeps/unix/bsd/confstr.h: File removed.
27381
27382 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
27383
27384         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
27385         sys/sdt-config.h.
27386
27387 2012-10-02  Roland McGrath  <roland@hack.frob.com>
27388
27389         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
27390         Make 'mapoff' field ElfW(Off) rather than off_t.
27391
27392 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
27393
27394         * nscd/Makefile: Remove nscd-cflags and all its users.
27395         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
27396         (CFLAGS-nonlib): Add compiler flags for nscd modules.
27397
27398         [BZ #10631]
27399         * malloc.c (malloc_printerr): Clarify error message.
27400
27401 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
27402
27403         [BZ #14648]
27404         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27405         Set bit_FMA_Usable if FMA is supported.
27406         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
27407         macro.
27408         (bit_FMA4_Usable): Updated.
27409         (index_FMA_Usable): New macro.
27410         (CPUID_FMA): Likewise
27411         (HAS_FMA): Defined with bit_FMA_Usable.
27412
27413 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27414
27415         * bits/types.h (__swblk_t): Type removed.
27416         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
27417         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
27418         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27419         (__SWBLK_T_TYPE): Likewise.
27420         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
27421         (__SWBLK_T_TYPE): Likewise.
27422         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27423         (__SWBLK_T_TYPE): Likewise.
27424         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27425         (__SWBLK_T_TYPE): Likewise.
27426
27427 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
27428             Honza Horak <hhorak@redhat.com>
27429
27430         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
27431         (xdr_mapname): Use YPMAXMAP as maxsize.
27432         (xdr_peername): Use YPMAXPEER as maxsize.
27433         (xdr_keydat): Use YPAXRECORD as maxsize.
27434         (xdr_valdat): Use YPMAXRECORD as maxsize.
27435
27436 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27437
27438         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
27439
27440         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
27441         * csu/init-first.c: ... here.
27442         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
27443         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
27444         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27445         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27446         * sysdeps/i386/init-first.c: File removed.
27447         * sysdeps/sh/init-first.c: File removed.
27448
27449 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
27450
27451         [BZ #14645]
27452         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
27453         if x * y might underflow to zero and z is zero.
27454         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27455         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27456         * math/libm-test.inc (min_subnorm_value): New variable.
27457         (fma_test): Add more tests.
27458         (fma_test_towardzero): Likewise.
27459         (fma_test_downward): Likewise
27460         (fma_test_upward): Likewise.
27461         (initialize): Set min_subnorm_value.
27462
27463 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
27464
27465         [BZ #14638]
27466         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
27467         0 + 0.
27468         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
27469         mode for addition resulting in exact zero.
27470         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
27471         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
27472         exact 0 + 0.
27473         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27474         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27475         * math/libm-test.inc (fma_test): Add more tests.
27476         (fma_test_towardzero): New function.
27477         (fma_test_downward): Likewise.
27478         (fma_test_upward): Likewise.
27479         (main): Call the new functions.
27480
27481 2012-09-28  David S. Miller  <davem@davemloft.net>
27482
27483         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
27484
27485 2012-09-28  Roland McGrath  <roland@hack.frob.com>
27486
27487         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
27488         instead of SIGALRM.
27489
27490         * sysdeps/gnu/_G_config.h: Moved to ...
27491         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
27492         * sysdeps/mach/hurd/_G_config.h: Moved to ...
27493         * sysdeps/generic/_G_config.h: ... here.
27494
27495         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
27496
27497         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
27498
27499         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
27500         Conditionalize target on [libnss_test1.so-version].
27501
27502         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
27503
27504         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
27505         (elfobjdir): Move out of conditionals.
27506
27507         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
27508         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
27509         (__nss_lookup_function): Conditionalize label remove_from_tree on
27510         [!DO_STATIC_NSS || SHARED], matching its only use.
27511
27512 2012-09-28  David S. Miller  <davem@davemloft.net>
27513
27514         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
27515         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
27516         file.
27517         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27518         sysdep_routines.
27519         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27520         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
27521         when HWCAP_SPARC_CRYPTO is present.
27522
27523 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27524
27525         * io/tst-mknodat.c: Create a FIFO instead of a socket.
27526
27527 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
27528
27529         [BZ #6530]
27530         * stdio-common/vfprintf.c (process_string_arg): Revert
27531         2000-07-22 change.
27532
27533 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
27534
27535         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
27536         for testcase.
27537         * stdio-common/tst-sprintf.c: Include <locale.h>
27538         (main): Test sprintf's handling of incomplete multibyte
27539         characters.
27540
27541 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
27542
27543         * elf/dl-runtime.c (VERSYMIDX): Removed.
27544         * elf/dl-version.c (VERSYMIDX): Likewise.
27545         * elf/do-rel.h (VERSYMIDX): Likewise.
27546         (VALIDX): Likewise.
27547         * elf/dynamic-link.h (VERSYMIDX): Likewise.
27548         * elf/rtld.c (VALIDX): Likewise.
27549         (ADDRIDX): Likewise.
27550         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
27551         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
27552         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
27553         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
27554         (VALIDX): Likewise.
27555         (ADDRIDX): Likewise.
27556
27557 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27558
27559         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
27560
27561 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
27562
27563         [BZ #11438]
27564         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
27565         to global scope.
27566         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
27567         addresses are in the same scope as 192.0.2/24.
27568         * posix/gai.conf: Document new scope table defaults.
27569
27570 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27571
27572         [BZ #5298]
27573         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
27574         for ftell.  Compute offsets from write pointers instead.
27575         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27576
27577 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27578
27579         [BZ #14543]
27580         * libio/Makefile (tests): New test case tst-fseek.
27581         * libio/tst-fseek.c: New test case to verify that fseek/ftell
27582         combination works in wide mode.
27583         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
27584         state when the external buffer state changes.
27585
27586 2012-09-27  David S. Miller  <davem@davemloft.net>
27587
27588         [BZ #14376]
27589         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
27590         pass reloc->r_addend in as the 'high' argument to
27591         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
27592
27593         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27594
27595 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27596
27597         * rt/tst-aio2.c: Include <pthread.h>.
27598         * rt/tst-aio3.c: Likewise.
27599
27600 2012-09-27  Steve Ellcey  <sellcey@mips.com>
27601
27602         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
27603
27604 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
27605
27606         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
27607         contents on [SHARED].
27608
27609 2012-09-26  Marek Polacek  <polacek@redhat.com>
27610
27611         [BZ #14530]
27612         [BZ #13741]
27613         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
27614         for C++ and GCC <4.3 as well as for non GCC compilers.
27615
27616 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27617
27618         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27619
27620 2012-09-25  Roland McGrath  <roland@hack.frob.com>
27621
27622         * Makefile.in (all, install): Declare with .PHONY.
27623         Reported by Michael Hope <michael.hope@linaro.org>.
27624
27625 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27626
27627         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
27628         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
27629         system header.
27630         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
27631         Likewise.
27632         (sydep_routines): Add the new and the internal functions.
27633         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
27634         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
27635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
27636         (GLIBC_2.17): Add the new function.
27637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
27638         (GLIBC_2.17): Likewise.
27639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
27640         (GLIBC_2.17): Likewise.
27641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
27642         (GLIBC_2.17): Likewise.
27643         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
27644
27645 2012-09-25  Alan Modra  <amodra@gmail.com>
27646
27647         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
27648         Add release barrier before setting once_control to say
27649         initialisation is done.  Add hints on lwarx.  Use macro in
27650         place of isync.
27651         (clear_once_control): Add release barrier.
27652
27653 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27654
27655         [BZ #13629]
27656         * math/s_clog.c (__clog): Handle more values close to |z| = 1
27657         specially.
27658         * math/s_clog10.c (__clog10): Likewise.
27659         * math/s_clog10f.c (__clog10f): Likewise.
27660         * math/s_clog10l.c (__clog10l): Likewise.
27661         * math/s_clogf.c (__clogf): Likewise.
27662         * math/s_clogl.c (__clogl): Likewise.
27663         * math/Makefile (libm-calls): Add x2y2m1.
27664         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
27665         (__x2y2m1): Likewise.
27666         (__x2y2m1l): Likewise.
27667         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
27668         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
27669         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
27670         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
27671         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
27672         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
27673         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
27674         * sysdeps/i386/fpu/libm-test-ulps: Update.
27675         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27676
27677         [BZ #14621]
27678         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
27679         int as type of variable DEPTH.
27680         (glob): Use size_t instead of int as type of variables NEWCOUNT
27681         and OLD_PATHC.
27682
27683 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27684
27685         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27686         Add s_sincosf-sse2.
27687         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
27688         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
27689         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
27690         macros for using routine as __sincosf_ia32.
27691         Use macro for function declaration and weak_alias.
27692         * sysdeps/i386/fpu/libm-test-ulps: Update.
27693
27694         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
27695         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27696
27697         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
27698         subnormal argument.
27699         * math/s_cexpf.c (__cexpf): Likewise.
27700         * math/s_csinf.c (__csinf): Likewise.
27701         * math/s_csinhf.c (__csinhf): Likewise.
27702         * math/s_ctanf.c (__ctanf): Likewise.
27703         * math/s_ctanhf.c (__ctanhf): Likewise.
27704         * math/s_ccosh.c (__ccoshf): Likewise.
27705         * math/s_cexp.c (__cexpl): Likewise.
27706         * math/s_csin.c (__csin): Likewise.
27707         * math/s_csinh.c (__csinh): Likewise.
27708         * math/s_ctan.c (__ctan): Likewise.
27709         * math/s_ctanh.c (ctanh): Likewise.
27710         * math/s_ccoshl.c (__ccoshl): Likewise.
27711         * math/s_cexpl.c (__cexpl): Likewise.
27712         * math/s_csinl.c (__csinl): Likewise.
27713         * math/s_csinhl.c (__csinhl): Likewise.
27714         * math/s_ctanl.c (__ctanl): Likewise.
27715         * math/s_ctanhl.c (__ctanhl): Likewise.
27716
27717 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27718
27719         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
27720         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
27721         (_IO_off_t): Define to __off_t, not _G_off_t.
27722         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
27723         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
27724         (_IO_wint_t): Define to wint_t, not _G_wint_t.
27725         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
27726         type of __dummy and __dummy2 fields.
27727         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
27728         (_G_ssize_t): Likewise.
27729         (_G_off_t): Likewise.
27730         (_G_pid_t): Likewise.
27731         (_G_uid_t): Likewise.
27732         (_G_wchar_t): Likewise.
27733         (_G_wint_t): Likewise.
27734         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
27735         (_G_ssize_t): Likewise.
27736         (_G_off_t): Likewise.
27737         (_G_pid_t): Likewise.
27738         (_G_uid_t): Likewise.
27739         (_G_wchar_t): Likewise.
27740         (_G_wint_t): Likewise.
27741         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
27742         (_G_ssize_t): Likewise.
27743         (_G_off_t): Likewise.
27744         (_G_pid_t): Likewise.
27745         (_G_uid_t): Likewise.
27746         (_G_wchar_t): Likewise.
27747         (_G_wint_t): Likewise.
27748
27749 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27750
27751         * malloc/arena.c: Include malloc-sysdep.h.
27752         (shrink_heap): Use check_may_shrink_heap to decide if madvise
27753         is sufficient to shrink the heap or an unmap is needed.
27754         * sysdeps/generic/malloc-sysdep.h: New file.  Define
27755         new function check_may_shrink_heap.
27756         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
27757         new function check_may_shrink_heap.
27758
27759 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27760
27761         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
27762         comments.
27763
27764 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
27765
27766         * catgets/test-gencat.sh: Add "set -e".
27767         * elf/tst-pathopt.sh: Likewise.
27768         * grp/tst_fgetgrent.sh: Likewise.
27769         * iconvdata/run-iconv-test.sh: Likewise.
27770         * intl/tst-gettext.sh: Likewise.
27771         * intl/tst-gettext2.sh: Likewise.
27772         * intl/tst-gettext4.sh: Likewise.
27773         * intl/tst-gettext6.sh: Likewise.
27774         * intl/tst-translit.sh: Likewise.
27775         * io/ftwtest-sh: Likewise.
27776         * libio/test-freopen.sh: Likewise.
27777         * malloc/tst-mtrace.sh: Likewise.
27778         * posix/globtest.sh: Likewise.
27779         * posix/tst-getconf.sh: Likewise.
27780         * posix/wordexp-tst.sh: Likewise.
27781         * stdio-common/tst-printf.sh: Likewise.
27782         * stdio-common/tst-unbputc.sh: Likewise.
27783         * stdlib/tst-fmtmsg.sh: Likewise.
27784         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27785         * catgets/Makefile: Do not specify -e option when running
27786         testsuite shell scripts.
27787         * elf/Makefile: Likewise.
27788         * grp/Makefile: Likewise.
27789         * iconvdata/Makefile: Likewise.
27790         * intl/Makefile: Likewise.
27791         * io/Makefile: Likewise.
27792         * libio/Makefile: Likewise.
27793         * malloc/Makefile: Likewise.
27794         * posix/Makefile: Likewise.
27795         * stdio-common/Makefile: Likewise.
27796         * stdlib/Makefile: Likewise.
27797         * sysdeps/x86_64/Makefile: Likewise.
27798
27799         * io/ftwtest-sh: Add copyright header.
27800         * posix/globtest.sh: Likewise.
27801         * posix/tst-getconf.sh: Likewise.
27802         * posix/wordexp-tst.sh: Likewise.
27803         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27804
27805 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
27806
27807         [BZ #13679]
27808         * Makeconfig (+link): Defined as $(+link-static) if
27809         $(build-shared) isn't yes.
27810         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
27811         isn't yes.
27812         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
27813
27814         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
27815
27816         [BZ #14562]
27817         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
27818         new chunk size with MALLOC_ALIGN_MASK.
27819
27820 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
27821
27822         [BZ #5044]
27823         * stdio-common/printf_fphex.c: Include <stdbool.h> and
27824         <rounding-mode.h>.
27825         (__printf_fphex): Determine rounding using get_rounding_mode and
27826         round_away.
27827         * stdio-common/tst-printf-round.c (struct hex_test): New
27828         structure.
27829         (hex_tests): New variable.
27830         (test_hex_in_one_mode): New function.
27831         (do_test): Also run tests for hex float output.
27832
27833 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
27834
27835         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27836         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27837         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27838         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27839         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27840         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
27841         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27842         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27843
27844 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
27845
27846         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
27847         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
27848         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
27849         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
27850
27851 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
27852
27853         [BZ #14579]
27854         * elf/rtld.c (dl_main): Limit the check for self loading to normal
27855         mode only.
27856         * elf/tst-rtld-load-self.sh: New test.
27857         * elf/Makefile: Run it.
27858
27859 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
27860
27861         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
27862         (tst-writev-ENV): Remove.
27863         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
27864
27865 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
27866
27867         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
27868
27869 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
27870
27871         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
27872         unconditional.
27873         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
27874         Likewise.
27875         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
27876         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
27877         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
27878         Likewise.
27879
27880 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
27881
27882         [BZ #14587]
27883         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
27884         * config.make.in (have-cpp-asm-debuginfo): Removed.
27885         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
27886         * configure: Regenerated.
27887
27888 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
27889
27890         [BZ #5044]
27891         * stdio-common/printf_fp.c: Include <stdbool.h> and
27892         <rounding-mode.h>.
27893         (___printf_fp): Determine rounding using get_rounding_mode and
27894         round_away.
27895         * stdio-common/tst-printf-round.c: New file.
27896         * stdio-common/Makefile (tests): Add tst-printf-round.
27897         (link-libm): New variable.
27898         ($(objpfx)tst-printf-round): Depend in $(link-libm).
27899
27900 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
27901
27902         [BZ #14576]
27903         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
27904         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
27905         Likewise.
27906         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
27907         Likewise.
27908
27909 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
27910
27911         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
27912         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27913         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27914         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27915
27916 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
27917
27918         [BZ #14518]
27919         * include/rounding-mode.h: New file.
27920         * sysdeps/generic/get-rounding-mode.h: Likewise.
27921         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
27922         * stdlib/strtod_l.c: Include <rounding-mode.h>.
27923         (MAX_VALUE): New macro.
27924         (MIN_VALUE): Likewise.
27925         (overflow_value): New function.
27926         (underflow_value): Likewise.
27927         (round_and_return): Use overflow_value and underflow_value to
27928         determine return values in overflow and underflow cases.  Use
27929         round_away to determine rounding depending on rounding mode.
27930         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
27931         determine return values in overflow and underflow cases.
27932         * stdlib/tst-strtod-round.c: Include <fenv.h>.
27933         (struct test_results): New structure.
27934         (struct test): Use struct test_results to store expected results
27935         for all rounding modes.
27936         (TEST): Include expected results for all rounding modes.
27937         (test_in_one_mode): New function.
27938         (do_test): Use test_in_one_mode to compute and check results.
27939         Check results for all rounding modes.
27940         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
27941         $(link-libm).
27942
27943 2012-12-09  Allan McRae  <allan@archlinux.org>
27944
27945         * sysdeps/i386/fpu/libm-test-ulps: Update
27946
27947 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
27948
27949         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
27950         (_G_int32_t): Likewise.
27951         (_G_uint16_t): Likewise.
27952         (_G_uint32_t): Likewise.
27953         (_G_HAVE_BOOL): Likewise.
27954         (_G_HAVE_ATEXIT): Likewise.
27955         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27956         (_G_HAVE_IO_FILE_OPEN): Likewise.
27957         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
27958         (_G_int32_t): Likewise.
27959         (_G_uint16_t): Likewise.
27960         (_G_uint32_t): Likewise.
27961         (_G_HAVE_BOOL): Likewise.
27962         (_G_HAVE_ATEXIT): Likewise.
27963         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27964         (_G_HAVE_IO_FILE_OPEN): Likewise.
27965         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
27966         (_G_int32_t): Likewise.
27967         (_G_uint16_t): Likewise.
27968         (_G_uint32_t): Likewise.
27969         (_G_HAVE_BOOL): Likewise.
27970         (_G_HAVE_ATEXIT): Likewise.
27971         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27972         (_G_HAVE_IO_FILE_OPEN): Likewise.
27973
27974 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
27975
27976         * csu/libc-tls.c: Update copyright years.
27977
27978 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
27979
27980         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
27981         [!_G_USING_THUNKS]: Remove conditional code.
27982         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
27983         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
27984
27985         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
27986         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
27987         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27988         (_G_VTABLE_LABEL_PREFIX): Likewise.
27989         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27990         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27991         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27992         (_G_VTABLE_LABEL_PREFIX): Likewise.
27993         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27994         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27995         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27996         (_G_VTABLE_LABEL_PREFIX): Likewise.
27997         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27998
27999 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
28000
28001         * libio/Makefile: Include ../Makeconfig before tests.
28002         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
28003         only if $(build-shared) is yes.
28004
28005         * iconv/gconv_db.c: Update copyright years.
28006
28007 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28008
28009         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
28010         unwind info if defined PIC. Fix special cases description.
28011         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
28012
28013         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
28014         DP_HI_MASK entry.
28015         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
28016
28017 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
28018
28019         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
28020
28021         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
28022         is NULL.
28023
28024         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
28025         (LDLIBS-tst-chk4): This.
28026         (LDFLAGS-tst-chk5): Renamed to ...
28027         (LDLIBS-tst-chk5): This.
28028         (LDFLAGS-tst-chk6): Renamed to ...
28029         (LDLIBS-tst-chk6): This.
28030         (LDFLAGS-tst-lfschk4): Renamed to ...
28031         (LDLIBS-tst-lfschk4): This.
28032         (LDFLAGS-tst-lfschk5): Renamed to ...
28033         (LDLIBS-tst-lfschk5): This.
28034         (LDFLAGS-tst-lfschk6): Renamed to ...
28035         (LDLIBS-tst-lfschk6): This.
28036
28037         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
28038         on $(common-objpfx)soversions.mk.
28039
28040 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
28041
28042         [BZ #10014]
28043         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
28044         example host name.
28045
28046 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
28047
28048         * malloc/arena.c (arena_get_retry): New function that gets
28049         another arena for the caller to try its request on.
28050         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
28051         current arena cannot fulfill the request.
28052         (__libc_memalign): Likewise.
28053         (__libc_memalign): Likewise.
28054         (__libc_pvalloc): Likewise.
28055         (__libc_calloc): Likewise.
28056
28057 2012-09-05  John Tobey  <john.tobey@gmail.com>
28058
28059         [BZ #13542]
28060         * manual/arith.texi (Operations on Complex): Fix description
28061         of carg branch cut.
28062
28063 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28064
28065         [BZ #10014]
28066         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
28067         host name.
28068
28069         [BZ #10038]
28070         * manual/memory.texi (Memory): Make order of menu items match
28071         order of sections.
28072
28073 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28074
28075         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
28076         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
28077         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
28078
28079 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28080
28081         * csu/libc-tls.c (static_dtv): Renamed to ...
28082         (_dl_static_dtv): This.  Make it global.
28083         (_dl_initial_dtv): Removed.
28084         (__libc_setup_tls): Updated.
28085         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
28086         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
28087         DL_INITIAL_DTV.
28088
28089 2012-09-06  Petr Machata  <pmachata@redhat.com>
28090
28091         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
28092         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
28093         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
28094         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
28095
28096 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28097
28098         [BZ #14545]
28099         * csu/libc-tls.c (_dl_initial_dtv): New variable.
28100         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
28101         freeing dtv[-1].
28102
28103 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28104
28105         [BZ #14544]
28106         * Makeconfig (link-static-before-libc): Replace $(+prector)
28107         with $(+prectorT).
28108         (link-static-after-libc): Replace $(+postctor) with
28109         $(+postctorT).
28110         (link-bounded): Replace $(+prector)/$(+postctor) with
28111         $(+prectorT)/$(+postctorT).
28112         (+prectorT): New macro.
28113         (+postctorT): Likewise.
28114
28115 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28116
28117         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
28118         (round_str): Handle values above the maximum for IBM long double
28119         as inexact.
28120         * stdlib/tst-strtod-round.c (tests): Regenerated.
28121
28122 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28123
28124         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
28125         assembler flag.
28126         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
28127         zarch_nohighgprs around the zarch optimized routines.
28128         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
28129         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
28130         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
28131         for zarch.
28132
28133 2012-09-05  David S. Miller  <davem@davemloft.net>
28134
28135         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28136
28137         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
28138         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
28139         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
28140         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
28141         entries.
28142
28143 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28144
28145         * malloc/arena.c: Fold copyright years.
28146         * malloc/mcheck.c, malloc/memusage.c: Likewise.
28147
28148 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28149
28150         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
28151
28152 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28153
28154         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
28155
28156 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28157
28158         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
28159         change internal state upon failure.
28160
28161 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28162
28163         * malloc/mcheck.c (mcheck_check_all): Fix typo.
28164         * malloc/memusage.c (mmap): Likewise.
28165         (mmap64, mremap): Likewise.  Adjust name in comment.
28166
28167 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28168
28169         * libio/fileops.c: Fix typos in comments.
28170         * libio/oldfileops.c: Likewise.
28171         * libio/wfileops.c: Likewise.
28172
28173 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28174
28175         [BZ #1349]
28176         * malloc/Makefile (tests): Add tst-malloc-usable test case.
28177         (tst-malloc-usable-ENV): Set environment for test case.
28178         * malloc/hooks.c (malloc_check_get_size): New function to get
28179         requested size.
28180         * malloc/malloc.c (musable): Use malloc_check_get_size.
28181         * malloc/tst-malloc-usable.c: New test case.
28182
28183 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28184
28185         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
28186
28187 2012-09-05  Allan McRae  <allan@archlinux.org>
28188
28189         [BZ #13966]
28190         * configure.in (CXX_SYSINCLUDES): Use compiler output to
28191         determine header location.
28192         * configure: Regenerated.
28193
28194 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28195
28196         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
28197         float format.
28198         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
28199         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
28200         format.
28201         (test): Regenerate.
28202
28203 2012-09-04  David S. Miller  <davem@davemloft.net>
28204
28205         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
28206         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
28207         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
28208
28209 2012-09-04  Florian Weimer  <fweimer@redhat.com>
28210
28211         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
28212         failures.
28213
28214         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
28215
28216 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
28217
28218         [BZ #9914]
28219         * libio/iogetdelim.c: Include <limits.h>.
28220         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
28221         + len + 1 would overflow.
28222
28223 2012-09-03  Andreas Jaeger  <aj@suse.de>
28224
28225         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28226         * sysdeps/i386/fpu/libm-test-ulps: Update.
28227
28228 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28229
28230         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
28231         Add s_sinf-sse2, s_conf-sse2.
28232
28233         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
28234         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
28235         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
28236         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
28237
28238         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
28239         for using routine as __sinf_ia32.
28240         Use macro for function declaration and weak_alias.
28241         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
28242         for using routine as __cosf_ia32.
28243         Use macro for function declaration and weak_alias.
28244
28245         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
28246         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
28247
28248         * sysdeps/x86_64/fpu/s_sinf.S: New file.
28249         * sysdeps/x86_64/fpu/s_cosf.S: New file.
28250         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28251
28252         * math/libm-test.inc (cos_test): Add more test cases.
28253         (sin_test): Likewise.
28254         (sincos_test): Likewise.
28255
28256 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28257
28258         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
28259         (IFUNC_RESOLVE): Make pointers to the specialized implementations
28260         hidden.
28261         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
28262
28263 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
28264
28265         [BZ #14538]
28266         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
28267         first element of the GOT.
28268         (elf_machine_load_address): Return the difference between
28269         the runtime address of _DYNAMIC and elf_machine_dynamic ().
28270
28271 2012-09-01  Allan McRae  <allan@archlinux.org>
28272
28273         [BZ #13412]
28274         * configure.in (AWK): Require gawk version 3.0 or later.
28275         * configure: Regenerated.
28276
28277 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
28278
28279         * sysdeps/unix/sysv/linux/kernel-features.h
28280         (__ASSUME_POSIX_CPU_TIMERS): Remove.
28281         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28282         [__NR_clock_getres]: Make code unconditional.
28283         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
28284         (clock_getcpuclockid): Remove code left unreachable by removal of
28285         conditionals.
28286         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
28287         code unconditional.
28288         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28289         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28290         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
28291         Make code unconditional.
28292         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28293         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28294         * sysdeps/unix/sysv/linux/clock_settime.c
28295         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
28296         conditional code.
28297         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
28298         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28299
28300 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
28301
28302         [BZ #14476]
28303         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
28304         scripts/test-installation.pl.
28305
28306         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
28307         and $ld_so_version if it is set.
28308
28309 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28310
28311         [BZ #14516]
28312         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
28313         failure if reading from procfs failed.
28314         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
28315
28316 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28317
28318         * sysdeps/unix/sysv/linux/kernel-features.h
28319         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
28320         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28321         Remove conditional code.
28322         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28323         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
28324         Remove conditional code.
28325         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28326         * sysdeps/unix/sysv/linux/i386/fxstat.c
28327         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28328         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28329         * sysdeps/unix/sysv/linux/i386/fxstatat.c
28330         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28331         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28332         * sysdeps/unix/sysv/linux/i386/lxstat.c
28333         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28334         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28335         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
28336         Remove conditional code.
28337         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28338         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28339         Remove conditional code.
28340         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28341         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
28342         <kernel-features.h>.
28343         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
28344         Remove.
28345         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
28346         Remove conditional code.
28347         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28348         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
28349         Remove conditional.
28350
28351 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
28352
28353         [BZ #5400]
28354         * NEWS: Add fixed bug number.
28355
28356 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28357
28358         [BZ #14519]
28359         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
28360         underflowing exponent in case of negative sign.
28361         * stdlib/tst-strtod-round-data: Add more tests.
28362         * stdlib/tst-strtod-round.c (tests): Regenerated.
28363
28364         [BZ #3479]
28365         * stdlib/strtod_l.c (NDIG): Remove.
28366         (HEXNDIG): Likewise.
28367         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
28368         smallest representable value.
28369         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
28370         lie within an exact representation of 1/2 ulp of the result.
28371         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
28372         unconditionally.
28373         (TENS_P9_IDX): Define unconditionally.
28374         (TENS_P9_SIZE): Likewise.
28375         (TENS_P10_IDX): Likewise.
28376         (TENS_P10_SIZE): Likewise.
28377         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
28378         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
28379         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
28380         entries for 10^2^13 and 10^2^14.
28381         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
28382         (TENS_P13_IDX): Define.
28383         (TENS_P13_SIZE): Likewise.
28384         (TENS_P14_IDX): Likewise.
28385         (TENS_P14_SIZE): Likewise.
28386         (_fpioconst_pow10): Change array size to
28387         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
28388         unconditional.
28389         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
28390         1024]: Add entries for 10^2^13 and 10^2^14.
28391         [LAST_POW10 > _LAST_POW10]: Remove #error.
28392         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
28393         (_fpioconst_pow10): Change array size to
28394         FPIOCONST_POW10_ARRAY_SIZE.
28395         * stdlib/gen-fpioconst.c: New file.
28396         * stdlib/gen-tst-strtod-round.c: Likewise.
28397         * stdlib/tst-strtod-round-data: Likewise.
28398         * stdlib/tst-strtod-round.c: Likewise.
28399         * stdlib/Makefile (tests): Add tst-strtod-round.
28400
28401         [BZ #14459]
28402         * stdlib/strtod_l.c: Include <stdint.h>.
28403         (NDEBUG): Do not define.
28404         (round_and_return): Change EXPONENT parameter to type intmax_t.
28405         Rearrange calculations to avoid internal overflow possibilities.
28406         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
28407         Rearrange calculations to avoid internal overflow possibilities.
28408         Assert that number fits inside MPNSIZE limbs.
28409         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
28410         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
28411         calculations and add assertions to avoid internal overflow
28412         possibilities.  Add casts to avoid signed/unsigned operations.
28413         * stdlib/tst-strtod-overflow.c: New file.
28414         * stdlib/Makefile (tests): Add tst-strtod-overflow.
28415
28416 2012-08-25  Marek Polacek  <polacek@redhat.com>
28417
28418         * time/time.h: Fix some typos in comments.
28419
28420 2012-08-23  Roland McGrath  <roland@hack.frob.com>
28421
28422         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
28423         * posix/tst-rfc3484-2.c: Likewise.
28424         * posix/tst-rfc3484-3.c: Likewise.
28425
28426 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
28427
28428         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
28429         (EF_ARM_ABI_FLOAT_HARD): Likewise.
28430
28431 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
28432
28433         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
28434         #include of fxstatat64.c.
28435
28436 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28437
28438         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
28439         * shadow/getspent_r.c: Likewise.
28440         * shadow/getspnam.c: Likewise.
28441         * shadow/getspnam_r.c: Likewise.
28442         * gshadow/getsgent.c: Likewise.
28443         * gshadow/getsgent_r.c: Likewise.
28444         * gshadow/getsgnam.c: Likewise.
28445         * gshadow/getsgnam_r.c: Likewise.
28446         * inet/getnetbyad.c: Likewise.
28447         * inet/getnetbyad_r.c: Likewise.
28448         * inet/getnetbynm.c: Likewise.
28449         * inet/getnetbynm_r.c: Likewise.
28450         * inet/getnetent.c: Likewise.
28451         * inet/getnetent_r.c: Likewise.
28452         * inet/getproto.c: Likewise.
28453         * inet/getproto_r.c: Likewise.
28454         * inet/getprtent.c: Likewise.
28455         * inet/getprtent_r.c: Likewise.
28456         * inet/getprtname.c: Likewise.
28457         * inet/getprtname_r.c: Likewise.
28458         * inet/getrpcbyname.c: Likewise.
28459         * inet/getrpcbyname_r.c: Likewise.
28460         * inet/getrpcbynumber.c: Likewise.
28461         * inet/getrpcbynumber_r.c: Likewise.
28462         * inet/getrpcent.c: Likewise.
28463         * inet/getrpcent_r.c: Likewise.
28464         * inet/getaliasent.c: Likewise.
28465         * inet/getaliasent_r.c: Likewise.
28466         * inet/getaliasname.c: Likewise.
28467         * inet/getaliasname_r.c: Likewise.
28468         * nscd/getgrgid_r.c: Likewise.
28469         * nscd/getgrnam_r.c: Likewise.
28470         * nscd/gethstbyad_r.c: Likewise.
28471         * nscd/gethstbynm3_r.c: Likewise.
28472         * nscd/getpwnam_r.c: Likewise.
28473         * nscd/getpwuid_r.c: Likewise.
28474         * nscd/getsrvbynm_r.c: Likewise.
28475         * nscd/getsrvbypt_r.c: Likewise.
28476         * nscd/gai.c: Likewise.
28477
28478         * configure.in (build_nscd): New substituted variable, set
28479         by --disable-build-nscd and defaults to $use_nscd.
28480         * configure: Regenerated.
28481         * config.make.in (build-nscd): New substituted variable.
28482         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
28483         Change conditional to require [$(build-nscd) = yes] as well.
28484         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
28485
28486         [BZ# 13696]
28487         * configure.in (use_nscd): New substituted variable, set by
28488         --disable-nscd.  If enabled, define USE_NSCD.
28489         * configure: Regenerated.
28490         * config.h.in: Add USE_NSCD.
28491         * config.make.in (use-nscd): New substituted variable.
28492         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
28493         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
28494         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
28495         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
28496         (CFLAGS-getgrnam_r.c): Likewise.
28497         (CFLAGS-initgroups.c): Likewise.
28498         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
28499         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
28500         Variables removed.
28501         * inet/getnetgrent_r.c
28502         (nscd_setnetgrent): New function, broken out of ...
28503         (setnetgrent): ... here.  Call it.
28504         (innetgr): Conditionalize nscd bits on [USE_NSCD].
28505         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
28506         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
28507         * nscd/Makefile (routines, aux): Move definitions after include of
28508         Makeconfig.  Conditionalize on [$(use-nscd) != no].
28509         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
28510         Conditionalize on [USE_NSCD].
28511         (is_nscd, nscd_init_cb): Likewise.
28512         (nss_load_library): Conditionalize init callback on [USE_NSCD].
28513         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
28514         * nss/nss_db/db-init.c: Likewise.
28515         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
28516         [USE_NSCD].
28517         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
28518         (make_request): Use it.
28519         (cache_valid_p): New function.
28520         (__check_pf): Use it.
28521         * NEWS: Add item for --disable-nscd.
28522
28523 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
28524
28525         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
28526         to support sed >= 4.2.1-20-ga9bf076.
28527         * configure: Regenerated.
28528
28529 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28530
28531         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
28532         Conditionalize whole body on [IREL].
28533
28534 2012-08-22  Jeff Law <law@redhat.com>
28535
28536         [BZ #14505]
28537         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
28538         if the family is PF_UNSPEC.
28539
28540 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
28541
28542         * Makerules (lib-version): Rename from V.
28543         (install-lib-nosubdir): Change V to lib-version.
28544
28545 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
28546
28547         [BZ #14252]
28548         * powerpc32/power6/wcschr.c: New file.
28549         * powerpc32/power6/wcscpy.c: New file.
28550         * powerpc32/power6/wcsrchr.c: New file.
28551         * powerpc64/power6/wcschr.c: New file.
28552         * powerpc64/power6/wcscpy.c: New file.
28553         * powerpc64/power6/wcsrchr.c: New file.
28554
28555 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28556
28557         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
28558         (two_way_short_needle): Use it.
28559         * string/strstr.c (AVAILABLE1_USES_J): Define.
28560         * string/strcasestr.c: Likewise.
28561
28562         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
28563         array references.
28564         * string/strcasestr.c (TOLOWER): Make side-effect safe.
28565
28566         [BZ #11607]
28567         * NEWS: Add an entry.
28568         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
28569         define their defaults.
28570         (two_way_short_needle): Detect end-of-string on-the-fly.
28571         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
28572         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
28573         * string/bug-strcasestr1.c: New test.
28574         * string/Makefile: Run it.
28575
28576 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28577
28578         [BZ #11607]
28579         * string/str-two-way.h (two_way_short_needle): Optimize matching of
28580         the first character.
28581
28582 2012-08-21  Roland McGrath  <roland@hack.frob.com>
28583
28584         * csu/elf-init.c (__libc_csu_irel): Function removed.
28585         * csu/libc-start.c (apply_irel): New function.
28586         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
28587
28588 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
28589
28590         * sysdeps/unix/sysv/linux/kernel-features.h
28591         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
28592         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
28593         <kernel-features.h>.
28594         [__NR_fadvise64_64]: Make code unconditional.
28595         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
28596         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28597         !__NR_fadvise64_64)]: Likewise.
28598         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28599         !__NR_fadvise64_64))]: Likewise.
28600         [__NR_fadvise64]: Make code unconditional.
28601         [!__NR_fadvise64]: Remove conditional code.
28602         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
28603         <kernel-features.h>.
28604         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28605         unconditional.
28606         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28607         conditional code.
28608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
28609         not include <kernel-features.h>.
28610         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28611         unconditional.
28612         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28613         conditional code.
28614         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
28615         include <kernel-features.h>.
28616         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28617         unconditional.
28618         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28619         conditional code.
28620
28621 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28622
28623         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
28624         slight instruction rearrangements per scrollpipe analysis.
28625         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
28626
28627 2012-08-20  Roland McGrath  <roland@hack.frob.com>
28628
28629         * manual/syslog.texi (syslog; vsyslog, closelog):
28630         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
28631         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
28632
28633         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
28634         DSOCAPS to match condition on defining it.
28635
28636 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
28637
28638         * sysdeps/unix/sysv/linux/kernel-features.h
28639         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
28640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
28641         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28642         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
28644         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28645         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
28647         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28648         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28649
28650         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
28651         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
28652
28653         * sysdeps/unix/sysv/linux/kernel-features.h
28654         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
28655         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
28656         unconditional.
28657         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28658         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
28659         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28660         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28661         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
28662         Make code unconditional.
28663         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28664         (__mmap64) [!__NR_mmap2]: Likewise.
28665         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
28666         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28667         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28668         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
28669         [__NR_mmap2]: Make code unconditional.
28670         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28671         (__mmap64) [!__NR_mmap2]: Likewise.
28672
28673 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28674
28675         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
28676
28677 2012-08-18  Andreas Jaeger  <aj@suse.de>
28678
28679         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
28680
28681 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28682
28683         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
28684         * include/unistd.h (__have_sock_cloexec): Likewise.
28685         (__have_pipe2): Likewise.
28686         (__have_dup3): Likewise.
28687
28688 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28689
28690         [BZ #9685]
28691         * include/unistd.h (__have_pipe2): Change define into an extern int.
28692         (__have_dup3): Likewise.
28693         * socket/have_sock_cloexec.c: Include fcntl.h.
28694         (__have_pipe2): New variable.
28695         (__have_dup3): Likewise.
28696
28697 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
28698
28699         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
28700
28701 2012-08-17  Marek Polacek  <polacek@redhat.com>
28702
28703         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
28704         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
28705
28706 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28707
28708         * configure.in: Add AC_SUBST for sysheaders.
28709         * configure: Regenerated.
28710         * config.make.in (sysheaders): New substituted variable.
28711
28712         * sysdeps/unix/mkfifo.c: Moved ...
28713         * sysdeps/posix/mkfifo.c: ... here.
28714         * sysdeps/unix/mkfifoat.c: Moved ...
28715         * sysdeps/posix/mkfifoat.c: ... here.
28716
28717         * sysdeps/unix/utime.c: Moved ...
28718         * sysdeps/posix/utime.c: ... here.
28719
28720         * sysdeps/unix/time.c: Moved ...
28721         * sysdeps/posix/time.c: ... here.
28722         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
28723         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
28724
28725         * sysdeps/unix/nice.c: Moved ...
28726         * sysdeps/posix/nice.c: ... here.
28727
28728         * sysdeps/unix/alarm.c: Moved ...
28729         * sysdeps/posix/alarm.c: ... here.
28730
28731         * intl/Makefile ($(codeset_mo)): Depend on the input file.
28732
28733 2012-08-17  Jeff Law <law@redhat.com>
28734
28735         * intl/Makefile (codeset_mo): New variable.
28736         ($(codeset_mo)): New target.
28737         (tst-codeset.out): Depend on that.  Remove explicit rule.
28738         (tst-gettext3.out, tst-gettext5.out): Likewise.
28739         (LOCPATH-ENV, tst-codeset-ENV): New variables.
28740         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
28741         * intl/tst-codeset.sh: Remove.
28742         * intl/tst-gettext3.sh: Likewise.
28743         * intl/tst-gettext5.sh: Likewise.
28744
28745 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28746
28747         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
28748         * sysdeps/unix/syscalls.list: ... here.
28749
28750         * sysdeps/posix/getaddrinfo.c
28751         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
28752         (gaiconf_init, gaiconf_reload): Use them.
28753         [!_STATBUF_ST_NSEC]
28754         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
28755         Define using time_t rather than struct timespec.
28756
28757         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
28758         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
28759         Macros removed.
28760         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
28761         [!NO_THREADS].
28762         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
28763         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
28764         Likewise.
28765
28766         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
28767         __libc_cleanup_push argument.
28768
28769         * bits/param.h: New file.
28770         * misc/sys/param.h: New file.
28771         * include/sys/param.h: New file.
28772         * misc/Makefile (headers): Add bits/param.h.
28773         * sysdeps/generic/sys/param.h: File removed.
28774         * sysdeps/unix/sysv/linux/bits/param.h: New file.
28775         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
28776         * sysdeps/mach/hurd/bits/param.h: New file.
28777         * sysdeps/mach/hurd/sys/param.h: File removed.
28778
28779         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
28780         last change.
28781
28782         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
28783         [_IO_MTSAFE_IO].
28784         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
28785         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
28786         New macros.
28787
28788         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
28789         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
28790         rather than -D_IO_MTSAFE_IO conditionally.
28791         * stdio-common/Makefile (CPPFLAGS): Likewise.
28792         * wcsmbs/Makefile (CPPFLAGS): Likewise.
28793         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
28794         Use $(libio-mtsafe).
28795         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
28796         of -D_IO_MTSAFE_IO.
28797         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
28798         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
28799         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
28800         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
28801         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
28802         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
28803         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
28804         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
28805         (CFLAGS-fread_u_chk.c): Likewise.
28806         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
28807         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
28808         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
28809         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
28810         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
28811         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
28812         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
28813         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
28814         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
28815
28816         * libio/Makefile: Test [$(libc-reentrant) = yes]
28817         instead of [$(filter %REENTRANT, $(defines)) nonempty].
28818
28819         * Makeconfig
28820         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
28821         * sysdeps/pthread/configure: File removed.
28822         * sysdeps/pthread/Makeconfig: New file.
28823         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
28824         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
28825
28826 2012-08-16  Gary Benson  <gbenson@redhat.com>
28827
28828         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
28829         unmapping the first object in a namespace.
28830
28831 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28832
28833         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
28834         (__internal_setnetgrent): ... this.  Add internal_function to
28835         definition.  Add libc_hidden_def.
28836         (setnetgrent): Update caller.
28837         (internal_endnetgrent): Renamed to ...
28838         (__internal_endnetgrent): ... this.  Add internal_function to
28839         definition.  Add libc_hidden_def.
28840         (endnetgrent): Update caller.
28841         (internal_getnetgrent_r): Renamed to ...
28842         (__internal_getnetgrent_r): ... this.  Add internal_function to
28843         definition.  Add libc_hidden_def.
28844         (__getnetgrent_r): Update caller.
28845         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
28846
28847 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28848
28849         * stdlib/longlong.h: Update from GCC.
28850
28851 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28852
28853         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
28854         on _QL, which is set by umul_ppmm but never used.
28855         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
28856         variables, which are set by GMP macros but never used.
28857         * stdio-common/_itowa.c (_itowa): Likewise.
28858         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
28859         * stdlib/mod_1.c (mpn_mod_1): Likewise.
28860
28861 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
28862
28863         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
28864         struct La_sh_regs is not constant.
28865         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
28866         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
28867         and struct La_sparc64_regs are not constant.
28868
28869 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28870
28871         * sysdeps/unix/sysv/linux/kernel-features.h
28872         (__ASSUME_POSIX_TIMERS): Remove.
28873         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28874         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28875         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
28876         Make code unconditional.
28877         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28878         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
28879         Make code unconditional.
28880         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28881         * sysdeps/unix/sysv/linux/clock_nanosleep.c
28882         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
28883         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28884         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
28885         Make code unconditional.
28886         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28887         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
28888         (__libc_missing_posix_timers): Remove.
28889
28890 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28891
28892         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
28893         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
28894
28895         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
28896
28897         * elf/dl-sym.c: Include <stdlib.h>.
28898
28899         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
28900         constants, which avoids warnings in 32-bit builds.
28901
28902         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
28903         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
28904
28905         * misc/lseek.c: File moved to ...
28906         * io/lseek.c: ... here.
28907
28908         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
28909
28910         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
28911         shifting LEN more than 31 bits at once.
28912
28913 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28914
28915         [BZ #14195]
28916         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
28917         segmentation fault for a case of two empty input strings.
28918         * string/test-strncasecmp.c (check1): Renamed to...
28919         (bz12205): ...this.
28920         (bz14195): Add new testcase for two empty input strings and N > 0.
28921         (test_main): Call new testcase, adapt for renamed function.
28922
28923 2012-08-15  Andreas Jaeger  <aj@suse.de>
28924
28925         [BZ #14090]
28926         * crypt/md5test2.c: New test, based on test supplied by Serge
28927         Belyshev <belyshev@depni.sinp.msu.ru>.
28928         * crypt/Makefile (xtests): Add md5test-giant..
28929         * crypt/Makefile ($(objpfx)md5test-giant): Add.
28930
28931 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28932
28933         [BZ #14090]
28934         * crypt/md5.c (md5_process_block): Don't assume the buffer
28935         length is less than 2**32.
28936         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
28937         length is less than 2**64.
28938
28939 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28940
28941         * string/str-two-way.h: Include <sys/param.h>.
28942         (MAX): Macro removed.
28943
28944         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
28945         Move #define and #undef of memmove to just before and after
28946         including <string.h>.
28947
28948         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
28949         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
28950         and after including <string.h>.  Move declarations of
28951         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
28952         to before #include "string/memmove.c".
28953
28954         * include/dirent.h: Declare __getdirentries.
28955
28956         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
28957         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
28958
28959 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
28960
28961         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
28962         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
28963         * sysdeps/i386/configure: Regenerated.
28964         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
28965         STABS_CURRENT_FILE, and STABS_FUN.
28966         (END): Remove call to STABS_FUN_END.
28967         (STABS_CURRENT_FILE1): Delete.
28968         (STABS_CURRENT_FILE): Likewise.
28969         (STABS_FUN): Likewise.
28970         (STABS_FUN_END): Likewise.
28971         (STABS_FUN2): Likewise.
28972         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
28973         * sysdeps/x86_64/configure: Regenerated.
28974
28975 2012-08-14  Roland McGrath  <roland@hack.frob.com>
28976
28977         * elf/dl-open.c: Include <atomic.h>.
28978         * elf/dl-lookup.c: Likewise.
28979
28980 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
28981
28982         * sysdeps/unix/sysv/linux/kernel-features.h
28983         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
28984         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
28985         unconditionally.
28986         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
28987         unconditionally.
28988         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
28989         condition on __ASSUME_CLONE_THREAD_FLAGS.
28990
28991 2012-08-14  Andreas Jaeger  <aj@suse.de>
28992
28993         * sysdeps/i386/fpu/libm-test-ulps: Update.
28994
28995 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
28996
28997         * include/atomic.h (atomic_exchange_and_add): Split into ...
28998         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
28999         New atomic macros.
29000
29001 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
29002
29003         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29004
29005 2012-08-13  Jeff Law <law@redhat.com>
29006
29007         * manual/stdio.texi (snprintf): Clarify handling of the trailing
29008         null byte in the output string.
29009
29010 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
29011
29012         * sysdeps/unix/sysv/linux/kernel-features.h
29013         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
29014         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
29015         (__ASSUME_ARG_MAX_STACK_BASED): Define.
29016         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
29017         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
29018         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
29019         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
29020
29021 2012-08-09  Jeff Law <law@redhat.com>
29022
29023         [BZ #13939]
29024         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
29025         When avoid_arena is set, don't retry in the that arena.  Pick the
29026         next one, whatever it might be.
29027         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
29028         (arena_lock): Pass in new parameter to arena_get2.
29029         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
29030         arena_get2.
29031         (__libc_malloc): Unify retrying after main arena failure with
29032         __libc_memalign version.
29033         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
29034
29035 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
29036
29037         [BZ #14166]
29038         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
29039         to __redirect_strstr.
29040         (__strstr_sse42): Use typeof __redirect_strstr.
29041         (__strstr_ia32): Likewise.
29042         (__libc_strstr): New prototype.
29043         (strstr): Renamed to ...
29044         (__libc_strstr): This.
29045         (strstr): New strong alias of __libc_strstr.
29046         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
29047         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
29048         __redirect_time.
29049         Include <time.h>.
29050         (__libc_time): New prototype.
29051         (time_ifunc): Replace time with __libc_time.
29052         (time): New strong alias and hidden definition of __libc_time.
29053         (__GI_time): Remove strong alias.
29054         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
29055         Include <stddef.h>.
29056         (memmove): Redefined to __redirect_memmove.
29057         (__memmove_sse2): Use typeof __redirect_memmove.
29058         (__memmove_ssse3): Likewise.
29059         (__memmove_ssse3_back): Likewise.
29060         (__libc_memmove): New prototype.
29061         (memmove): Renamed to ...
29062         (__libc_memmove): This.
29063         (memmove): New strong alias of __libc_memmove.
29064
29065 2012-08-08  Mark Salter  <msalter@redhat.com>
29066
29067         * elf/elf.h
29068         (R_MN10300_TLS_GD): Define.
29069         (R_MN10300_TLS_LD): Likewise.
29070         (R_MN10300_TLS_LDO): Likewise.
29071         (R_MN10300_TLS_GOTIE): Likewise.
29072         (R_MN10300_TLS_IE): Likewise.
29073         (R_MN10300_TLS_LE): Likewise.
29074         (R_MN10300_TLS_DTPMOD): Likewise.
29075         (R_MN10300_TLS_DTPOFF): Likewise.
29076         (R_MN10300_TLS_TPOFF): Likewise.
29077         (R_MN10300_SYM_DIFF): Likewise.
29078         (R_MN10300_ALIGN): Likewise.
29079         (R_MN10300_NUM): Update.
29080
29081 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
29082
29083         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
29084         Remove.
29085
29086 2012-08-08  Roland McGrath  <roland@hack.frob.com>
29087
29088         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
29089
29090         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
29091         sysdeps/unix -> sysdeps/posix move.
29092         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29093
29094 2012-08-07      Allan McRae     <allan@archlinux.org>
29095
29096         [BZ #14303]
29097         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
29098         (SUNOS_CPP): Likewise.
29099         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
29100         not found.
29101         (open_input): Call CPP using execvp.
29102
29103 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29104
29105         * sysdeps/unix/sysv/linux/kernel-features.h
29106         (__ASSUME_PROT_GROWSUPDOWN): Remove.
29107         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29108         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29109         (__ASSUME_WAITID_SYSCALL): Likewise.
29110         * sysdeps/unix/sysv/linux/dl-execstack.c
29111         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
29112         code unconditional.
29113         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
29114         conditional code.
29115         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
29116         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
29117         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
29118         code.
29119         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
29120         unconditional.
29121         [__ASSUME_WAITID_SYSCALL]: Likewise.
29122         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
29123
29124 2012-08-07  Roland McGrath  <roland@hack.frob.com>
29125
29126         * sysdeps/unix/closedir.c: Renamed to ...
29127         * sysdeps/posix/closedir.c: ... here.
29128         * sysdeps/unix/dirfd.c: Renamed to ...
29129         * sysdeps/posix/dirfd.c: ... here.
29130         * sysdeps/unix/dirstream.h: Renamed to ...
29131         * sysdeps/posix/dirstream.h: ... here.
29132         * sysdeps/unix/fdopendir.c: Renamed to ...
29133         * sysdeps/posix/fdopendir.c: ... here.
29134         * sysdeps/unix/opendir.c: Renamed to ...
29135         * sysdeps/posix/opendir.c: ... here.
29136         * sysdeps/unix/readdir.c: Renamed to ...
29137         * sysdeps/posix/readdir.c: ... here.
29138         * sysdeps/unix/readdir_r.c: Renamed to ...
29139         * sysdeps/posix/readdir_r.c: ... here.
29140         * sysdeps/unix/rewinddir.c: Renamed to ...
29141         * sysdeps/posix/rewinddir.c: ... here.
29142         * sysdeps/unix/seekdir.c: Renamed to ...
29143         * sysdeps/posix/seekdir.c: ... here.
29144         * sysdeps/unix/telldir.c: Renamed to ...
29145         * sysdeps/posix/telldir.c: ... here.
29146         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
29147         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
29148         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29149         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
29150
29151         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
29152         * bits/fcntl.h: ... here.
29153
29154         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
29155         not 0.
29156         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
29157         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
29158         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
29159         (struct flock): Move l_start, l_len to the beginning.
29160         Use __pid_t for l_pid.
29161         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
29162         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
29163         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
29164         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
29165         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
29166         [__USE_LARGEFILE64] (struct flock64): New type.
29167         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
29168
29169         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
29170         * bits/dirent.h: ... here.
29171
29172         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
29173         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
29174
29175 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29176
29177         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29178         Change from 2.6.0 to 2.6.16.
29179         * sysdeps/unix/sysv/linux/configure: Regenerated.
29180         * sysdeps/unix/sysv/linux/kernel-features.h
29181         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
29182         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
29183         version.
29184         (__ASSUME_UTIMES): Likewise.
29185         (__ASSUME_CLONE_STOPPED): Remove.
29186         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
29187         architectures, not kernel version.
29188         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
29189         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29190         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29191         (__ASSUME_WAITID_SYSCALL): Likewise.
29192         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
29193         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
29194         * README: State 2.6.16 as minimum Linux kernel version.  Do not
29195         refer to older versions.
29196
29197 2012-08-06  Roland McGrath  <roland@hack.frob.com>
29198
29199         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
29200         Define alphasort64 as an alias.
29201         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
29202         Define versionsort64 as an alias.
29203         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
29204         Define scandir64 as an alias.
29205         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
29206         Define scandirat64 as an alias.
29207         * dirent/alphasort64.c (alphasort64):
29208         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
29209         * dirent/versionsort64.c: Likewise.
29210         * dirent/scandir64.c: Likewise.
29211         * dirent/scandirat64.c: Likewise.
29212         * sysdeps/wordsize-64/alphasort.c: File removed.
29213         * sysdeps/wordsize-64/alphasort64.c: File removed.
29214         * sysdeps/wordsize-64/scandir.c: File removed.
29215         * sysdeps/wordsize-64/scandir64.c: File removed.
29216         * sysdeps/wordsize-64/scandirat.c: File removed.
29217         * sysdeps/wordsize-64/scandirat64.c: File removed.
29218         * sysdeps/wordsize-64/versionsort.c: File removed.
29219         * sysdeps/wordsize-64/versionsort64.c: File removed.
29220         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
29221         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
29222         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
29223         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
29224         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
29225         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
29226         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
29227         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
29228
29229         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
29230         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29231         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
29232         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29233         [defined __arch64__ || defined __sparcv9]
29234         (__INO_T_MATCHES_INO64_T): New macro.
29235         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29236         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
29237         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
29238         * sysdeps/unix/sysv/linux/bits/dirent.h
29239         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
29240         (_DIRENT_MATCHES_DIRENT64): New macro.
29241
29242         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
29243         Define lockf64 as an alias.
29244         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
29245         Define fseeko64 as an alias.
29246         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
29247         Define ftello64 as an alias.
29248         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
29249         Define _IO_fgetpos64 and fgetpos64 as aliases.
29250         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
29251         Define _IO_fsetpos64 and fsetpos64 as aliases.
29252         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
29253         Conditionalize body on this.
29254         * libio/fseeko64.c: Likewise.
29255         * libio/ftello64.c: Likewise.
29256         * libio/iofgetpos64.c: Likewise.
29257         * libio/iofsetpos64.c: Likewise.
29258         * sysdeps/wordsize-64/lockf.c: File removed.
29259         * sysdeps/wordsize-64/lockf64.c: File removed.
29260         * sysdeps/wordsize-64/fseeko.c: File removed.
29261         * sysdeps/wordsize-64/fseeko64.c: File removed.
29262         * sysdeps/wordsize-64/ftello.c: File removed.
29263         * sysdeps/wordsize-64/ftello64.c: File removed.
29264         * sysdeps/wordsize-64/iofgetpos.c: File removed.
29265         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
29266         * sysdeps/wordsize-64/iofsetpos.c: File removed.
29267         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
29268         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
29269         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
29270         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
29271         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
29272         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
29273         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
29274         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
29275         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
29276         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
29277         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
29278
29279         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29280         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29281         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
29282         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29283         [defined __arch64__ || defined __sparcv9]
29284         (__OFF_T_MATCHES_OFF64_T): New macro.
29285         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29286         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29287         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
29288         (__OFF_T_MATCHES_OFF64_T): New macro.
29289
29290 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29291
29292         * stdlib/secure-getenv.c (__secure_getenv): Replace
29293         GLIBC_2_16 with GLIBC_2_17.
29294
29295 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29296
29297         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
29298         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
29299
29300 2012-08-03  David S. Miller  <davem@davemloft.net>
29301
29302         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29303
29304 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29305
29306         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
29307         Remove.
29308         (__ASSUME_CORRECT_SI_PID): Likewise.
29309         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
29310         (__ASSUME_TMPFS_NAME): Likewise.
29311         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
29312         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
29313         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
29314         (HAVE_AUX_SECURE): Make definition unconditional.
29315         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
29316         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
29317
29318 2012-08-03  Roland McGrath  <roland@hack.frob.com>
29319
29320         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
29321         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
29322         * sysdeps/mach/hurd/eloop-threshold.h: New file.
29323         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
29324         __eloop_threshold instead of SYMLOOP_MAX.
29325
29326         * sysdeps/generic/eloop-threshold.h: New file.
29327         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
29328         of MAXSYMLINKS.
29329         * elf/chroot_canon.c (chroot_canon): Likewise.
29330
29331 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29332
29333         [BZ #13717]
29334         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29335         Change to 2.6.0 everywhere.
29336         * sysdeps/unix/sysv/linux/configure: Regenerated.
29337         * sysdeps/unix/sysv/linux/kernel-features.h
29338         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
29339         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
29340         kernel versions.
29341         (__ASSUME_POSIX_TIMERS): Define unconditionally.
29342         (__ASSUME_FUTEX_REQUEUE): Remove.
29343         (__ASSUME_STATFS64): Define unconditionally.
29344         (__ASSUME_AT_SECURE): Likewise.
29345         (__ASSUME_CORRECT_SI_PID): Likewise.
29346         (__ASSUME_TGKILL): Define without depending on kernel version for
29347         i386.
29348         (__ASSUME_UTIMES): Likewise.
29349         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
29350         kernel version.
29351         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
29352         (__ASSUME_TMPFS_NAME): Likewise.
29353         * README: Update reference to Linux kernel versions.
29354
29355 2012-08-02  Marek Polacek  <polacek@redhat.com>
29356
29357         [BZ# 14150]
29358         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
29359         libc_cv_asm_type_prefix with %.
29360         * configure: Regenerated.
29361         * include/libc-symbols.h: Remove comment about
29362         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29363         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
29364         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
29365         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
29366         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
29367         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29368         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
29369         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
29370         * elf/tst-unique2mod1.c: Likewise.
29371         * elf/tst-unique1mod2.c: Likewise.
29372         * elf/tst-unique1mod1.c: Likewise.
29373         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
29374         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
29375         Replace ASM_TYPE_DIRECTIVE with .type.
29376         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29377         * sysdeps/i386/sysdep.h: Likewise.
29378         * sysdeps/x86_64/sysdep.h: Likewise.
29379         * sysdeps/sh/sysdep.h: Likewise.
29380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
29381         Do not define ASM_TYPE_DIRECTIVE.
29382         * sysdeps/powerpc/sysdep.h: Likewise.
29383         * sysdeps/powerpc/powerpc32/sysdep.h:
29384         Replace ASM_TYPE_DIRECTIVE with .type.
29385         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29386         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29387         * sysdeps/i386/fpu/e_powf.S: Likewise.
29388         * sysdeps/i386/fpu/e_expl.S: Likewise.
29389         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29390         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29391         * sysdeps/i386/fpu/e_pow.S: Likewise.
29392         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
29393         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29394         * sysdeps/i386/fpu/s_expm1.S: Likewise.
29395         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
29396         * sysdeps/i386/fpu/e_log2.S: Likewise.
29397         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29398         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29399         * sysdeps/i386/fpu/e_powl.S: Likewise.
29400         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29401         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
29402         * sysdeps/i386/fpu/e_logl.S: Likewise.
29403         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
29404         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
29405         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
29406         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29407         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29408         * sysdeps/i386/fpu/e_log.S: Likewise.
29409         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29410         * sysdeps/i386/fpu/e_logf.S: Likewise.
29411         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29412         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29413         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
29414         * sysdeps/i386/fpu/e_log10.S: Likewise.
29415         * sysdeps/i386/fpu/s_frexp.S: Likewise.
29416         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29417         * sysdeps/i386/fpu/s_asinh.S: Likewise.
29418         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
29419         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29420         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29421         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
29422         * sysdeps/i386/i686/strtok.S: Likewise.
29423         * sysdeps/i386/i386-mcount.S: Likewise.
29424         * sysdeps/i386/strtok.S: Likewise.
29425         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
29426         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29427         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29428         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29429         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29430         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29431         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29432         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29433         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29434         * sysdeps/x86_64/_mcount.S: Likewise.
29435         * sysdeps/x86_64/strtok.S: Likewise.
29436         * sysdeps/sh/_mcount.S: Likewise.
29437
29438 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29439
29440         * libio/iofopen.c: Include <fcntl.h>.
29441         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
29442         (_IO_fopen64, fopen64): Define as aliases.
29443         * libio/iofopen64.c: Include <fcntl.h>.
29444         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
29445         Conditionalize body on this.
29446         * sysdeps/wordsize-64/iofopen.c: File removed.
29447         * sysdeps/wordsize-64/iofopen64.c: File removed.
29448
29449 2012-08-01  Marek Polacek  <polacek@redhat.com>
29450
29451         * libc/Makeconfig: Use elf in place of binfmt-subdir.
29452         Use dlfcn directly instead of a variable.
29453         (binfmt-subdir): Do not define.
29454         (dlfcn): Likewise.
29455
29456 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
29457
29458         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
29459         Remove all definitions.
29460         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
29461         <kernel-features.h>.
29462         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29463         (miss_F_GETOWN_EX): Remove all definitions.
29464         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
29465         macro definition.
29466         [!__ASSUME_FCNTL64]: Remove conditional code.
29467         [__ASSUME_FCNTL64]: Make code unconditional.
29468         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
29469         <kernel-features.h>.
29470         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29471         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
29472         (lockf64) [__NR_fcntl64]: Make code unconditional.
29473         (lockf64) [__ASSUME_FCNTL64]: Likewise.
29474
29475         * sysdeps/unix/sysv/linux/kernel-features.h
29476         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
29477         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
29478         Make code unconditional.
29479         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29480         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
29482         [__NR_vfork]: Make code unconditional.
29483         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29484         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
29486         [__NR_vfork]: Make code unconditional.
29487         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29488         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29489
29490 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29491
29492         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
29493         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
29494
29495         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29496         Define mkstemp64 as an alias.
29497         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29498         Define mkstemps64 as an alias.
29499         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29500         Define mkostemp64 as an alias.
29501         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29502         Define mkostemps64 as an alias.
29503         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
29504         Conditionalize body on this.
29505         * misc/mkostemp64.c: Likewise.
29506         * misc/mkostemps64.c: Likewise.
29507         * misc/mkstemps64.c: Likewise.
29508         * sysdeps/wordsize-64/mkstemp64.c: File removed.
29509         * sysdeps/wordsize-64/mkostemp64.c: File removed.
29510         * sysdeps/wordsize-64/mkostemp.c: File removed.
29511         * sysdeps/wordsize-64/mkstemp.c: File removed.
29512         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
29513         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
29514         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
29515         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
29516
29517         [BZ #14138]
29518         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
29519         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
29520         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
29521         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
29522
29523         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
29524         compat_symbol macros from <shlib-compat.h> rather than the underlying
29525         default_symbol_version and symbol_version macros, so that DEFAULT
29526         lines in shlib-versions are respected.
29527         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
29528
29529 2012-08-01  Florian Weimer  <fweimer@redhat.com>
29530
29531         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
29532         Declare with warn_unused_result.
29533         (setgid, setregid, setegid, setresgid): Likewise.
29534         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
29535         Likewise.
29536         * WUR-REPORT: Remove set*id functions.
29537
29538 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
29539
29540         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
29541
29542 2012-07-31  Roland McGrath  <roland@hack.frob.com>
29543
29544         [BZ #10191]
29545         * include/sys/socket.h (__libc_accept, __libc_accept4):
29546         Add attribute_hidden.
29547         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
29548
29549         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
29550         use of PTR_MANGLE.
29551         * inet/getnetgrent_r.c (setup): Likewise.
29552
29553         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
29554
29555 2012-07-31  David S. Miller  <davem@davemloft.net>
29556
29557         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29558
29559 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
29560
29561         [BZ #13629]
29562         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
29563         value between 1.0 and 2.0 and smaller part has absolute value less
29564         than 1.0.
29565         * math/s_clog10.c (__clog10): Likewise.
29566         * math/s_clog10f.c (__clog10f): Likewise.
29567         * math/s_clog10l.c (__clog10l): Likewise.
29568         * math/s_clogf.c (__clogf): Likewise.
29569         * math/s_clogl.c (__clogl): Likewise.
29570         * math/libm-test.inc (clog_test): Add more tests.
29571         (clog10_test): Likewise.
29572         * sysdeps/i386/fpu/libm-test-ulps: Update.
29573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29574
29575 2012-07-31  Florian Weimer  <fweimer@redhat.com>
29576
29577         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
29578         Exit with zero in case no suitable GID is found, and write a
29579         message to standard error.
29580
29581 2012-07-30  Roland McGrath  <roland@hack.frob.com>
29582
29583         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
29584         rather than to 1.
29585         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
29586         (MAXPATHLEN): Removed.
29587         (NOGROUP, NODEV): New macros.
29588         (setbit, clrbit, isset, isclr): New macros.
29589         (howmany, roundup, powerof2): New macros.
29590         (DEV_BSIZE): New macro.
29591
29592         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
29593         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
29594
29595         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
29596         definition on [!__NO_LONG_DOUBLE_MATH].
29597
29598         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
29599         PTR_MANGLE and PTR_DEMANGLE.
29600
29601         * socket/accept4.c (accept4): Rename to __libc_accept4.
29602         Define accept4 as a weak alias.
29603
29604         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
29605         on [_DIRENT_HAVE_D_TYPE].
29606         * io/ftw.c (ftw_dir): Likewise.
29607
29608         * io/xmknod.c (__xmknod): Don't check PATH for being null.
29609
29610         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
29611
29612         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
29613         Use the BSD numbers rather than the arbitrary ones we had.
29614         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
29615         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
29616         (SIGXCPU, SIGXFSZ): New macros.
29617         (_NSIG): Now 32.
29618
29619         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
29620         initializer on [_LIBC_REENTRANT].
29621
29622         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
29623         definitions inside [_POSIX_MAPPED_FILES].
29624
29625         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
29626
29627         * dirent/opendir.c: Include <fcntl.h>.
29628
29629         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
29630         (__libc_getspecific): Likewise.
29631         (__libc_key_create): Likewise.
29632
29633         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
29634         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
29635         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
29636         (tmpfile64): Define as alias.
29637         * sysdeps/wordsize-64/tmpfile.c: File removed.
29638         * sysdeps/wordsize-64/tmpfile64.c: File removed.
29639         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
29640         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
29641
29642         * stdio-common/vfscanf.c: Include <stdbool.h>.
29643         * nss/makedb.c: Likewise.
29644         * stdio-common/_i18n_number.h: Likewise.
29645         * argp/argp-help.c: Likewise.
29646         * posix/wordexp.c: Likewise.
29647         * sysdeps/posix/spawni.c: Likewise.
29648         * nss/nss_files/files-initgroups.c: Likewise.
29649         * stdio-common/reg-modifier.c: Include <stdlib.h>.
29650         * nss/nss_files/files-initgroups.c: Likewise.
29651         * nss/nss_db/db-netgrp.c: Likewise.
29652         * nss/nss_db/db-initgroups.c: Likewise.
29653         * io/fchmodat.c: Include <sys/stat.h>.
29654
29655         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
29656         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
29657
29658         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
29659         [HAVE_MMAP].
29660
29661         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
29662         Add multiple inclusion protection.
29663
29664 2012-07-27  David S. Miller  <davem@davemloft.net>
29665
29666         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29667
29668 2012-07-27  Gary Benson  <gbenson@redhat.com>
29669
29670         [BZ #14298]
29671         * elf/rtld.c: Include <stap-probe.h>.
29672         (dl_main): Added static probes "init_start" and "init_complete".
29673         * elf/dl-load.c: Include <stap-probe.h>.
29674         (lose): Take new parameter "nsid".
29675         Added static probe "map_failed".
29676         (_dl_map_object_from_fd): Pass namespace id to lose.
29677         Added static probe "map_start".
29678         (open_verify): Pass namespace id to lose.
29679         * elf/dl-open.c: Include <stap-probe.h>.
29680         (dl_open_worker) Added static probes "map_complete", "reloc_start"
29681         and "reloc_complete".
29682         * elf/dl-close.c: Include <stap-probe.h>.
29683         (_dl_close_worker): Added static probes "unmap_start" and
29684         "unmap_complete".
29685         * elf/rtld-debugger-interface.txt: New file documenting the above.
29686
29687 2012-07-26  Roland McGrath  <roland@hack.frob.com>
29688
29689         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
29690         rather than a string variable.
29691         * sunrpc/rpc_main.c (h_output): Likewise.
29692         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
29693
29694 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
29695
29696         * inet/check_native.c: New file.
29697
29698 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
29699
29700         [BZ #13629]
29701         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
29702         if larger part has absolute value 1.0.
29703         * math/s_clog10.c (__clog10): Likewise.
29704         * math/s_clog10f.c (__clog10f): Likewise.
29705         * math/s_clog10l.c (__clog10l): Likewise.
29706         * math/s_clogf.c (__clogf): Likewise.
29707         * math/s_clogl.c (__clogl): Likewise.
29708         * math/libm-test.inc (clog_test): Add more tests.
29709         (clog10_test): Likewise.
29710         * sysdeps/i386/fpu/libm-test-ulps: Update.
29711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29712
29713         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
29714         (pltexit): Likewise.
29715         (La_regs): Likewise.
29716         (La_retval): Likewise.
29717         (int_retval): Likewise.
29718         Update #error for removed macros to refer only to definitions in
29719         tst-audit.h.
29720         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
29721         macro.
29722         (pltexit): Likewise.
29723         (La_regs): Likewise.
29724         (La_retval): Likewise.
29725         (int_retval): Likewise.
29726         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
29727         macro.
29728         (pltexit): Likewise.
29729         (La_regs): Likewise.
29730         (La_retval): Likewise.
29731         (int_retval): Likewise.
29732         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
29733         macro.
29734         (pltexit): Likewise.
29735         (La_regs): Likewise.
29736         (La_retval): Likewise.
29737         (int_retval): Likewise.
29738         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
29739         macro.
29740         (pltexit): Likewise.
29741         (La_regs): Likewise.
29742         (La_retval): Likewise.
29743         (int_retval): Likewise.
29744         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
29745         macro.
29746         (pltexit): Likewise.
29747         (La_regs): Likewise.
29748         (La_retval): Likewise.
29749         (int_retval): Likewise.
29750         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
29751         macro.
29752         (pltexit): Likewise.
29753         (La_regs): Likewise.
29754         (La_retval): Likewise.
29755         (int_retval): Likewise.
29756         * sysdeps/generic/tst-audit.h: Update comment to refer only to
29757         macro definitions in tst-audit.h.
29758         * sysdeps/i386/tst-audit.h: New file.
29759         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
29760         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
29761         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
29762         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
29763         * sysdeps/sh/tst-audit.h: Likewise.
29764         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
29765         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
29766         * sysdeps/x86_64/tst-audit.h: Likewise.
29767
29768 2012-07-26  Andreas Jaeger  <aj@suse.de>
29769
29770         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
29771         ptrace.
29772
29773         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
29774         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
29775         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
29776         PTRACE_O_MASK.
29777         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
29778         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
29779         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
29780
29781         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
29782         value.
29783
29784         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
29785         _sigsys.
29786         (si_call_addr, si_syscall, si_arch): Define new macro.
29787         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
29788         _sigsys.
29789         (si_call_addr, si_syscall, si_arch): Define new marcro.
29790         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
29791         _sigsys.
29792         (si_call_addr, si_syscall, si_arch): Define new macro.
29793         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
29794         _sigsys.
29795         (si_call_addr, si_syscall, si_arch): Define new macro.
29796
29797 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29798
29799         [BZ #13717]
29800         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29801         Change to 2.4.21 where previously 2.4.1.
29802         * sysdeps/unix/sysv/linux/configure: Regenerated.
29803         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
29804         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
29805         Linux kernel version.
29806         (__ASSUME_STD_AUXV): Remove.
29807         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
29808         kernel version.
29809         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
29810         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
29811         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
29812         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
29813         (__ASSUME_NETLINK_SUPPORT): Likewise.
29814         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
29815         (__no_netlink_support): Remove conditional definition.
29816         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
29817         Remove.
29818         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29819         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
29820         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
29821         (if_nameindex_ioctl): Remove.
29822         (if_nameindex_netlink): Do not handle __no_netlink_support.
29823         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29824         code.
29825         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
29826         Remove conditional code.
29827         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29828         code.
29829         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
29830         unconditional.
29831         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29832         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
29833         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
29834         Remove.
29835         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
29836         [!__ASSUME_STD_AUXV]: Remove conditional code.
29837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
29838         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
29839         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
29840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
29841         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
29842         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29843         code.
29844         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
29846         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
29847         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29848         conditional code.
29849         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
29851         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29852         code.
29853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
29854         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29855         conditional code.
29856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
29857         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29858         code unconditional.
29859         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29860         conditional code.
29861         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29862         unconditional.
29863         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29864         conditional code.
29865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29866         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29867         unconditional.
29868         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29869         conditional code.
29870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
29871         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29872         code unconditional.
29873         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29874         conditional code.
29875         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29876         unconditional.
29877         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29878         conditional code.
29879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
29880         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29881         code unconditional.
29882         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29883         conditional code.
29884         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29885         unconditional.
29886         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29887         conditional code.
29888
29889 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
29890
29891         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
29892         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
29893         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
29894         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
29895         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
29896         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29897         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29898         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
29899         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
29900         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
29901         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
29902         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
29903         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
29904         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29905         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
29906         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
29907         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
29908         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
29909         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
29910         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
29911         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
29912         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
29913         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
29914
29915 2012-07-25  Florian Weimer  <fweimer@redhat.com>
29916
29917         * Versions.def: Add GLIBC_2.17.
29918         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
29919         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
29920         Introduce __libc_secure_getenv.
29921         * stdlib/Versions (2.17): Add secure_getenv
29922         (GLIBC_PRIVATE): Add __libc_secure_getenv.
29923         * stdlib/secure-getenv.c: Rename __secure_getenv to
29924         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
29925         symbol __secure_getenv for GLIBC_2.0.
29926         * stdlib/tst-secure-getenv.c: New.
29927         * stdlib/Makefile (tests): Add testcase.
29928         * manual/startup.texi (Environment Access): Document
29929         secure_getenv.
29930         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
29931         __libc_secure_getenv.
29932         * inet/ruserpass.c (ruserpass): Likewise.
29933         * malloc/mtrace.c (mtrace): Likewise.
29934         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
29935         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
29936         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
29937         * sysdeps/posix/tempname.c: Likewise.  Evaluate
29938         HAVE_SECURE_GETENV.
29939         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
29940         __secure_getenv to __libc_secure_getenv.
29941         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
29942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29943         Likewise.
29944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29945         Likewise.
29946         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
29947         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
29948         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
29949         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
29950         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
29951         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
29952         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
29953
29954 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29955
29956         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
29957         (struct La_i86_retval): Likewise.
29958         (struct La_x86_64_regs): Likewise.
29959         (struct La_x86_64_retval): Likewise.
29960         (struct La_x32_regs): Likewise.
29961         (struct La_x32_retval): Likewise.
29962         (struct La_ppc32_regs): Likewise.
29963         (struct La_ppc32_retval): Likewise.
29964         (struct La_ppc64_regs): Likewise.
29965         (struct La_ppc64_retval): Likewise.
29966         (struct La_sh_regs): Likewise.
29967         (struct La_sh_retval): Likewise.
29968         (struct La_s390_32_regs): Likewise.
29969         (struct La_s390_32_retval): Likewise.
29970         (struct La_s390_64_regs): Likewise.
29971         (struct La_s390_64_retval): Likewise.
29972         (struct La_sparc32_regs): Likewise.
29973         (struct La_sparc32_retval): Likewise.
29974         (struct La_sparc64_regs): Likewise.
29975         (struct La_sparc64_retval): Likewise.
29976         (struct audit_ifaces): Remove architecture-specific pltenter and
29977         pltexit members.
29978         * sysdeps/i386/ldsodefs.h: New file.
29979         * sysdeps/powerpc/ldsodefs.h: Likewise.
29980         * sysdeps/s390/ldsodefs.h: Likewise.
29981         * sysdeps/sh/ldsodefs.h: Likewise.
29982         * sysdeps/sparc/ldsodefs.h: Likewise.
29983         * sysdeps/x86_64/ldsodefs.h: Likewise.
29984
29985 2012-07-25  Marek Polacek  <polacek@redhat.com>
29986
29987         [BZ #6808]
29988         * math/libm-test.inc (yn_test): Add another test.
29989         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
29990         to ERANGE when the result is +-Inf.
29991         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
29992         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29993         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
29994         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
29995
29996 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
29997
29998         * conform/data/time.h-data (NULL): Use macro-constant.  Require
29999         equal to 0.
30000         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
30001         clock_t.
30002         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
30003
30004 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
30005
30006         * configure.in <sysdeps resolving>: Correct printing
30007         Implies_before.
30008         * configure: Regenerate.
30009
30010 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
30011
30012         * math/w_ilogb.c: Include <limits.h>.
30013         * math/w_ilogbl.c: Likewise.
30014
30015 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30016
30017         * manual/lang.texi (__va_copy): Document primarily as ISO C99
30018         va_copy.  Document allowing for unavailable va_copy only as
30019         pre-C99 compatibility.
30020         * manual/string.texi (Copying and Concatenation): Use va_copy
30021         instead of __va_copy in concat example.
30022
30023 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
30024
30025         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
30026         (__sendto): Use create_address_port.  Initialize APORT and deallocate
30027         it if not null.
30028
30029         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
30030         with O_NOLINK passed to __file_name_lookup.
30031
30032         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
30033         with O_NOLINK passed to __file_name_lookup.
30034
30035         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
30036         negative N or less than NGIDS.
30037
30038         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
30039         type to string_t.  Set ERANGE as errno and return it if NAME is not big
30040         enough.  Use memcpy instead of strncpy.
30041
30042 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30043
30044         * elf/Makefile (check-data): Remove.
30045         (localplt.data): New vpath directive.
30046         ($(objpfx)check-localplt.out): Use localplt.data from vpath
30047         instead of $(check-data).
30048         * scripts/data/localplt-generic.data: Move to ...
30049         * sysdeps/generic/localplt.data: ... here.
30050         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
30051         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
30052         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
30053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30054         ... here.
30055         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
30056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30057         ... here.
30058         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
30059         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
30060         ... here.
30061         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
30062         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
30063         ... here.
30064         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
30065         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
30066         ... here.
30067         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
30068         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
30069         ... here.
30070
30071 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30072
30073         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
30074         PPC32 and PPC64 files.
30075         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
30076         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
30077
30078 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30079
30080         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
30081         __makecontext_ret to ...
30082         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
30083         ... here and call exit if uc_link is NULL.  New file.
30084         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
30085         __makecontext_ret.S.
30086         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
30087         __makecontext_ret to ...
30088         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
30089         ... here and call exit if uc_link is NULL.  New file.
30090         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
30091         __makecontext_ret.S.
30092
30093 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30094
30095         * elf/elf.h (R_390_IRELATIVE): New definition.
30096         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
30097         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
30098         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
30099         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
30100         (elf_machine_lazy_rel): Likewise.
30101         * sysdeps/s390/dl-irel.h: New file.
30102         * sysdeps/s390/s390-64/memcpy.S: New asm code.
30103         * sysdeps/s390/s390-64/memset.S: New asm code.
30104         * sysdeps/s390/s390-64/memcmp.S: New asm code.
30105         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
30106         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
30107         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
30108         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
30109         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
30110         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
30111         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
30112         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
30113         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
30114         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
30115         * sysdeps/s390/s390-32/memcpy.S: New asm code.
30116         * sysdeps/s390/s390-32/memset.S: New asm code.
30117         * sysdeps/s390/s390-32/memcmp.S: New asm code.
30118
30119 2012-07-17  Marek Polacek  <polacek@redhat.com>
30120
30121         [BZ #14349]
30122         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
30123         * sysdeps/s390/s390-64/configure.in: Likewise.
30124         * sysdeps/sparc/configure.in: Likewise.
30125         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
30126         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
30127         * sysdeps/i386/configure.in: Likewise.
30128         * sysdeps/x86_64/configure.in: Likewise.
30129         * sysdeps/sh/configure.in: Likewise.
30130         * sysdeps/s390/s390-32/configure: Regenerated.
30131         * sysdeps/s390/s390-64/configure: Likewise.
30132         * sysdeps/x86_64/configure: Likewise.
30133         * sysdeps/sh/configure: Likewise.
30134         * sysdeps/powerpc/powerpc64/configure: Likewise.
30135         * sysdeps/powerpc/powerpc32/configure: Likewise.
30136         * sysdeps/sparc/configure: Likwise.
30137         * sysdeps/i386/configure: Likewise.
30138
30139         * elf/dl-open.c: Comment fixes.
30140
30141 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
30142
30143         * Makefile [CXX] (check-data): Remove.
30144         [CXX] (c++-types.data): New vpath directive.
30145         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
30146         vpath.  Do not allow for C++ type data being missing.
30147         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
30148         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
30149         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
30150         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
30151         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
30152         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
30153         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
30154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30155         ... here.
30156         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
30157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30158         ... here.
30159         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
30160         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
30161         ... here.
30162         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
30163         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
30164         ... here.
30165         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
30166         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
30167         ... here.
30168         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
30169         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
30170         ... here.
30171         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
30172         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
30173         ... here.
30174         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
30175         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
30176
30177         * elf/tls-macros.h (TLS_LE): Move architecture-specific
30178         definitions to architecture-specific files.
30179         (TLS_IE): Likewise.
30180         (TLS_LD): Likewise.
30181         (TLS_GD): Likewise.
30182         * sysdeps/i386/tls-macros.h: New file.
30183         * sysdeps/powerpc/tls-macros.h: Likewise.
30184         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
30185         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
30186         * sysdeps/sh/tls-macros.h: Likewise.
30187         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
30188         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
30189         * sysdeps/x86_64/tls-macros.h: Likewise.
30190
30191 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30192
30193         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
30194         zero value for regular exit case.
30195
30196         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
30197         (__start_context): Preserve zero value for regular exit case.
30198
30199 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30200             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30201
30202         * manual/setjmp.texi (setcontext): Clarify normal process
30203         termination when uc_link is the null pointer.
30204         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
30205         exit call.
30206
30207 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
30208
30209         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
30210         preprocessor.  Test for each exception mask separately.
30211
30212 2012-07-16  Andreas Jaeger  <aj@suse.de>
30213
30214         * po/ru.po: Update from translation team.
30215
30216 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
30217
30218         * conform/data/string.h-data (NULL): Use macro-constant.  Require
30219         equal to 0.
30220         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
30221         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
30222         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
30223         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
30224         [ISO || ISO99 || ISO11] (*_t): Do not allow.
30225
30226 2012-07-13  Andreas Jaeger  <aj@suse.de>
30227
30228         * po/fr.po: Update from translation team.
30229
30230 2012-07-12  Marek Polacek  <polacek@redhat.com>
30231
30232         [BZ #14173]
30233         * math/libm-test.inc (yn_test): Add test for BZ #14173.
30234         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
30235         loop condition.
30236
30237 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
30238
30239         [BZ #13717]
30240         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30241         Change to 2.4.1 where previously 2.4.0.
30242         * sysdeps/unix/sysv/linux/configure: Regenerated.
30243         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
30244         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
30245         version.
30246         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
30247         (__ASSUME_AT_CLKTCK): Remove.
30248         (__ASSUME_AT_PAGESIZE): Likewise.
30249         (__ASSUME_AT_XID): Likewise.
30250         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
30251         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
30252         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
30253         unconditionally.
30254         (HAVE_AUX_PAGESIZE): Likewise.
30255         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
30256         [__ASSUME_AT_CLKTCK]: Make code unconditional.
30257         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
30258
30259 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
30260
30261         [BZ #14307]
30262         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
30263         the temporary buffer used to invoke __gethostbyname2_r,
30264         __gethostbyaddr_r and gethostbyname4_r to make room for struct
30265         host_data / struct gaih_addrtuple.
30266         * resolv/nss_dns/dns-host.c (global scope): Move definition of
30267         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
30268         header file nss/nsswitch.h.
30269         * nss/nsswitch.h (global scope): Add definition of implementation
30270         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
30271         resolv/nss_dns/dns-host.c).
30272
30273 2012-07-11  Andreas Jaeger  <aj@suse.de>
30274
30275         * po/fr.po: Update from translation team.
30276
30277         * po/sv.po: Update from translation team
30278         * po/fr.po: Another update from translation team.
30279
30280 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30281
30282         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
30283         for subnormals or multiply small sinh result by itself.
30284         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30285         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30286
30287 2012-07-11  David S. Miller  <davem@davemloft.net>
30288
30289         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30290
30291 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
30292
30293         [BZ #14347]
30294         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
30295         (INTERNAL_MARK): Shift it here.
30296
30297 2012-07-10  Marek Polacek  <polacek@redhat.com>
30298
30299         [BZ #14151]
30300         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
30301         libc_cv_asm_global_directive with .globl.
30302         * configure: Regenerated.
30303         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
30304         with .globl.
30305         * sysdeps/i386/configure: Regenerated.
30306         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
30307         with .globl.
30308         * sysdeps/x86_64/configure: Regenerated.
30309         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
30310         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
30311         * elf/tst-unique2mod2.c: Likewise.
30312         * elf/tst-unique2mod1.c: Likewise.
30313         * elf/tst-unique1mod2.c: Likewise.
30314         * elf/tst-unique1mod1.c: Likewise.
30315         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30316         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30317         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30318         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30319         * sysdeps/mach/sysdep.h: Likewise.
30320         * sysdeps/i386/sysdep.h: Likewise.
30321         * sysdeps/i386/i386-mcount.S: Likewise.
30322         * sysdeps/x86_64/_mcount.S: Likewise.
30323         * sysdeps/x86_64/sysdep.h: Likewise.
30324         * sysdeps/sh/_mcount.S: Likewise.
30325         * sysdeps/sh/sysdep.h: Likewise.
30326         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
30327         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
30328         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
30329         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30330         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
30331         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
30332         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
30333         * locale/localeinfo.h: Likewise.
30334         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
30335         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
30336
30337 2012-07-09  Roland McGrath  <roland@hack.frob.com>
30338
30339         [BZ #14336]
30340         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
30341         system".
30342         * manual/message.texi (The Uniforum approach): Likewise.
30343         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
30344         (glibc iconv Implementation): Likewise.
30345
30346 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
30347
30348         [BZ #14337]
30349         * math/s_clog.c (__clog): Avoid scaling a value down where that
30350         could result in underflow.
30351         * math/s_clog10.c (__clog10): Likewise.
30352         * math/s_clog10f.c (__clog10f): Likewise.
30353         * math/s_clog10l.c (__clog10l): Likewise.
30354         * math/s_clogf.c (__clogf): Likewise.
30355         * math/s_clogl.c (__clogl): Likewise.
30356         * math/libm-test.inc (clog_test): Add more tests.
30357         (clog10_test): Likewise.
30358         * sysdeps/i386/fpu/libm-test-ulps: Update.
30359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30360
30361 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
30362
30363         [BZ #14283]
30364         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
30365         by 7 not 8 to examine high bit of fractional part.
30366
30367         [BZ #14042]
30368         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
30369         for call to __mcount_internal.
30370         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
30371         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
30372         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
30373
30374 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
30375
30376         [BZ #14154]
30377         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
30378         approximation for values within 0x1p-13f of an odd multiple of
30379         pi/4.
30380         * math/libm-test.inc (tan_test): Do not allow spurious underflow
30381         exception.  Add more tests.
30382         * sysdeps/i386/fpu/libm-test-ulps: Update.
30383
30384         [BZ #6778]
30385         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
30386         inputs and return -1 for them.  Do not check for +Inf in case not
30387         reachable for +Inf.
30388         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
30389         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
30390         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30391         and return -1 for them.  Do not check for +Inf in case not
30392         reachable for +Inf.
30393         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
30394         define.
30395         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30396         and return -1 for them.  Do not check for +Inf in case not
30397         reachable for +Inf.
30398         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
30399         spurious underflow.
30400         * sysdeps/i386/fpu/libm-test-ulps: Update.
30401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30402
30403 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
30404
30405         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
30406
30407 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
30408
30409         [BZ #14157]
30410         [BZ #14331]
30411         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
30412         could result in spurious underflow.  Scale down values above
30413         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
30414         * math/s_csqrtf.c (__csqrtf): Likewise.
30415         * math/s_csqrtl.c (__csqrtl): Likewise.
30416         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
30417         spurious underflow.
30418         * sysdeps/i386/fpu/libm-test-ulps: Update.
30419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30420
30421 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
30422
30423         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
30424         xopen-msg.sed.
30425         * catgets/xopen-msg.awk: New file.
30426         * catgets/xopen-msg.sed: Removed.
30427
30428         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
30429         po2text.sed.
30430         * intl/po2test.awk: New file.
30431         * intl/po2test.sed: Removed.
30432
30433 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
30434
30435         [BZ #14328]
30436         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
30437         or multiply small sinh result by itself.
30438         * math/s_ctanf.c (__ctanf): Likewise.
30439         * math/s_ctanh.c (__ctanh): Likewise.
30440         * math/s_ctanhf.c (__ctanhf): Likewise.
30441         * math/s_ctanhl.c (__ctanhl): Likewise.
30442         * math/s_ctanl.c (__ctanl): Likewise.
30443         * math/libm-test.inc (ctan_test_tonearest): New function.
30444         (ctan_test_towardzero): Likewise.
30445         (ctan_test_downward): Likewise.
30446         (ctan_test_upward): Likewise.
30447         (ctanh_test_tonearest): Likewise.
30448         (ctanh_test_towardzero): Likewise.
30449         (ctanh_test_downward): Likewise.
30450         (ctanh_test_upward): Likewise.
30451         (main): Call these new functions.
30452         * sysdeps/i386/fpu/libm-test-ulps: Update.
30453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30454
30455 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
30456
30457         * .gitignore: Delete /ports entry.
30458
30459 2012-07-03  Andreas Jaeger  <aj@suse.de>
30460
30461         * po/bg.po: Update from translation team.
30462         * po/cs.po: Likewise.
30463         * po/de.po: Likewise.
30464         * po/hr.po: Likewise.
30465         * po/nl.pl: Likewise.
30466         * po/pl.po: Likewise.
30467         * po/vi.po: Likewise.
30468
30469 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
30470
30471         * Makeconfig [!+link] (+link-before-libc): New variable.
30472         [!+link] (+link-after-libc): Likewise.
30473         [!+link] (+link-tests): Likewise.
30474         [!+link] (+link): Define in terms of $(+link-before-libc) and
30475         $(+link-after-libc).
30476         [!+link-static] (+link-static-before-libc): New variable.
30477         [!+link-static] (+link-static-after-libc): Likewise.
30478         [!+link-static] (+link-static-tests): Likewise.
30479         [!+link-static] (+link-static): Define in terms of
30480         $(+link-static-before-libc) and $(+link-static-after-libc).
30481         [build-shared] (link-libc-before-gnulib): New variable.
30482         [build-shared] (link-libc-tests): Likewise.
30483         [build-shared] (link-libc): Define in terms of
30484         $(link-libc-before-gnulib).
30485         [!build-shared] (link-libc-tests): New variable.
30486         (link-libc-static-tests): New variable.
30487         [!gnulib] (gnulib-arch): New variable.
30488         [!gnulib] (gnulib-tests): Likewise.
30489         [!gnulib] (static-gnulib-arch): Likewise.
30490         [!gnulib] (static-gnulib-tests): Likewise.
30491         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
30492         Define with "=" instead of ":=".
30493         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
30494         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
30495         * Rules (binaries-all-notests): New variable.
30496         (binaries-all-tests): Likewise.
30497         (binaries-static-notests): Likewise.
30498         (binaries-static-tests): Likewise.
30499         (binaries-all): Define using $(binaries-all-notests) and
30500         $(binaries-all-tests).
30501         (binaries-static): Define using $(binaries-static-notests) and
30502         $(binaries-static-tests).
30503         (binaries-shared-tests): New variable.
30504         (binaries-shared-notests): Likewise.
30505         (binaries-shared): Remove variable.
30506         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
30507         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
30508         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
30509         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
30510         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
30511         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
30512         * elf/Makefile (sln-modules): New variable.
30513         (extra-objs): Add $(sln-modules:=.o).
30514         (ldconfig-modules): Add static-stubs.
30515         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
30516         * elf/static-stubs.c: New file.
30517
30518         [BZ #14283]
30519         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
30520         by 7 not 8 to examine high bit of fractional part.  Use volatile
30521         variables when splitting into final array of floats if
30522         __FLT_EVAL_METHOD__ != 0.
30523         * math/libm-test.inc (cos_test): Add another test.
30524         (sin_test): Likewise.
30525         * sysdeps/i386/fpu/libm-test-ulps: Update.
30526
30527         [BZ #14273]
30528         * math/libm-test.inc (cosh_test): Add more tests.
30529
30530         * version.h (RELEASE): Set to "development".
30531         (VERSION): Set to "2.16.90".
30532
30533 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
30534
30535         * NEWS: Update copyright. Remove last-updated date.
30536         Mention math library bug fixes and timezone data changes.
30537         * README: Mention GNU/Hurd, x32, and HPPA support status.
30538
30539 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
30540
30541         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
30542
30543 2012-06-27  Andreas Jaeger  <aj@suse.de>
30544
30545         * manual/contrib.texi (Contributors): Add Samuel Thibault.
30546
30547 2012-06-25  Andreas Jaeger  <aj@suse.de>
30548
30549         * sysdeps/s390/fpu/libm-test-ulps: Update.
30550
30551 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
30552             Thomas Schwinge  <thomas@codesourcery.com>
30553
30554         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
30555         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
30556         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
30557         fanotify_mark.
30558
30559 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
30560
30561         * sysdeps/mach/start.c: Remove file.
30562         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
30563         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
30564         * sysdeps/sh/init-first.c: Likewise.
30565
30566         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
30567         registers for frame unwinding purposes, add CFI directives.
30568         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30569         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
30570         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
30571         Likewise.
30572
30573         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
30574         __fortify_fail returning.
30575         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30576
30577         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
30578         sysdeps/sh/____longjmp_chk.S.
30579         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
30580         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
30581         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
30582         (gen-as-const-headers): Append sigaltstack-offsets.sym.
30583
30584         * sysdeps/sh/abort-instr.h: New file.
30585         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
30586         process in case exit returns.
30587
30588         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
30589         initialize the GOT register before use.
30590
30591         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
30592         calculation of ARGC > 4.
30593
30594         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
30595         meaningful names to some local labels.
30596
30597 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
30598             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30599
30600         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
30601         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
30602         (__arch_compare_and_exchange_val_16_acq): Likewise.
30603         (__arch_compare_and_exchange_val_32_acq): Likewise.
30604         (atomic_exchange_and_add): Fix gUSA sequence.
30605         (atomic_add): Likewise.
30606         (atomic_add_negative): Likewise.
30607         (atomic_add_zero): Likewise.
30608         (atomic_bit_test_set): Likewise.
30609
30610 2012-06-22  Andreas Schwab  <schwab@redhat.com>
30611
30612         [BZ #13579]
30613         * include/link.h (struct link_map): Add l_free_initfini.
30614         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
30615         l_initfini.
30616         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
30617         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
30618         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
30619         set.
30620
30621 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
30622
30623         * configure.in: Use AC_LANG_SOURCE.
30624         * configure: Regenerate.
30625
30626 2012-06-22  Roland McGrath  <roland@hack.frob.com>
30627
30628         * configure.in (libc_cv_localstatedir): New substituted variable.
30629         * configure: Regenerated.
30630         * config.make.in (localstatedir): New variable, substituted from
30631         libc_cv_localstatedir.
30632         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
30633         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
30634         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
30635         * sysdeps/gnu/configure: Regenerated.
30636
30637 2012-06-21  Jeff Law  <law@redhat.com>
30638
30639         [BZ #14277]
30640         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
30641         free.  Simplify list management for _LIBC case.
30642
30643 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
30644
30645         [BZ #14273]
30646         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
30647         Clear sign bit of 64-bit integer value before comparing against
30648         overflow value.
30649
30650         * sysdeps/mach/configure: Regenerated.
30651
30652 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
30653
30654         [BZ #14278]
30655         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
30656
30657 2012-06-21  Jeff Law  <law@redhat.com>
30658
30659         [BZ #13882]
30660         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
30661         uint16_t for elements in the "seen" array to avoid char overflows.
30662         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30663         * elf/dl-open.c (dl_open_worker): Likewise.
30664
30665 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
30666
30667         * scripts/list-sources.sh: Scan PORTS for translations.
30668         * po/libc.pot: Regenerated.
30669
30670 2012-06-21  Andreas Jaeger  <aj@suse.de>
30671
30672         [BZ #12194]
30673         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
30674         warning.
30675         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
30676         * bits/byteswap-16.h (__bswap_16): Likewise.
30677         * bits/byteswap.h (__bswap_constant_16): Likewise.
30678
30679 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
30680
30681         [BZ #14117]
30682         * sysdeps/i386/fpu_control.h: Removed.
30683         * sysdeps/x86_64/fpu_control.h: Moved to ...
30684         * sysdeps/x86/fpu_control.h: Here.
30685
30686         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
30687         (_FPU_SETCW): Likewise.
30688
30689 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
30690
30691         [BZ #14117]
30692         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
30693         * sysdeps/x86/fpu/bits/mathinline.h: This.
30694         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
30695
30696         [BZ #14050]
30697         [BZ #14117]
30698         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
30699         functions if __x86_64__ is defined.
30700
30701 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
30702
30703         * string/endian.h: Add !__ASSEMBLER__ condition for including
30704         conversion interfaces.
30705
30706 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
30707
30708         [BZ #14241]
30709         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
30710         of ABS(x) in calculating zero to negative powers other than odd
30711         integers.
30712         * math/libm-test.inc (pow_test): Add more tests.
30713
30714 2012-06-15  Andreas Jaeger  <aj@suse.de>
30715
30716         * manual/contrib.texi (Contributors): Update entry of Liubov
30717         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
30718         Machado Filho.
30719
30720 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
30721
30722         * string/string.h: Add __wur to GNU version of strerror_r.
30723
30724 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
30725
30726         [BZ #14229]
30727         * string/Makefile (tests): Add tst-strtok_r.
30728         * string/tst-strtok_r.c: New file.
30729         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
30730         RAX_LP/RDX_LP on SAVE_PTR.
30731
30732 2012-06-14  Roland McGrath  <roland@hack.frob.com>
30733
30734         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
30735
30736 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
30737
30738         * libm_test.inc (csqrt_test): Allow more spurious underflow
30739         exceptions.
30740         (j0_test): Likewise.
30741         (j1_test): Likewise.
30742         (y0_test): Likewise.
30743         (y1_test): Likewise.
30744
30745 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
30746
30747         * po/Makefile (libc.pot): Use UTF-8 charset.
30748
30749 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
30750
30751         [BZ #14210]
30752         Suppress sign-conversion warning from FD_SET.
30753         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
30754         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
30755         not unsigned long int.
30756         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
30757
30758 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
30759
30760         [BZ #14050]
30761         [BZ #14117]
30762         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
30763         __extern_always_inline instead of __extern_inline.
30764         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
30765         (__signbit): Likewise.
30766         (__signbitl): Support C++ namespace.
30767         (lrintf): New inline function.
30768         (lrint): Likewise.
30769         (llrintf): Likewise.
30770         (llrint): Likewise.
30771         (fmaxf): Likewise.
30772         (fmax): Likewise.
30773         (fminf): Likewise.
30774         (fmin): Likewise.
30775         (rint): Likewise.
30776         (rintf): Likewise.
30777         (ceil): Likewise.
30778         (ceilf): Likewise.
30779         (floor): Likewise.
30780         (floorf): Likewise.
30781         (nearbyint): Likewise.
30782         (nearbyintf): Likewise.
30783
30784 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
30785
30786         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
30787         non-default versions.
30788
30789 2012-06-11  Roland McGrath  <roland@hack.frob.com>
30790
30791         [BZ #14218]
30792         * manual/argp.texi (Argp): Reword argp_parse description slightly.
30793
30794 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
30795
30796         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
30797         (FE_UPWARD, FE_DOWNWARD): Don't define.
30798         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
30799         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30800
30801         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
30802         reading it.
30803         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30804         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30805
30806 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30807
30808         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
30809         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
30810         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
30811         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
30812
30813 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
30814
30815         [BZ #14117]
30816         * sysdeps/i386/fpu/bits/fenv.h: Removed.
30817         * sysdeps/i386/fpu/Implies: New file.
30818         * sysdeps/x86_64/fpu/Implies: Likewise.
30819         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
30820         * sysdeps/x86/fpu/bits/fenv.h: This.
30821
30822         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
30823         __SSE_MATH__.
30824
30825 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30826
30827         [BZ #14134]
30828         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
30829         character 0xffff that matches the last element of the
30830         conversion table.
30831
30832 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30833
30834         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
30835         fmodl commit.
30836
30837 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30838
30839         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
30840         values higher than 25.6283.
30841
30842 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30843
30844         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
30845         subnormal exponent extraction and add some __builtin_expect.
30846         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
30847         Fix for subnormal mantissa calculation.
30848
30849 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
30850
30851         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
30852         cpu2 is -1 and errno is not ENOSYS.
30853
30854 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
30855
30856         [BZ #14117]
30857         * sysdeps/i386/i486/bits/string.h: Renamed to ...
30858         * sysdeps/x86/bits/string.h: This.
30859         * sysdeps/x86_64/bits/string.h: Removed.
30860
30861         * sysdeps/i386/i486/bits/string.h: Define inline functions only
30862         if not compiling for x86-64, but compiling for >= i486.
30863
30864         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
30865         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
30866
30867         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
30868         New macro from Linux kernel 3.4.0.
30869         (FP_XSTATE_MAGIC2): Likewise.
30870         (FP_XSTATE_MAGIC2_SIZE): Likewise.
30871         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
30872         (struct _fpx_sw_bytes): New struct.
30873         (struct _xsave_hdr): Likewise.
30874         (struct _ymmh_state): Likewise.
30875         (struct _xstate): Likewise.
30876
30877         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
30878         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
30879         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
30880         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
30881         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
30882         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
30883
30884         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
30885         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
30886         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
30887         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
30888         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
30889         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
30890
30891 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30892
30893         [BZ #13743]
30894         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
30895         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
30896         (sysdep_headers): Include sys/platform/ppc.h.
30897         * sysdeps/powerpc/test-gettimebase.c: Test for
30898         __ppc_get_timebase() to catch future ISA opcode/insn changes.
30899         * manual/Makefile (appendices): Include platform.texi.
30900         * manual/contrib.texi (Contributors): Update @node pointers.
30901         * manual/maint.texi (Maintenance): Likewise.
30902         (Platform): New node.
30903         * manual/platform.texi: New file.  Document the new features.
30904
30905 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30906             Jakub Jelinek  <jakub@redhat.com>
30907
30908         [BZ #14188]
30909         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
30910         where __builtin_expect is unavailable.
30911
30912 2012-06-03  David S. Miller  <davem@davemloft.net>
30913
30914         * stdlib/longlong.h: Updated from GCC.
30915
30916 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
30917
30918         [BZ #14042]
30919         * sysdeps/powerpc/powerpc32/mcount.c: New file.
30920         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
30921         __mcount_internal.
30922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
30923         (GLIBC_2.16): Likewise.
30924
30925 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30926
30927         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
30928
30929 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30930
30931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
30932         (default-abi): New variable.
30933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
30934         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
30935         variable.
30936         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
30937         Likewise.
30938         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
30939         Likewise.
30940         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
30941         Likewise.
30942
30943         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
30944         definition.  Document in comment.
30945
30946 2012-06-01  David S. Miller  <davem@davemloft.net>
30947
30948         * stdlib/longlong.h: Updated from GCC.
30949
30950 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30951
30952         [BZ #14117]
30953         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
30954         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
30955         sys/debugreg.h sys/io.h here.
30956         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
30957         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
30958         sys/io.h.
30959         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
30960         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
30961         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
30962         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
30963         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
30964         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
30965
30966         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
30967         Define only if __x86_64__ is defined.
30968
30969 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30970
30971         [BZ #14048]
30972         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
30973         Use int64_t for variable i.
30974         * math/libm-test.inc (fmod_test): Add more tests.
30975
30976         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
30977         z computation is not scheduled after fetestexcept.
30978         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
30979         Use math_force_eval instead of asm to ensure calculation scheduled
30980         before exception test.
30981         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
30982         Ensure a1 + u.d computation is not scheduled after fetestexcept.
30983
30984 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
30985
30986         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
30987         computation is not scheduled after fetestexcept.
30988
30989 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30990
30991         [BZ #14117]
30992         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
30993         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
30994
30995 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30996
30997         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
30998         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
30999
31000 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31001
31002         [BZ #14117]
31003         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
31004         <bits/wordsize.h>.
31005         (__WCHAR_MIN): Support __WORDSIZE == 64.
31006         (__WCHAR_MAX): Likewise.
31007
31008         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
31009         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
31010
31011         [BZ #14183]
31012         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
31013         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
31014
31015         [BZ #14117]
31016         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
31017         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
31018
31019         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
31020         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
31021
31022         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
31023         Defined to 1 if __x86_64__ isn't defined.
31024         (_STAT_VER_LINUX_OLD): New.
31025         (st_atime): Remove duplicate.
31026         (st_mtime): Likewise.
31027         (st_ctime): Likewise.
31028
31029 2012-05-31  David S. Miller  <davem@davemloft.net>
31030
31031         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
31032         entries.
31033
31034 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
31035
31036         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
31037         gen-libm-test.pl.
31038
31039         [BZ #14132]
31040         * elf/dl-reloc.c: Include <_itoa.h>.
31041         (_dl_reloc_bad_type): Remove use of INTUSE.
31042         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
31043         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
31044         * stdio-common/psiginfo.c (psiginfo): Likewise.
31045         * stdio-common/psignal.c (psignal): Likewise.
31046         * string/strsignal.c (strsignal): Likewise.
31047         * include/signal.h (_sys_siglist): Declare hidden proto.
31048         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
31049         INTVARDEF with libc_hidden_data_def.
31050         * stdio-common/itoa-udigits.c: Likewise.
31051         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
31052         (_itoa_lower_digits_internal): Remove declaration.
31053         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
31054         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
31055         (_sys_sigabbrev_internal): Remove aliases.
31056         (_sys_siglist): Define hidden alias.
31057
31058 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
31059
31060         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
31061         bits/sysctl.h.
31062
31063 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31064
31065         [BZ #14117]
31066         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
31067         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
31068
31069         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
31070         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
31071         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
31072         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
31073         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
31074         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
31075
31076         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
31077         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
31078         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
31079
31080         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
31081         with __addr.
31082         (insw): Likewise.
31083         (insl): Likewise.
31084         (outsb): Likewise.
31085         (outsw): Likewise.
31086         (outsl): Likewise.
31087
31088         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
31089         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
31090         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
31091
31092         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
31093         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
31094         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
31095         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
31096         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
31097         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
31098
31099         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
31100         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
31101
31102         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
31103         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
31104
31105         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
31106         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
31107         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
31108
31109         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
31110         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
31111         to ...
31112         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
31113
31114         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
31115         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
31116         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
31117
31118         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
31119         for x86-64.
31120         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
31121
31122 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
31123
31124         * math/math.h (M_El): Use two more decimal places.
31125         (M_LOG2El): Likewise.
31126         (M_LOG10El): Likewise.
31127         (M_LN2l): Likewise.
31128         (M_LN10l): Likewise.
31129         (M_PIl): Likewise.
31130         (M_PI_2l): Likewise.
31131         (M_PI_4l): Likewise.
31132         (M_1_PIl): Likewise.
31133         (M_2_PIl): Likewise.
31134         (M_2_SQRTPIl): Likewise.
31135         (M_SQRT2l): Likewise.
31136         (M_SQRT1_2l): Likewise.
31137
31138 2012-05-31  David S. Miller  <davem@davemloft.net>
31139
31140         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
31141         values between float registers.
31142         * sysdeps/sparc/sparc64/memset.S: Likewise.
31143         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
31144
31145 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
31146
31147         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
31148         -D_FORTIFY_SOURCE=1.
31149         (CPPFLAGS-tst-longjmp_chk.c): Define.
31150         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
31151         (CPPFLAGS-tst-longjmp_chk2.c): Define.
31152         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
31153         CFLAGS-tst-wchar-h.c.
31154
31155 2012-05-31  Marek Polacek  <polacek@redhat.com>
31156
31157         [BZ #14132]
31158         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
31159         __endmntent_internal): Remove declaration.
31160         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
31161         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
31162         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
31163
31164 2012-05-30  David S. Miller  <davem@davemloft.net>
31165
31166         * sysdeps/sparc/sparc32/soft-fp/q_util.c
31167         (___Q_simulate_exceptions): Use real FP ops rather than writing
31168         into the %fsr.
31169         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
31170         Likewise.
31171
31172 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31173
31174         [BZ #14117]
31175         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
31176         * sysdeps/x86/bits/xtitypes.h: This.
31177
31178         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
31179         * sysdeps/x86/bits/wordsize.h: This.
31180
31181         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
31182         * sysdeps/x86/bits/huge_vall.h: This.
31183
31184         * sysdeps/i386/bits/select.h: Removed.
31185         * sysdeps/x86_64/bits/select.h: Renamed to ...
31186         * sysdeps/x86/bits/select.h: This.
31187
31188         * sysdeps/i386/bits/setjmp.h: Removed.
31189         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
31190         * sysdeps/x86/bits/setjmp.h: This.
31191
31192         * sysdeps/i386/bits/mathdef.h: Removed.
31193         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
31194         * sysdeps/x86/bits/mathdef.h: This.
31195
31196 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
31197
31198         [BZ #14132]
31199         * include/sys/socket.h (__connect_internal)
31200         (__libc_sa_len_internal): Remove declaration.
31201         (__connect, __libc_sa_len): Declare hidden_proto.
31202         (SA_LEN): Remove use of INTUSE.
31203         * socket/connect.c: Add libc_hidden_def.
31204         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
31205         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
31206         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
31207         alias.
31208         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
31209         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
31210         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
31211         of adding _internal alias.
31212
31213 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31214
31215         [BZ #14117]
31216         * sysdeps/i386/bits/link.h: Removed.
31217         * sysdeps/i386/bits/linkmap.h: Likewise.
31218         * sysdeps/x86_64/bits/link.h: Renamed to ...
31219         * sysdeps/x86/bits/link.h: This.
31220         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
31221         * sysdeps/x86/bits/linkmap.h: This.
31222
31223         * sysdeps/i386/bits/endian.h: Removed.
31224         * sysdeps/x86_64/bits/endian.h: Renamed to ...
31225         * sysdeps/x86/bits/endian.h: This.
31226
31227         * sysdeps/i386/bits/byteswap.h: Removed.
31228         * sysdeps/i386/bits/byteswap-16.h: Likewise.
31229         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
31230         * sysdeps/x86/bits/byteswap.h: This.
31231         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
31232         * sysdeps/x86/bits/byteswap-16.h: This.
31233         * sysdeps/i386/Implies: Add x86.
31234         * sysdeps/x86_64/Implies: Likewise.
31235
31236 2012-05-30  David S. Miller  <davem@davemloft.net>
31237
31238         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
31239         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
31240         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
31241         (FP_TRAPPING_EXCEPTIONS): Define.
31242         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
31243         (FP_TRAPPING_EXCEPTIONS): Define.
31244         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
31245         subnormals only when inexact has been signalled or underflow
31246         exceptions are enabled.
31247         (_FP_PACK_CANONICAL): Likewise.
31248
31249 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31250
31251         [BZ #14183]
31252         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
31253         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
31254
31255 2012-05-30  Richard Henderson  <rth@twiddle.net>
31256
31257         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
31258         with #ifndef NOT_IN_libc.
31259
31260         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
31261         marked to avoid plt entry.
31262
31263 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31264
31265         [BZ #14112]
31266         * Makeconfig (default-abi): New macro.
31267         (abi-includes): Likewise.
31268         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
31269         $(abi-$(default-abi)-lib-soname) for soname if defined.
31270         ($(common-objpfx)gnu/lib-names.stmp): Generate from
31271         abi-variants.
31272         * Makefile (installed-stubs): Likewise.
31273         * include/stubs-biarch.h: Removed.
31274         * scripts/lib-names.awk: Only handle one library at a time.
31275         * scripts/soversions.awk: Remove WORDSIZE support.
31276         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
31277         entries.
31278         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
31279         Removed.
31280         (syscall-list-default-condition): Likewise.
31281         (syscall-list-default-condition): Likewise.
31282         (syscall-list-includes): Likewise.
31283         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
31284         syscall-list-* with abi-*.  Handle undefined abi-variants.
31285         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
31286         * sysdeps/unix/sysv/linux/i386/Implies: New file.
31287         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
31288         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
31289         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
31290         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
31291         Removed.
31292         (syscall-list-32-options): Likewise.
31293         (syscall-list-32-condition): Likewise.
31294         (syscall-list-64-options): Likewise.
31295         (syscall-list-64-condition): Likewise.
31296         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
31297         macro.
31298         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
31299         Renamed to ...
31300         (abi-*): This.
31301         (abi-64-ld-soname): New macro.
31302         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
31303         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
31304         Renamed to ...
31305         (abi-*): This.
31306         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
31307         * sysdeps/x86_64/x32/shlib-versions: Likewise.
31308
31309 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
31310
31311         * sysdeps/unix/sysv/linux/kernel-features.h
31312         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
31313         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
31314         include <kernel-features.h>.
31315         [!__NR_ftruncate64]: Remove conditional code.
31316         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31317         [__NR_ftruncate64]: Make code unconditional.
31318         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31319         * sysdeps/unix/sysv/linux/truncate64.c: Do not
31320         include <kernel-features.h>.
31321         [!__NR_ftruncate64]: Remove conditional code.
31322         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31323         [__NR_ftruncate64]: Make code unconditional.
31324         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
31326         include <kernel-features.h>.
31327         [!__NR_ftruncate64]: Remove conditional code.
31328         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31329         [__NR_ftruncate64]: Make code unconditional.
31330         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
31332         include <kernel-features.h>.
31333         [!__NR_ftruncate64]: Remove conditional code.
31334         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31335         [__NR_ftruncate64]: Make code unconditional.
31336         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31337
31338         * configure.in (libc_cv_fpie): Weaken to a compile test using
31339         LIBC_TRY_CC_OPTION.
31340         * configure: Regenerated.
31341
31342 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31343
31344         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
31345         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
31346         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
31347         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
31348         Refreshed.
31349         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
31350         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
31351         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
31352         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
31353         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
31354         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
31355         Refreshed.
31356
31357 2012-05-27  David S. Miller  <davem@davemloft.net>
31358
31359         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
31360         (___Q_zero): New.
31361         (__Q_simulate_exceptions): Return void.  Change to simulate
31362         exceptions by writing into the %fsr.
31363         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
31364         (__Qp_handle_exceptions): Likewise.
31365         (numbers): Delete.
31366         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
31367         __Qp_handle_exceptions.
31368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
31369         __Qp_handle_exceptions.
31370         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31371         as unused and give dummy FP_RND_NEAREST initializer.
31372         (FP_INHIBIT_RESULTS): Define.
31373         (___Q_simulate_exceptions): Update declaration.
31374         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
31375         formatting.
31376         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31377         as unused and give dummy FP_RND_NEAREST initializer.
31378         (__Qp_handle_exceptions): Update declaration.
31379         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
31380         formatting.
31381
31382 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
31383
31384         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
31385         the temporary FPU control word.
31386         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
31387         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
31388         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
31389         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
31390         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
31391         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
31392         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
31393         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
31394         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
31395         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
31396         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31397
31398 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31399
31400         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
31401         fields.
31402
31403 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
31404
31405         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
31406         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
31407         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
31408         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
31409         Likewise.
31410         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
31411         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
31412         Likewise.
31413
31414 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
31415
31416         * po/h.po: Update from translation team.
31417
31418 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
31419
31420         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
31421
31422         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
31423         handling of denormals.
31424         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
31425         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
31426         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31427         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31428         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31429         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
31430         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
31431         Likewise.
31432
31433 2012-05-26  Marek Polacek  <polacek@redhat.com>
31434
31435         [BZ #14152]
31436         * math/libm-test.inc (fma_test): Don't always expect underflow
31437         exception.
31438
31439 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31440
31441         [BZ #12416]
31442         * elf/tst-execstack.c: Include stackinfo.h.
31443         (do_test): Adjust test case to ensure that pthread_getattr_np
31444         behaviour remains the same after marking stack executable.
31445
31446 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31447
31448         * sysdeps/unix/sysv/linux/kernel-features.h
31449         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
31450         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
31451         kernel-features.h.
31452         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31453         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31454         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
31455         kernel-features.h.
31456         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31457         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31458
31459 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
31460
31461         * configure.in: Define the default includes to being none.
31462         * configure: Regenerated.
31463
31464 2012-05-25  Roland McGrath  <roland@hack.frob.com>
31465
31466         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
31467         * sysdeps/x86_64/setjmp.S: Likewise.
31468         * sysdeps/i386/bsd-setjmp.S: Likewise.
31469         * sysdeps/i386/bsd-_setjmp.S: Likewise.
31470         * sysdeps/i386/setjmp.S: Likewise.
31471         * sysdeps/i386/__longjmp.S: Likewise.
31472         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31473         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
31474
31475         * include/stap-probe.h: New file.
31476         * configure.in: Handle --enable-systemtap.
31477         * configure: Regenerated.
31478         * config.h.in (USE_STAP_PROBE): New #undef.
31479         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
31480         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
31481         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
31482
31483 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31484
31485         [BZ #13717]
31486         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
31487         to 2.4.0 where earlier.
31488         * sysdeps/unix/sysv/linux/configure: Regenerated.
31489         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
31490         <kernel-features.h>.
31491         [__ASSUME_32BITUIDS]: Make code unconditional.
31492         [!__ASSUME_32BITUIDS]: Remove conditional code.
31493         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
31494         <kernel-features.h>.
31495         [__ASSUME_32BITUIDS]: Make code unconditional.
31496         [!__ASSUME_32BITUIDS]: Remove conditional code.
31497         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
31498         [__ASSUME_32BITUIDS]: Make code unconditional.
31499         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
31500         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
31501         <kernel-features.h>.
31502         [__ASSUME_32BITUIDS]: Make code unconditional.
31503         [!__ASSUME_32BITUIDS]: Remove conditional code.
31504         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
31505         <kernel-features.h>.
31506         [__ASSUME_32BITUIDS]: Make code unconditional.
31507         [!__ASSUME_32BITUIDS]: Remove conditional code.
31508         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
31509         <kernel-features.h>.
31510         [__ASSUME_32BITUIDS]: Make code unconditional.
31511         [!__ASSUME_32BITUIDS]: Remove conditional code.
31512         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
31513         <kernel-features.h>.
31514         [__ASSUME_32BITUIDS]: Make code unconditional.
31515         [!__ASSUME_32BITUIDS]: Remove conditional code.
31516         * sysdeps/unix/sysv/linux/i386/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.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/setegid.c: Do not include
31541         <kernel-features.h>.
31542         [__NR_setresgid] (__setresgid): Do not declare.
31543         [__ASSUME_32BITUIDS]: Make code unconditional.
31544         [!__ASSUME_32BITUIDS]: Remove conditional code.
31545         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
31546         <kernel-features.h>.
31547         [__NR_setresuid] (__setresuid): Do not declare.
31548         [__ASSUME_32BITUIDS]: Make code unconditional.
31549         [!__ASSUME_32BITUIDS]: Remove conditional code.
31550         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
31551         <kernel-features.h>.
31552         [__ASSUME_32BITUIDS]: Make code unconditional.
31553         [!__ASSUME_32BITUIDS]: Remove conditional code.
31554         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
31555         <kernel-features.h>.
31556         [__ASSUME_32BITUIDS]: Make code unconditional.
31557         [!__ASSUME_32BITUIDS]: Remove conditional code.
31558         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
31559         <kernel-features.h>.
31560         [__ASSUME_32BITUIDS]: Make code unconditional.
31561         [!__ASSUME_32BITUIDS]: Remove conditional code.
31562         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
31563         <kernel-features.h>.
31564         [__ASSUME_32BITUIDS]: Make code unconditional.
31565         [!__ASSUME_32BITUIDS]: Remove conditional code.
31566         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
31567         <kernel-features.h>.
31568         [__ASSUME_32BITUIDS]: Make code unconditional.
31569         [!__ASSUME_32BITUIDS]: Remove conditional code.
31570         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
31571         <kernel-features.h>.
31572         [__ASSUME_32BITUIDS]: Make code unconditional.
31573         [!__ASSUME_32BITUIDS]: Remove conditional code.
31574         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
31575         <kernel-features.h>.
31576         [__ASSUME_32BITUIDS]: Make code unconditional.
31577         [!__ASSUME_32BITUIDS]: Remove conditional code.
31578         * sysdeps/unix/sysv/linux/i386/setreuid.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/i386/setuid.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/i386/shmctl.c: Do not include
31587         <kernel-features.h>.
31588         [__ASSUME_32BITUIDS]: Make code unconditional.
31589         [!__ASSUME_32BITUIDS]: Remove conditional code.
31590         * sysdeps/unix/sysv/linux/kernel-features.h
31591         (__ASSUME_SETRESUID_SYSCALL): Remove.
31592         (__ASSUME_SETRESGID_SYSCALL): Likewise.
31593         (__ASSUME_32BITUIDS): Likewise.
31594         (__ASSUME_LDT_WORKS): Likewise.
31595         (__ASSUME_O_DIRECTORY): Likewise.
31596         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
31597         architecture but not kernel version.
31598         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
31599         (__ASSUME_MMAP2_SYSCALL): Likewise.
31600         (__ASSUME_STAT64_SYSCALL): Likewise.
31601         (__ASSUME_IPC64): Likewise.
31602         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
31603         <kernel-features.h>.
31604         [__ASSUME_32BITUIDS]: Make code unconditional.
31605         [!__ASSUME_32BITUIDS]: Remove conditional code.
31606         * sysdeps/unix/sysv/linux/opendir.c: Do not include
31607         <kernel-features.h>.
31608         [__ASSUME_O_DIRECTORY]: Make code unconditional.
31609         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
31610         132096]: Remove conditional code.
31611         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
31612         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
31613         <kernel-features.h>.
31614         [__ASSUME_32BITUIDS]: Make code unconditional.
31615         [!__ASSUME_32BITUIDS]: Remove conditional code.
31616         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
31617         <kernel-features.h>.
31618         [__ASSUME_32BITUIDS]: Make code unconditional.
31619         [!__ASSUME_32BITUIDS]: Remove conditional code.
31620         * sysdeps/unix/sysv/linux/setegid.c: Do not include
31621         <kernel-features.h>.
31622         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
31623         unconditional.
31624         (__setresgid): Do not declare.
31625         [__ASSUME_32BITUIDS]: Make code unconditional.
31626         [!__ASSUME_32BITUIDS]: Remove conditional code.
31627         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
31628         <kernel-features.h>.
31629         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
31630         unconditional.
31631         (__setresuid): Do not declare.
31632         [__ASSUME_32BITUIDS]: Make code unconditional.
31633         [!__ASSUME_32BITUIDS]: Remove conditional code.
31634         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
31635         <kernel-features.h>.
31636         [__ASSUME_32BITUIDS]: Make code unconditional.
31637         [!__ASSUME_32BITUIDS]: Remove conditional code.
31638         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
31639         <kernel-features.h>.
31640         [__ASSUME_32BITUIDS]: Make code unconditional.
31641         [!__ASSUME_32BITUIDS]: Remove conditional code.
31642
31643 2012-05-25  Richard Henderson  <rth@twiddle.net>
31644
31645         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
31646         dl_hwcap to ifunc resolver.
31647         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
31648         elf_ifunc_invoke.
31649         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
31650         dl_hwcap to ifunc resolver.
31651         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
31652
31653 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31654
31655         [BZ #14153]
31656         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
31657         for |x| <= 2**-26, not 2**-57.
31658         * math/libm-test.inc (acos_test): Do not allow spurious underflow
31659         exception.
31660
31661 2012-05-24  Jeff Law  <law@redhat.com>
31662
31663         * stdio-common/Makefile (tests): Add bug25.
31664         * stdio-common/bug25.c: New test.
31665
31666 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31667
31668         [BZ #13576]
31669         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
31670         multiple of MALLOC_ALIGNMENT in size.
31671         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
31672
31673 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31674
31675         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
31676         Require >= 256.
31677         (FILENAME_MAX): Use macro-int-constant.
31678         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
31679         (_IOFBF): Use macro-int-constant.
31680         (_IOLBF): Likewise.
31681         (_IONBF): Likewise.
31682         (SEEK_CUR): Likewise.
31683         (SEEK_END): Likewise.
31684         (SEEK_SET): Likewise.
31685         (TMP_MAX): Likewise.
31686         (EOF): Use macro-int-constant.  Require < 0.
31687         (NULL): Use macro-constant.  Require == 0.
31688         (stdin): Require type to be FILE *.
31689         (stdout): Likewise.
31690         (stderr): Likewise.
31691         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
31692         macro-int-constant.
31693         (EXIT_SUCCESS): Likewise.
31694         (NULL): Use macro-constant.  Require == 0.
31695         (RAND_MAX): Use macro-int-constant.
31696         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
31697         [C99-based standards] (strtof): Require function.
31698         [C99-based standards] (strtold): Likewise.
31699         [C99-based standards] (strtoll): Likewise.
31700         [C99-based standards] (strtoull): Likewise.
31701         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
31702         [ISO || ISO99 || ISO11] (limits.h): Likewise.
31703         [ISO || ISO99 || ISO11] (math.h): Likewise.
31704         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
31705         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
31706         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31707
31708 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
31709
31710         [BZ #14132]
31711         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
31712         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
31713         * intl/dgettext.c (DCGETTEXT): Likewise.
31714         * intl/gettext.c (DCGETTEXT): Likewise.
31715         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
31716         * posix/regex_internal.h (gettext): Likewise.
31717         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
31718         Remove declaration.
31719         * include/argz.h (__argz_count_internal)
31720         (__argz_stringify_internal): Remove declaration.
31721         (__argz_count, __argz_stringify): Declare hidden proto.
31722         * intl/dcgettext.c: Remove use of INTDEF.
31723         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
31724         * string/argz-stringify.c: Likewise.
31725         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31726         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31727         Declare hidden proto.
31728         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31729         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31730         Declare hidden proto.
31731         * include/stdio.h (__asprintf_internal): Don't declare.
31732         (__asprintf): Don't define as macro.  Declare hidden proto.
31733         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
31734         (__fsetlocking): Declare hidden proto.
31735         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
31736         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
31737         hidden proto.
31738         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
31739         (_IO_setlinebuf): Remove use of INTUSE.
31740         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
31741         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
31742         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
31743         Remove declaration.
31744         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
31745         (_IO_do_flush): Remove use of INTUSE.
31746         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
31747         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
31748         (_IO_adjust_column, _IO_least_wmarker)
31749         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
31750         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
31751         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
31752         (_IO_default_doallocate, _IO_wdefault_doallocate)
31753         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
31754         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
31755         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
31756         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
31757         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
31758         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
31759         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
31760         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
31761         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
31762         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
31763         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
31764         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
31765         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
31766         proto.
31767         (_IO_flush_all_internal, _IO_adjust_column_internal)
31768         (_IO_default_uflow_internal, _IO_default_finish_internal)
31769         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
31770         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
31771         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
31772         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
31773         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
31774         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
31775         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
31776         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
31777         (_IO_file_close_internal, _IO_file_close_it_internal)
31778         (_IO_file_underflow_internal, _IO_file_overflow_internal)
31779         (_IO_file_init_internal, _IO_file_attach_internal)
31780         (_IO_file_fopen_internal, _IO_file_read_internal)
31781         (_IO_file_sync_internal, _IO_file_seek_internal)
31782         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
31783         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
31784         (_IO_str_underflow_internal, _IO_str_overflow_internal)
31785         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
31786         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
31787         (_IO_list_all_internal, _IO_link_in_internal)
31788         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
31789         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
31790         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
31791         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
31792         (_IO_do_write_internal, _IO_padn_internal)
31793         (_IO_getline_info_internal, _IO_getline_internal)
31794         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
31795         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
31796         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
31797         (_IO_vfscanf_internal, _IO_vfprintf_internal)
31798         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
31799         (_IO_init_internal, _IO_un_link_internal): Don't declare.
31800         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
31801         with libc_hidden_ver, remove use of INTUSE.
31802         * libio/genops.c: Likewise.
31803         * libio/freopen.c: Likewise.
31804         * libio/freopen64.c: Likewise.
31805         * libio/iofclose.c: Likewise.
31806         * libio/iofdopen.c: Likewise.
31807         * libio/iofflush.c: Likewise.
31808         * libio/iofflush_u.c: Likewise.
31809         * libio/iofgets.c: Likewise.
31810         * libio/iofgets_u.c: Likewise.
31811         * libio/iofopen.c: Likewise.
31812         * libio/iofopncook.c: Likewise.
31813         * libio/iofread.c: Likewise.
31814         * libio/iofread_u.c: Likewise.
31815         * libio/ioftell.c: Likewise.
31816         * libio/iofwrite.c: Likewise.
31817         * libio/iogetline.c: Likewise.
31818         * libio/iogets.c: Likewise.
31819         * libio/iogetwline.c: Likewise.
31820         * libio/iopadn.c: Likewise.
31821         * libio/iopopen.c: Likewise.
31822         * libio/ioseekoff.c: Likewise.
31823         * libio/ioseekpos.c: Likewise.
31824         * libio/iosetbuffer.c: Likewise.
31825         * libio/iosetvbuf.c: Likewise.
31826         * libio/ioungetc.c: Likewise.
31827         * libio/ioungetwc.c: Likewise.
31828         * libio/iovdprintf.c: Likewise.
31829         * libio/iovsprintf.c: Likewise.
31830         * libio/iovsscanf.c: Likewise.
31831         * libio/memstream.c: Likewise.
31832         * libio/obprintf.c: Likewise.
31833         * libio/oldfileops.c: Likewise.
31834         * libio/oldiofclose.c: Likewise.
31835         * libio/oldiofdopen.c: Likewise.
31836         * libio/oldiofopen.c: Likewise.
31837         * libio/oldiopopen.c: Likewise.
31838         * libio/oldstdfiles.c: Likewise.
31839         * libio/putc.c: Likewise.
31840         * libio/setbuf.c: Likewise.
31841         * libio/setlinebuf.c: Likewise.
31842         * libio/stdfiles.c: Likewise.
31843         * libio/strops.c: Likewise.
31844         * libio/vasprintf.c: Likewise.
31845         * libio/vscanf.c: Likewise.
31846         * libio/vsnprintf.c: Likewise.
31847         * libio/vswprintf.c: Likewise.
31848         * libio/wfiledoalloc.c: Likewise.
31849         * libio/wfileops.c: Likewise.
31850         * libio/wgenops.c: Likewise.
31851         * libio/wmemstream.c: Likewise.
31852         * libio/wstrops.c: Likewise.
31853         * libio/__fpurge.c: Likewise.
31854         * libio/__fsetlocking.c: Likewise.
31855         * assert/assert.c: Likewise.
31856         * debug/fgets_chk.c: Likewise.
31857         * debug/fgets_u_chk.c: Likewise.
31858         * debug/fread_chk.c: Likewise.
31859         * debug/fread_u_chk.c: Likewise.
31860         * debug/gets_chk.c: Likewise.
31861         * debug/obprintf_chk.c: Likewise.
31862         * debug/vasprintf_chk.c: Likewise.
31863         * debug/vdprintf_chk.c: Likewise.
31864         * debug/vsnprintf_chk.c: Likewise.
31865         * debug/vsprintf_chk.c: Likewise.
31866         * malloc/mtrace.c: Likewise.
31867         * misc/error.c: Likewise.
31868         * misc/syslog.c: Likewise.
31869         * stdio-common/asprintf.c: Likewise.
31870         * stdio-common/fxprintf.c: Likewise.
31871         * stdio-common/getw.c: Likewise.
31872         * stdio-common/isoc99_fscanf.c: Likewise.
31873         * stdio-common/isoc99_scanf.c: Likewise.
31874         * stdio-common/isoc99_vfscanf.c: Likewise.
31875         * stdio-common/isoc99_vscanf.c: Likewise.
31876         * stdio-common/isoc99_vsscanf.c: Likewise.
31877         * stdio-common/printf-prs.c: Likewise.
31878         * stdio-common/printf_fp.c: Likewise.
31879         * stdio-common/printf_fphex.c: Likewise.
31880         * stdio-common/printf_size.c: Likewise.
31881         * stdio-common/putw.c: Likewise.
31882         * stdio-common/scanf.c: Likewise.
31883         * stdio-common/sprintf.c: Likewise.
31884         * stdio-common/tmpfile.c: Likewise.
31885         * stdio-common/vfprintf.c: Likewise.
31886         * stdio-common/vfscanf.c: Likewise.
31887         * stdlib/strfmon_l.c: Likewise.
31888         * sunrpc/openchild.c: Likewise.
31889         * sunrpc/xdr_stdio.c: Likewise.
31890         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
31891         * sysdeps/mach/hurd/tmpfile.c: Likewise.
31892
31893 2012-05-24  Roland McGrath  <roland@hack.frob.com>
31894
31895         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31896
31897         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
31898         in the third column, to generate for the shared library an IFUNC
31899         that uses _dl_vdso_vsym.
31900         * Makerules (COMPILE.c, compile-stdin.c): New variables.
31901         * Makeconfig (object-suffixes-noshared): New variable.
31902
31903         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
31904         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
31905         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
31906         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
31907
31908         [BZ #14132]
31909         * include/sys/time.h (__gettimeofday): Remove macro.
31910         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
31911         * time/gettimeofday.c (__gettimeofday): Remove #undef.
31912         Remove INTDEF.
31913         (__gettimeofday): Add libc_hidden_def.
31914         (gettimeofday): Add libc_hidden_weak.
31915         * sysdeps/mach/gettimeofday.c: Likewise.
31916         * sysdeps/posix/gettimeofday.c: Likewise.
31917         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
31918         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31919         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
31920         (__gettimeofday_internal): Remove strong_alias.
31921         (__gettimeofday): Add libc_hidden_def.
31922         (gettimeofday): Add libc_hidden_weak.
31923         * sysdeps/unix/syscalls.list (gettimeofday):
31924         Remove __gettimeofday_internal alias.
31925
31926 2012-05-24  Daniel Jacobowitz  <drow@false.org>
31927             H.J. Lu  <hongjiu.lu@intel.com>
31928
31929         [BZ #12495]
31930         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
31931         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
31932         (largebin_index_32_big): New.
31933         (largebin_index): Use it for 16-byte alignment.
31934         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
31935         correction with front_misalign.
31936
31937 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31938
31939         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
31940         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
31941         Likewise.
31942         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
31943         Likewise.
31944         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
31945         Likewise.
31946         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
31947         Likewise.
31948         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
31949         Likewise.
31950         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
31951         Likewise.
31952         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
31953         Likewise.
31954         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
31955         Likewise.
31956         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
31957         Likewise.
31958         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
31959         Likewise.
31960         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
31961         Likewise.
31962         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
31963         Likewise.
31964
31965         * scripts/data/c++-types-x32-linux-gnu.data: New file.
31966         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
31967
31968 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31969
31970         [BZ #10846]
31971         [BZ #14036]
31972         * math/libm-test.inc (exp_test): Add test from bug 14036.
31973         (pow_test): Add test from bug 10846.
31974
31975         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
31976         and other flags.
31977         (special_function): Do not include flags in test name.
31978         (parse_args): Likewise.
31979         * sysdeps/i386/fpu/libm-test-ulps: Update.
31980         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31981         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31982         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31984
31985         * math/gen-libm-test.pl (%beautify): Add entries for underflow
31986         exceptions.
31987         * math/libm-test.inc ("Philosophy"): Update comment about
31988         exception testing.
31989         (UNDERFLOW_EXCEPTION): New macro.
31990         (UNDERFLOW_EXCEPTION_OK): Likewise.
31991         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
31992         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
31993         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
31994         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
31995         (INVALID_EXCEPTION_OK): Update value.
31996         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
31997         (OVERFLOW_EXCEPTION_OK): Likewise.
31998         (IGNORE_ZERO_INF_SIGN): Likewise.
31999         (test_exceptions): Handle underflow exceptions.
32000         (acos_test): Update for underflow exception expectations.
32001         (cexp_test): Likewise.
32002         (clog_test): Likewise.
32003         (clog10_test): Likewise.
32004         (csqrt_test): Likewise.
32005         (ctan_test): Likewise.
32006         (ctanh_test): Likewise.
32007         (exp_test): Likewise.
32008         (exp10_test): Likewise.
32009         (exp2_test): Likewise.
32010         (expm1_test): Likewise.
32011         (fma_test): Likewise.
32012         (j0_test): Likewise.
32013         (jn_test): Likewise.
32014         (nexttoward_test): Likewise.
32015         (pow_test): Likewise.
32016         (scalbn_test): Likewise.
32017         (scalbln_test): Likewise.
32018         (tan_test): Likewise.
32019         (y1_test): Likewise.
32020         * sysdeps/i386/fpu/libm-test-ulps: Update.
32021         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32022
32023 2012-05-23  David S. Miller  <davem@davemloft.net>
32024
32025         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32026         (__libc_sigaction): Remove unused local variables.
32027
32028 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32029
32030         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
32031
32032 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
32033
32034         mktime: avoid signed integer overflow
32035         * time/mktime.c (__mktime_internal): Do not mishandle the case
32036         where diff == INT_MIN.
32037
32038         mktime: simplify computation of average
32039         * time/mktime.c (ranged_convert): Use new time_t_avg function
32040         instead of rolling our own (probably-slower) code.
32041
32042         mktime: do not assume signed right shift propagates sign bit
32043         * time/mktime.c (isdst_differ): New static function.
32044         (__mktime_internal): No need to normalize tm_isdst now.
32045         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
32046         tm_isdst values.
32047
32048         mktime: merge another wrapv change from gnulib
32049         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
32050         from some compilers.
32051
32052         mktime: remove incorrect attempt at unusual arithmetics
32053         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
32054         The code didn't really work on such machines anyway.
32055         (TYPE_MINIMUM): Assume two's complement.
32056         (twos_complement_arithmetic): Verify that long_int and time_t
32057         are two's complement (or unsigned, in the latter case).
32058
32059         mktime: check signed shifts on long_int and time_t, too
32060         * time/mktime.c (SHR): Check that shifts work as desired
32061         on the types long_int and time_t too, as SHR is used on
32062         such types.
32063
32064         mktime: do not assume 'long' is wide enough
32065         * time/mktime.c (verify): Move decl up.
32066         (long_int): New type.
32067         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
32068         to remove assumption in the code that 'long' is wide enough to
32069         store year values.  This assumption is not true on x32 and on
32070         some non-glibc platforms.
32071
32072         mktime: merge wrapv change from gnulib
32073         * time/mktime.c (WRAPV): New macro.
32074         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
32075         (guess_time_tm, __mktime_internal): Do not assume that signed
32076         integer overflow wraps around; modern compilers generate code
32077         where this assumption is no longer valid.
32078
32079 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32080
32081         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32082         Replace "jmp L(pseudo_end)" with "ret".
32083         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
32084         Likewise.
32085
32086 2012-05-23  Andreas Jaeger  <aj@suse.de>
32087
32088         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
32089         * sysdeps/unix/sysv/linux/poll.c: Remove file.
32090
32091 2012-05-23  Andreas Jaeger  <aj@suse.de>
32092             Maximilian Attems  <max@stro.at>
32093
32094         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
32095         New macros.
32096
32097 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32098
32099         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
32100         code so that pseudo_end is just ret and the stack pointer is
32101         correct also for static library in error case.
32102
32103 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
32104
32105         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
32106         move to syscalls.list.
32107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
32108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32111
32112         * manual/install.texi (Running make install): Do not mention Linux
32113         kernel version for which pt_chown is not needed.
32114         (Linux): Do not mention problems with nscd with 2.0 kernels.
32115         * INSTALL: Regenerated.
32116
32117 2012-05-23  Andreas Jaeger  <aj@suse.de>
32118
32119         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
32120         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
32121         macro.
32122         * sysdeps/unix/sysv/linux/s390/bits/mman.h
32123         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32124         * sysdeps/unix/sysv/linux/sh/bits/mman.h
32125         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32126         * sysdeps/unix/sysv/linux/i386/bits/mman.h
32127         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32128         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
32129         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32130         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
32131         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32132         * sysdeps/unix/sysv/linux/bits/in.h
32133         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
32134
32135 2012-05-22  Roland McGrath  <roland@hack.frob.com>
32136
32137         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
32138         (PREPARE_VERSION): Just use assert instead, it will be elided
32139         under [NDEBUG] anyway.
32140
32141 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32142
32143         * sysdeps/unix/sysv/linux/Makefile: Include
32144         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
32145         (sysdep_routines): Remove sysctl.
32146         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
32147         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
32148         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
32149         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
32150         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
32151
32152 2012-05-22  Andreas Jaeger  <aj@suse.de>
32153
32154         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
32155         that pseudo_end is just ret and the stack pointer is correct also
32156         for static library in error case.
32157
32158 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
32159
32160         [BZ #14122]
32161         * nss/nsswitch.c (defconfig_entries): New variable.
32162         (__nss_database_lookup): Don't leak defconfig entries.
32163         (nss_parse_service_list): Don't leak on error paths.
32164         (free_database_entries): New function.
32165         (free_defconfig): New function.
32166         (free_mem): Move common code to free_database_entries.
32167
32168 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32169
32170         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
32171         Add arch_prctl.
32172         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
32173
32174         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32175         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
32176         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
32177         New macro.
32178         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
32179         (INTERNAL_SYSCALL_TYPES): Likewise.
32180         (LOAD_ARGS_TYPES_[1-6]): Likewise.
32181         (LOAD_REGS_TYPES_[1-6]): Likewise.
32182         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
32183         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
32184
32185 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32186
32187         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
32188         copysignl for GLIBC_2_0.
32189         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
32190         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
32191         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
32192         logbl for GLIBC_2_0.
32193         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
32194         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
32195
32196 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32197
32198         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
32199         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32200
32201         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32202         Use "neg %eax".
32203
32204         * time/mktime.c: Update copyright years.
32205
32206 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32207
32208         mktime: merge comment-quoting-style change from gnulib
32209         * time/mktime.c: Quote 'like this' in comments.
32210         The GNU coding standards suggest that we no longer quote `like this',
32211         as "`" and "'" are typically rendered asymmetrically nowadays.
32212         The typical gnulib style is to quote 'like this' when quoting
32213         code, and "like this" when quoting English.
32214
32215         * time/mktime.c (compile-command): Add "-I.".
32216
32217         mktime: merge mktime-internal.h change from gnulib
32218         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
32219
32220         mktime: merge time_r change from gnulib
32221         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
32222
32223         mktime: merge DEBUG change from gnulib
32224         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
32225         case system <time.h> has a #define.
32226
32227         mktime: merge <sys/types.h> change from gnulib
32228         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
32229         since <time.t> is now guaranteed to define time_t.
32230
32231         mktime: merge HAVE_CONFIG_H change from gnulib
32232         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
32233
32234 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32235
32236         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32237         Use "neg %eax".
32238
32239         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
32240         __rlim_t cast.
32241         (struct rusage): Use anonymous union to pad each field to
32242         __syscall_slong_t.
32243
32244 2012-05-21  David S. Miller  <davem@davemloft.net>
32245
32246         * Makefules (o-iterator): Remove .s cases.
32247         (compile-command.s): Delete.
32248         (COMPILE.s): Delete.
32249         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
32250
32251 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
32252
32253         * configure.in (libc_cv_predef_stack_protector): Only consider
32254         "foobar" and "__stack_chk_fail" lines in libc_undefs.
32255         * configure: Regenerated.
32256
32257 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32258
32259         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32260         New macro.  Use R*LP on int and pointer.
32261         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
32262         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
32263         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
32264         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
32265
32266         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
32267         [__WORDSIZE_TIME64_COMPAT32] instead of
32268         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
32269         (struct utmp): Likewise.
32270         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
32271         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
32272         Renamed to ...
32273         (__WORDSIZE_TIME64_COMPAT32): This.
32274         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
32275         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
32276         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
32277         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
32278         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
32279         (__WORDSIZE_TIME64_COMPAT32): New macro.
32280
32281 2012-05-21  Andreas Jaeger  <aj@suse.de>
32282
32283         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
32284         only if [SHARED]. Add prototype for __wcschr_ia32.
32285
32286 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32287
32288         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
32289         of %rbp unmolested in the jmp_buf while mangling the low bits.
32290         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
32291         unmolested high bits of %rbp while demangling the low bits.
32292         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32293
32294 2012-05-21  Andreas Jaeger  <aj@suse.de>
32295
32296         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
32297         * sunrpc/svc_simple.c: Use it for registerrpc.
32298         * sunrpc/xcrypt.c: Use it for passwd2des.
32299
32300         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
32301
32302 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32303
32304         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
32305         Don't define if [__SYSCALL_WORDSIZE != 32].
32306         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
32307         New macro.
32308
32309 2012-05-21  Bruno Haible  <bruno@clisp.org>
32310             Andreas Jaeger  <aj@suse.de>
32311
32312         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
32313         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
32314         inptr and inend for must_buffer_ch.
32315         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
32316         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
32317         * stdio-common/Makefile (tests): Remove bug15.
32318         (bug15-ENV): Remove macro.
32319         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
32320         anymore.
32321
32322 2012-05-19  Andreas Jaeger  <aj@suse.de>
32323             Roland McGrath  <roland@hack.frob.com>
32324
32325         * manual/contrib.texi: Completely rewritten. It contains now an
32326         alphabetical list of contributors and their contributions.
32327
32328 2012-05-21  Richard Henderson  <rth@twiddle.net>
32329
32330         * misc/getauxval.c (__getauxval): Use unsigned long int.
32331         * misc/sys/auxv.h: Include <sys/cdefs.h>.
32332         (getauxval): Use unsigned long int.
32333
32334 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32335
32336         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32337
32338 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32339
32340         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
32341         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
32342         __alignof__ (long double).
32343
32344 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32345
32346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32347
32348 2012-05-20  Richard Henderson  <rth@twiddle.net>
32349
32350         * misc/getauxval.c: New file.
32351         * misc/sys/auxv.h: New file.
32352         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
32353         (routines): Add getauxval.
32354         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
32355         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
32356         * elf/dl-sysdep.c (_dl_auxv): Remove.
32357         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
32358         * elf/dl-support.c (_dl_auxv): New variable.
32359         (_dl_aux_init): Initialize it.
32360         * manual/startup.texi (Auxiliary Vector): New node.
32361         * sysdeps/generic/bits/hwcap.h: New file.
32362         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
32363         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
32364         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
32365         * sysdeps/sparc/sysdep.h: ... here.  Include it.
32366         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
32367         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
32368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32369         Update.
32370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
32371         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
32372         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
32373         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
32374         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32375         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32376         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
32377         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
32378
32379 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32380
32381         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32382
32383 2012-05-19  David S. Miller  <davem@davemloft.net>
32384
32385         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32386
32387 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32388
32389         [BZ #14123]
32390         * math/s_ccosh.c: Include <float.h>
32391         (__ccosh): Avoid internal overflow calculating sinh and cosh
32392         values before multiplying by sin and cos values.
32393         * math/s_ccoshf.c: Likewise.
32394         * math/s_ccoshl.c: Likewise.
32395         * math/s_csin.c: Likewise.
32396         * math/s_csinf.c: Likewise.
32397         * math/s_csinl.c: Likewise.
32398         * math/s_csinh.c: Likewise.
32399         * math/s_csinhf.c: Likewise.
32400         * math/s_csinhl.c: Likewise.
32401         * math/libm-test.inc (ccos_test): Add more tests.
32402         (ccosh_test): Likewise.
32403         (csin_test): Likewise.
32404         (csinh_test): Likewise.
32405         * sysdeps/i386/fpu/libm-test-ulps: Update.
32406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32407
32408 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
32409
32410         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
32411         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
32412
32413         * sysdeps/x86_64/x32/_itoa.h: Add comment.
32414
32415 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32416
32417         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
32418         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
32419         * sysdeps/powerpc/soft-fp/Versions: Likewise.
32420         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
32421         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
32422         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
32423         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
32424         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
32425         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
32426         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
32427         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
32428         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
32429         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
32430         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
32431         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
32432         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
32433         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
32434         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
32435         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
32436         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
32437         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
32438         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
32439         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
32440         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
32441         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
32442         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
32443         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
32444         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
32445         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
32446         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
32447         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
32448
32449 2012-05-18  Andreas Jaeger  <aj@suse.de>
32450
32451         * csu/.gitignore: Delete.
32452
32453 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32454
32455         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
32456         (timex): Use __syscall_slong_t.
32457
32458 2012-05-18  Andreas Jaeger  <aj@suse.de>
32459             Carlos O'Donell  <carlos_odonell@mentor.com>
32460
32461         * manual/install.texi (Configuring and compiling): Update
32462         description about files modified in the source directory.
32463         * INSTALL: Regenerated.
32464
32465 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32466
32467         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
32468         value.  Use "or" to set return value to -1.
32469         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
32470         negate return value.
32471
32472 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32473
32474         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
32475         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
32476         failure if the compiler has Graphite support disabled.
32477         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
32478         Likewise.
32479         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
32480         (CFLAGS-memmove.c): Likewise.
32481         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
32482         Likewise.
32483
32484 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32485
32486         * sysdeps/x86_64/x32/_itoa.h: New file.
32487
32488         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
32489         getdents system call only if kernel and user dirents have the
32490         same d_ino and d_off.
32491
32492         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
32493         LLONG_MAX != LONG_MAX.
32494         (_itoa_word): Use _ITOA_WORD_TYPE on value.
32495         (_fitoa_word): Likewise.
32496
32497         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
32498         years.
32499         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
32500         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
32501         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
32502
32503         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
32504         include <bits/wordsize.h>.  Check __x86_64__ instead of
32505         __WORDSIZE.
32506         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
32507         if __x86_64__ is defined.  Use anonymous union on fpstate.
32508
32509         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
32510         anonymous union.
32511
32512 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
32513
32514         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
32515         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
32516         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
32517         Refer to _rtld_local_ro instead of _rtld_global_ro.
32518         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
32519         Likewise.
32520         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
32521         Likewise.
32522         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
32523         Likewise.
32524         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
32525         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
32526         of _rtld_global, and rtld_progname instead of _dl_argv[0].
32527
32528         * sysdeps/powerpc/powerpc32/dl-machine.c
32529         (__elf_machine_runtime_setup) [PROF]: Don't reference
32530         _dl_prof_resolve.
32531
32532 2012-05-18  Andreas Jaeger  <aj@suse.de>
32533
32534         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
32535         function only available for GCCs before 3.4 since GCC 3.4
32536         introduced a builtin.
32537         (lrint): Likewise.
32538         (llrintf): Likewise.
32539         (llrint): Likewise.
32540         (fmaxf): Likewise.
32541         (fmax): Likewise.
32542         (fminf): Likewise.
32543         (fmin): Likewise.
32544         (rint): Likewise.
32545         (rintf): Likewise.
32546         (nearbyint): Likewise.
32547         (nearbyintf): Likewise.
32548         (ceil): Likewise.
32549         (ceilf): Likewise.
32550         (floor): Likewise.
32551         (floorf): Likewise.
32552
32553 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32554
32555         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
32556         on both fields and cast pointer to __syscall_ulong_t.
32557
32558         * bits/types.h (__fsword_t): New type.
32559         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
32560         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
32561         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32562         (__FSWORD_T_TYPE): Likewise.
32563         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32564         (__FSWORD_T_TYPE): Likewise.
32565         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32566         (__FSWORD_T_TYPE): Likewise.
32567         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
32568         (__FSWORD_T_TYPE): Likewise.
32569         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
32570         __SWORD_TYPE with __fsword_t.
32571         (statfs64): Likewise.
32572
32573 2012-05-17  David S. Miller  <davem@davemloft.net>
32574
32575         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
32576
32577 2012-05-17  Andreas Jaeger  <aj@suse.de>
32578
32579         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
32580         warning.
32581
32582 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32583
32584         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
32585
32586 2012-05-17  Andreas Jaeger  <aj@suse.de>
32587
32588         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
32589         when it is used.
32590
32591 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32592
32593         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
32594
32595 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32596
32597         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
32598         * sysdeps/x86_64/tst-mallocalign1.c: New file.
32599
32600 2012-05-17  Andreas Jaeger  <aj@suse.de>
32601             Carlos O'Donell  <carlos_odonell@mentor.com>
32602
32603         [BZ #14059]
32604         * sysdeps/x86_64/multiarch/init-arch.h
32605         (bit_YMM_Usable): Rename to...
32606         (bit_AVX_Usable): ... this.
32607         (bit_FMA4_Usable): New macro.
32608         (bit_XMM_state): New macro.
32609         (bit_YMM_state): New macro.
32610         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
32611         [__ASSEMBLER__] (index_AVX_Usable): ... this.
32612         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
32613         (CPUID_OSXSAVE): New macro.
32614         (CPUID_AVX): New macro.
32615         (CPUID_FMA4): New macro.
32616         (index_YMM_Usable): Rename to...
32617         (index_AVX_Usable): ... this.
32618         (HAS_AVX): Use HAS_ARCH_FEATURE.
32619         (HAS_FMA4): Likewise.
32620         (HAS_YMM_USABLE): Remove.
32621         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32622         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
32623         are present.
32624         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
32625         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
32626         * sysdeps/x86_64/multiarch/Makefile: Likewise.
32627         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
32628         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
32629
32630 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32631
32632         * math/libm-test.c: Support platforms without multiple rounding modes.
32633         * math/bug-nextafter.c: Support platforms without FP exceptions.
32634         * math/bug-nexttoward.c: Likewise.
32635         * math/test-fenv.c: Likewise.
32636         * math/test-misc.c: Likewise.
32637         * stdlib/bug-getcontext.c: Likewise.
32638
32639 2012-05-17  Andreas Jaeger  <aj@suse.de>
32640
32641         * manual/examples/search.c (critter_cmp): Change signature to
32642         avoid warnings.
32643         * manual/string.texi (Collation Functions): Likewise.
32644
32645 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32646
32647         * bits/types.h: Fold copyright years.
32648         * bits/typesizes.h: Likewise.
32649         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
32650         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
32651         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
32652         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
32653         * time/time.h: Likewise.
32654
32655 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
32656
32657         [BZ #208]
32658         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
32659         in instead of returning them.  Return void.
32660         (__libc_mallinfo): Accumulate over all arenas.
32661         (__malloc_stats): Adjust for change in int_mallinfo interface.
32662
32663 2012-05-16  Roland McGrath  <roland@hack.frob.com>
32664
32665         [BZ #10375]
32666         * configure.in (NM): Add AC_CHECK_TOOL for it.
32667         (libc_extra_cflags): New substituted variable.
32668         Check for -fstack-protector being used implicitly.
32669         * configure: Regenerated.
32670         * config.make.in (config-extra-cflags): New variable,
32671         gets @libc_extra_cflags@.
32672         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
32673
32674         [BZ #10375]
32675         * configure.in: Check for _FORTIFY_SOURCE being predefined.
32676         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
32677         * configure: Regenerated.
32678         * config.make.in (CPPUNDEFS): New substituted variable.
32679         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
32680         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
32681         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
32682
32683 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32684
32685         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
32686         (mq_attr): Use __syscall_slong_t.
32687
32688 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32689
32690         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
32691         Check __x86_64__ instead of __WORDSIZE.
32692         (_STAT_VER_LINUX): Likewise.
32693         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
32694         __syscall_ulong_t and __syscall_slong_t.
32695         (stat64): Likewise.
32696
32697 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32698
32699         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
32700
32701 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32702
32703         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
32704
32705 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32706
32707         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
32708         __syscall_ulong_t.
32709
32710         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
32711         include <bits/wordsize.h>.  Check __x86_64__ instead of
32712         __WORDSIZE.
32713         (greg_t): Use "__extension__ long long int" if __x86_64__ is
32714         defined.
32715         (mcontext_t): Replace "unsigned long" with "unsigned long long".
32716
32717         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
32718         include <bits/wordsize.h>.  Check __x86_64__ instead of
32719         __WORDSIZE.
32720         (user_regs_struct): Use "__extension__ unsigned long long"
32721         instead of "unsigned long" if __x86_64__ is defined.
32722         (user): Likewise.  Pad after pointer field if __ILP32__ is
32723         defined.
32724
32725 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
32726
32727         * configure.in (makeinfo): Require version 4.5 or later.  Allow
32728         versions 5 to 9.
32729         * configure: Regenerated.
32730         * manual/install.texi (texinfo): Increase version requirement to
32731         4.5 or later.
32732         * INSTALL: Regenerated.
32733
32734         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
32735
32736 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32737
32738         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
32739
32740         * sysdeps/x86_64/x32/ffs.c: New file.
32741
32742         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
32743         __syscall_ulong_t.
32744         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
32745         defined.  Use __syscall_ulong_t.
32746         (shminfo): Use __syscall_ulong_t.
32747         (shm_info): Likewise.
32748
32749         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
32750         __syscall_ulong_t.
32751
32752         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
32753         <bits/wordsize.h>.
32754         (msgqnum_t): Use __syscall_ulong_t.
32755         (msglen_t): Likewise.
32756         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
32757         __syscall_ulong_t.
32758
32759         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
32760         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32761
32762         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
32763
32764         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
32765         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
32766
32767         * sysvipc/sys/msg.h (msgbuf): Replace long int with
32768         __syscall_slong_t.
32769
32770         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
32771         include <bits/wordsize.h>.  Check __x86_64__ instead of
32772         __WORDSIZE.
32773
32774         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
32775         "unsigned long long int" if __x86_64__ is defined.
32776         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
32777
32778         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
32779         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32780         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
32781
32782         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
32783         <stdint.h>.
32784         (GET_PC): Cast to uintptr_t first.
32785         (GET_FRAME): Likewise.
32786         (GET_STACK): Likewise.
32787
32788         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
32789         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
32790         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
32791         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
32792         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
32793         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
32794         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
32795         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
32796         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
32797         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
32798         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
32799         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
32800         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
32801         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
32802         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
32803         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
32804         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
32805         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
32806         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
32807         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
32808         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
32809         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
32810         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
32811         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
32812         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
32813         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
32814         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
32815         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
32816         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
32817
32818 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
32819
32820         * Makerules (+depfiles): Also collect depfiles from .oS in
32821         $(extra-objs).
32822         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
32823         .oS, $(libnldbl-routines)).
32824
32825         * Makerules (native-compile-mkdep-flags): Define.
32826         * sunrpc/Makefile (extra-objs): Add $(addprefix
32827         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
32828         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
32829         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
32830         calling $(make-target-directory).
32831
32832 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32833
32834         * bits/types.h (__snseconds_t): Removed.
32835         * time/time.h (struct timespec): Replace __snseconds_t with
32836         __syscall_slong_t.
32837         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
32838         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
32839         Likewise.
32840         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32841         (__SNSECONDS_T_TYPE): Likewise.
32842         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32843         (__SNSECONDS_T_TYPE): Likewise.
32844         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32845         (__SNSECONDS_T_TYPE): Likewise.
32846
32847 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32848
32849         * sysdeps/mach/hurd/bits/typesizes.h
32850         (__SYSCALL_SLONG_TYPE): New macro.
32851         (__SYSCALL_ULONG_TYPE): Likewise.
32852
32853 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32854
32855         * bits/types.h (__syscall_slong_t): New type.
32856         (__syscall_ulong_t): Likewise.
32857
32858         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
32859         (__SYSCALL_ULONG_TYPE): Likewise.
32860         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32861         (__SYSCALL_SLONG_TYPE): Likewise.
32862         (__SYSCALL_ULONG_TYPE): Likewise.
32863         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32864         (__SYSCALL_SLONG_TYPE): Likewise.
32865         (__SYSCALL_ULONG_TYPE): Likewise.
32866         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32867         (__SYSCALL_SLONG_TYPE): Likewise.
32868         (__SYSCALL_ULONG_TYPE): Likewise.
32869
32870 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32871
32872         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
32873         Add sigaltstack-offsets.sym.
32874         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
32875         <sigaltstack-offsets.h>.
32876         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
32877         longjmp_msg pointer.
32878         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
32879         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
32880         signal stack.
32881         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
32882
32883 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32884
32885         * elf/stackguard-macros.h: Remove file.
32886         * sysdeps/generic/stackguard-macros.h: New file.
32887         * sysdeps/i386/stackguard-macros.h: Likewise.
32888         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
32889         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
32890         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
32891         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
32892         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
32893         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
32894         * sysdeps/x86_64/stackguard-macros.h: Likewise.
32895         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
32896         <elf/stackguard-macros.h>.
32897
32898         [BZ #14109]
32899         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
32900         __aligned__ in attribute.
32901         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
32902         (gregset_t): Likewise.
32903
32904 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32905
32906         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
32907         * sysdeps/x86_64/64/Implies-after: Here.  New file.
32908         * sysdeps/x86_64/x32/Implies-after: New file.
32909
32910 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32911
32912         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
32913         and access return value for _dl_profile_fixup.  Use R10_LP to
32914         load frame size.
32915
32916 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32917
32918         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
32919
32920 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32921
32922         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
32923         * sysdeps/x86_64/x32/sysdep.h: New file.
32924
32925 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32926
32927         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
32928         * sysdeps/x86_64/setjmp.S: Likewise.
32929
32930 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32931
32932         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
32933         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
32934         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
32935         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
32936         remove unused global constant.
32937
32938 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
32939
32940         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
32941         include of <not-cancel.h>.
32942
32943 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32944
32945         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
32946
32947 2012-05-15  Jeff Law  <law@redhat.com>
32948             Andreas Jaeger  <aj@suse.de>
32949
32950         [BZ #13594]
32951         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
32952         out from...
32953         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
32954         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
32955         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
32956         code changing __hst_map_handle.map.
32957
32958 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32959
32960         * configure.in (sysnames): Look for Implies-before and Implies-after
32961         files.
32962         * configure: Regenerated.
32963
32964 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32965
32966         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
32967         8-byte data alignment with LP_SIZE alignment.
32968
32969 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32970
32971         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
32972         into R10_LP.
32973
32974 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32975
32976         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
32977
32978 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32979
32980         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
32981         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
32982         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
32983         Likewise.
32984         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
32985
32986 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32987
32988         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
32989         (stackinfo_sub_sp): Likewise.
32990
32991 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32992
32993         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
32994         RAX_LP.
32995
32996 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32997
32998         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
32999         into R*_LP.
33000
33001 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33002
33003         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
33004         sizes into R*_LP.
33005
33006 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33007
33008         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
33009
33010 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33011
33012         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
33013         into R11_LP and load __x86_64_shared_cache_size_half into
33014         R8_LP.
33015
33016 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33017
33018         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
33019         R8_LP.
33020
33021 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33022
33023         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
33024         logb for POWER7.
33025         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
33026         logbf for POWER7.
33027         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
33028         logbl for POWER7.
33029         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
33030         powerpc32/power7/fpu/s_logb.c via #include.
33031         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
33032         powerpc32/power7/fpu/s_logbf.c via #include.
33033         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
33034         powerpc32/power7/fpu/s_logbl.c via #include.
33035
33036 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
33037
33038         * README.libm: Remove file.
33039
33040 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33041
33042         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
33043         count for x32.  Use R*_LP and omit operand-size suffix.
33044
33045 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33046
33047         * shlib-versions: Move x86_64-.*-linux.* entries to ...
33048         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
33049         * sysdeps/x86_64/x32/shlib-versions: New file.
33050
33051 2012-05-14  Roland McGrath  <roland@hack.frob.com>
33052
33053         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
33054         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
33055         Use _dl_fatal_printf instead.
33056
33057 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33058
33059         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
33060         set if not set by the user.  Do not allow for being unset.
33061         * sysdeps/unix/sysv/linux/configure: Regenerated.
33062
33063 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33064
33065         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
33066         the `q' suffix from lea and replace .quad with ASM_ADDR.
33067
33068 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33069
33070         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
33071         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
33072         instead of $17.
33073         (PTR_DEMANGLE): Likewise.
33074
33075 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33076
33077         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
33078         (LP_OP): Likewise.
33079         (ASM_ADDR): Likewise.
33080         (RAX_LP): Likewise.
33081         (RBP_LP): Likewise.
33082         (RBX_LP): Likewise.
33083         (RCX_LP): Likewise.
33084         (RDI_LP): Likewise.
33085         (RSI_LP): Likewise.
33086         (RSP_LP): Likewise.
33087         (R8_LP): Likewise.
33088         (R9_LP): Likewise.
33089         (R10_LP): Likewise.
33090         (R10_LP): Likewise.
33091         (R11_LP): Likewise.
33092         (R12_LP): Likewise.
33093         (R13_LP): Likewise.
33094         (R14_LP): Likewise.
33095         (R15_LP): Likewise.
33096
33097 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33098
33099         * sysdeps/x86_64/x32/dl-machine.h: New file.
33100
33101 2012-05-14  Andreas Jaeger  <aj@suse.de>
33102
33103         * manual/Makefile (subdir): Remove export of subdir.
33104         (all): Remove target.
33105         (.PHONY): Remove all from list.
33106         (mkinstalldirs): Remove.
33107         (.PHONY): Remove installdirs from list.
33108         ($(inst_infodir)/libc.info): Use make-target-directory.
33109         (installdirs): Remove.
33110         (subdir_%): Remove.
33111         (glibc-targets): Remove.
33112         (lib): Remove.
33113         (stubs): Remove.
33114         ($(objpfx)stubs ../po/manual.pot): Remove.
33115         ($(objpfx)stamp%): Remove.
33116         (make-target-directory): Remove.
33117         (subdir_install): Remove.
33118         (routines): Remove.
33119         (aux): Remove.
33120         (sources): Remove.
33121         (objects): Remove.
33122         (headers): Remove.
33123
33124         [BZ #13750]
33125         * manual/.gitignore: Remove, it's not needed anymore.
33126         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
33127         all files in it.
33128         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
33129         directory.
33130         (texis): Renamed to $(objpfx)texis.
33131         (texis-path): New, contains path to generated files.
33132         (chapters.%): Use texis-path for complete path, add extra argument
33133         libc-texinfo.sh.
33134         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
33135         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
33136         (summary,texi, stamp-summary): Use complete path of
33137         files. Generate files in build dir.
33138         (dir-add.texi): Build in build dir.
33139         (libm-err.texi,stamp-libm-err): Likewise.
33140         (version.texi, stamp-version): Likewise.
33141         (.%c.texi): Likewise.
33142         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
33143         (mostlyclean): Remove target.
33144         (realclean): Remove target.
33145         (generated): Add new variable with contents from mostlyclean and
33146         realclean, remove entries duplicated in common-mostlyclean, add
33147         stamp-libm-err and stamp-version.
33148         (generated-dirs): Add libc directory.
33149         ($(inst_infodir)/libc.info): Install files from build dir.
33150
33151         * manual/install.texi (Configuring and compiling): Adjust since
33152         the info files are not part of the tar ball anymore.
33153
33154 2012-05-14  Andreas Jaeger  <aj@suse.de>
33155
33156         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
33157         variable.
33158
33159 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33160
33161         [BZ #13717]
33162         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
33163         to 2.2.0 where earlier.
33164         * sysdeps/unix/sysv/linux/configure: Regenerated.
33165         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
33166         Remove conditional code.
33167         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
33168         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
33169         Remove conditional code.
33170         [!__NR_lchown]: Likewise.
33171         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33172         [__NR_lchown]: Likewise.
33173         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
33174         comment referencing __ASSUME_LCHOWN_SYSCALL.
33175         * sysdeps/unix/sysv/linux/i386/sigaction.c
33176         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33177         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33178         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
33179         Remove conditional code.
33180         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
33181         (__protocol_available): Remove #if 0 code.
33182         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
33183         conditional code.
33184         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
33185         * sysdeps/unix/sysv/linux/kernel-features.h
33186         (__ASSUME_GETCWD_SYSCALL): Don't define.
33187         (__ASSUME_REALTIME_SIGNALS): Likewise.
33188         (__ASSUME_PREAD_SYSCALL): Likewise.
33189         (__ASSUME_PWRITE_SYSCALL): Likewise.
33190         (__ASSUME_POLL_SYSCALL): Likewise.
33191         (__ASSUME_LCHOWN_SYSCALL): Likewise.
33192         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
33193         non-SPARC.
33194         (__ASSUME_SIOCGIFNAME): Don't define.
33195         (__ASSUME_MSG_NOSIGNAL): Likewise.
33196         (__ASSUME_SENDFILE): Define unconditionally.
33197         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
33198         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
33199         conditional code.
33200         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
33201         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
33202         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33203         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33204         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
33205         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33206         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
33208         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33209         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
33211         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33212         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
33214         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33215         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
33217         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33218         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
33220         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33221         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
33223         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33224         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
33226         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33227         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
33229         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33230         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33231         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
33232         Remove conditional code.
33233         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33234         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33235         Remove conditional code.
33236         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33237         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
33238         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
33239         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33240         Remove conditional code.
33241         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33242         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
33243         Remove conditional code.
33244         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33245         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
33246         Remove conditional code.
33247         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33248         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33249         Remove conditional code.
33250         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33251         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33252         Remove conditional code.
33253         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33254         * sysdeps/unix/sysv/linux/sh/pwrite64.c
33255         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33256         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33257         * sysdeps/unix/sysv/linux/sigaction.c
33258         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33259         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33260         * sysdeps/unix/sysv/linux/sigpending.c
33261         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33262         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33263         * sysdeps/unix/sysv/linux/sigprocmask.c
33264         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33265         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33266         * sysdeps/unix/sysv/linux/sigsuspend.c
33267         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33268         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33269         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
33270         (__libc_missing_rt_sigs): Remove.
33271         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
33272         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
33273         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
33274         Remove conditional code.
33275         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
33276         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
33277         return 1.
33278         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
33279         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
33280         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
33281         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
33282
33283 2012-05-14  Andreas Jaeger  <aj@suse.de>
33284
33285         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
33286         it's not used in glibc.
33287         (__coshm1): Likewise.
33288         (__acosh1p): Likewise.
33289         (__sgn): Likewise.
33290
33291         * manual/string.texi (Copying and Concatenation): Add missing
33292         variable in concat example.
33293         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33294
33295 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33296
33297         [BZ #14103]
33298         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
33299         __builtin_clzl with __builtin_clzll.
33300
33301 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33302
33303         [BZ #14104]
33304         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
33305         libc_freeres_ptr.
33306
33307 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33308
33309         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
33310         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
33311         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
33312         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
33313
33314 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
33315
33316         * NEWS: Update ia64 info.
33317
33318 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
33319
33320         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
33321         used as bcopy.
33322
33323 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
33324
33325         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
33326         * sysdeps/unix/syscalls.list (dup3): Likewise.
33327         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
33328         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
33329
33330 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33331
33332         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
33333         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
33334
33335 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33336
33337         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
33338         thread pointer.
33339         (TLS_IE): Use mov/add instead of movq/addq to load thread
33340         pointer.
33341         (TLS_GD_PREFIX): New.
33342         (TLS_GD): Use it.
33343
33344 2012-05-11  David S. Miller  <davem@davemloft.net>
33345
33346         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
33347         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
33348         (_FPU_SETCW): Likewise.
33349
33350 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33351
33352         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
33353         is 32-byte aligned.
33354
33355 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
33356
33357         [BZ #11837]
33358         * iconvdata/gb18030.c: Update tables.
33359         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
33360         characters specially.
33361         (BODY for TO_LOOP): Add encoding of missing ranges.
33362
33363 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
33364
33365         [BZ #13673]
33366         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
33367         * sysdeps/mach/hurd/dup3.c: Likewise.
33368         * sysdeps/mach/hurd/readlinkat.c: Likewise.
33369         * sysdeps/powerpc/memmove.c:: Likewise.
33370
33371 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33372
33373         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
33374         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
33375
33376 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33377
33378         * elf/elf.h (R_X86_64_RELATIVE64): New.
33379         (R_X86_64_NUM): Updated.
33380         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
33381         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
33382         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
33383         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
33384         tst-quad1pie tst-quad2pie
33385         (modules-names): Add tst-quadmod1 tst-quadmod2.
33386         ($(objpfx)tst-quad1): New dependency.
33387         ($(objpfx)tst-quad2): Likewise.
33388         ($(objpfx)tst-quad1pie): Likewise.
33389         ($(objpfx)tst-quad2pie): Likewise.
33390         * sysdeps/x86_64/tst-quad1.c: New file.
33391         * sysdeps/x86_64/tst-quad1pie.c: New file.
33392         * sysdeps/x86_64/tst-quad2.c: Likewise.
33393         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
33394         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
33395         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
33396         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
33397         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
33398
33399 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33400
33401         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
33402         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
33403         * streams/stropts.h (t_scalar_t): Define type.
33404
33405         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
33406         (_PATH_PRESERVE): Set to "/var/lib".
33407         (_PATH_RWHODIR): Set to "/var/spool/rwho".
33408
33409         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
33410         instead of int.
33411
33412         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
33413         if __dir_mkfile succeeded.
33414
33415         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
33416         checking for _hurd_dtablesize.  Unlock it right after having
33417         finished _hurd_dtable allocation.
33418
33419 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33420
33421         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
33422         * sysdeps/mach/hurd/configure: Regenerated.
33423         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
33424         special-casing to...
33425         * sysdeps/gnu/configure.in: ... this new file.
33426         * sysdeps/unix/sysv/linux/configure: Regenerated.
33427         * sysdeps/gnu/configure: New generated file.
33428
33429         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
33430         for Linux: use nsec instead of usec, as well as:
33431         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
33432         members of type struct timespec.
33433         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
33434         New macros.
33435         (struct stat64): Likewise.
33436         (_STATBUF_ST_NSEC): New macro.
33437         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
33438
33439         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
33440         __strtoul_internal rather than strtoul.
33441
33442 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33443
33444         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
33445         and reject them.
33446
33447 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33448
33449         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
33450         which preserves existing values.
33451         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
33452
33453 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33454
33455         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
33456         TIMEOUT values.  Return EINVAL for NFDS values either negative or
33457         greater than FD_SETSIZE.
33458
33459 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33460
33461         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
33462         allocated, call __vm_protect to finish enabling the existing space, and
33463         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
33464         allocate the remainder.
33465
33466 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33467
33468         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
33469         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
33470
33471 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33472
33473         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
33474         sysdeps/mach/hurd/readlink.c.
33475
33476         * posix/tst-sysconf.c (posix_options): Only use
33477         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
33478         _POSIX_SYNCHRONIZED_IO when they are defined
33479         * sysdeps/mach/hurd/bits/posix_opt.h:
33480         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
33481         (_XOPEN_REALTIME): Undefine macro.
33482         (_XOPEN_REALTIME_THREADS): Undefine macro.
33483         (_XOPEN_SHM): Undefine macro.
33484         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
33485         macro to -1.
33486         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
33487         macro to -1.
33488         (_POSIX_ASYNC_IO): Undefine macro.
33489         (_POSIX_PRIORITIZED_IO): Undefine macro.
33490         (_POSIX_SPIN_LOCKS): Define macro to -1.
33491
33492         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
33493         SA_NODEFER, SA_RESETHAND.
33494         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
33495         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
33496         F_DUPFD_CLOEXEC.
33497
33498 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33499
33500         * elf/Makefile (pldd-modules): Define unconditionally.
33501
33502 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33503
33504         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
33505
33506 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33507
33508         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
33509         Return ENOENT when name is empty.
33510         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
33511
33512 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33513
33514         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
33515
33516         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
33517
33518 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33519
33520         Fix mlock in all cases except non-readable pages.
33521         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
33522         instead of VM_PROT_ALL as parameter to __vm_wire function.
33523
33524         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
33525         (__mkdir): When path is `/', just fail with EEXIST.
33526         * sysdeps/mach/hurd/mkdirat.c: Likewise.
33527
33528 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33529
33530         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
33531         <sys/uio.h> (for writev).
33532         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
33533         and <sys/param.h> (for MIN).
33534
33535 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33536
33537         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
33538         REQUESTED_TIME.  Properly set the remaining time and return EINTR
33539         if interrupted.
33540
33541 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33542
33543         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
33544         Depend on against $(link-rpcuserlibs).
33545
33546 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33547
33548         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
33549         (__libc_stack_end): Do not use attribute_relro.
33550         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
33551         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
33552         to libthread-provided value.
33553         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
33554         attribute_relro.
33555
33556 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33557
33558         [BZ #3748]
33559         * bits/libc-lock.h (__libc_once_get): New macro.
33560         * sysdeps/mach/bits/libc-lock.h: Likewise.
33561         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
33562         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
33563         instead of using implementation details.
33564
33565         * libio/fileops.c: Unconditionally include <kernel-features.h>.
33566         * libio/freopen.c: Likewise.
33567         * libio/freopen64.c: Likewise.
33568         * misc/syslog.c: Likewise.
33569         * nscd/connections.c: Likewise.
33570         * nscd/netgroupcache.c: Likewise.
33571         * sysdeps/posix/getcwd.c: Likewise.
33572
33573 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33574
33575         * math/w_ilogbf.c: Add #include <limits.h>.
33576
33577 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33578
33579         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
33580         path instead of returning without unlocking.
33581
33582         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
33583         immediate-write ioctls.
33584         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
33585
33586 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33587
33588         * sysdeps/mach/hurd/i386/init-first.c (init): Use
33589         __builtin_frame_address instead of making assumptions about the
33590         location of the return address relative to DATA.  Force early load of
33591         the return address.
33592         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
33593         __builtin_frame_address.
33594
33595         dup3 for GNU Hurd.
33596         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
33597         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
33598         implement dup3 and do some further code clean-ups.
33599         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
33600         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
33601
33602 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33603
33604         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
33605
33606         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
33607         HURD_CRITICAL_END around holding _hurd_dtable_lock.
33608         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
33609         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
33610         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
33611         d->port.lock.
33612
33613         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
33614         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
33615         when handler == SIG_ERR, not when handler != SIG_ERR.
33616
33617 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33618
33619         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
33620         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
33621         definitions.
33622
33623         accept4 for GNU Hurd.
33624         * include/sys/socket.h (__libc_accept4): New prototype.
33625         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
33626         to implement __libc_accept4.
33627         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
33628         __libc_accept4.
33629         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
33630
33631         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
33632         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
33633         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
33634         signal-defines.sym.
33635
33636 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33637
33638         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
33639
33640 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33641
33642         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
33643         assertion on O_CLOEXEC flag.
33644         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
33645         * hurd/intern-fd.c: Likewise.
33646         * hurd/port2fd.c: Likewise.
33647
33648 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33649
33650         [BZ #3906]
33651         * bits/in.h (IPV6_PKTINFO): Define new macro.
33652         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
33653
33654 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33655
33656         [BZ #13954]
33657         [BZ #13955]
33658         [BZ #13956]
33659         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
33660         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
33661         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
33662         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
33663         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
33664         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
33665         * math/libm-test.inc (logb_test) : Additional logb tests.
33666
33667 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
33668             Andreas Jaeger  <aj@suse.de>
33669
33670         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
33671         * configure: Regenerated.
33672         * config.h.in (LINK_OBSOLETE_RPC): New macro.
33673         * config.make.in (link-obsolete-rpc): New substituted variable.
33674         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
33675         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
33676         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33677         (shared-only-routines): Don't set it under [link-obsolete-rpc],
33678         so that libc.a contains the symbols.
33679         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33680         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
33681         * sunrpc/auth_none.c: Likewise.
33682         * sunrpc/auth_unix.c: Likewise.
33683         * sunrpc/authdes_prot.c: Likewise.
33684         * sunrpc/authuxprot.c: Likewise.
33685         * sunrpc/clnt_gen.c: Likewise.
33686         * sunrpc/clnt_perr.c: Likewise.
33687         * sunrpc/clnt_raw.c: Likewise.
33688         * sunrpc/clnt_simp.c: Likewise.
33689         * sunrpc/clnt_tcp.c: Likewise.
33690         * sunrpc/clnt_udp.c: Likewise.
33691         * sunrpc/clnt_unix.c: Likewise.
33692         * sunrpc/des_crypt.c: Likewise.
33693         * sunrpc/des_soft.c: Likewise.
33694         * sunrpc/get_myaddr.c: Likewise.
33695         * sunrpc/key_call.c: Likewise.
33696         * sunrpc/key_prot.c: Likewise.
33697         * sunrpc/netname.c: Likewise.
33698         * sunrpc/pm_getmaps.c: Likewise.
33699         * sunrpc/pm_getport.c: Likewise.
33700         * sunrpc/pmap_clnt.c: Likewise.
33701         * sunrpc/pmap_prot.c: Likewise.
33702         * sunrpc/pmap_prot2.c: Likewise.
33703         * sunrpc/pmap_rmt.c: Likewise.
33704         * sunrpc/publickey.c: Likewise.
33705         * sunrpc/rpc_cmsg.c: Likewise.
33706         * sunrpc/rpc_common.c: Likewise.
33707         * sunrpc/rpc_dtable.c: Likewise.
33708         * sunrpc/rpc_prot.c: Likewise.
33709         * sunrpc/rpc_thread.c: Likewise.
33710         * sunrpc/rtime.c: Likewise.
33711         * sunrpc/svc.c: Likewise.
33712         * sunrpc/svc_auth.c: Likewise.
33713         * sunrpc/svc_raw.c: Likewise.
33714         * sunrpc/svc_run.c: Likewise.
33715         * sunrpc/svc_tcp.c: Likewise.
33716         * sunrpc/svc_udp.c: Likewise.
33717         * sunrpc/svc_unix.c: Likewise.
33718         * sunrpc/svcauth_des.c: Likewise.
33719         * sunrpc/xcrypt.c: Likewise.
33720         * sunrpc/xdr.c: Likewise.
33721         * sunrpc/xdr_array.c: Likewise.
33722         * sunrpc/xdr_float.c: Likewise.
33723         * sunrpc/xdr_intXX_t.c: Likewise.
33724         * sunrpc/xdr_mem.c: Likewise.
33725         * sunrpc/xdr_rec.c: Likewise.
33726         * sunrpc/xdr_ref.c: Likewise.
33727         * sunrpc/xdr_sizeof.c: Likewise.
33728         * sunrpc/xdr_stdio.c: Likewise.
33729
33730 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33731
33732         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
33733         change.  Update copyright years.
33734
33735 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33736
33737         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
33738
33739 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
33740             Joseph Myers  <joseph@codesourcery.com>
33741             Paul Pluzhnikov  <ppluzhnikov@google.com>
33742
33743         [BZ #14012]
33744         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
33745         requiring rpcgen.
33746         [cross-compiling] (extra-libs): Likewise.
33747         [cross-compiling] (extra-libs-others): Likewise.
33748         [cross-compiling] (librpcsvc-routines): Likewise.
33749         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
33750         [cross-compiling] (omit-deps): Likewise.
33751         (sunrpc-CPPFLAGS): New variable.
33752         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
33753         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
33754         (cross-rpcgen-objs): New variable.
33755         (extra-objs): Append $(cross-rpcgen-objs).
33756         ($(cross-rpcgen-objs)): New rule.
33757         ($(objpfx)cross-rpcgen): Likewise.
33758         (rpcgen-cmd): Define to use $(built-program-file).  Expand
33759         comment.
33760         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
33761         ($(objpfx)x%.stmp): Likewise.
33762         * sunrpc/proto.h [IS_IN_build] (_): Define.
33763         [IS_IN_build] (_libc_intl_domainname): Likewise.
33764
33765 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33766
33767         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
33768         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
33769         and R_X86_64_TPOFF64.
33770
33771 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33772
33773         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
33774         sysdeps/unix/sysv/syscalls.list.
33775         (stime): Likewise.
33776         (utime): Likewise.
33777         * sysdeps/unix/sysv/syscalls.list: Remove file.
33778
33779 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33780
33781         [BZ #3440]
33782         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
33783         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
33784         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
33785         (__LC_IDENTIFICATION): Make these macros useful in #if
33786         expressions, as required by C99.
33787
33788 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
33789
33790         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
33791         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
33792         after this.
33793
33794 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
33795
33796         * stdlib/longlong.h: Updated from GCC.
33797
33798 2012-05-09  Andreas Jaeger  <aj@suse.de>
33799
33800         * nscd/nscd.c (run_modes): Make named enum, reorder so that
33801         default is first entry.
33802         (run_mode): Set type.
33803         (main): Remove informal message about syslog.
33804         (options): Fix typo.
33805
33806         [BZ #14053]
33807         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
33808         to asm.
33809         (lrint): Likewise.
33810         (llrintf): Likewise.
33811         (llrint): Likewise.
33812         (rint): Likewise.
33813         (rintf): Likewise.
33814         (nearbyint): Likewise.
33815         (nearbyintf): Likewise.
33816
33817 2012-05-09  Andreas Jaeger  <aj@suse.de>
33818             Pedro Alves  <palves@redhat.com>
33819
33820         * nscd/nscd.c (run_mode): Use enum.
33821         (main): Cleanup coding style issue.
33822
33823 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
33824             Andreas Jaeger  <aj@suse.de>
33825
33826         * nscd/nscd.c (go_background): Replaced with...
33827         (run_mode): ... this.
33828         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
33829         (options): Add -F --foreground.
33830         (main): Implement it.
33831         (parse_opt): Parse it.
33832
33833 2012-05-09  Andreas Jaeger  <aj@suse.de>
33834
33835         [BZ #14083]
33836         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
33837         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
33838         -Wconversion warning.
33839         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
33840         Likewise.
33841
33842 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
33843
33844         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
33845         == 0.
33846         (LC_ALL): Use macro-int-constant.
33847         (LC_COLLATE): Likewise.
33848         (LC_CTYPE): Likewise.
33849         (LC_MESSAGES): Likewise.
33850         (LC_MONETARY): Likewise.
33851         (LC_NUMERIC): Likewise.
33852         (LC_TIME): Likewise.
33853         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
33854         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33855         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33856         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
33857         Specify type.
33858         [C99-based standards] (float_t): Expect type.
33859         [C99-based standards] (double_t): Expect type.
33860         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
33861         type.
33862         [C99-based standards] (HUGE_VALL): Likewise.
33863         [C99-based standards] (INFINITY): Likewise.
33864         [C99-based standards] (NAN): Likewise.
33865         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
33866         [C99-based standards] (FP_NAN): Likewise.
33867         [C99-based standards] (FP_NORMAL): Likewise.
33868         [C99-based standards] (FP_SUBNORMAL): Likewise.
33869         [C99-based standards] (FP_ZERO): Likewise.
33870         [C99-based standards] (FP_FAST_FMA): Use
33871         optional-macro-int-constant.  Specify type.  Require == 1.
33872         [C99-based standards] (FP_FAST_FMAF): Likewise.
33873         [C99-based standards] (FP_FAST_FMAL): Likewise.
33874         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
33875         [C99-based standards] (FP_ILOGBNAN): Likewise.
33876         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
33877         Specify type.
33878         [C99-based standards] (MATH_ERREXCEPT): Likewise.
33879         [C99-based standards] (math_errhandling): Specify type.
33880         [ISO99 || ISO11] (signgam): Do not allow.
33881         [non-C99-based standards] (copysignf): Do not allow.
33882         [non-C99-based standards] (exp2f): Likewise.
33883         [non-C99-based standards] (log2f): Likewise.
33884         [non-C99-based standards] (modff): Allow.
33885         [non-C99-based standards] (erff): Do not allow.
33886         [non-C99-based standards] (erfcf): Likewise.
33887         [non-C99-based standards] (gammaf): Likewise.
33888         [non-C99-based standards] (hypotf): Likewise.
33889         [non-C99-based standards] (j0f): Likewise.
33890         [non-C99-based standards] (j1f): Likewise.
33891         [non-C99-based standards] (jnf): Likewise.
33892         [non-C99-based standards] (lgammaf): Likewise.
33893         [non-C99-based standards] (tgammaf): Likewise.
33894         [non-C99-based standards] (y0f): Likewise.
33895         [non-C99-based standards] (y1f): Likewise.
33896         [non-C99-based standards] (ynf): Likewise.
33897         [non-C99-based standards] (isnanf): Likewise.
33898         [non-C99-based standards] (acoshf): Likewise.
33899         [non-C99-based standards] (asinhf): Likewise.
33900         [non-C99-based standards] (atanhf): Likewise.
33901         [non-C99-based standards] (cbrtf): Likewise.
33902         [non-C99-based standards] (expm1f): Likewise.
33903         [non-C99-based standards] (ilogbf): Likewise.
33904         [non-C99-based standards] (log1pf): Likewise.
33905         [non-C99-based standards] (logbf): Likewise.
33906         [non-C99-based standards] (nextafterf): Likewise.
33907         [non-C99-based standards] (remainderf): Likewise.
33908         [non-C99-based standards] (rintf): Likewise.
33909         [non-C99-based standards] (scalbf): Likewise.
33910         [non-C99-based standards] (copysignl): Likewise.
33911         [non-C99-based standards] (exp2l): Likewise.
33912         [non-C99-based standards] (log2l): Likewise.
33913         [non-C99-based standards] (modfl): Allow.
33914         [non-C99-based standards] (erfl): Do not allow.
33915         [non-C99-based standards] (erfcl): Likewise.
33916         [non-C99-based standards] (gammal): Likewise.
33917         [non-C99-based standards] (hypotl): Likewise.
33918         [non-C99-based standards] (j0l): Likewise.
33919         [non-C99-based standards] (j1l): Likewise.
33920         [non-C99-based standards] (jnl): Likewise.
33921         [non-C99-based standards] (lgammal): Likewise.
33922         [non-C99-based standards] (tgammal): Likewise.
33923         [non-C99-based standards] (y0l): Likewise.
33924         [non-C99-based standards] (y1l): Likewise.
33925         [non-C99-based standards] (ynl): Likewise.
33926         [non-C99-based standards] (isnanl): Likewise.
33927         [non-C99-based standards] (acoshl): Likewise.
33928         [non-C99-based standards] (asinhl): Likewise.
33929         [non-C99-based standards] (atanhl): Likewise.
33930         [non-C99-based standards] (cbrtl): Likewise.
33931         [non-C99-based standards] (expm1l): Likewise.
33932         [non-C99-based standards] (ilogbl): Likewise.
33933         [non-C99-based standards] (log1pl): Likewise.
33934         [non-C99-based standards] (logbl): Likewise.
33935         [non-C99-based standards] (nextafterl): Likewise.
33936         [non-C99-based standards] (remainderl): Likewise.
33937         [non-C99-based standards] (rintl): Likewise.
33938         [non-C99-based standards] (scalbl): Likewise.
33939         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33940         [non-C99-based standards] (FP_*): Do not allow.
33941         [C99-based standards] (FP_*): Change to
33942         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33943         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33944         allow.
33945         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
33946         (SIG_ERR): Likewise.
33947         [X/Open-based standards] (SIG_HOLD): Likewise.
33948         (SIG_IGN): Likewise.
33949         (SIGABRT): Use macro-int-constant.  Specify type.  Require
33950         positive value.
33951         (SIGFPE): Likewise.
33952         (SIGILL): Likewise.
33953         (SIGINT): Likewise.
33954         (SIGSEGV): Likewise.
33955         (SIGTER): Likewise.
33956         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
33957         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
33958         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
33959         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
33960         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
33961         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
33962         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
33963         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
33964         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
33965         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
33966         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
33967         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
33968         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
33969         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
33970         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
33971         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
33972         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
33973         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
33974         [X/Open-based standards] (SIGTRAP): Likewise.
33975         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
33976         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
33977         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
33978         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
33979         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33980         allow.
33981
33982 2012-05-08  Ian Wienand  <ianw@vmware.com>
33983
33984         [BZ #14080]
33985         * time/tzset.c (__tzset_parse_tz): Update default rules for
33986         daylight time changes in the Energy Policy Act of 2005.
33987
33988 2012-05-09  Andreas Jaeger  <aj@suse.de>
33989
33990         [BZ #13983]
33991         * elf/ldconfig.c (parse_conf): Change string to make clear that
33992         ldconfig only issued a warning if ld.so.conf does not exist.
33993
33994 2012-05-08  David S. Miller  <davem@davemloft.net>
33995
33996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
33997         movxtod instead of popping the value on the stack.
33998
33999         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34000
34001 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
34002
34003         * config.h.in: Add HAVE_ARM_PCS_VFP.
34004
34005 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
34006
34007         [BZ #13979]
34008         * include/features.h: Warn if user requests __FORTIFY_SOURCE
34009         checking but the checks are disabled for any reason.
34010
34011 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
34012
34013         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
34014         and ELF64_R_TYPE with ELFW(R_TYPE).
34015
34016 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
34017
34018         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
34019         (ulimit): Likewise.
34020
34021         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
34022         (settimeofday): Likewise.
34023
34024 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
34025
34026         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
34027         a struct th_u2 inside the union, and move tu_block/tu_code into
34028         a new th_u3 union of tu_block/tu_code inside of that.  Move
34029         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
34030         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
34031         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
34032         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
34033         (th_stuff): Change to th_u1.tu_stuff.
34034         (th_data): Define.
34035         (th_msg): Change to th_u1.th_u2.tu_data.
34036
34037 2012-05-07  David S. Miller  <davem@davemloft.net>
34038
34039         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34040
34041         [BZ #14074]
34042         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
34043         (SETUP_PIC_REG): Use it.
34044         (SETUP_PIC_REG_LEAF): Use it.
34045
34046 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
34047
34048         [BZ #13885]
34049         [BZ #13923]
34050         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34051         USE_AS_EXPM1L.
34052         (EXPL_FINITE): Likewise.
34053         (FLDLOG): Likewise.
34054         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34055         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34056         e_expl.S.
34057         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34058         USE_AS_EXPM1L.
34059         (EXPL_FINITE): Likewise.
34060         (FLDLOG): Likewise.
34061         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34062         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34063         e_expl.S.
34064         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
34065         test of -max_value argument for long double.
34066         * sysdeps/i386/fpu/libm-test-ulps: Update.
34067         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34068
34069 2012-05-06  David S. Miller  <davem@davemloft.net>
34070
34071         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
34072         quad soft-float symbols whose references which are compiler
34073         generated.
34074         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34075
34076 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
34077
34078         [BZ #13884]
34079         [BZ #13914]
34080         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34081         USE_AS_EXP10L.
34082         (EXPL_FINITE): Likewise.
34083         (FLDLOG): Likewise.
34084         (c0): Likewise.
34085         (c1): Likewise.
34086         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34087         Adjust comments for base varying.
34088         (__expl_finite): Change alias to EXPL_FINITE.
34089         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
34090         e_expl.S.
34091         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
34092         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
34093         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
34094         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
34095         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34096         USE_AS_EXP10L.
34097         (EXPL_FINITE): Likewise.
34098         (FLDLOG): Likewise.
34099         (c0): Likewise.
34100         (c1): Likewise.
34101         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34102         Adjust comments for base varying.
34103         (__expl_finite): Change alias to EXPL_FINITE.
34104         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
34105         tests for bugs.
34106         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34107
34108         [BZ #14064]
34109         * math/libm-test.inc (check_float_internal): Correct ulp
34110         calculation for subnormal expected results.
34111
34112 2012-05-06  Andreas Jaeger  <aj@suse.de>
34113
34114         * Makeconfig (+math-flags): New, set to -frounding-math.
34115         (+cflags): Add +math-flags so that all of glibc gets compiled with
34116         it.
34117
34118         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
34119
34120 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
34121
34122         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
34123         Disable one test.
34124
34125         [BZ #13787]
34126         [BZ #13922]
34127         [BZ #14036]
34128         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
34129         (__ieee754_expl): Allow for and saturate large arguments.
34130         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
34131         (u_threshold): Likewise.
34132         (__exp): Call __ieee754_exp before checking for overflow and
34133         underflow.
34134         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
34135         (u_threshold): Likewise.
34136         (__expf): Call __ieee754_expf before checking for overflow and
34137         underflow.
34138         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
34139         (u_threshold): Likewise.
34140         (__expl): Call __ieee754_expl before checking for overflow and
34141         underflow.
34142         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
34143         (__ieee754_expl): Allow for and saturate large arguments.
34144         * math/libm-test.inc (exp_test): Add another test.  Do not allow
34145         missing overflow exception on overflow.
34146         (expm1_test): Do not allow missing overflow exception on overflow.
34147
34148         * sysdeps/i386/fpu/e_expl.c: Move to ...
34149         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
34150         rather than using inline asm.
34151         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
34152         * sysdeps/x86_64/fpu/e_expl.S: Copy from
34153         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
34154
34155         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
34156         (nice): Likewise.
34157         (poll): Likewise.
34158         (signal): Likewise.
34159         (time): Likewise.
34160         (times): Likewise.
34161
34162 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34163
34164         * sysdeps/unix/syscalls.list (adjtime): Add entry from
34165         sysdeps/unix/common/syscalls.list.
34166         (fchmod): Likewise.
34167         (fchown): Likewise.
34168         (ftruncate): Likewise.
34169         (getrusage): Likewise.
34170         (gettimeofday): Likewise.
34171         (setpgid): Likewise.
34172         (setregid): Likewise.
34173         (setreuid): Likewise.
34174         (sigaction): Likewise.
34175         (truncate): Likewise.
34176         (vhangup): Likewise.
34177         * sysdeps/unix/common/syscalls.list: Remove file.
34178         * sysdeps/unix/bsd/Implies: Don't include unix/common.
34179         * sysdeps/unix/sysv/linux/Implies: Likewise.
34180
34181 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
34182
34183         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
34184         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
34185         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
34186         Moved to ...
34187         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
34188         Here.
34189         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
34190         to ...
34191         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
34192         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
34193         to ...
34194         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
34195         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
34196         to ...
34197         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
34198         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
34199         to ...
34200         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
34201         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
34202         to ...
34203         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
34204         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
34205         to ...
34206         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
34207         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
34208         to ...
34209         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
34210         Here.
34211         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
34212         to ...
34213         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
34214         Here.
34215         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
34216         to ...
34217         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
34218         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
34219         Moved to ...
34220         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
34221         Here.
34222         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
34223         to ...
34224         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
34225
34226 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34227
34228         * sysdeps/unix/common/bits/dirent.h: Remove file.
34229         * sysdeps/unix/common/bits/fcntl.h: Likewise.
34230
34231         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
34232         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
34233         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
34234         * sysdeps/unix/bsd/isatty.c: Likewise.
34235         * sysdeps/unix/bsd/tcdrain.c: Likewise.
34236         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
34237         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
34238
34239 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34240
34241         [BZ #13563]
34242         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
34243         long double comparison inaccuracies.
34244         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
34245         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34246
34247 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
34248
34249         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
34250         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
34251
34252 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34253
34254         [BZ #14049]
34255         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
34256         nonzero digits before rounding a hex value.
34257         * stdlib/tst-strtod.c (tests): Add another test.
34258
34259 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34260
34261         * sysdeps/s390/fpu/libm-test-ulps: Update.
34262
34263 2012-05-03  Andreas Jaeger  <aj@suse.de>
34264
34265         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
34266         does not get optimized out.
34267         (malloc_opt_barrier): New.
34268
34269 2012-05-03  Andreas Jaeger  <aj@suse.de>
34270             Roland McGrath  <roland@hack.frob.com>
34271
34272         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
34273         intermediate file deletion.
34274         (generated): Add .symlist files.
34275
34276 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
34277
34278         [BZ #13775]
34279         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
34280         Redirect under this condition.
34281         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34282         [__USE_GNU] (__dprintf_chk): Not under this condition.
34283         [__USE_GNU] (__vdprintf_chk): Likewise.
34284         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
34285         under this condition.
34286         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34287         [__USE_XOPEN2K8] (dprintf): Define under this condition.
34288         [__USE_XOPEN2K8] (vdprintf): Likewise.
34289         [__USE_GNU] (__dprintf_chk): Not under this condition.
34290         [__USE_GNU] (__vdprintf_chk): Likewise.
34291         [__USE_GNU] (dprintf): Likewise.
34292         [__USE_GNU] (vdprintf): Likewise.
34293
34294 2012-05-03  Roland McGrath  <roland@hack.frob.com>
34295
34296         * elf/Makefile (common-generated): Set this instead of generated for
34297         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
34298         $(all-built-dso)-derived lists.
34299
34300 2012-05-03  Andreas Jaeger  <aj@suse.de>
34301
34302         * sysdeps/i386/fpu/libm-test-ulps: Update.
34303
34304         * FAQ: Removed.
34305         * FAQ.in: Likewise.
34306         * scripts/gen-FAQ.pl: Likewise.
34307         * manual/install.texi (Installation): Point to online location of
34308         FAQ.
34309         * Makefile (files-for-dist): Remove FAQ.
34310         (FAQ): Remove.
34311
34312 2012-05-02  Allan McRae  <allan@archlinux.org>
34313
34314         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
34315         (LDFLAGS-reldepmod5.so): Likewise.
34316         (LDFLAGS-reldep6mod1.so): Likewise.
34317         (LDFLAGS-reldep6mod4.so): Likewise.
34318         (LDFLAGS-reldep8mod3.so): Likewise.
34319         (LDFLAGS-unload4mod1.so): Likewise.
34320         (LDFLAGS-unload4mod2.so): Likewise.
34321         (LDFLAGS-tst-initorder): Likewise.
34322         (LDFLAGS-tst-initordera2.so): Likewise.
34323         (LDFLAGS-tst-initordera3.so): Likewise.
34324         (LDFLAGS-tst-initordera4.so): Likewise.
34325         (LDFLAGS-tst-initorderb2.so): Likewise.
34326         (LDFLAGS-noload): Likewise.
34327         (LDFLAGS-next): Likewise.
34328         (LDFLAGS-order2mod1.so): Likewise.
34329         (LDFLAGS-order2mod2.so): Likewise.
34330         (LDFLAGS-tst-initorder2): Likewise.
34331         (LDFLAGS-tst-initorder2a.so): Likewise.
34332         (LDFLAGS-tst-initorder2b.so): Likewise.
34333         (LDFLAGS-tst-initorder2c.so): Likewise.
34334         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
34335
34336 2012-05-02  David S. Miller  <davem@davemloft.net>
34337
34338         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34339
34340 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
34341
34342         [BZ #14055]
34343         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
34344
34345 2012-05-02  Andreas Jaeger  <aj@suse.de>
34346
34347         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
34348         since we manipulate rounding mode.
34349         (CPPFLAGS-test-idouble.c): Likewise.
34350         (CPPFLAGS-test-ifloat.c): Likewise.
34351         (CFLAGS-test-ldouble.c): Likewise.
34352         (CFLAGS-test-double.c): Likewise.
34353         (CFLAGS-test-float.c): Likewise.
34354         (CFLAGS-test-misc.c): Likewise.
34355         (CFLAGS-test-test-fenv.c): Likewise.
34356
34357 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34358
34359         [BZ #2550]
34360         [BZ #2570]
34361         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
34362         comparisons to determine direction to adjust input.
34363
34364 2012-05-01  Roland McGrath  <roland@hack.frob.com>
34365
34366         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
34367         output to the target.
34368
34369         * scripts/localplt.awk: New file.
34370         * elf/Makefile ($(objpfx)check-localplt): Target removed.
34371         (check-localplt-CFLAGS): Variable removed.
34372         ($(all-built-dso:=.jmprel)): New static pattern rule.
34373         (generated): Add those targets.
34374         (localplt-built-dso): New variable.
34375         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
34376
34377         * elf/check-localplt.c: File removed.
34378
34379         * scripts/check-execstack.awk: New file.
34380         * elf/Makefile ($(objpfx)check-execstack): Target removed.
34381         (check-execstack-CFLAGS): Variable removed.
34382         ($(objpfx)check-execstack.h): Target removed.
34383         ($(objpfx)execstack-default): New target.
34384         (generated): Add that instead of check-execstack.h.
34385         ($(all-built-dso:=.phdr)): New static pattern rule.
34386         (generated): Add those targets.
34387         * elf/check-execstack.c: File removed.
34388
34389         * scripts/check-textrel.awk: New file.
34390         * elf/Makefile ($(objpfx)check-textrel): Target removed.
34391         (check-textrel-CFLAGS): Variable removed.
34392         (all-built-dso): Use := to define.o
34393         ($(all-built-dso:=.dyn)): New static pattern rule.
34394         (generated): Add those targets.
34395         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
34396         * config.make.in (READELF): New substituted variable.
34397         * elf/check-textrel.c: File removed.
34398
34399 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34400
34401         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34402         allow.
34403         * conform/data/ctype.h-data [C99-based standards] (isblank):
34404         Expect function.
34405         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
34406         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
34407         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34408         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
34409         Specify type.  Require positive value.
34410         (EILSEQ): Likewise.
34411         (ERANGE): Likewise.
34412         [ISO || POSIX] (EILSEQ): Do not expect.
34413         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
34414         Specify type.  Require positive value.
34415         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
34416         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
34417         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
34418         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
34419         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
34420         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
34421         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
34422         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
34423         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
34424         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
34425         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
34426         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
34427         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
34428         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
34429         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
34430         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
34431         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
34432         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
34433         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
34434         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
34435         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
34436         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
34437         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
34438         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
34439         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
34440         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
34441         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
34442         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
34443         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
34444         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
34445         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
34446         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
34447         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
34448         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
34449         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
34450         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
34451         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
34452         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
34453         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
34454         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
34455         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
34456         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
34457         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
34458         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
34459         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
34460         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
34461         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
34462         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
34463         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
34464         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
34465         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
34466         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
34467         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
34468         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
34469         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
34470         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
34471         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
34472         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
34473         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
34474         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
34475         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
34476         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
34477         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
34478         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
34479         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
34480         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
34481         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
34482         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
34483         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
34484         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
34485         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
34486         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
34487         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
34488         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
34489         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
34490         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
34491         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
34492         Require >= 2.
34493         (FLT_ROUNDS): Expect as macro, not constant.
34494         (FLT_MANT_DIG): Use macro-int-constant.
34495         (DBL_MANT_DIG): Likewise.
34496         (LDBL_MANT_DIG): Likewise.
34497         (FLT_DIG): Likewise.
34498         (DBL_DIG): Likewise.
34499         (LDBL_DIG): Likewise.
34500         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
34501         (DBL_MIN_EXP): Likewise.
34502         (LDBL_MIN_EXP): Likewise.
34503         (FLT_MAX_EXP): Use macro-int-constant.
34504         (DBL_MAX_EXP): Likewise.
34505         (LDBL_MAX_EXP): Likewise.
34506         (FLT_MAX_10_EXP): Likewise.
34507         (DBL_MAX_10_EXP): Likewise.
34508         (LDBL_MAX_10_EXP): Likewise.
34509         (FLT_MAX): Use macro-constant.
34510         (DBL_MAX): Likewise.
34511         (LDBL_MAX): Likewise.
34512         (FLT_EPSILON): Use macro-constant.  Give upper bound.
34513         (DBL_EPSILON): Likewise.
34514         (LDBL_EPSILON): Likewise.
34515         (FLT_MIN): Likewise.
34516         (DBL_MIN): Likewise.
34517         (LDBL_MIN): Likewise.
34518         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
34519         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
34520         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
34521         [ISO11] (FLT_HAS_SUBNORM): Likewise.
34522         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
34523         [ISO11] (DBL_DECIMAL_DIG): Likewise.
34524         [ISO11] (FLT_DECIMAL_DIG): Likewise.
34525         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
34526         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
34527         [ISO11] (FLT_TRUE_MIN): Likewise.
34528         [ISO11] (LDBL_TRUE_MIN): Likewise.
34529         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34530         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
34531         (SCHAR_MIN): Use macro-int-constant.  Specify type.
34532         (SCHAR_MAX): Likewise.
34533         (UCHAR_MAX): Likewise.
34534         (CHAR_MIN): Likewise.
34535         (CHAR_MAX): Likewise.
34536         (MB_LEN_MAX): Use macro-int-constant.
34537         (SHRT_MIN): Use macro-int-constant.  Specify type.
34538         (SHRT_MAX): Likewise.
34539         (USHRT_MAX): Likewise.
34540         (INT_MAX): Likewise.
34541         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
34542         bound negative.
34543         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34544         bound with "U".
34545         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34546         bound with "L".
34547         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
34548         bound negative.  Suffix upper bound with "L".
34549         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34550         bound with "UL".
34551         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
34552         Specify type.
34553         [C99-based standards] (LLONG_MAX): Likewise.
34554         [C99-based standards] (ULLONG_MAX): Likewise.
34555         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
34556         == 0.
34557         [ISO11] (max_align_t): Require type.
34558         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34559
34560         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
34561         from $CFLAGS, without defining away __attribute__ calls.
34562         (checknamespace): Use $CFLAGS_namespace.
34563
34564         * conform/conformtest.pl (@keywords): Only include C99 keywords
34565         for standards based on C99 or C11.
34566
34567         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
34568         Disable tests.
34569         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
34570         UNIX98]: Likewise.
34571
34572         * conform/conformtest.pl: Handle "macro-int-constant" and test for
34573         usability of symbols in #if.
34574
34575         * conform/conformtest.pl: If macro or constant types start
34576         "promoted:", expect the symbol to be of the following type
34577         promoted by the integer promotions.
34578
34579         * conform/conformtest.pl: Parse all "constant" and "macro" lines
34580         in one place.  Also handle "macro-constant".
34581
34582         * conform/conformtest.pl: Only accept expected macro values with
34583         "==".  Parse all "macro" lines in one place.
34584         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
34585
34586         * conform/conformtest.pl: Handle braced types on "constant" lines
34587         instead of handling "typed-constant".
34588         * conform/data/signal.h-data: Use "constant" instead of
34589         "typed-constant".
34590
34591         * conform/conformtest.pl: Handle "optional-" at start of lines in
34592         one place rather than duplicating several cases.  Handle each
34593         format of "macro" line with initial "optional-".
34594
34595         * conform/conformtest.pl: Only accept expected constant or
34596         optional-constant values with "==".  Parse all "constant" lines in
34597         one place.  Parse all "optional-constant" lines in one place.
34598         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
34599         * conform/data/fmtmsg.h-data: Likewise.
34600         * conform/data/netinet/in.h-data: Likewise.
34601         * conform/data/tar.h-data: Likewise.
34602         * conform/data/limits.h-data: Use "==" form on "constant" and
34603         "optional-constant" lines.
34604
34605         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
34606         Use -std=c99 for XOPEN2K.
34607         (@knownproblems): Remove.
34608         (newtoken): Don't check %isknown.
34609
34610         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
34611         Do not expect macro.
34612         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
34613         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
34614         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
34615         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
34616         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
34617         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
34618         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
34619         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
34620         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
34621         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
34622         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
34623         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
34624         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
34625         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
34626         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
34627         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
34628         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
34629         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
34630         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
34631         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
34632         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
34633         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
34634         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
34635         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
34636         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
34637         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
34638         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
34639         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
34640         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
34641         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
34642         [XPG3] (acosh): Likewise.
34643         [XPG3] (asinh): Likewise.
34644         [XPG3] (atanh): Likewise.
34645         [XPG3] (cbrt): Likewise.
34646         [XPG3] (expm1): Likewise.
34647         [XPG3] (ilogb): Likewise.
34648         [XPG3] (log1p): Likewise.
34649         [XPG3] (logb): Likewise.
34650         [XPG3] (nextafter): Likewise.
34651         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
34652         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
34653         [XPG3] (remainder): Likewise.
34654         [XPG3] (rint): Likewise.
34655         [XPG3 || XPG4 || UNIX98] (round): Likewise.
34656         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
34657         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
34658         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
34659         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
34660         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
34661         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
34662         [UNIX98 || XOPEN2K] (scalb): Expect.
34663         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
34664         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
34665         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
34666         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
34667         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
34668         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
34669         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
34670         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
34671         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
34672         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
34673         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
34674         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
34675         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
34676         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
34677         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
34678         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
34679         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
34680         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
34681         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
34682         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
34683         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
34684         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
34685         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
34686         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
34687         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
34688         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
34689         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
34690         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
34691         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
34692         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
34693         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
34694         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
34695         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
34696         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
34697         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
34698         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
34699         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
34700         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
34701         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
34702         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
34703         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
34704         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
34705         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
34706         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
34707         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
34708         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
34709         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
34710         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
34711         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
34712         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
34713         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
34714         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
34715         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
34716         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
34717         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
34718         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
34719         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
34720         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
34721         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
34722         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
34723         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
34724         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
34725         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
34726         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
34727         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
34728         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
34729         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
34730         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
34731         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
34732         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
34733         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
34734         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
34735         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
34736         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
34737         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
34738         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
34739         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
34740         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
34741         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
34742         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
34743         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
34744         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
34745         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
34746         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
34747         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
34748         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
34749         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
34750         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
34751         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
34752         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
34753         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
34754         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
34755         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
34756         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
34757         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
34758         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
34759         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
34760         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
34761         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
34762         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
34763         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
34764         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
34765         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
34766         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
34767         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
34768         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
34769         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
34770         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
34771         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
34772         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
34773         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
34774         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
34775         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
34776         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
34777         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
34778         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
34779         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
34780         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
34781         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
34782         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
34783         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
34784         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
34785         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
34786         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
34787         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
34788         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
34789         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
34790         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
34791         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
34792         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
34793         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
34794         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
34795         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
34796         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
34797         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
34798         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
34799         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
34800
34801         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
34802         _XOPEN_SOURCE_EXTENDED for XPG4.
34803
34804         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
34805
34806         * Makeconfig (localtime): Remove variable.
34807         (inst_localtime-file): Likewise.
34808
34809 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34810
34811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
34812         Update.
34813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
34814         Update.
34815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
34816         Update.
34817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
34818         Update.
34819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
34820         Update.
34821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
34822         Update.
34823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
34824         Update.
34825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
34826         Update.
34827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34828         Update.
34829
34830 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34831
34832         [BZ #2550]
34833         [BZ #2570]
34834         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
34835         comparisons to determine direction to adjust input.
34836         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34837         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
34838         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34839         Likewise.
34840         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34841         Likewise.
34842         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34843         Likewise.
34844         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34845         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34846         Likewise.
34847         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34848         Likewise.
34849         * math/libm-test.inc (nexttoward_test): Add more tests.
34850
34851 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34852
34853         [BZ #14040]
34854         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
34855         in version GLIBC_2.1, not GLIBC_2.0.
34856         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
34857         Likewise.
34858
34859 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
34860
34861         [BZ #13942]
34862         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
34863         (1 - x) * (1 + x).
34864         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34865         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
34866         * math/libm-test.inc (acos_test): Add more tests.
34867         (asin_test): Likewise.
34868         * sysdeps/i386/fpu/libm-test-ulps: Update.
34869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34870
34871         [BZ #14034]
34872         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
34873         of square root.
34874         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
34875         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34876         * math/libm-test.inc (acos_test_tonearest): New function.
34877         (acos_test_towardzero): Likewise.
34878         (acos_test_downward): Likewise.
34879         (acos_test_upward): Likewise.
34880         (asin_test_tonearest): Likewise.
34881         (asin_test_towardzero): Likewise.
34882         (asin_test_downward): Likewise.
34883         (asin_test_upward): Likewise.
34884         (main): Call the new functions.
34885         * sysdeps/i386/fpu/libm-test-ulps: Update.
34886         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34887
34888         [BZ #13884]
34889         [BZ #13924]
34890         * math/e_exp10.c: Include <float.h>.
34891         (__ieee754_exp10): Handle underflow here rather than multiplying
34892         large negative argument by M_LN10.
34893         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
34894         of __ieee754_expf.
34895         * math/e_exp10l.c: Include <float.h>.
34896         (__ieee754_exp10l): Handle underflow here rather than multiplying
34897         large negative argument by M_LN10l.
34898         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
34899         spurious overflow exception on underflow.
34900
34901 2012-04-29  Marek Polacek  <polacek@redhat.com>
34902
34903         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
34904         (__fortify_function): New macro.
34905         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
34906         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
34907         __extern_always_inline.
34908         * libio/bits/stdio2.h: Likewise.
34909         * libio/bits/stdio.h: Likewise.
34910         * string/string.h: Likewise.
34911         * string/bits/string3.h: Likewise.
34912         * include/stdio.h: Likewise.
34913         * stdlib/bits/stdlib.h: Likewise.
34914         * stdlib/stdlib.h: Likewise.
34915         * rt/bits/mqueue2.h: Likewise.
34916         * rt/mqueue.h: Likewise.
34917         * posix/bits/unistd.h: Likewise.
34918         * posix/unistd.h: Likewise.
34919         * io/bits/poll2.h: Likewise.
34920         * io/bits/fcntl2.h: Likewise.
34921         * io/fcntl.h: Likewise.
34922         * io/sys/poll.h: Likewise.
34923         * misc/bits/syslog.h: Likewise.
34924         * misc/bits/syslog-ldbl.h: Likewise.
34925         * misc/sys/syslog.h: Likewise.
34926         * socket/bits/socket2.h: Likewise.
34927         * socket/sys/socket.h: Likewise.
34928         * debug/tst-chk1.c: Likewise.
34929         * wcsmbs/bits/wchar2.h: Likewise.
34930         * wcsmbs/bits/wchar-ldbl.h: Likewise.
34931         * wcsmbs/wchar.h: Likewise.
34932
34933 2012-04-29  Andreas Jaeger  <aj@suse.de>
34934
34935         * Makerules (tests): Remove enable-check-abi protection.
34936         (check-abi-warn): Remove.
34937         (check-abi-%): Remove check-abi-warn usage.
34938
34939         * configure.in: Remove check-abi configure option.
34940         * configure: Regenerated.
34941         * config.make.in (enable-check-abi): Remove.
34942
34943 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
34944
34945         [BZ #14033]
34946         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
34947         double functions to double *_finite functions.
34948
34949         [BZ #13941]
34950         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
34951         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
34952         LDBL_MIN_EXP.
34953         * stdio-common/Makefile (tests): Add tst-sprintf3.
34954         * stdio-common/tst-sprintf3.c: New file.
34955
34956         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
34957         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
34958
34959 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34960
34961         * conform/conformtest.pl: Remove duplicate typed-constant
34962         handling.
34963
34964 2012-04-28  David S. Miller  <davem@davemloft.net>
34965
34966         * Makerules (%.abilist): Add vpath on sysdep_dirs.
34967         (check-abi-%): Remove AWK script prerequisite and explicit
34968         abilist directory.
34969         (check-abi): Rewrite to just diff the symlist with the abilist.
34970         (config-tls, config-abi-config): Delete, no longer used.
34971         (update-abi-%): Remove AWK script and explicit abilist directory.
34972         (update-abi): Rewrite to simply compare and conditionally copy the
34973         symlist and the sysdep abilist file.  Remove update-abi-config
34974         checks.
34975         * abilist/ld.abilist: Remove.
34976         * abilist/libBrokenLocale.abilist: Remove.
34977         * abilist/libanl.abilist: Remove.
34978         * abilist/libcrypt.abilist: Remove.
34979         * abilist/libdl.abilist: Remove.
34980         * abilist/librt.abilist: Remove.
34981         * abilist/libthread_db.abilist: Remove.
34982         * abilist/libutil.abilist: Remove.
34983         * scripts/extract-abilist.awk: Remove.
34984         * scripts/merge-abilist.awk: Remove.
34985         * sysdeps/generic/libcidn.abilist: New file.
34986         * sysdeps/generic/libnss_compat.abilist: New file.
34987         * sysdeps/generic/libnss_db.abilist: New file.
34988         * sysdeps/generic/libnss_dns.abilist: New file.
34989         * sysdeps/generic/libnss_files.abilist: New file.
34990         * sysdeps/generic/libnss_hesiod.abilist: New file.
34991         * sysdeps/generic/libnss_nis.abilist: New file.
34992         * sysdeps/generic/libnss_nisplus.abilist: New file.
34993         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
34994         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
34995         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
34996         file.
34997         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
34998         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
34999         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
35000         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
35001         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
35002         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
35003         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
35004         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
35005         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
35006         file.
35007         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
35008         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
35009         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
35010         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
35011         file.
35012         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
35013         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
35014         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
35015         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
35016         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
35017         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
35018         file.
35019         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
35020         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
35021         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
35022         file.
35023         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
35024         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
35025         New file.
35026         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
35027         New file.
35028         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
35029         New file.
35030         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
35031         New file.
35032         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
35033         New file.
35034         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
35035         New file.
35036         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
35037         New file.
35038         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
35039         New file.
35040         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
35041         New file.
35042         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
35043         New file.
35044         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
35045         New file.
35046         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
35047         New file.
35048         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
35049         New file.
35050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
35051         file.
35052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
35053         New file.
35054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
35055         New file.
35056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
35057         file.
35058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
35059         New file.
35060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
35061         New file.
35062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
35063         file.
35064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
35065         New file.
35066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
35067         New file.
35068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
35069         New file.
35070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
35071         New file.
35072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
35073         New file.
35074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
35075         New file.
35076         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
35077         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
35078         file.
35079         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35080         New file.
35081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
35082         file.
35083         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
35084         file.
35085         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
35086         file.
35087         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
35088         file.
35089         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
35090         file.
35091         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35092         New file.
35093         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
35094         file.
35095         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
35096         file.
35097         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35098         New file.
35099         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
35100         file.
35101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
35102         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
35103         file.
35104         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35105         New file.
35106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
35107         file.
35108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
35109         file.
35110         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
35111         file.
35112         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
35113         file.
35114         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
35115         file.
35116         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35117         New file.
35118         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
35119         file.
35120         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
35121         file.
35122         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35123         New file.
35124         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
35125         file.
35126         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
35127         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
35128         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
35129         file.
35130         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
35131         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
35132         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
35133         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
35134         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
35135         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
35136         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
35137         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
35138         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
35139         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
35140         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
35141         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
35142         file.
35143         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35144         New file.
35145         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
35146         file.
35147         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
35148         file.
35149         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
35150         file.
35151         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
35152         file.
35153         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
35154         file.
35155         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35156         New file.
35157         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35158         New file.
35159         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
35160         file.
35161         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35162         New file.
35163         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
35164         file.
35165         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
35166         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
35167         file.
35168         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35169         New file.
35170         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
35171         file.
35172         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
35173         file.
35174         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
35175         file.
35176         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
35177         file.
35178         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
35179         file.
35180         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35181         New file.
35182         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35183         New file.
35184         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
35185         file.
35186         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35187         New file.
35188         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
35189         file.
35190
35191 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35192
35193         * conform/conformtest.pl: Fix typo in handling typed-constant from
35194         allow-header.
35195
35196 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35197
35198         * README: Cut down references to pre-2.6 Linux kernels and
35199         Linuxthreads.  Update lists of configurations in libc and ports
35200         and sort alphabetically.  Say "or newer" with Linux kernel version
35201         requirements.
35202
35203         * config.h.in [IS_IN_build]: Allow compiling without optimization.
35204
35205 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
35206
35207         [BZ #887]
35208         * math/libm-test.inc (logb_test_downward): New test to expose
35209         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
35210         rounding mode.
35211
35212 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35213
35214         [BZ #14027]
35215         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
35216         to be done.
35217         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
35218         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
35219
35220 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
35221
35222         * sysdeps/unix/i386/brk.S: Remove file.
35223         * sysdeps/unix/i386/dl-brk.S: Likewise.
35224         * sysdeps/unix/i386/pipe.S: Likewise.
35225         * sysdeps/unix/i386/sigreturn.S: Likewise.
35226         * sysdeps/unix/i386/syscall.S: Likewise.
35227         * sysdeps/unix/i386/vfork.S: Likewise.
35228         * sysdeps/unix/i386/wait.S: Likewise.
35229
35230         * sysdeps/unix/common/tcsendbrk.c: Move to ...
35231         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
35232
35233         * configure.in (arm*-none*): Do not allow without
35234         --enable-hacker-mode.
35235         (netbsd*): Remove case setting base_os.
35236         (386bsd*): Likewise.
35237         (freebsd*): Likewise.
35238         (bsdi*): Likewise.
35239         (osf*): Likewise.
35240         (sunos*): Likewise.
35241         (ultrix*): Likewise.
35242         (newsos*): Likewise.
35243         (dynix*): Likewise.
35244         (*bsd*): Likewise.
35245         (sysv*): Likewise.
35246         (isc*): Likewise.
35247         (esix*): Likewise.
35248         (sco*): Likewise.
35249         (minix*): Likewise.
35250         (irix4*): Likewise.
35251         (irix6*): Likewise.
35252         (solaris[2-9]*): Likewise.
35253         (none): Likewise.
35254         * configure: Regenerated.
35255
35256 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35257
35258         [BZ #11521]
35259         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
35260         overflow or cancellation in calculating denominator.
35261         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
35262         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
35263         down expression to avoid unexpected rounding in newer GCCs.
35264         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
35265
35266 2012-04-26  David S. Miller  <davem@davemloft.net>
35267
35268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
35269         long-double compat symbols.
35270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
35271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
35272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
35273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
35274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
35275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
35276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
35277         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
35278         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
35279         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
35280         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
35281         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
35282         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
35283
35284 2012-04-25  David S. Miller  <davem@davemloft.net>
35285
35286         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
35287         HWCAP_* values only after the memory barriers have been defined.
35288         (atomic_full_barrier): Define.
35289         (atomic_read_barrier): Define.
35290         (atomic_write_barrier): Define.
35291
35292 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35293
35294         * shlib-versions: Add libgcc_s version information.
35295         * sysdeps/generic/libgcc_s.h: Remove.
35296         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
35297         libgcc_s.h.
35298         * sysdeps/gnu/unwind-resume.c: Likewise.
35299         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
35300
35301 2012-04-25  David S. Miller  <davem@davemloft.net>
35302
35303         * sysdeps/unix/sparc/brk.S: Delete.
35304         * sysdeps/unix/sparc/dl-brk.S: Delete.
35305         * sysdeps/unix/sparc/pipe.S: Delete.
35306         * sysdeps/unix/sparc/sysdep.S: Delete.
35307         * sysdeps/unix/sparc/sysdep.h: Delete.
35308         * sysdeps/unix/sparc/vfork.S: Delete.
35309         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
35310         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
35311         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
35312         (ret_ERRVAL, r0, r1, MOVE): Define.
35313         (JUMPTARGET): Remove.
35314         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
35315         sysdeps/unix/sparc/sysdep.h
35316         (ENTRY, END): Remove.
35317         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
35318
35319 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
35320
35321         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
35322         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
35323         -DIS_IN_build.
35324
35325         * timezone/README: Update upstream location and email address for
35326         tzcode and tzdata.
35327         * timezone/zdump.c: Update from tzcode 2012b.
35328         * timezone/zic.c: Likewise.
35329
35330         * configure.in (libc_cv_as_needed): Remove test.
35331         * configure: Regenerated.
35332         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
35333         conditional definition.
35334         [$(have-as-needed) != yes] (no-as-needed): Likewise.
35335         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
35336         * config.make.in (have-as-needed): Remove variable.
35337
35338 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
35339             Paul Pluzhnikov  <ppluzhnikov@google.com>
35340
35341         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
35342         strings correctly.
35343
35344 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
35345
35346         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
35347         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
35348         * sysdeps/sh/strlen.S: Likewise.
35349
35350 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35351
35352         * sysdeps/unix/fork.S: Remove file.
35353         * sysdeps/unix/i386/fork.S: Likewise.
35354         * sysdeps/unix/sparc/fork.S: Likewise.
35355
35356         * sysdeps/unix/system.c: Remove file.
35357         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
35358
35359         * sysdeps/unix/getegid.S: Remove file.
35360         * sysdeps/unix/geteuid.S: Likewise.
35361
35362 2012-04-24  Roland McGrath  <roland@hack.frob.com>
35363
35364         * scripts/check-localplt.awk: New file.
35365         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
35366         of diff.
35367         * scripts/data/localplt-generic.data: Add a comment.
35368
35369         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
35370         NODE when __dir_mkfile failed.
35371         * sysdeps/mach/hurd/symlinkat.c: Likewise.
35372         Reported by Ludovic Courtès <ludo@gnu.org>.
35373
35374 2012-04-24  Andreas Jaeger  <aj@suse.de>
35375
35376         * Makerules (common-clean): Also remove gen-as-const-headers
35377         files.
35378
35379 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35380
35381         * Makerules (native-compile): Do not change working directory for
35382         build.  Use $(OUTPUT_OPTION) in command.
35383         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
35384
35385 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35386
35387         [BZ #13886]
35388         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
35389         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
35390         * math/libm-test.inc (floor_test): Add more tests.
35391         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
35392
35393 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35394
35395         * sysdeps/unix/getdents.c: Remove file.
35396         * sysdeps/unix/sysv/getdents.c: Likewise.
35397         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
35398
35399         * sysdeps/unix/syscalls.list (madvise): Add syscall from
35400         sysdeps/unix/mman/syscalls.list.
35401         (mmap): Likewise.
35402         (mprotect): Likewise.
35403         (msync): Likewise.
35404         (munmap): Likewise.
35405         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
35406         * sysdeps/unix/mman/syscalls.list: Remove.
35407         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
35408
35409         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
35410         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
35411         * configure: Regenerated.
35412         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
35413         $(libgcc_s_suffix).
35414         * config.make.in (libgcc_s_suffix): Remove variable.
35415
35416 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
35417
35418         * sysdeps/unix/sysv/gethostname.c: Move to ...
35419         * sysdeps/posix/gethostname.c: ... here.
35420
35421         * sysdeps/unix/execve.S: Remove file.
35422
35423         * sysdeps/unix/_exit.S: Remove file.
35424
35425 2012-04-23  Andreas Jaeger  <aj@suse.de>
35426
35427         [BZ #13739]
35428         * manual/Makefile: Remove make dist support, there's no
35429         need for a stand-alone documentation tar ball.
35430         (TEXI2DVI): Define always, it's not in Makeconfig.
35431         (dist): Removed.
35432         (tar-it): Removed.
35433         (edition): Removed.
35434         (glibc-doc-$(edition).tar): Removed
35435         (%.Z): Removed.
35436         (%.gz): Removed.
35437         (%.uu): Removed.
35438         (ETAGS): Remove, it's in Makeconfig.
35439         (move-if-change): Remove, it's in Makeconfig.
35440
35441 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
35442
35443         [BZ #13970]
35444         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
35445         (strtod, strtof, strtold, strtol, strtoul, strtoq)
35446         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
35447         (strtod_l, strtof_l, strtold_l): Remove __wur.
35448         It is not necessarily an error to ignore strtol's return value.
35449         One can reliably look at the stored endptr to decide whether
35450         the number had valid syntax.
35451
35452 2012-04-21  Andreas Jaeger  <aj@suse.de>
35453
35454         [BZ #13739]
35455         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
35456
35457 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
35458
35459         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
35460         * sysdeps/unix/sysv/Versions: Remove file.
35461
35462 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
35463
35464         [BZ #13927]
35465         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35466
35467 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
35468
35469         [BZ #7064]
35470         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
35471         version from __vm86.
35472
35473 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
35474
35475         * sysdeps/unix/common/lxstat.c: Remove file.
35476         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
35477
35478         * sysdeps/unix/sysv/Makefile: Remove file.
35479
35480         * sysdeps/unix/sysv/direct.h: Remove file.
35481
35482         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
35483         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
35484         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
35485         * sysdeps/unix/sysv/bits/signum.h: Likewise.
35486         * sysdeps/unix/sysv/bits/stat.h: Likewise.
35487         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
35488         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
35489
35490         * sysdeps/unix/sysv/setrlimit.c: Remove file.
35491
35492         * sysdeps/unix/xmknod.c: Remove file.
35493         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
35494
35495         * sysdeps/unix/sysv/settimeofday.c: Remove file.
35496
35497         * sysdeps/unix/sysv/i386/time.S: Remove file.
35498
35499         * sysdeps/unix/fxstat.c: Remove file.
35500         * sysdeps/unix/xstat.c: Likewise.
35501         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
35502
35503         * sysdeps/unix/sysv/sigaction.c: Remove file.
35504
35505         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
35506         (sysdep_headers): Remove variable.
35507         [termio.h not in sysdep_headers] (generated): Likewise.
35508         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
35509         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
35510         * sysdeps/unix/sysv/tcdrain.c: Likewise.
35511         * sysdeps/unix/sysv/tcflow.c: Likewise.
35512         * sysdeps/unix/sysv/tcflush.c: Likewise.
35513         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
35514         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
35515         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
35516         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
35517         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
35518
35519         * sysdeps/unix/siglist.c: Remove file.
35520
35521         * sysdeps/unix/getppid.S: Remove file.
35522
35523         * sysdeps/unix/mkdir.c: Remove file.
35524         * sysdeps/unix/rmdir.c: Likewise.
35525
35526 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
35527
35528         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
35529         ERR_MAX value.
35530         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
35531         errlist-compat value.
35532
35533 2012-04-18  David S. Miller  <davem@davemloft.net>
35534
35535         * sysdeps/generic/memcopy.h (reg_char): Delete.
35536         * debug/strcat_chk.c: Use char, not reg_char.
35537         * debug/strcpy_chk.c: Likewise.
35538         * debug/strncat_chk.c: Likewise.
35539         * debug/strncpy_chk.c: Likewise.
35540         * string/memchr.c: Likewise.
35541         * string/memrchr.c: Likewise.
35542         * string/rawmemchr.c: Likewise.
35543         * string/strcat.c: Likewise.
35544         * string/strchr.c: Likewise.
35545         * string/strchrnul.c: Likewise.
35546         * string/strcmp.c: Likewise.
35547         * string/strcpy.c: Likewise.
35548         * string/strncat.c: Likewise.
35549         * string/strncmp.c: Likewise.
35550         * string/strncpy.c: Likewise.
35551
35552 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35553
35554         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
35555         __builtin_memcopy is called when src and dest ranges are known to not
35556         overlap.
35557
35558 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35559
35560         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
35561         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
35562         fwd_align_merge macro call.
35563         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
35564         bwd_align_merge macro call.
35565         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35566
35567 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35568
35569         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
35570         bwd_align_merge macros.
35571         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
35572         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
35573         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35574
35575 2012-04-18  David S. Miller  <davem@davemloft.net>
35576
35577         * sysdeps/sparc/sparc64/memcopy.h: Delete.
35578
35579 2012-04-18  Andreas Jaeger  <aj@suse.de>
35580
35581         [BZ# 6794]
35582         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
35583         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
35584         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35585
35586         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
35587         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
35588         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35589
35590         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
35591         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
35592         Adjust for changed ldbl-128 files.
35593
35594         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
35595         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
35596         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35597
35598 2012-04-17  David S. Miller  <davem@davemloft.net>
35599
35600         * sysdeps/sparc/sparc32/memcopy.h: Delete.
35601
35602 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
35603
35604         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
35605         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
35606         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
35607         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
35608         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
35609         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
35610
35611 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35612
35613         [BZ #6794]
35614         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
35615         * math/libm-test.inc: Add ilogb errno and exception tests.
35616         * math/w_ilogb.c: New file: ilogb wrapper.
35617         * math/w_ilogbf.c: New file: ilogbf wrapper.
35618         * math/w_ilogbl.c: New file: ilogbl wrapper.
35619         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
35620         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
35621         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
35622         exception being thrown with 0.0 as argument.
35623         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
35624         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
35625         exception being thrown with 0.0 as argument.
35626         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
35627         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35628         exception being thrown with 0.0 as argument.
35629         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
35630         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35631         exception being thrown with 0.0 as argument.
35632         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
35633         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
35634         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
35635         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
35636         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
35637         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
35638         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
35639         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
35640         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
35641
35642 2012-04-17  Petr Baudis  <pasky@ucw.cz>
35643
35644         * include/sys/uio.h: Change __vector to __iovec to avoid clash
35645         with altivec.
35646
35647 2012-04-16  Marek Polacek  <polacek@redhat.com>
35648
35649         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
35650
35651 2012-04-16  Marek Polacek  <polacek@redhat.com>
35652
35653         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
35654         operands of fdivp instruction.
35655
35656 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35657
35658         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
35659         * elf/tst-auditmod3b.c: Likewise.
35660         * elf/tst-auditmod4b.c: Likewise.
35661         * elf/tst-auditmod5b.c: Likewise.
35662         * elf/tst-auditmod6b.c: Likewise.
35663         * elf/tst-auditmod6c.c: Likewise.
35664         * elf/tst-auditmod7b.c: Likewise.
35665         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
35666         * sysdeps/x86_64/preconfigure.in: Likewise.
35667         * sysdeps/x86_64/preconfigure: Regenerated.
35668
35669 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35670
35671         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
35672         __ILP32__.
35673
35674 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
35675
35676         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35677         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
35678
35679 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
35680
35681         [BZ #13973]
35682         * locale/iso-639.def: Fix gl language name. Spotted by
35683         Yaron Shahrabani.
35684
35685 2012-04-12  Roland McGrath  <roland@hack.frob.com>
35686
35687         [BZ #2074]
35688         * libio/libio.h (__io_write_fn): Update comment.
35689
35690 2012-04-12  Petr Baudis  <pasky@ucw.cz>
35691
35692         [BZ #2074]
35693         * stdio.texi (Hook Functions): The user provided writer function
35694         is not allowed to return -1.
35695
35696 2012-04-11  David S. Miller  <davem@davemloft.net>
35697
35698         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35699
35700 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
35701
35702         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
35703         Add a leading slash to rtkaio.
35704
35705 2012-04-11  Jim Meyering  <meyering@redhat.com>
35706
35707         [BZ #11959]
35708         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
35709         It is not necessarily an error to ignore fwrite's return
35710         value.  One can reliably use ferror to test for errors after
35711         the fact.
35712
35713 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35714
35715         * bits/types.h (__snseconds_t): New type.
35716         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
35717
35718         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
35719         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
35720         (__SNSECONDS_T_TYPE): Likewise.
35721         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
35722         (__SNSECONDS_T_TYPE): Likewise.
35723         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
35724         (__SNSECONDS_T_TYPE): Likewise.
35725
35726 2012-04-10  Andreas Jaeger  <aj@suse.de>
35727
35728         [BZ #2636]
35729         * manual/time.texi (Processor Time): Return type of times is
35730         elapsed real time since an arbitrary point in the past.
35731         (CPU Time): Move CLK_TCK from here...
35732         (Processor Time): ...to here.  Correct description.
35733         * manual/conf.texi (Constants for Sysconf): Correct description of
35734         _SC_CLK_TCK.
35735
35736 2012-04-10  David S. Miller  <davem@davemloft.net>
35737
35738         [BZ #13967]
35739         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
35740         where the is a gap between DT_REL(A) and DT_JMPREL.
35741
35742 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35743
35744         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
35745         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35746         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35747
35748 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35749
35750         * elf/dl-support.c (_dl_inhibit_cache): New variable.
35751         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
35752         (dl_main): Handle --inhibit-cache.
35753         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
35754         _dl_inhibit_cache.
35755         * elf/dl-load.c (_dl_map_object): Use it.
35756         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
35757
35758 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35759
35760         [BZ #13872]
35761         * sysdeps/i386/fpu/e_powl.S (p78): New object.
35762         (__ieee754_powl): Saturate large exponents rather than testing for
35763         overflow of y*log2(x).
35764         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
35765         * math/libm-test.inc (pow_test): Do not permit spurious overflow
35766         exceptions.
35767
35768         [BZ #11521]
35769         * math/s_ctan.c: Include <float.h>.
35770         (__ctan): Avoid internal overflow or cancellation in calculating
35771         denominator.
35772         * math/s_ctanf.c: Likewise.
35773         * math/s_ctanl.c: Likewise.
35774         * math/s_ctanh.c: Likewise.
35775         * math/s_ctanhf.c: Likewise.
35776         * math/s_ctanhl.c: Likewise.
35777         * math/libm-test.inc (ctan_test): Add more tests.
35778         (ctanh_test): Likewise.
35779         * sysdeps/i386/fpu/libm-test-ulps: Update.
35780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35781
35782 2012-04-09  Andreas Jaeger  <aj@suse.de>
35783
35784         [BZ #6894]
35785         * manual/filesys.texi (Directory Entries): Mention that d_namlen
35786         is an optional BSD extension.
35787
35788         [BZ #10254]
35789         * manual/stdio.texi (Opening Streams): Document additional fopen
35790         parameters.
35791
35792 2012-04-09  Roland McGrath  <roland@hack.frob.com>
35793
35794         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
35795         %eax without telling the compiler.
35796
35797 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
35798
35799         [BZ # 13963]
35800         * manual/install.texi: Use sourceware.org.
35801
35802 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35803
35804         [BZ #13873]
35805         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
35806         (__ieee754_pow): Generate overflow and underflow using huge*huge
35807         and tiny*tiny rather than just returning constant infinity or zero
35808         for large exponents.
35809         * math/libm-test.inc (pow_test): Require overflow exceptions for
35810         applicable cases of large exponents.
35811
35812         [BZ #706]
35813         * sysdeps/i386/fpu/e_pow.S (p10): New object.
35814         (__ieee754_pow): Use iterative multiplication algorithm only for
35815         integer exponents with absolute value below 1024.  Check for odd
35816         integer exponents when using algorithm for real exponents.
35817         * math/libm-test.inc (pow_test): Add more tests.
35818         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35819
35820 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
35821
35822         [BZ #13705]
35823         * math/libm-test.inc (exp_test): Do not allow overflow exception
35824         on underflow test.
35825
35826 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
35827
35828         [BZ #13705]
35829         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
35830         instead of __kernel_standard_f.
35831
35832 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
35833
35834         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
35835         * sysdeps/x86_64/memset_chk.S: Likewise.
35836
35837 2012-04-08  Andreas Jaeger  <aj@suse.de>
35838
35839         [BZ #10153]
35840         * manual/startup.texi (Environment Access): Describe return value
35841         for putenv and setenv.
35842
35843         [BZ #6895]
35844         * manual/filesys.texi (Directory Entries): Add description for
35845         DT_LNK.
35846
35847         [BZ #6890]
35848         * manual/filesys.texi (Directory Entries): Clarify that it's file
35849         system not operating system in the description of DT_UNKNOWN.
35850
35851         [BZ #6578]
35852         * manual/syslog.texi (closelog): Fix reference, it's openlog.
35853
35854 2012-04-08  Stephen Compall  <s11@member.fsf.org>
35855
35856         [BZ #6649]
35857         * manual/llio.texi (Opening and Closing Files): Add cross
35858         reference to explain mode argument.
35859
35860 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
35861
35862         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
35863         * sysdeps/x86_64/memset_chk.S: Likewise.
35864
35865 2012-04-07  David S. Miller  <davem@davemloft.net>
35866
35867         * elf/elf.h (R_SPARC_WDISP10): Define.
35868         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
35869         R_SPARC_SIZE32.
35870         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
35871         R_SPARC_SIZE64 and R_SPARC_H34.
35872
35873 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
35874
35875         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
35876         conditions and remove no longer applicable assertion.
35877
35878 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35879
35880         * bits/byteswap.h: Include <features.h>.
35881         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35882         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35883
35884 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35885
35886         * bits/byteswap.h (__bswap_16): Removed.
35887         Include <bits/byteswap-16.h> to get __bswap_16.
35888         * sysdeps/i386/bits/byteswap.h: Likewise.
35889         * sysdeps/s390/bits/byteswap.h: Likewise.
35890         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35891         * bits/byteswap-16.h: New file.
35892         * sysdeps/i386/bits/byteswap-16.h: Likewise.
35893         * sysdeps/s390/bits/byteswap-16.h: Likewise.
35894         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
35895         * string/Makefile (headers): Add bits/byteswap-16.h.
35896
35897 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35898
35899         [BZ #13895]
35900         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
35901         extra indirection.
35902         * nss/Makefile (tests-static, tests): Add tst-nss-static.
35903         * nss/tst-nss-static.c: New.
35904
35905 2012-04-06  Robert Millan  <rmh@gnu.org>
35906
35907         [BZ #6486]
35908         * manual/llio.texi (File Position Primitive): lseek
35909         refers to WHENCE when it really means OFFSET.
35910
35911 2012-04-06  Andreas Jaeger  <aj@suse.de>
35912
35913         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
35914         strncmp declarations.
35915
35916         * abilist/libc.abilist: Add __poll and __ppoll.
35917
35918 2012-04-05  David S. Miller  <davem@davemloft.net>
35919
35920         * scripts/check-local-headers.sh: Accept a host triplet in the
35921         path matched by the exclude regexp.
35922
35923         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
35924         definition.
35925         * sysdeps/powerpc/powerpc32/dl-machine.h
35926         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
35927         * sysdeps/s390/s390-32/dl-machine.h
35928         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35929         * sysdeps/sparc/sparc32/dl-machine.h
35930         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35931         * sysdeps/sparc/sparc64/dl-machine.h
35932         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35933
35934         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
35935         lazy binding.
35936         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
35937         undefined symbol errors.
35938
35939         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
35940         DT_NEEDED entries.
35941
35942 2012-04-05  Michael Matz  <matz@suse.de>
35943
35944         [BZ #13592]
35945         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
35946
35947 2012-04-05  Andreas Jaeger  <aj@suse.de>
35948
35949         [BZ #13908]
35950         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
35951         comment.
35952
35953 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35954
35955         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
35956         which ROUND is no valid rounding mode.
35957
35958 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35959
35960         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
35961         read again.
35962         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
35963
35964 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35965
35966         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
35967         an exception using FPU order intentionally.
35968
35969 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35970
35971         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
35972         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
35973         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
35974         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
35975
35976 2012-04-05  Simon Josefsson  <simon@josefsson.org>
35977
35978         [BZ #12340]
35979         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
35980         EINVAL when BUFLEN is too smal.
35981
35982 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
35983
35984         [BZ #13553]
35985         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
35986         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
35987
35988 2012-04-03  Andreas Jaeger  <aj@suse.de>
35989
35990         [BZ #13938]
35991         * manual/setjmp.texi (System V contexts): Fix sentence.
35992
35993         [BZ #13926]
35994         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
35995         New macro for this case.
35996         [!__GNUC__] (__bswap_64): New inline function for this case.
35997         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35998         * bits/byteswap.h: Likewise.
35999         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
36000         ull, guard with __GLIBC_HAVE_LONG_LONG.
36001
36002         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
36003         __GLIBC_HAVE_LONG_LONG.
36004
36005         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
36006         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
36007
36008 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
36009
36010         [BZ #13691]
36011         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
36012         inptr and inend, rather than using last_ch.
36013
36014 2012-04-02  David S. Miller  <davem@davemloft.net>
36015
36016         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
36017         * stdio-common/printf-parse.h (read_int): Change return type to
36018         'int', return -1 on INT_MAX overflow.
36019         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
36020         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
36021         overflows INT_MAX.  Check for overflow of in-format-string precision
36022         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
36023         SIZE_MAX not INT_MAX for integer overflow test.
36024         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
36025         skip the construct in the format string but do not record anything.
36026         * stdio-common/bug22.c: Adjust to test both width/prevision
36027         INT_MAX overflow as well as total length INT_MAX overflow.  Check
36028         explicitly for proper errno values.
36029
36030 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
36031
36032         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
36033         CHAR_MAX.
36034         * string/test-strcmp.c [! WIDE]: Likewise.
36035         * time/tst-mktime2.c: Likewise for INT_MAX.
36036         * string/test-string.h: #include <sys/param.h> for MIN.
36037
36038         * csu/init-first.c (__libc_init_first): Call __ctype_init.
36039         * sysdeps/i386/init-first.c (init): Likewise.
36040         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
36041         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
36042         * sysdeps/sh/init-first.c (init): Likewise.
36043
36044 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
36045
36046         * po/ru.po: Update from translation team.
36047         * po/vi.po: Likewise.
36048
36049 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36050
36051         * resolv/nss_dns/dns-host.c: Merge copyright years.
36052
36053 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
36054
36055         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
36056         Optimize memcpy with prefetch if
36057         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
36058         src, dst pointers have unequal 16 byte alignments.
36059
36060 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
36061
36062         [BZ #13928]
36063         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
36064         from a CNAME entry and return the minimum ttl for the query.
36065         (gaih_getanswer_slice): Likewise.
36066
36067 2012-03-30  Jeff Law  <law@redhat.com>
36068
36069         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
36070         due to long keys.
36071         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
36072         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
36073
36074         * resolv/nss_dns/dns-host.c: Update copyright year.
36075
36076 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
36077
36078         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
36079         requests to save a system call.  Fix check that all bytes are sent.
36080
36081         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
36082         comments for sendmmsg.
36083
36084 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
36085
36086         [BZ #13691]
36087         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
36088         with only 1 character between 0x0041 and 0x01b0.
36089         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
36090         * wcsmbs/tst-mbsnrtowcs.c: New file.
36091
36092 2012-03-29  David S. Miller  <davem@davemloft.net>
36093
36094         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
36095         small copies by hand.
36096
36097 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
36098
36099         [BZ #13761]
36100         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
36101         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
36102         group memberships.
36103
36104 2012-03-28  David S. Miller  <davem@davemloft.net>
36105
36106         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
36107         that branches into memcpy.
36108         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
36109         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
36110         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
36111         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
36112         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
36113         bits.
36114         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
36115         implementation too.
36116         * sysdeps/sparc/mempcpy.S: New file.
36117
36118         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
36119         the IFUNC routine in the libc case.
36120         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36121
36122         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
36123         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
36124         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
36125         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
36126         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
36127         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
36128         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
36129         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
36130
36131         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
36132         loop to 256 bytes instead of 64 bytes and fix test signedness.
36133
36134         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
36135         * sysdeps/sparc/sparc32/Makefile: rather than here...
36136         * sysdeps/sparc/sparc64/Makefile: and here.
36137
36138 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
36139
36140         * malloc/mallocbug.c: Avoid warnings about unused variables.
36141
36142 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
36143
36144         [BZ #13760]
36145         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
36146         in the right place. Discard and retry query if response is
36147         larger than input buffer size.
36148
36149 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
36150
36151         [BZ #369]
36152         [BZ #2678]
36153         [BZ #3866]
36154         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
36155         x for large integer exponent.
36156         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36157         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
36158         sign of result as needed afterwards.
36159         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
36160         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
36161         result for underflowing pow the same as for overflow.
36162         (__kernel_standard_l): Handle powl overflow and underflow here
36163         rather than calling __kernel_standard.
36164         * math/libm-test.inc (pow_test): Add more tests.
36165
36166         [BZ #3868]
36167         [BZ #13879]
36168         [BZ #13910]
36169         [BZ #13911]
36170         [BZ #13912]
36171         [BZ #13913]
36172         [BZ #13915]
36173         [BZ #13916]
36174         [BZ #13917]
36175         [BZ #13918]
36176         [BZ #13919]
36177         [BZ #13920]
36178         [BZ #13921]
36179         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
36180         * sysdeps/ieee754/k_standard.c: Include <float.h>.
36181         (__kernel_standard_l): New function.
36182         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
36183         __kernel_standard.
36184         * math/w_acosl.c (__acosl): Likewise.
36185         * math/w_asinl.c (__asinl): Likewise.
36186         * math/w_atan2l.c (__atan2l): Likewise.
36187         * math/w_atanhl.c (__atanhl): Likewise.
36188         * math/w_coshl.c (__coshl): Likewise.
36189         * math/w_exp10l.c (__exp10l): Likewise.
36190         * math/w_exp2l.c (__exp2l): Likewise.
36191         * math/w_fmodl.c (__fmodl): Likewise.
36192         * math/w_hypotl.c (__hypotl): Likewise.
36193         * math/w_j0l.c (__j0l, __y0l): Likewise.
36194         * math/w_j1l.c (__j1l, __y1l): Likewise.
36195         * math/w_jnl.c (__jnl, __ynl): Likewise.
36196         * math/w_lgammal.c (__lgammal): Likewise.
36197         * math/w_log10l.c (__log10l): Likewise.
36198         * math/w_log2l.c (__log2l): Likewise.
36199         * math/w_logl.c (__logl): Likewise.
36200         * math/w_powl.c (__powl): Likewise.
36201         * math/w_remainderl.c (__remainderl): Likewise.
36202         * math/w_scalbl.c (sysv_scalbl): Likewise.
36203         * math/w_sinhl.c (__sinhl): Likewise.
36204         * math/w_sqrtl.c (__sqrtl): Likewise.
36205         * math/w_tgammal.c (__tgammal): Likewise.
36206         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
36207         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
36208         * math/libm-test.inc (acos_test): Add more tests.
36209         (acosh_test): Likewise.
36210         (asin_test): Likewise.
36211         (atanh_test): Likewise.
36212         (exp_test): Likewise.
36213         (exp10_test): Likewise.
36214         (exp2_test): Likewise.
36215         (expm1_test): Likewise.
36216         (lgamma_test): Likewise.
36217         (log_test): Likewise.
36218         (log10_test): Likewise.
36219         (log1p_test): Likewise.
36220         (log2_test): Likewise.
36221         (pow_test): Do not allow some spurious overflow exceptions.
36222         (sqrt_test): Add more tests.
36223         (tgamma_test): Likewise.
36224         (y0_test): Likewise.
36225         (y1_test): Likewise.
36226         (yn_test): Likewise.
36227
36228 2012-03-27  Anton Blanchard  <anton@samba.org>
36229
36230         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
36231         MAP_HUGETLB.
36232         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36233         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36234         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36235
36236 2012-03-27  David S. Miller  <davem@davemloft.net>
36237
36238         * conform/Makefile: Run run-conformtest.sh using $(BASH).
36239
36240         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
36241         have-as-vis3 check.
36242
36243 2012-03-27  Andreas Jaeger  <aj@suse.de>
36244
36245         * sysdeps/x86_64/elf/configure.in: Moved to ...
36246         * sysdeps/x86_64/configure.in: ... here.
36247         * sysdeps/x86_64/elf/start.S: Moved to ...
36248         * sysdeps/x86_64/start.S: ... here.
36249         * sysdeps/x86_64/elf/configure: Delete.
36250
36251         * sysdeps/x86_64/configure.in: Merge contents from
36252         sysdeps/i386/configure.in (without i686 check).
36253
36254         * sysdeps/i386/elf/Versions: Merge into ...
36255         * sysdeps/i386/Versions: ... this.
36256         * sysdeps/i386/elf/Versions: Delete file.
36257         * sysdeps/i386/elf/start.S: Moved to ...
36258         * sysdeps/i386/start.S: ...here.
36259         * sysdeps/i386/elf/configure.in: Merge into...
36260         * sysdeps/i386/configure.in: ...here.
36261         * sysdeps/i386/elf/configure.in: Delete file.
36262         * sysdeps/i386/elf/configure: Delete file.
36263
36264         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
36265         * debug/backtracesyms.c: ... here.
36266         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
36267         * debug/backtracesymsfd.c: ... here.
36268         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
36269         * sysdeps/generic/ifunc-sel.h: ... here.
36270
36271         * sysdeps/unix/i386/start.c: Delete file.
36272         * sysdeps/unix/sparc/start.c: Delete file.
36273         * sysdeps/unix/start.c: Delete file.
36274
36275         * sysdeps/sh/elf/configure.in: Moved to ...
36276         * sysdeps/sh/configure.in: ... here.
36277         * sysdeps/sh/elf/start.S: Moved to ...
36278         * sysdeps/sh/start.S: ... here.
36279         * sysdeps/sh/elf/configure: Delete file.
36280
36281         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
36282         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
36283         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
36284         * sysdeps/powerpc/powerpc64/entry.h: ... here.
36285         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
36286         * sysdeps/powerpc/powerpc64/start.S: here.
36287         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
36288         * sysdeps/powerpc/powerpc64/Makefile: ... this.
36289         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
36290         * sysdeps/powerpc/powerpc64/configure.in: ... this.
36291         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
36292
36293         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
36294         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
36295         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
36296         * sysdeps/powerpc/powerpc32/start.S: ... here.
36297         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
36298         * sysdeps/powerpc/powerpc32/configure.in: ... this.
36299         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
36300
36301         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
36302         * sysdeps/powerpc/ifunc-sel.h: ... here.
36303         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
36304         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
36305
36306         * sysdeps/sparc/elf/configure.in: Moved to ...
36307         * sysdeps/sparc/configure.in: ... here.
36308         * sysdeps/sparc/elf/configure: Delete file.
36309         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
36310         * sysdeps/sparc/sparc32/start.S: ... here.
36311         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
36312         * sysdeps/sparc/sparc64/start.S: ... here.
36313         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
36314         * sysdeps/sparc/sparc32/Makefile: ... this.
36315         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
36316         * sysdeps/sparc/sparc64/Makefile: ... this.
36317
36318         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
36319         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
36320         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
36321         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
36322         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
36323         * sysdeps/s390/s390-32/setjmp.S: ... here.
36324         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
36325         * sysdeps/s390/s390-32/configure.in: ... here.
36326         * sysdeps/s390/s390-32/elf/configure: Delete file.
36327         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
36328         * sysdeps/s390/s390-32/start.S: ... here.
36329
36330         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
36331         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
36332         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
36333         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
36334         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
36335         * sysdeps/s390/s390-64/setjmp.S: ... here.
36336         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
36337         * sysdeps/s390/s390-64/configure.in: ... here
36338         * sysdeps/s390/s390-64/elf/configure: Delete file.
36339         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
36340         * sysdeps/s390/s390-64/start.S: ... here.
36341         * sysdeps/s390/s390-64/elf/configure: Delete.
36342
36343         * configure.in: Remove support for elf directories in sysdeps.
36344
36345         * configure: Regenerated.
36346         * sysdeps/i386/configure: Regenerated.
36347         * sysdeps/powerpc/powerpc32/configure: Regenerated.
36348         * sysdeps/powerpc/powerpc64/configure: Regenerated.
36349         * sysdeps/s390/s390-32/configure: Regenerated.
36350         * sysdeps/s390/s390-64/configure: Regenerated.
36351         * sysdeps/sh/configure: Regenerated.
36352         * sysdeps/sparc/configure: Regenerated.
36353         * sysdeps/x86_64/configure: Regenerated.
36354
36355 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
36356
36357         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36358
36359         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
36360         denormal result into account.
36361
36362 2012-03-25  Roland McGrath  <roland@hack.frob.com>
36363
36364         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
36365         Reported by Allan McRae <allan@archlinux.org>.
36366
36367 2012-03-23  Jeff Law  <law@redhat.com>
36368
36369         * nss/getnssent.c (__nss_getent): Fix typo.
36370
36371 2012-03-23  David S. Miller  <davem@davemloft.net>
36372
36373         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36374
36375 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
36376
36377         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
36378         to pad to uint64_t for each field.
36379         (dl_tls_index): Replace unsigned long with uint64_t.
36380
36381 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
36382         Paul Pluzhnikov  <ppluzhnikov@google.com>
36383
36384         [BZ #6528]
36385         * grp/Makefile (otherlibs): Don't set it.
36386         * inet/Makefile (otherlibs): Likewise.
36387         * login/Makefile (otherlibs): Likewise.
36388         * nscd/Makefile (otherlibs): Likewise.
36389         * posix/Makefile (otherlibs): Likewise.
36390         * pwd/Makefile (otherlibs): Likewise.
36391         * rt/Makefile (otherlibs): Likewise.
36392         * sunrpc/Makefile (otherlibs): Likewise.
36393         * nss/Makefile (otherlibs): Likewise.
36394         Add libnss_files to routines and static-only-routines.
36395         ($(objpfx)getent): Remove rule.
36396         * resolv/Makefile: Add libnss_dns and libresolv to routines and
36397         static-only-routines.
36398
36399 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36400
36401         [BZ #13892]
36402         * math/s_cexp.c: Include <float.h>.
36403         (__cexp): Handle exp result overflowing not necessarily
36404         overflowing both real and imaginary parts of result.
36405         * math/s_cexpf.c: Likewise.
36406         * math/s_cexpl.c: Likewise.
36407         * math/libm-test.inc (cexp_test): Add more tests.
36408         * sysdeps/i386/fpu/libm-test-ulps: Update.
36409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36410
36411 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36412
36413         * include/link.h (ELFW): New macro.
36414         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
36415         Replace ELF64_R_TYPE with ELFW(R_TYPE).
36416
36417 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36418
36419         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
36420         with uint64_t.
36421
36422 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36423
36424         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
36425         declaration.
36426         (struct La_x32_retval): Likewise.
36427
36428 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36429
36430         * sysdeps/x86_64/preconfigure.in: New file.
36431         * sysdeps/x86_64/preconfigure: New generated file.
36432
36433 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36434
36435         [BZ #13824]
36436         * math/e_exp2l.c: Include <float.h>.
36437         (__ieee754_exp2l): Handle overflow and underflow cases
36438         separately.  Only pass fractional part of argument to
36439         __ieee754_expl.
36440         * math/libm-test.inc (exp2_test): Add more tests.
36441
36442         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
36443         negating x to take absolute value.
36444         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
36445         Likewise.
36446         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
36447         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
36448         Likewise.
36449         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
36450         computing low part if x was negated.
36451         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
36452
36453 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36454
36455         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
36456         la_x32_gnu_pltexit.
36457         (pltexit): Cast int_retval to ptrdiff_t.
36458         * elf/tst-auditmod3b.c: Likewise.
36459         * elf/tst-auditmod4b.c: Likewise.
36460         * elf/tst-auditmod5b.c: Likewise.
36461         * elf/tst-auditmod6b.c: Likewise.
36462         * elf/tst-auditmod6c.c: Likewise.
36463         * elf/tst-auditmod7b.c: Likewise.
36464
36465         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
36466         and x32_gnu_pltexit.
36467
36468         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
36469         __ELF_NATIVE_CLASS.
36470         (La_x32_regs): New macro.
36471         (La_x32_retval): Likewise.
36472         (la_x32_gnu_pltenter): New function prototype.
36473         (la_x32_gnu_pltexit): Likewise.
36474
36475 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
36476
36477         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
36478         exponent.
36479
36480         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36481
36482         * configure.in (libc_cv_cc_nofma): Check for option to disable
36483         generation of FMA instructions.
36484         * configure: Regenerate.
36485         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
36486         * sysdeps/ieee754/dbl-64/Makefile: New file.
36487         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36488         Remove brandred-fma4.
36489         (CFLAGS-brandred-fma4.c): Remove.
36490         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
36491         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
36492         define.
36493         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
36494         define.
36495
36496 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36497
36498         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
36499         LLONG_MAX != LONG_MAX.
36500         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36501         (_fitoa_word): Likewise.
36502         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
36503         LLONG_MAX != LONG_MAX.
36504         * stdio-common/_itowa.h: Include <_itoa.h>.
36505         (_itowa_word): Use _ITOA_WORD_TYPE on value.
36506         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
36507         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
36508         only if not defined.
36509         (_ITOA_WORD_TYPE): Likewise.
36510         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36511         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
36512
36513 2012-03-21  David S. Miller  <davem@davemloft.net>
36514
36515         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36516
36517 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36518
36519         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
36520         of x86_64 when setting libc_cv_slibdir, libdir and
36521         libc_cv_localedir.
36522         * sysdeps/unix/sysv/linux/configure: Regenerated.
36523
36524 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36525
36526         * manual/lang.texi (Old Varargs): Remove section.
36527         (How Variadic): Update menu.
36528         (va_start): Do not mention varargs.h.
36529
36530 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36531             Joseph Myers  <joseph@codesourcery.com>
36532
36533         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
36534         link test.
36535         * configure: Regenerated.
36536
36537 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36538
36539         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
36540         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
36541         conformtest.pl
36542
36543 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36544
36545         * NOTES: Remove.
36546         * Makefile (files-for-dist): Remove NOTES.
36547         (NOTES): Remove rule.
36548         * README: Don't refer to NOTES.
36549         * manual/creature.texi: Don't include macros.texi.
36550         * manual/intro.texi (creature.texi): Remove comment referring to
36551         NOTES.
36552
36553         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
36554         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
36555         * configure: Regenerated.
36556         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
36557         LIBC_TRY_CC_OPTION.
36558         (libc_cv_as_i686): Likewise.
36559         (libc_cv_cc_avx): Likewise.
36560         (libc_cv_cc_sse2avx): Likewise.
36561         (libc_cv_cc_fma4): Likewise.
36562         (libc_cv_cc_novzeroupper): Likewise.
36563         * sysdeps/i386/configure: Regenerated.
36564
36565         [BZ #13883]
36566         * sysdeps/i386/fpu/s_cexp.S: Remove.
36567         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
36568         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
36569         * math/libm-test.inc (cexp_test): Add more tests.
36570         * sysdeps/i386/fpu/libm-test-ulps: Update.
36571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36572
36573 2012-03-21  Allan McRae  <allan@archlinux.org>
36574
36575         * timezone/Makefile: Do not install iso3166.tab and zone.tab
36576
36577 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36578
36579         [BZ #13871]
36580         * math/w_exp2.c: Do not include <float.h>.
36581         (o_threshold, u_threshold): Remove.
36582         (__exp2): Calculate result before checking finiteness and calling
36583         __kernel_standard.
36584         * math/w_exp2f.c: Likewise.
36585         * math/w_exp2l.c: Likewise.
36586         * math/libm-test.inc (exp2_test): Require overflow exception for
36587         1e6 input.
36588
36589         [BZ #3866]
36590         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
36591         range of signed 64-bit integers before using fistpll.  Remove
36592         checks for whether integers fit in mantissa bits.
36593         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
36594         the range of signed 32-bit integers before using fistpl.  Remove
36595         checks for whether integers fit in mantissa bits.
36596         * sysdeps/i386/fpu/e_powl.S (p64): New object.
36597         (__ieee754_powl): Test for y outside the range of signed 64-bit
36598         integers before using fistpll.  Reduce 64-bit values to 63-bit
36599         ones as needed.
36600         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
36601         divide-by-zero is raised for zero to large negative powers.
36602         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
36603         (__ieee754_powl): Test for y outside the range of signed 64-bit
36604         integers before using fistpll.  Reduce 64-bit values to 63-bit
36605         ones as needed.
36606         * math/libm-test.inc (pow_test): Add more tests.
36607
36608 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36609
36610         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
36611         <stdio-common/_itoa.h>.
36612         * debug/segfault.c: Likewise.
36613         * elf/dl-cache.c: Likewise.
36614         * elf/dl-minimal.c: Likewise.
36615         * elf/dl-misc.c: Likewise.
36616         * elf/dl-sysdep.c: Likewise.
36617         * elf/dl-version.c: Likewise.
36618         * elf/rtld.c: Likewise.
36619         * hurd/hurdsock.c: Likewise.
36620         * hurd/lookup-retry.c: Likewise.
36621         * malloc/malloc.c: Likewise.
36622         * malloc/mtrace.c: Likewise.
36623         * nscd/nscd_getgr_r.c: Likewise.
36624         * nscd/nscd_getpw_r.c: Likewise.
36625         * nscd/nscd_getserv_r.c: Likewise.
36626         * posix/getopt_init.c: Likewise.
36627         * posix/wordexp.c: Likewise.
36628         * stdio-common/_itoa.c: Likewise.
36629         * stdio-common/printf_fphex.c: Likewise.
36630         * stdio-common/vfprintf.c: Likewise.
36631         * string/_strerror.c: Likewise.
36632         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
36633         * sysdeps/i386/i686/hp-timing.h: Likewise.
36634         * sysdeps/mach/_strerror.c: Likewise.
36635         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
36636         * sysdeps/mach/hurd/sethostid.c: Likewise.
36637         * sysdeps/mach/hurd/xmknodat.c: Likewise.
36638         * sysdeps/mach/xpg-strerror.c: Likewise.
36639         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
36640         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
36641         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
36642         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
36643         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
36644         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
36645         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
36646         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
36647         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
36648         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
36649         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
36650         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
36651         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
36652         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
36653         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
36654         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
36655         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
36656         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
36657         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
36658         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
36659         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
36660
36661         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
36662
36663         * stdio-common/_itoa.h: Moved to ...
36664         * sysdeps/generic/_itoa.h: Here.
36665
36666         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
36667
36668         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
36669         instead of "_itoa.h" and "_itowa.h".
36670         * stdio-common/vfprintf.: Likewise.
36671
36672 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36673
36674         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
36675         <bits/wordsize.h>.
36676         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
36677         (__signbit): Likwise.
36678         (llrintf): Likwise.
36679         (llrint): Likwise.
36680
36681 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36682
36683         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
36684         __WORDSIZE != 64.
36685
36686 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
36687
36688         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
36689         OVERFLOW_EXCEPTION_OK.
36690         * math/libm-test.inc ("Philosophy"): Update comment about
36691         exception testing.
36692         (OVERFLOW_EXCEPTION): Define.
36693         (OVERFLOW_EXCEPTION_OK): Likewise.
36694         (INVALID_EXCEPTION_OK): Renumber.
36695         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
36696         (IGNORE_ZERO_INF_SIGN): Likewise.
36697         (test_exceptions): Handle FE_OVERFLOW.
36698         (exp10_test): Expect overflow exceptions.
36699         (exp2_test): Likewise.
36700         (expm1_test): Likewise.
36701         (nextafter_test): Likewise.
36702         (pow_test): Likewise.
36703         (scalbn_test): Likewise.
36704         (scalbln_test): Likewise.
36705
36706 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36707
36708         * sysdeps/x86_64/bits/atomic.h
36709         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
36710         64bit integer.
36711         (atomic_exchange_acq): Likewise.
36712         (__arch_exchange_and_add_body): Likewise.
36713         (__arch_add_body): Likewise.
36714         (atomic_add_negative): Likewise.
36715         (atomic_add_zero): Likewise.
36716
36717 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36718
36719         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
36720         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
36721
36722 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36723
36724         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
36725         Check __x86_64__ instead of __WORDSIZE.
36726
36727 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36728
36729         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
36730
36731 2012-03-19  David S. Miller  <davem@davemloft.net>
36732
36733         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36734
36735         * sysdeps/sparc/fpu/fenv_private.h: New file.
36736         * sysdeps/sparc/fpu/math_private.h: Use it.
36737         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
36738         Remove.
36739         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
36740         (libc_feholdexcept_setroundl): Remove.
36741         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
36742         Remove.
36743         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
36744         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
36745
36746 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36747
36748         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
36749         int64_t instead of long int.
36750         (INSERT_WORDS64): Likwise.
36751
36752 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36753
36754         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
36755         _Unwind_GetCFA return to _Unwind_Ptr first.
36756
36757 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
36758
36759         [BZ #13629]
36760         * math/s_clog.c: Include <float.h>.
36761         (__clog): Scale large or subnormal inputs.
36762         * math/s_clogf.c: Likewise.
36763         * math/s_clogl.c: Likewise.
36764         * math/s_clog10.c: Include <float.h>.
36765         (M_LOG10_2): Define.
36766         (__clog10): Scale large or subnormal inputs.
36767         * math/s_clog10f.c: Likewise.
36768         * math/s_clog10l.c: Likewise.
36769         * math/libm-test.inc (clog_test): Add more tests.
36770         (clog10_test): Likewise.
36771         * sysdeps/i386/fpu/libm-test-ulps: Update.
36772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36773
36774         [BZ #11451]
36775         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
36776         x and y.
36777         * math/libm-test.inc (atan2_test): Add another test.
36778
36779         * Makerules (common-objdir-compile): Remove.
36780         * sysdeps/unix/Makefile (config-generated): Do not add
36781         $(unix-generated) to variable.
36782         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
36783         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
36784         Remove rule.
36785         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
36786         Likewise.
36787         [generic bits/local_lim.h] (before-compile): Do not append to
36788         variable.
36789         [generic bits/local_lim.h] (common-generated): Likewise.
36790         [generic sys/param.h] (before-compile): Do not append to variable.
36791         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
36792         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
36793         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
36794         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
36795         include.
36796         [generic sys/param.h] (sys/param.h-includes): Remove variable.
36797         [generic sys/param.h] (sys/param.h-includes): Remove rule.
36798         [generic sys/param.h] ($(addprefix
36799         $(common-objpfx),$(sys/param.h-includes))): Likewise.
36800         [generic sys/param.h] (common-generated): Do not append to
36801         variable.
36802         [generic sys/param.h] (sysdep_headers): Likewise.
36803         [generic bits/errno.h] (before-compile): Do not append to
36804         variable.
36805         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
36806         rule.
36807         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
36808         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
36809         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
36810         [generic bits/errno.h] (common-generated): Do not append to
36811         variable.
36812         [generic bits/ioctls.h] (before-compile): Do not append to
36813         variable.
36814         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
36815         rule.
36816         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
36817         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
36818         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
36819         rule.
36820         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
36821         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
36822         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
36823         [generic bits/ioctls.h] (common-generated): Do not append to
36824         variable.
36825         [generic sys/syscall.h] (syscall.h): Remove variable.
36826         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
36827         rule.
36828         [generic sys/syscall.h] (before-compile): Do not append to
36829         variable.
36830         [generic sys/syscall.h] (common-generated): Likewise.
36831         * sysdeps/unix/errnos-tmpl.c: Remove file.
36832         * sysdeps/unix/errnos.awk: Likewise.
36833         * sysdeps/unix/ioctls-tmpl.c: Likewise.
36834         * sysdeps/unix/ioctls.awk: Likewise.
36835         * sysdeps/unix/mk-local_lim.c: Likewise.
36836         * sysdeps/unix/snarf-ioctls: Likewise.
36837
36838 2012-03-19  Richard Henderson  <rth@twiddle.net>
36839
36840         * sysdeps/i386/fpu/fenv_private.h: New file.
36841         * sysdeps/i386/fpu/math_private.h: Use it.
36842         (math_opt_barrier, math_force_eval): Remove.
36843         (libc_feholdexcept_setround_53bit): Remove.
36844         (libc_feupdateenv_53bit): Remove.
36845         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36846         (math_opt_barrier, math_force_eval): Remove.
36847         (libc_feholdexcept): Remove.
36848         (libc_feholdexcept_setround): Remove.
36849         (libc_fetestexcept, libc_fesetenv): Remove.
36850         (libc_feupdateenv_test): Remove.
36851         (libc_feupdateenv, libc_feholdsetround): Remove.
36852         (libc_feresetround): Remove.
36853
36854         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
36855         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36856
36857         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
36858         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
36859         (libc_feupdateenv_testl): New.
36860         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
36861         (libc_feupdateenv_testf): New.
36862         (libc_feupdateenv): Use libc_feupdateenv_test.
36863         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
36864         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
36865
36866         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
36867         (libc_feholdsetroundf, libc_feholdsetroundl): New.
36868         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
36869         (libc_feresetround_noex): New.
36870         (libc_feresetround_noexf): New.
36871         (libc_feresetround_noexl): New.
36872         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
36873         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
36874         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
36875         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
36876         SET_RESTORE_ROUND.
36877         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
36878         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
36879         (__cos): Likewise.
36880         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
36881         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
36882         SET_RESTORE_ROUND_NOEX.
36883         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
36884         SET_RESTORE_ROUND_NOEXF.
36885         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
36886         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
36887         (libc_feholdsetroundf): New.
36888         (libc_feresetround, libc_feresetroundf): New.
36889
36890         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
36891         (libc_feholdexcept_setround_53bit): Convert from macro to function.
36892         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
36893
36894         * sysdeps/generic/math_private.h: Include <fenv.h>.
36895         (default_libc_feholdexcept): New.
36896         (default_libc_feholdexcept_setround): New.
36897         (default_libc_fesetenv, default_libc_feupdateenv): New.
36898         (libc_feholdexcept): Only define if undefined.
36899         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
36900         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
36901         (libc_feholdexcept_setroundl): Likewise.
36902         (libc_feholdexcept_setround_53bit): Likewise.
36903         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
36904         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
36905         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
36906         (libc_feupdateenv_53bit): Likewise.
36907         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
36908         (libc_feholdexcept): Convert from macro to inline function.
36909         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
36910         (libc_fesetenv, libc_feupdateenv): Likewise.
36911
36912         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
36913         not previously defined.
36914         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
36915         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
36916         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
36917         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
36918         * sysdeps/ieee754/flt-32/math_private.h: New file.
36919         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
36920         math_private.h below SET_FLOAT_WORD.
36921         (__isnan, __isinf_ns, __finite): Remove.
36922         (__isnanf, __isinf_nsf, __finitef): Remove.
36923
36924 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
36925
36926         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36927
36928 2012-03-17  David S. Miller  <davem@davemloft.net>
36929
36930         [BZ #6471]
36931         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
36932         for 2.16.
36933
36934 2012-03-16  David S. Miller  <davem@davemloft.net>
36935
36936         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
36937         warnings.
36938
36939         [BZ #6471]
36940         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
36941         properly.
36942         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
36943         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
36944         sysdep_routines when subdir is sysvipc.
36945         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
36946         __getshmlba helper.
36947
36948         * sysdeps/sparc/fpu/libm-test/ulps: Update.
36949
36950 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36951
36952         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
36953         [__LP64__].
36954
36955 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36956
36957         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
36958         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
36959         (__lround): Renamed to ...
36960         (__llround): This.  Replace long int with long long int.
36961         Define lround functions as aliases of llround functions.
36962         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
36963
36964 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36965
36966         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
36967         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
36968         adresses to uintptr_t.  Replace "long int" and "unsigned long
36969         int" with "greg_t" on va_arg.
36970
36971 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36972
36973         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
36974         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
36975
36976         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
36977         Move e_machine check before EI_CLASS check.  Handle x32
36978         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
36979         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
36980         SKIP_EM_IA_64 and include
36981         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
36982
36983         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
36984         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
36985         (add_system_dir): New macro.
36986
36987         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
36988         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
36989
36990 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36991
36992         [BZ #2551]
36993         [BZ #2552]
36994         [BZ #2553]
36995         [BZ #2554]
36996         [BZ #2562]
36997         [BZ #2563]
36998         [BZ #2565]
36999         [BZ #2566]
37000         [BZ #2576]
37001         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
37002         (y0): Likewise.
37003         * math/w_j0f.c (j0f): Likewise.
37004         (y0f): Likewise.
37005         * math/w_j0l.c (__j0l): Likewise.
37006         (__y0l): Likewise.
37007         * math/w_j1.c (j1): Likewise.
37008         (y1): Likewise.
37009         * math/w_j1f.c (j1f): Likewise.
37010         (y1f): Likewise.
37011         * math/w_j1l.c (__j1l): Likewise.
37012         (__y1l): Likewise.
37013         * math/w_jn.c (jn): Likewise.
37014         (yn): Likewise.
37015         * math/w_jnf.c (jnf): Likewise.
37016         (ynf): Likewise.
37017         * math/w_jnl.c (__jnl): Likewise.
37018         (__ynl): Likewise.
37019         * math/libm-test.inc (j0_test): Add more tests.
37020         (j1_test): Likewise.
37021         (jn_test): Likewise.  Add trailing semicolon to existing test.
37022         (y0_test): Likewise.
37023         (y1_test): Likewise.
37024         * sysdeps/i386/fpu/libm-test-ulps: Update.
37025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37026
37027         [BZ #13851]
37028         [BZ #13854]
37029         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
37030         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
37031         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
37032         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
37033         (__tanl): Set errno for infinite argument.
37034         * sysdeps/i386/fpu/mptan.c: Remove.
37035         * sysdeps/i386/fpu/s_tan.S: Likewise.
37036         * sysdeps/i386/fpu/s_tanl.S: Likewise.
37037         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
37038         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
37039         * math/libm-test.inc (tan_test): Add more tests and enable more
37040         tests for double and long double.
37041         * sysdeps/i386/fpu/libm-test-ulps: Update.
37042         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37043
37044 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
37045
37046         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
37047         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
37048
37049 2012-03-16  Roland McGrath  <roland@hack.frob.com>
37050
37051         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
37052         * configure.in: Use it for both main tree and add-ons.
37053         * configure: Regenerated.
37054
37055 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37056
37057         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
37058
37059 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37060
37061         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
37062         in comment.
37063
37064         [BZ #13851]
37065         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
37066         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
37067         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
37068         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
37069         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
37070         infinite argument.
37071         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
37072         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
37073         != 0 for prec == 2.
37074         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
37075         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
37076         * sysdeps/i386/fpu/s_cosl.S: Likewise.
37077         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
37078         * sysdeps/i386/fpu/s_sinl.S: Likewise.
37079         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
37080         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
37081         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
37082         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
37083         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
37084         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
37085         * math/libm-test.inc (cos_test): Add more tests and enable more
37086         tests for long double.
37087         (sin_test): Likewise.
37088         (sincos_test): Likewise.
37089         * sysdeps/i386/fpu/libm-test-ulps: Update.
37090         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37091
37092 2012-03-16  David S. Miller  <davem@davemloft.net>
37093
37094         * sysdeps/sparc/fpu/math_private.h: New file.
37095
37096 2012-03-15  David S. Miller  <davem@davemloft.net>
37097
37098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
37099         file.
37100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
37101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
37102         file.
37103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
37104         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
37105         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
37106         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
37107         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
37108         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
37109         sysdep routines.
37110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37111
37112         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
37113         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
37114
37115         * sysdeps/sparc/sparc-ifunc.h: New file.
37116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
37117         sparc-ifunc.h
37118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
37119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
37120         Likewise.
37121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
37122         Likewise.
37123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
37124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
37125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
37126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
37127         Likewise.
37128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
37129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
37130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
37131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
37132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
37133         Likewise.
37134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
37135         Likewise.
37136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
37137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
37138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
37139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
37140         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
37141         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
37142         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
37143         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
37144         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
37145         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
37146         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
37147         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
37148         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
37149         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
37150         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
37151         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
37152         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
37153         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
37154         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
37155         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
37156         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
37157         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
37158         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
37159         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
37160
37161 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37162
37163         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
37164         scaling.
37165         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37166
37167 2012-03-15  Andreas Jaeger  <aj@suse.de>
37168
37169         [BZ #13852]
37170         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
37171         ieee754/flt-32 implementation for sin, cos and sincos.
37172         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
37173         * sysdeps/i386/fpu/s_cosf.S: Likewise.
37174         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
37175         * sysdeps/i386/fpu/s_sinf.S: Likewise.
37176         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
37177         ieee754/flt-32 implementation for tan.
37178
37179         * math/libm-test.inc (cos_test): Enable some large input tests for
37180         float as well
37181         (sin_test): Likewise.
37182         (sincos_test): Likewise.
37183         (tan_test): Add tests for large input.
37184
37185         * sysdeps/i386/fpu/libm-test-ulps: Update.
37186
37187 2012-03-15  Andreas Jaeger  <aj@suse.de>
37188
37189         [BZ #13658]
37190         * math/libm-test.inc (cos_test): Add more test cases.
37191         (sin_test): Likewise.
37192         (sincos_test): Likewise.
37193
37194 2012-03-15  Andreas Jaeger  <aj@suse.de>
37195
37196         [BZ #13837]
37197         * math/libm-test.inc (cos_test): Add a test case for large input
37198         value.
37199         (sin_test): Likewise.
37200         (sincos_test): Likewise.
37201
37202 2012-03-15  Andreas Jaeger  <aj@suse.de>
37203             Joseph Myers  <joseph@codesourcery.com>
37204
37205         [BZ #13658]
37206         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
37207         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
37208         * sysdeps/i386/fpu/branred.c: Likewise.
37209         * sysdeps/i386/fpu/dosincos.c: Likewise.
37210         * sysdeps/i386/fpu/mpa.c: Likewise.
37211         * sysdeps/i386/fpu/s_cos.S: Likewise.
37212         * sysdeps/i386/fpu/s_sin.S: Likewise.
37213         * sysdeps/i386/fpu/s_sincos.S: Likewise.
37214         * sysdeps/i386/fpu/sincos32.c: Likewise.
37215
37216         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
37217         Define.
37218         (libc_feupdateenv_53bit): Define.
37219         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
37220         Define.
37221         (libc_feupdateenv_53bit): Define.
37222
37223         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
37224         53 bit (without extend i386 double precision).
37225
37226         * math/libm-test.inc (sincos_test): Add tests for large input.
37227         (sin): Likewise.
37228         (cos): Likewise.
37229
37230         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
37231
37232 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37233
37234         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37235
37236 2012-03-15  David S. Miller  <davem@davemloft.net>
37237
37238         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
37239         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
37240         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
37241         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
37242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
37243         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
37244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
37245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
37246         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
37247         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
37248         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
37249         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
37250         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
37251         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
37252         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
37253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
37254         file.
37255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
37256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
37257         file.
37258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
37259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
37260         file.
37261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
37262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
37263         file.
37264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
37265         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
37266         fmin/fmax sysdep routines.
37267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37268
37269 2012-03-14  David S. Miller  <davem@davemloft.net>
37270
37271         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
37272         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
37273         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
37274         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
37275         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
37276         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
37277         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
37278         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
37279         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
37280         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
37281         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
37282         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
37283         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
37284         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
37285         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
37286         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
37287         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
37288         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
37289         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
37290         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
37291         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
37292         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
37293         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
37294         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
37295         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
37296         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
37297         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
37298         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
37299         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
37300         routines.
37301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
37302         file.
37303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
37304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
37305         file.
37306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
37307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
37308         file.
37309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
37310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
37311         file.
37312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
37313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
37314         file.
37315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
37316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
37317         file.
37318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
37319         file.
37320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
37321         file.
37322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
37323         file.
37324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
37325         New file.
37326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
37327         file.
37328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
37329         file.
37330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
37331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
37332         file.
37333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
37334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
37335         file.
37336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
37337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
37338         file.
37339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
37340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
37341         VIS3 routines.
37342
37343         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
37344         New file.
37345
37346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37347
37348         * sysdeps/sparc/configure.in: New file.
37349         * sysdeps/sparc/configure: Generate.
37350         * configure.in (libc_cv_sparc_as_vis3): Substitute.
37351         * configure: Regenerate.
37352         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
37353         * config.make.in (have-as-vis3): New.
37354         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
37355         available use -Av9d instead of -Av9a.
37356         * sysdeps/sparc/sparc64/Makefile: Likewise.
37357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
37358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
37359         New file.
37360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
37361         file.
37362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
37363         New file.
37364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
37365         file.
37366         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
37367         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
37368         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
37369         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
37370         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
37371
37372         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
37373         fzeros/fnegs to load 0x80000000 into a float register instead of
37374         using the stack.
37375         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
37376
37377 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37378
37379         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37380         bits/syscall.h.
37381         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
37382         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
37383         ($(inst_includedir)/bits/syscall.h): Remove rule.
37384         ($(objpfx)bits/syscall.d): Include instead of
37385         $(objpfx)syscall-list.d.
37386         (generated): Change syscall-list.h and syscall-list.d to
37387         bits/syscall.h and bits/syscall.d.
37388
37389 2012-03-14  Roland McGrath  <roland@hack.frob.com>
37390
37391         [BZ #13846]
37392         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
37393
37394 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37395
37396         [BZ #13841]
37397         * math/s_csqrt.c: Include <float.h>.
37398         (__csqrt): Scale large or subnormal inputs.
37399         * math/s_csqrtf.c: Likewise.
37400         * math/s_csqrtl.c: Likewise.
37401         * math/libm-test.inc (csqrt_test): Add more tests.
37402         * sysdeps/i386/fpu/libm-test-ulps: Update.
37403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37404
37405         [BZ #13840]
37406         * math/libm-test.inc (hypot_test): Add more tests.
37407
37408 2012-03-13  David S. Miller  <davem@davemloft.net>
37409
37410         [BZ #13840]
37411         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
37412         double-precision for the calculation instead of scaling.
37413
37414 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
37415
37416         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
37417         manipulate bits before adding and subtracting TWO52[sx].
37418         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
37419         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
37420         Likewise.
37421         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
37422
37423 2012-03-13  David S. Miller  <davem@davemloft.net>
37424
37425         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
37426         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
37427         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
37428         rtld-global-offsets.h
37429         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37430
37431         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
37432         large parameters.
37433
37434         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
37435
37436         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
37437         'err' in the ifdef scope in which it is actually used.
37438
37439         * nss/nss_db/db-init.c: Include string.h
37440
37441 2012-03-12  David S. Miller  <davem@davemloft.net>
37442
37443         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
37444         masking out of the most significant byte of random value used.
37445         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37446         Fix coding style in previous change.
37447
37448         * sysdeps/unix/sysv/linux/kernel-features.h
37449         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
37450         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
37451         expression.
37452         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
37453         later.
37454
37455 2012-03-11  David S. Miller  <davem@davemloft.net>
37456
37457         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
37458         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
37459         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
37460         for 'resultvar' otherwise things get truncated on 64-bit.
37461
37462         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37463         Fix masking out of the most significant byte of random value used.
37464
37465         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37466
37467 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
37468
37469         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37470
37471 2012-03-09  David S. Miller  <davem@davemloft.net>
37472
37473         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
37474         variables with appropriate CPP guards.
37475         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
37476         from the frame pointer, not the stack pointer.  Correct layout
37477         comments.  Fix test on resulting framesize and the management of
37478         the outregs buffer for pltexit.  Preserve floating point return
37479         values across _dl_call_pltexit call.
37480         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
37481         framesize and the management of the outregs buffer for pltexit.
37482         Preserve floating point return values across _dl_call_pltexit
37483         call.
37484         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
37485         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
37486         (la_sparc64_gnu_pltexit): New functions.
37487         (print_exit): Fix format string for return register value.
37488
37489 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
37490
37491         * sunrpc/Makefile (others): Add rpcgen.
37492         ($(objpfx)rpcgen): Remove special build rule and dependency on
37493         libc.
37494         * sunrpc/rpcgen.c: New file.
37495
37496 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
37497
37498         [BZ #13673]
37499         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
37500         * stdio-common/bug-vfprintf-nargs.c: Likewise.
37501         * sysdeps/i386/crti.S: Likewise.
37502         * sysdeps/i386/crtn.S: Likewise.
37503         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
37504         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
37505         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
37506         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
37507         * sysdeps/sh/crti.S: Likewise.
37508         * sysdeps/sh/crtn.S: Likewise.
37509         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
37510
37511         [BZ #13673]
37512         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
37513         with URL.
37514         * locale/programs/locfile-kw.gperf: Likewise.
37515         * locale/programs/charmap-kw.h: Regenerated.
37516         * locale/programs/locfile-kw.h: Likewise.
37517
37518         [BZ #13673]
37519         * intl/plural.y: Replace FSF snail mail address with URL.
37520         * intl/plural.c: Regenerated.
37521
37522 2012-03-09  Richard Henderson  <rth@twiddle.net>
37523
37524         * include/math_private.h: Remove file.
37525         * math/math_private.h: Move file ...
37526         * sysdeps/generic/math_private.h: ... here.
37527
37528         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
37529         * sysdeps/powerpc/fpu/math_private.h: Likewise.
37530         * sysdeps/x86_64/fpu/math_private.h: Likewise.
37531
37532         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
37533         and <math_private.h>.
37534         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37535         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37536         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37537         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37538         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37539         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
37540         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
37541         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
37542         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
37543         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
37544         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
37545         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
37546         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
37547         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
37548         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
37549         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
37550         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
37551         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
37552         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
37553         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
37554         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
37555         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
37556         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
37557         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
37558         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
37559         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
37560         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
37561         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
37562         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
37563         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37564         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
37565         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
37566         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
37567         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
37568         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37569         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37570         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
37571         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37572         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37573         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37574         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
37575         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37576         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37577         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
37578         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
37579         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37580         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
37581         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
37582         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
37583         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37584         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
37585         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
37586         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
37587         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37588         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
37589         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
37590         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
37591         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37592         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
37593         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
37594         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
37595         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
37596         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
37597         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37598         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
37599         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
37600         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
37601         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
37602         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
37603         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
37604         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
37605         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
37606         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
37607         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
37608         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
37609         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
37610         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
37611         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37612         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
37613         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
37614         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
37615         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
37616         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
37617         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
37618         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
37619         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37620         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
37621         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
37622         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
37623         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37624         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37625         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
37626         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
37627         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
37628         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
37629         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
37630         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
37631         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
37632         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
37633         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
37634         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
37635         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
37636         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
37637         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
37638         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37639         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
37640         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
37641         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
37642         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37643         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37644         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37645         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37646         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
37647         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37648         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
37649         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
37650         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37651         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37652         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37653         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
37654         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37655         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37656         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
37657         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
37658         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37659         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37660         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
37661         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
37662         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37663         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
37664         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
37665         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
37666         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37667         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
37668         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
37669         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
37670         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
37671         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37672         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
37673         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
37674         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
37675         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37676         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37677         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
37678         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
37679         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37680         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37681         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37682         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
37683         * sysdeps/ieee754/k_standard.c: Likewise.
37684         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
37685         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
37686         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37687         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
37688         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
37689         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
37690         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
37691         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
37692         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
37693         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
37694         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
37695         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
37696         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
37697         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
37698         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
37699         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
37700         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
37701         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
37702         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
37703         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
37704         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
37705         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
37706         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37707         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37708         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
37709         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
37710         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37711         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37712         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37713         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37714         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
37715         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37716         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37717         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37718         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
37719         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37720         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37721         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
37722         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
37723         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37724         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
37725         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
37726         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
37727         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37728         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
37729         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
37730         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37731         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37732         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37733         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37734         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37735         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
37736         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37737         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
37738         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37739         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37740         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
37741         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
37742         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37743         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37744         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37745         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
37746         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37747         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
37748         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37749         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37750         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
37751         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
37752         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
37753         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
37754         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
37755         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37756         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
37757         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
37758         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
37759         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
37760         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
37761         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
37762         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37763         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
37764         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
37765         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
37766         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37767         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37768         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
37769         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37770         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37771         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
37772         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
37773         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37774         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
37775         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37776         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37777         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
37778         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37779         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37780         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
37781         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37782         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37783         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
37784         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37785         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37786         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37787         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37788         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
37789         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37790         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37791         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37792         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
37793         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37794         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37795         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37796         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
37797         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37798         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
37799         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
37800         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
37801         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37802         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
37803         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
37804         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
37805         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
37806         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
37807         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
37808         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37809         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
37810         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37811         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37812         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37813         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37814         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37815         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37816         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37817         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
37818         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37819         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37820         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
37821         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
37822         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37823         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
37824         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
37825         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37826         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
37827         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
37828         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37829         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37830         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37831         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37832         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37833         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
37834         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37835         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
37836         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37837         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37838         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
37839         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
37840         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37841         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37842         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37843         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
37844         * sysdeps/ieee754/s_lib_version.c: Likewise.
37845         * sysdeps/ieee754/s_matherr.c: Likewise.
37846         * sysdeps/ieee754/s_signgam.c: Likewise.
37847         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
37848         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
37849         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
37850         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
37851         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
37852         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
37853         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
37854         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
37855         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
37856         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
37857         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
37858         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
37859         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37860         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37861         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
37862         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
37863         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
37864         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
37865         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
37866         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37867         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37868
37869 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37870
37871         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
37872         * sunrpc/rpc_main.c: Likewise.
37873         * sunrpc/rpc_svcout.c: Likewise.
37874
37875 2012-03-09  David S. Miller  <davem@davemloft.net>
37876
37877         * include/math_private.h: New file.
37878
37879 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37880
37881         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
37882         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
37883         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
37884         from <bits/socket_type.h>.
37885         (enum __socket_type): Don't define here.
37886         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
37887         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37888         bits/socket_type.h.
37889
37890         [BZ #13566]
37891         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
37892         checking __USE_GNU.
37893
37894         * Makerules ($(inst_includedir)/%.h): New rule.
37895         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
37896         (install-others): Remove variable setting.
37897         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
37898
37899 2012-03-08  Richard Henderson  <rth@twiddle.net>
37900
37901         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
37902         from macro to inline function; merge with the
37903         !__LIBC_INTERNAL_MATH_INLINES version.
37904         (__ieee754_sqrtf): Likewise.
37905
37906         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
37907         to inline function.
37908         (__rintf, __floor, __floorf): Likewise.
37909
37910         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
37911         macro to inline function.
37912         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
37913
37914         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
37915         not <math/math_private.h>.
37916
37917 2012-03-08  David S. Miller  <davem@davemloft.net>
37918
37919         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
37920         copyright year.
37921         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
37922
37923 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
37924
37925         * resolv/gai_misc.c (handle_requests): Fix struct timespec
37926         normalization.
37927         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
37928         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37929
37930 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
37931
37932         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
37933         be defined individually, they must be defined as a block.  Define
37934         S for printing a string instead of hidint the different by using a
37935         macro for adding the 'l'.
37936         * stdio-common/tst-fphex-wide.c: Adjust.
37937
37938 2012-03-07  Marek Polacek  <polacek@redhat.com>
37939
37940         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
37941
37942 2012-03-08  Marek Polacek  <polacek@redhat.com>
37943
37944         [BZ #13806]
37945         * stdio-common/Makefile (tests): Add tst-fphex-wide.
37946         * stdio-common/tst-fphex.c: Define a few macros to make the
37947         test reusable.  Use them.
37948         * stdio-common/tst-fphex-wide.c: New file.
37949
37950 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
37951
37952         [BZ #6911]
37953         * manual/macros.texi (gnusystems): New macro.
37954         (nongnusystems): Likewise.
37955         (gnulinuxhurdsystems): Likewise.
37956         (gnuhurdsystems): Likewise..
37957         (gnulinuxsystems): Likewise.
37958         * manual/charset.texi: Use new macros or @theglibc{} to refer to
37959         variants of the GNU system, not "GNU system".
37960         * manual/conf.texi: Likewise.
37961         * manual/errno.texi: Likewise.  Update example of errno macro
37962         expansion.
37963         * manual/filesys.texi: Likewise.
37964         (getumask): Document as specific to GNU/Hurd.
37965         * manual/install.texi: Likewise.  Reword some references to
37966         GNU/Linux.
37967         * manual/intro.texi: Likewise.
37968         * manual/io.texi: Likewise.
37969         (File Name Portability): Detail which constraints are inapplicable
37970         to all GNU systems and which are only inapplicable to GNU/Hurd.
37971         * manual/job.texi: Likewise.
37972         * manual/llio.texi: Likewise.
37973         (O_NOCTTY): Document as present on GNU/Linux.
37974         * manual/maint.texi: Likewise.
37975         * manual/memory.texi: Likewise.
37976         * manual/pattern.texi: Likewise.
37977         * manual/pipe.texi: Likewise.
37978         * manual/process.texi: Likewise.
37979         * manual/resource.texi: Likewise.
37980         (RUSAGE_CHILDREN): Remove statement about specifying a particular
37981         child on GNU/Hurd.
37982         * manual/setjmp.texi: Likewise.
37983         * manual/signal.texi: Likewise.
37984         * manual/startup.texi: Likewise.
37985         * manual/stdio.texi: Likewise.
37986         * manual/terminal.texi: Likewise.
37987         (ONLCR): Document as POSIX.
37988         (OXTABS): Document availability on GNU/Linux as XTABS.
37989         (ONOEOT): Document availability separately from other bits.
37990         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
37991         * manual/time.texi: Likewise.
37992         * manual/users.texi: Likewise.
37993         * INSTALL: Regenerated.
37994         * sysdeps/gnu/errlist.c: Regenerated.
37995
37996         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
37997         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
37998         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
37999         puts.
38000         * configure: Regenerated.
38001
38002 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
38003
38004         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
38005         default includes instead of AC_HEADER_CHECK.
38006         * sysdeps/i386/configure: Regenerated.
38007
38008         [BZ #10716]
38009         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
38010         * math/s_cacoshf.c (__cacoshf): Likewise.
38011         * math/s_cacoshl.c (__cacoshl): Likewise.
38012         * math/s_casinh.c (__casinh): Set signs of result from argument.
38013         * math/s_casinhf.c (__casinhf): Likewise.
38014         * math/s_casinhl.c (__casinhl): Likewise.
38015         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
38016         (casinh_test): Add more tests.
38017         * sysdeps/i386/fpu/libm-test-ulps: Update.
38018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38019
38020 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
38021
38022         * po/zh_TW.po: Update from translation team.
38023
38024         * login/Makefile (distribute): Remove variable.
38025         * catgets/Makefile: Likewise.
38026         * mach/Makefile: Likewise.
38027         * malloc/Makefile: Likewise.
38028         * misc/Makefile: Likewise.
38029         * iconv/Makefile: Likewise.
38030         * nscd/Makefile: Likewise.
38031         * hurd/Makefile: Likewise.
38032         * manual/Makefile: Likewise.
38033         * locale/Makefile: Likewise.
38034         * intl/Makefile: Likewise.
38035         * conform/Makefile: Likewise.
38036         * nss/Makefile: Likewise.
38037         * time/Makefile: Likewise.
38038         * soft-fp/Makefile: Likewise.
38039         * dirent/Makefile: Likewise.
38040         * gmon/Makefile: Likewise.
38041         * po/Makefile: Likewise.
38042         * rt/Makefile: Likewise.
38043         * socket/Makefile: Likewise.
38044         * math/Makefile: Likewise.
38045         * signal/Makefile: Likewise.
38046         * debug/Makefile: Likewise.
38047         * elf/Makefile: Likewise.
38048         * timezone/Makefile: Likewise.
38049         * stdlib/Makefile: Likewise.
38050         * iconvdata/Makefile: Likewise.
38051         * sunrpc/Makefile: Likewise.
38052         * io/Makefile: Likewise.
38053         * argp/Makefile: Likewise.
38054         * inet/Makefile: Likewise.
38055         * hesiod/Makefile: Likewise.
38056         * grp/Makefile: Likewise.
38057         * csu/Makefile: Likewise.
38058         * wctype/Makefile: Likewise.
38059         * crypt/Makefile: Likewise.
38060         * libio/Makefile: Likewise.
38061         * string/Makefile: Likewise.
38062         * nis/Makefile: Likewise.
38063         * resolv/Makefile: Likewise.
38064         * stdio-common/Makefile: Likewise.
38065         * wcsmbs/Makefile: Likewise.
38066         * dlfcn/Makefile: Likewise.
38067         * posix/Makefile: Likewise.
38068
38069         [BZ #6959]
38070         * timezone/Makefile: Don't install timezone files, just the programs
38071         and scripts.
38072
38073 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
38074
38075         * nss/databases.def: Add missing gshadow entry.
38076
38077         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
38078
38079 2012-03-06  Marek Polacek  <polacek@redhat.com>
38080
38081         [BZ #13726]
38082         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
38083         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
38084         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
38085         * stdio-common/tst-long-dbl-fphex.c: New file.
38086
38087 2012-03-06  David S. Miller  <davem@davemloft.net>
38088
38089         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
38090         (set_obp_int): New function.
38091         (get_obp_int): New function.
38092         (__get_clockfreq_via_dev_openprom): Likewise.
38093         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
38094         Avoid unused variable warnings on 'val' and use builtin_expect.
38095         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
38096         __builtin_expect.
38097         (INLINE_CLONE_SYSCALL): Likewise.
38098
38099 2012-03-05  David S. Miller  <davem@davemloft.net>
38100
38101         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38102
38103 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
38104
38105         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38106
38107         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
38108         only for |x| >= 40.
38109         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
38110
38111 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
38112
38113         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
38114         Replace gettimeofday with __vdso_gettimeofday.
38115
38116         * sysdeps/unix/sysv/linux/x86_64/init-first.c
38117         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
38118         __vdso_clock_gettime and __vdso_getcpu.
38119
38120         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
38121         time with __vdso_time.
38122
38123 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38124
38125         * manual/lang.texi (size_t): Note types to which size_t may be
38126         equivalent with the GNU C Library, but do not describe when
38127         differences between them are significant.
38128
38129 2012-03-05  Andreas Jaeger  <aj@suse.de>
38130
38131         * sysdeps/i386/fpu/libm-test-ulps: Update.
38132
38133 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38134
38135         [BZ #3976]
38136         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
38137         (__ieee754_pow): Save and restore rounding mode and use
38138         round-to-nearest for main computations.
38139         * math/libm-test.inc (pow_test_tonearest): New function.
38140         (pow_test_towardzero): Likewise.
38141         (pow_test_downward): Likewise.
38142         (pow_test_upward): Likewise.
38143         (main): Call the new functions.
38144         * sysdeps/i386/fpu/libm-test-ulps: Update.
38145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38146
38147         [BZ #3976]
38148         * math/libm-test.inc (cosh_test_tonearest): New function.
38149         (cosh_test_towardzero): Likewise.
38150         (cosh_test_downward): Likewise.
38151         (cosh_test_upward): Likewise.
38152         (sinh_test_tonearest): Likewise.
38153         (sinh_test_towardzero): Likewise.
38154         (sinh_test_downward): Likewise.
38155         (sinh_test_upward): Likewise.
38156         (main): Call the new functions.
38157         * sysdeps/i386/fpu/libm-test-ulps: Update.
38158         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38159
38160 2012-03-05  Tom de Vries  <tom@codesourcery.com>
38161
38162         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
38163         default stack guard is set in last bytes.
38164         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
38165
38166 2012-03-05  Kees Cook  <keescook@chromium.org>
38167
38168         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
38169
38170         [BZ #13656]
38171         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
38172         possibly allocate from heap instead of stack.
38173         * stdio-common/bug-vfprintf-nargs.c: New file.
38174         * stdio-common/Makefile (tests): Add nargs overflow test.
38175
38176 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
38177
38178         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38179
38180 2012-03-03  Marek Polacek  <polacek@redhat.com>
38181
38182         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
38183         * math/math_private.h: Likewise.
38184         * stdlib/tst-strtod.c: Likewise.
38185         * sysdeps/i386/i486/bits/atomic.h: Likewise.
38186         * sysdeps/x86_64/bits/atomic.h: Likewise.
38187
38188 2012-03-02  David S. Miller  <davem@davemloft.net>
38189
38190         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
38191         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
38192         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
38193         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
38194         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
38195         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
38196         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
38197         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
38198
38199 2012-03-02  Roland McGrath  <roland@hack.frob.com>
38200
38201         [BZ #13792]
38202         * manual/examples/README: New file, says the example source files
38203         can be used under GPL>=2.
38204         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
38205         line containing just "*/".
38206         * manual/examples/add.c: Add copyright header (GPL>=2).
38207         * manual/examples/argp-ex1.c: Likewise.
38208         * manual/examples/argp-ex2.c: Likewise.
38209         * manual/examples/argp-ex3.c: Likewise.
38210         * manual/examples/argp-ex4.c: Likewise.
38211         * manual/examples/atexit.c: Likewise.
38212         * manual/examples/db.c: Likewise.
38213         * manual/examples/dir.c: Likewise.
38214         * manual/examples/dir2.c: Likewise.
38215         * manual/examples/execinfo.c: Likewise.
38216         * manual/examples/filecli.c: Likewise.
38217         * manual/examples/filesrv.c: Likewise.
38218         * manual/examples/fmtmsgexpl.c: Likewise.
38219         * manual/examples/genpass.c: Likewise.
38220         * manual/examples/inetcli.c: Likewise.
38221         * manual/examples/inetsrv.c: Likewise.
38222         * manual/examples/isockad.c: Likewise.
38223         * manual/examples/longopt.c: Likewise.
38224         * manual/examples/memopen.c: Likewise.
38225         * manual/examples/memstrm.c: Likewise.
38226         * manual/examples/mkfsock.c: Likewise.
38227         * manual/examples/mkisock.c: Likewise.
38228         * manual/examples/mygetpass.c: Likewise.
38229         * manual/examples/pipe.c: Likewise.
38230         * manual/examples/popen.c: Likewise.
38231         * manual/examples/rprintf.c: Likewise.
38232         * manual/examples/search.c: Likewise.
38233         * manual/examples/select.c: Likewise.
38234         * manual/examples/setjmp.c: Likewise.
38235         * manual/examples/sigh1.c: Likewise.
38236         * manual/examples/sigusr.c: Likewise.
38237         * manual/examples/stpcpy.c: Likewise.
38238         * manual/examples/strdupa.c: Likewise.
38239         * manual/examples/strftim.c: Likewise.
38240         * manual/examples/strncat.c: Likewise.
38241         * manual/examples/subopt.c: Likewise.
38242         * manual/examples/swapcontext.c: Likewise.
38243         * manual/examples/termios.c: Likewise.
38244         * manual/examples/testopt.c: Likewise.
38245         * manual/examples/testpass.c: Likewise.
38246         * manual/examples/timeval_subtract.c: Likewise.
38247
38248         [BZ #13792]
38249         * manual/time.texi (Elapsed Time): Move timeval_subtract example
38250         function to ...
38251         * manual/timeval_subtract.c.texi: ... here, new file.
38252
38253 2012-03-02  David S. Miller  <davem@davemloft.net>
38254
38255         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
38256
38257 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
38258
38259         [BZ #3976]
38260         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
38261         (__sin): Save and restore rounding mode and use round-to-nearest
38262         for all computations.
38263         (__cos): Save and restore rounding mode and use round-to-nearest
38264         for all computations.
38265         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
38266         <fenv.h>.
38267         (tan): Save and restore rounding mode and use round-to-nearest for
38268         all computations.
38269         * math/libm-test.inc (cos_test_tonearest): New function.
38270         (cos_test_towardzero): Likewise.
38271         (cos_test_downward): Likewise.
38272         (cos_test_upward): Likewise.
38273         (sin_test_tonearest): Likewise.
38274         (sin_test_towardzero): Likewise.
38275         (sin_test_downward): Likewise.
38276         (sin_test_upward): Likewise.
38277         (tan_test_tonearest): Likewise.
38278         (tan_test_towardzero): Likewise.
38279         (tan_test_downward): Likewise.
38280         (tan_test_upward): Likewise.
38281         (main): Call the new functions.
38282         * sysdeps/i386/fpu/libm-test-ulps: Update.
38283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38284
38285         [BZ #10135]
38286         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
38287         small n, then large n, before computing and testing k+n.
38288         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38289         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
38290         Likewise.
38291         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
38292         Likewise.
38293         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
38294         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
38295         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
38296         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
38297         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
38298         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
38299         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
38300         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
38301         * math/libm-test.inc (scalbn_test): Add more tests.
38302         (scalbln_test): Likewise.
38303
38304         * manual/filesys.texi (mode_t): Describe constraints on size and
38305         signedness, not exact equivalence to a particular type.
38306         (ino_t): Likewise.
38307         (ino64_t): Likewise.
38308         (dev_t): Likewise.
38309         (nlink_t): Likewise.
38310         (blkcnt_t): Likewise.
38311         (blkcnt64_t): Likewise.
38312         * manual/llio.texi (off_t): Likewise.
38313
38314         [BZ #3976]
38315         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
38316         (__ieee754_exp): Save and restore rounding mode and use
38317         round-to-nearest for all computations.
38318         * math/libm-test.inc (exp_test_tonearest): New function.
38319         (exp_test_towardzero): Likewise.
38320         (exp_test_downward): Likewise.
38321         (exp_test_upward): Likewise.
38322         (main): Call the new functions.
38323         * sysdeps/i386/fpu/libm-test-ulps: Update.
38324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38325
38326 2012-03-01  Chris Demetriou  <cgd@google.com>
38327
38328         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
38329         have predictable order.
38330
38331 2012-03-01  David S. Miller  <davem@davemloft.net>
38332
38333         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
38334
38335         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
38336         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
38337         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
38338         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
38339
38340         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
38341         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
38342         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
38343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
38344         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
38345         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
38346         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
38347         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
38348         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
38349
38350         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38351
38352         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
38353         * sysdeps/sparc/fpu/libm-test-ulps: to here.
38354         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
38355
38356         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
38357         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
38358         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38359         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
38360         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
38361         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
38362         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
38363         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
38364         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38365         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
38366         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
38367         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38368         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38369         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38370         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38371         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38372         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
38373         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
38374         * sysdeps/sparc/elf/configure: Regenerated.
38375
38376 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
38377
38378         * configure.in (AS, LD): Require binutils 2.20 or later.
38379         * configure: Regenerated.
38380         * manual/install.texi (Tools for Compilation): Give binutils 2.20
38381         as required minimum version.
38382         * INSTALL: Regenerated.
38383
38384         [BZ #2541]
38385         [BZ #4108]
38386         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
38387         before squaring exponent.
38388         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
38389         bottom long double and 27 bits of top long double before squaring
38390         exponent.
38391         * math/libm-test.inc (erfc_test): Add more tests.
38392         * sysdeps/i386/fpu/libm-test-ulps: Update.
38393         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38395
38396 2012-03-01  Kai Tietz  <ktietz@redhat.com>
38397
38398         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
38399         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
38400         containing bit-fields.
38401         * soft-fp/extended.h (_FP_UNION_E): Likewise.
38402         * soft-fp/single.h (_FP_UNION_S): Likewise.
38403         * soft-fp/double.h (_FP_UNION_D): Likewise.
38404
38405 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38406
38407         [BZ #13786]
38408         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
38409         not include ../strcmp.S.
38410         [USE_AS_STRNCASECMP_L]: Likewise.
38411         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
38412         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
38413         * sysdeps/i386/i686/multiarch/strncase_l-c.c
38414         (__strncasecmp_l_ia32): Define as alias to
38415         __strncasecmp_l_nonascii.
38416
38417         [BZ #5794]
38418         * math/libm-test.inc (expm1_test): Add test for bug 5794.
38419         * sysdeps/i386/fpu/libm-test-ulps: Update.
38420         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38421
38422         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
38423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38424
38425 2012-02-29  Jeff Law  <law@redhat.com>
38426
38427         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
38428         out of bounds read.
38429
38430 2012-02-29  Marek Polacek  <polacek@redhat.com>
38431
38432         [BZ #13706]
38433         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
38434         * elf/Makefile: Add rules to run tst-unused-dep.out.
38435
38436 2012-02-28  David S. Miller  <davem@davemloft.net>
38437
38438         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
38439         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
38440         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
38441         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
38442         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
38443         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
38444
38445 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38446
38447         * math/libm-test.inc (llround_test): Move one test from
38448         lround_test.  Use TEST_f_L in moved test.
38449         (lround_test): Move misplaced test to llround_test.  Add testcase
38450         from bug 2561.
38451
38452 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
38453
38454         * sysdeps/x86_64/fpu/e_expf.S: New file.
38455         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
38456
38457 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
38458
38459         [BZ #13637]
38460         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
38461         of remain_len that may cause incomplete multi-byte character and
38462         false match.
38463         * posix/bug-regex33.c: New file.
38464         * posix/Makefile (tests): Add bug-regex33.
38465
38466 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
38467
38468         * manual/macros.texi: New file.
38469         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
38470         * manual/libc.texinfo: Include macros.texi.
38471         * manual/creatute.texi: Likewise.
38472         * manual/install.texi: Likewise.
38473         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
38474         @glibcadj{} in references to the GNU C Library.
38475         * manual/charset.texi: Likewise.
38476         * manual/conf.texi: Likewise.
38477         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
38478         when not using those macros.
38479         * manual/creature.texi: Likewise.
38480         * manual/crypt.texi: Likewise.
38481         * manual/errno.texi: Likewise.
38482         * manual/filesys.texi: Likewise.
38483         * manual/header.texi: Likewise.
38484         * manual/install.texi: Likewise.
38485         * manual/intro.texi: Likewise.
38486         * manual/io.texi: Likewise.
38487         * manual/job.texi: Likewise.
38488         * manual/lang.texi: Likewise.
38489         * manual/libc.texiinfo: Likewise.
38490         * manual/llio.texi: Likewise.
38491         * manual/locale.texi: Likewise.
38492         * manual/maint.texi: Likewise.
38493         * manual/math.texi: Likewise.
38494         * manual/memory.texi: Likewise.
38495         * manual/message.texi: Likewise.
38496         * manual/nss.texi: Likewise.
38497         * manual/pattern.texi: Likewise.
38498         * manual/process.texi: Likewise.
38499         * manual/resource.texi: Likewise.
38500         * manual/search.texi: Likewise.
38501         * manual/setjmp.texi: Likewise.
38502         * manual/signal.texi: Likewise.
38503         * manual/socket.texi: Likewise.
38504         * manual/startup.texi: Likewise.
38505         * manual/stdio.texi: Likewise.
38506         * manual/string.texi: Likewise.
38507         * manual/sysinfo.texi: Likewise.
38508         * manual/syslog.texi: Likewise.
38509         * manual/terminal.texi: Likewise.
38510         * manual/time.texi: Likewise.
38511         * manual/users.texi: Likewise.
38512         * INSTALL: Regenerated.
38513         * NOTES: Regenerated.
38514         * sysdeps/gnu/errlist.c: Regenerated.
38515
38516 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
38517
38518         * include/dirent.h: Include <dirstream.h> before
38519         <dirent/dirent.h>.
38520
38521 2012-02-28  David S. Miller  <davem@davemloft.net>
38522
38523         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
38524         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
38525         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
38526         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
38527
38528 2012-02-27  David S. Miller  <davem@davemloft.net>
38529
38530         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
38531         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
38532         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
38533         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
38534
38535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
38536         frame pointer instead of stack pointer relative arg slot.
38537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38538         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38539         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38540
38541 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
38542
38543         [BZ #3992]
38544         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
38545
38546 2012-02-27  David S. Miller  <davem@davemloft.net>
38547
38548         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
38549         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38550         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
38551         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
38552         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38553         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38554         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
38555         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
38556
38557 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38558
38559         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
38560         later.  Allow versions 5-9.
38561         * configure: Regenerated.
38562         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
38563         required minimum version and 4.6 as recommended version.  Do not
38564         mention bugs in GCC 2.7 and 2.8.
38565         * INSTALL: Regenerated.
38566
38567 2012-02-27  David S. Miller  <davem@davemloft.net>
38568
38569         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
38570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
38571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
38572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
38573         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
38574         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
38575         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
38576         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
38577
38578         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
38579         manipulate bits before adding and subtracting TWO112[sx].
38580         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38581
38582 2012-02-27  Roland McGrath  <roland@hack.frob.com>
38583
38584         [BZ #13775]
38585         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
38586         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
38587         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
38588         being in POSIX, because they are in 1003.1-2008.
38589
38590         * rt/tst-aio.c: Include <fcntl.h>.
38591         * rt/tst-aio7.c: Likewise.
38592         * rt/tst-aio64.c: Likewise.
38593
38594         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
38595
38596 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38597
38598         * manual/install.texi (--with-headers): Describe headers as
38599         interface headers, not private headers.
38600         (Specific advice for GNU/Linux systems): Describe use of headers
38601         from "make headers_install", not private headers from older
38602         kernels.
38603         * INSTALL: Regenerated.
38604         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
38605         Change to 2.6.19.
38606         * sysdeps/unix/sysv/linux/configure: Regenerated.
38607
38608         * manual/llio.texi (fclean): Remove documentation.
38609
38610         * manual/Makefile (libc-texi-generated): New variable.  Include
38611         version.texi.
38612         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
38613         $(libc-texi-generated), not duplicated list of files.
38614         (version.texi, stamp-version): New rules.
38615         (realclean): Remove $(libc-texi-generated), not individual files
38616         from that list.  Do not remove dir-add.texinfo.
38617         * manual/libc.texinfo: Comment out uses of edition numbers and
38618         references to printed manual.  Remove last-updated dates.
38619         (EDITION): Comment out.
38620         (ISBN): Likewise.
38621         (VERSION, UPDATED): Remove.
38622         (version.texi): Include.
38623
38624 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
38625
38626         * sysdeps/posix/spawni.c: Include <signal.h>.
38627         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
38628         * sysdeps/pthread/aio_fsync.c: Likewise.
38629
38630 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
38631
38632         * conform/Makefile (tests): Run only when not cross-compiling and
38633         when fast-check is not defined.
38634
38635         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
38636         * conform/data/limits.h-data: Fixes for POSIX2008.
38637         * conform/run-conformtest.sh: Run all tests.
38638         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
38639         headers.
38640         * include/bits/dlfcn.h: Likewise.
38641         * include/langinfo.h: Likewise.
38642         * include/monetary.h: Likewise.
38643         * include/sys/poll.h: Likewise.
38644
38645         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
38646         for __USE_GNU.
38647         * posix/spawn.h: Define __need_sigset_t.
38648         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
38649         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
38650         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
38651         to get sigevent_t only.
38652         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
38653         only for __USE_GNU.
38654         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
38655         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
38656         process_vm_writev only for __USE_GNU.
38657         * termios/termios.h: Declare tcgetsid also for POSIX2008.
38658
38659         * conform/Makefile: For now ignore errors from run-conformtest.
38660         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
38661         POSIX to avoid namespace pollution.  Don't prepend headers.
38662         * conform/data/aio.h-data: Fixes for POSIX testing.
38663         * conform/data/fcntl.h-data: Likewise.
38664         * conform/data/glob.h-data: Likewise.
38665         * conform/data/grp.h-data: Likewise.
38666         * conform/data/pthread.h-data: Likewise.
38667         * conform/data/pwd.h-data: Likewise.
38668         * conform/data/signal.h-data: Likewise.
38669         * conform/data/spawn.h-data: Likewise.
38670         * conform/data/stdio.h-data: Likewise.
38671         * conform/data/stdlib.h-data: Likewise.
38672         * conform/data/stropts.h-data: Likewise.
38673         * conform/data/sys/mman.h-data: Likewise.
38674         * conform/data/sys/stat.h-data: Likewise.
38675         * conform/data/sys/types.h-data: Likewise.
38676         * conform/data/sys/wait.h-data: Likewise.
38677         * conform/data/time.h-data: Likewise.
38678         * conform/data/unistd.h-data: Likewise.
38679         * conform/data/utime.h-data: Likewise.
38680
38681         * io/sys/stat.h: fchmod was always in POSIX.
38682         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
38683         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
38684         * rt/aio.h: Define __need_timespec before including <time.h>.
38685         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
38686         struct.  Add forward declaration of pthread_attr_t and use it in
38687         sigevent.
38688         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
38689         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
38690         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
38691         always remove CLK_TCK definition.
38692
38693 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
38694
38695         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
38696
38697 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
38698
38699         * conform/run-conformtest.sh: New file.
38700         * conform/Makefile: Run run-conformtest for tests.
38701         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
38702         support.
38703
38704         * conform/data/uchar.h-data: New file.
38705         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
38706         * conform/data/arpa/inet.h-data: Likewise.
38707         * conform/data/assert.h-data: Likewise.
38708         * conform/data/complex.h-data: Likewise.
38709         * conform/data/cpio.h-data: Likewise.
38710         * conform/data/ctype.h-data: Likewise.
38711         * conform/data/dirent.h-data: Likewise.
38712         * conform/data/dlfcn.h-data: Likewise.
38713         * conform/data/errno.h-data: Likewise.
38714         * conform/data/fcntl.h-data: Likewise.
38715         * conform/data/float.h-data: Likewise.
38716         * conform/data/fmtmsg.h-data: Likewise.
38717         * conform/data/fnmatch.h-data: Likewise.
38718         * conform/data/ftw.h-data: Likewise.
38719         * conform/data/glob.h-data: Likewise.
38720         * conform/data/grp.h-data: Likewise.
38721         * conform/data/iconv.h-data: Likewise.
38722         * conform/data/inttypes.h-data: Likewise.
38723         * conform/data/langinfo.h-data: Likewise.
38724         * conform/data/libgen.h-data: Likewise.
38725         * conform/data/limits.h-data: Likewise.
38726         * conform/data/locale.h-data: Likewise.
38727         * conform/data/math.h-data: Likewise.
38728         * conform/data/monetary.h-data: Likewise.
38729         * conform/data/mqueue.h-data: Likewise.
38730         * conform/data/ndbm.h-data: Likewise.
38731         * conform/data/net/if.h-data: Likewise.
38732         * conform/data/netdb.h-data: Likewise.
38733         * conform/data/netinet/in.h-data: Likewise.
38734         * conform/data/nl_types.h-data: Likewise.
38735         * conform/data/poll.h-data: Likewise.
38736         * conform/data/pthread.h-data: Likewise.
38737         * conform/data/pwd.h-data: Likewise.
38738         * conform/data/regex.h-data: Likewise.
38739         * conform/data/sched.h-data: Likewise.
38740         * conform/data/search.h-data: Likewise.
38741         * conform/data/semaphore.h-data: Likewise.
38742         * conform/data/setjmp.h-data: Likewise.
38743         * conform/data/signal.h-data: Likewise.
38744         * conform/data/spawn.h-data: Likewise.
38745         * conform/data/stdarg.h-data: Likewise.
38746         * conform/data/stdio.h-data: Likewise.
38747         * conform/data/stdlib.h-data: Likewise.
38748         * conform/data/string.h-data: Likewise.
38749         * conform/data/strings.h-data: Likewise.
38750         * conform/data/stropts.h-data: Likewise.
38751         * conform/data/sys/ipc.h-data: Likewise.
38752         * conform/data/sys/mman.h-data: Likewise.
38753         * conform/data/sys/msg.h-data: Likewise.
38754         * conform/data/sys/resource.h-data: Likewise.
38755         * conform/data/sys/select.h-data: Likewise.
38756         * conform/data/sys/sem.h-data: Likewise.
38757         * conform/data/sys/shm.h-data: Likewise.
38758         * conform/data/sys/socket.h-data: Likewise.
38759         * conform/data/sys/stat.h-data: Likewise.
38760         * conform/data/sys/statvfs.h-data: Likewise.
38761         * conform/data/sys/time.h-data: Likewise.
38762         * conform/data/sys/timeb.h-data: Likewise.
38763         * conform/data/sys/times.h-data: Likewise.
38764         * conform/data/sys/types.h-data: Likewise.
38765         * conform/data/sys/uio.h-data: Likewise.
38766         * conform/data/sys/un.h-data: Likewise.
38767         * conform/data/sys/utsname.h-data: Likewise.
38768         * conform/data/sys/wait.h-data: Likewise.
38769         * conform/data/syslog.h-data: Likewise.
38770         * conform/data/tar.h-data: Likewise.
38771         * conform/data/termios.h-data: Likewise.
38772         * conform/data/utime.h-data: Likewise.
38773         * conform/data/utmpx.h-data: Likewise.
38774         * conform/data/varargs.h-data: Likewise.
38775         * conform/data/wchar.h-data: Likewise.
38776         * conform/data/wctype.h-data: Likewise.
38777         * conform/data/wordexp.h-data: Likewise.
38778
38779         * include/stropts.h: New file.
38780         * include/uchar.h: New file.
38781         * include/aio.h: Changes to allow conformtest.pl to use the headers.
38782         * include/assert.h: Likewise.
38783         * include/ctype.h: Likewise.
38784         * include/dirent.h: Likewise.
38785         * include/dlfcn.h: Likewise.
38786         * include/fcntl.h: Likewise.
38787         * include/fnmatch.h: Likewise.
38788         * include/glob.h: Likewise.
38789         * include/grp.h: Likewise.
38790         * include/libio.h: Likewise.
38791         * include/locale.h: Likewise.
38792         * include/math.h: Likewise.
38793         * include/net/if.h: Likewise.
38794         * include/netdb.h: Likewise.
38795         * include/netinet/in.h: Likewise.
38796         * include/pthread.h: Likewise.
38797         * include/pwd.h: Likewise.
38798         * include/regex.h: Likewise.
38799         * include/sched.h: Likewise.
38800         * include/search.h: Likewise.
38801         * include/setjmp.h: Likewise.
38802         * include/signal.h: Likewise.
38803         * include/stdio.h: Likewise.
38804         * include/stdlib.h: Likewise.
38805         * include/string.h: Likewise.
38806         * include/sys/cdefs.h: Likewise.
38807         * include/sys/mman.h: Likewise.
38808         * include/sys/msg.h: Likewise.
38809         * include/sys/resource.h: Likewise.
38810         * include/sys/select.h: Likewise.
38811         * include/sys/socket.h: Likewise.
38812         * include/sys/stat.h: Likewise.
38813         * include/sys/statvfs.h: Likewise.
38814         * include/sys/time.h: Likewise.
38815         * include/sys/times.h: Likewise.
38816         * include/sys/uio.h: Likewise.
38817         * include/sys/utsname.h: Likewise.
38818         * include/sys/wait.h: Likewise.
38819         * include/termios.h: Likewise.
38820         * include/time.h: Likewise.
38821         * include/ulimit.h: Likewise.
38822         * include/unistd.h: Likewise.
38823         * include/utime.h: Likewise.
38824         * include/wchar.h: Likewise.
38825         * include/wctype.h: Likewise.
38826         * include/wordexp.h: Likewise.
38827
38828         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
38829
38830         * time/time.h: TIME_UTC must be a macro.
38831         Make timespec_get available for ISO C11 only as well.
38832
38833 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
38834
38835         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
38836         Reported by Peng Haitao <penght@cn.fujitsu.com>.
38837
38838 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38839
38840         * configure.in: Use -o not -a in test for unsupported multi-arch.
38841
38842 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38843
38844         * manual/texinfo.tex: Update to version 2012-01-19.16.
38845
38846 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38847
38848         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
38849
38850 2012-02-24  Roland McGrath  <roland@hack.frob.com>
38851
38852         [BZ #13738]
38853         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
38854         * manual/fdl-1.3.texi: New file.
38855         * manual/fdl-1.1.texi: File removed.
38856
38857         [BZ #13738]
38858         * manual/libc.texinfo (FDL_VERSION): New @set.
38859         Use it for mention of FDL in cover text.
38860         (Documentation License): Use it in @include file name.
38861
38862 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38863             Roland McGrath  <roland@hack.frob.com>
38864
38865         [BZ #5461]
38866         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
38867         (not LONG_LONG_MAX and LONG_LONG_MIN.
38868         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
38869         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
38870         name.
38871         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
38872
38873 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38874
38875         [BZ #2547]
38876         [BZ #11365]
38877         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
38878         manipulate bits before adding and subtracting TWO23[sx].
38879         * math/libm-test.inc (nearbyint_test): Add more tests.
38880
38881 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38882
38883         [BZ #2548]
38884         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
38885         bits before adding and subtracting TWO23[sx].
38886         * math/libm-test.inc (rint_test): Add more tests.
38887         (rint_test_tonearest): Likewise.
38888         (rint_test_towardzero): Likewise.
38889         (rint_test_downward): Likewise.
38890         (rint_test_upward: Likewise.
38891
38892 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38893
38894         [BZ #10110]
38895         * include/stdc-predef.h: New file.  Extracted from features.h.
38896         * include/features.h: Include stdc-predef.h.
38897         * Makefile (headers): Add stdc-predef.h.
38898         * CONFORMANCE (Compiler limitations): Update.
38899
38900 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38901
38902         * manual/libc.texinfo (VERSION, UPDATED): Revert.
38903
38904 2012-02-21  David S. Miller  <davem@davemloft.net>
38905
38906         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
38907         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38908
38909 2012-02-20  David S. Miller  <davem@davemloft.net>
38910
38911         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
38912         using a normal save/restore sequence, rather than allocating a
38913         dummy stack frame just to store a frame pointer and restore.
38914         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38915
38916 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38917
38918         * manual/install.texi: Fix stray word in line-wrapped comment.
38919
38920 2012-02-20  David S. Miller  <davem@davemloft.net>
38921
38922         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
38923         both binutils and gcc support GOTDATA.
38924
38925         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
38926         "rd %pc" in the PIC register setup sequences.
38927
38928         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
38929         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38930         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38931         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38932         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38933         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38934         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38935         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38936         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
38937         (SYSCALL_ERROR_HANDLER): Likewise.
38938         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38939         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38940         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
38941         (SYSCALL_ERROR_HANDLER): Likewise.
38942
38943         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
38944         (HAVE_GCC_GOTDATA): New.
38945         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
38946         relocation support in both binutils and gcc.
38947         * sysdeps/sparc/elf/configure: Regenerate.
38948
38949         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
38950         * sysdeps/sparc/sparc32/elf/configure: Delete.
38951         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
38952         * sysdeps/sparc/sparc64/elf/configure: Delete.
38953         * sysdeps/sparc/elf/configure.in: New file.
38954         * sysdeps/sparc/elf/configure: Generate.
38955
38956         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
38957         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
38958         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
38959         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
38960         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
38961
38962 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38963
38964         * manual/install.texi: Do not mention specific glibc version
38965         numbers.
38966         * manual/libc.texinfo (VERSION, UPDATED): Update.
38967         (@copying): Use @copyright{} and range of years.
38968
38969 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38970
38971         [BZ #13695]
38972         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
38973         [crti.S not in sysdirs] (generated): Do not append.
38974         [crti.S not in sysdirs] (omit-deps): Likewise.
38975         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
38976         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
38977         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
38978         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
38979         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
38980         Likewise.
38981         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
38982         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
38983         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
38984         * csu/defs.awk: Remove file.
38985         * sysdeps/generic/initfini.c: Likewise.
38986         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
38987         variable.
38988         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
38989         Likewise.
38990
38991 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38992
38993         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
38994         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
38995         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
38996         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
38997         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38998         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
38999         <bits/epoll.h>.
39000         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
39001         (__EPOLL_PACKED): Define to empty if not defined by
39002         <bits/epoll.h>.
39003         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
39004         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39005         bits/epoll.h.
39006
39007 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39008
39009         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
39010         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
39011         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
39012         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
39013         <bits/timerfd.h>.
39014         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
39015         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39016         bits/timerfd.h.
39017
39018 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39019
39020         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
39021         in C locale.
39022         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
39023         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
39024         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
39025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39026
39027 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
39028
39029         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39030         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
39031
39032 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
39033
39034         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
39035         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
39036         defined.
39037         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
39038         Likewise.
39039         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
39040         entry for 2.16.
39041
39042 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
39043
39044         * math/w_acos.c: Use non-signaling floating-point comparisons.
39045         * math/w_acosf.c: Likewise.
39046         * math/w_acosh.c: Likewise.
39047         * math/w_acoshf.c: Likewise.
39048         * math/w_acoshl.c: Likewise.
39049         * math/w_acosl.c: Likewise.
39050         * math/w_asin.c: Likewise.
39051         * math/w_asinf.c: Likewise.
39052         * math/w_asinl.c: Likewise.
39053         * math/w_atanh.c: Likewise.
39054         * math/w_atanhf.c: Likewise.
39055         * math/w_atanhl.c: Likewise.
39056         * math/w_exp2.c: Likewise.
39057         * math/w_exp2f.c: Likewise.
39058         * math/w_exp2l.c: Likewise.
39059         * math/w_j0.c: Likewise.
39060         * math/w_j0f.c: Likewise.
39061         * math/w_j0l.c: Likewise.
39062         * math/w_j1.c: Likewise.
39063         * math/w_j1f.c: Likewise.
39064         * math/w_j1l.c: Likewise.
39065         * math/w_jn.c: Likewise.
39066         * math/w_jnf.c: Likewise.
39067         * math/w_log.c: Likewise.
39068         * math/w_log10.c: Likewise.
39069         * math/w_log10f.c: Likewise.
39070         * math/w_log10l.c: Likewise.
39071         * math/w_log2.c: Likewise.
39072         * math/w_log2f.c: Likewise.
39073         * math/w_log2l.c: Likewise.
39074         * math/w_logf.c: Likewise.
39075         * math/w_logl.c: Likewise.
39076         * math/w_sqrt.c: Likewise.
39077         * math/w_sqrtf.c: Likewise.
39078         * math/w_sqrtl.c: Likewise.
39079         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39080         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
39081         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39082         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39083         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39084
39085 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39086
39087         [BZ #9739]
39088         * manual/string.texi (strnlen): Use correct parameter name in
39089         equivalent expression.
39090
39091 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39092
39093         [BZ #11174]
39094         * manual/users.texi (seteuid): Consistently use neweuid for
39095         argument name.
39096
39097 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39098
39099         [BZ #13704]
39100         * manual/nss.texi (Services in the NSS configuration): Correct
39101         list of services in example configuration file.
39102
39103 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
39104
39105         [BZ #11322]
39106         * manual/arith.texi: Remove statements about negative zero
39107         behaving identically to zero.
39108
39109 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39110
39111         [BZ #5993]
39112         * manual/install.texi: Do not document upgrading from libc5.
39113
39114 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39115
39116         [BZ #4596]
39117         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
39118
39119 2012-02-18  David S. Miller  <davem@davemloft.net>
39120
39121         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
39122         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
39123         %o7 across the call.
39124         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
39125         instead.
39126         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
39127         SETUP_PIC_REG_LEAF.
39128         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
39129         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
39130         * sysdeps/sparc/crtn.S: Likewise.
39131
39132 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
39133
39134         * aout/Makefile: Remove.
39135
39136 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
39137
39138         [BZ #13058]
39139         * manual/examples/argp-ex1.c (main): Format definition in GNU
39140         style.
39141         * manual/examples/argp-ex2.c (main): Likewise.
39142         * manual/examples/argp-ex3.c (main): Likewise.
39143         * manual/examples/argp-ex4.c (main): Likewise.
39144         * manual/examples/longopt.c (main): Use new-style prototype
39145         definition.
39146         * manual/examples/strncat.c (main): Specify return type and use
39147         (void) for arguments.
39148         * manual/examples/subopt.c (main): Use char **argv argument.
39149
39150 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39151
39152         [BZ #5077]
39153         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
39154         rounding modes.
39155
39156 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
39157
39158         [BZ #6907]
39159         * manual/string.texi (strchr): Change when strchrnul is
39160         recommended.
39161
39162 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
39163
39164         [BZ #174]
39165         * manual/locale.texi (setlocale): Document LOCPATH.
39166
39167 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39168
39169         [BZ #10210]
39170         * manual/process.texi (execle): Move @dots{} before last argument.
39171
39172 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
39173
39174         [BZ #12047]
39175         * manual/charset.texi (Generic Charset Conversion): Fix typo
39176         (LC_TYPE -> LC_CTYPE).
39177
39178 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
39179
39180         [BZ #5805]
39181         * manual/arith.texi (scalbn): Use @var{} on parameter names.
39182         (scalbnf): Likewise.
39183         (scalbnl): Likewise.
39184         (scalbln): Likewise.
39185         (scalblnf): Likewise.
39186         (scalblnl): Likewise.
39187         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
39188         (vwarnx): Likewise.
39189         (verr): Likewise.
39190         (verrx): Likewise.
39191         * manual/filesys.texi (telldir): Use braces around return type.
39192         * manual/llio.texi (mmap): Add space after comma.
39193         (mmap64): Likewise.
39194         * manual/math.texi (jn): Use @var{} on parameter names.
39195         (jnf): Likewise.
39196         (jnl): Likewise.
39197         (yn): Likewise.
39198         (ynf): Likewise.
39199         (ynl): Likewise.
39200         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
39201         line.
39202         * manual/resource.texi (ulimit): Use @dots{} instead of literal
39203         "...".
39204         (sched_get_priority_min): Remove semicolon on @deftypefun line.
39205         (sched_get_priority_max): Likewise.
39206         * manual/signal.texi (sigvec): Add space after comma.
39207         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
39208         names.
39209         (if_indextoname): Likewise.
39210         (if_freenameindex): Likewise.
39211         (sendto): Use ',' instead of '.' in prototype.
39212         * manual/startup.texi (syscall): Use @dots{} instead of literal
39213         "...".
39214         * manual/stdio.texi (__fpending): Separate initial words of
39215         paragraph from @deftypefun line.
39216         * manual/syslog.texi (syslog): Use @dots{} instead of literal
39217         "...".
39218         (vsyslog): Use @var{} on parameter names.
39219         * manual/terminal.texi (stty): Use @var{} on parameter names.
39220         * manual/users.texi (getutmp): Use @var{} on parameter names.
39221         (getutmpx): Likewise.
39222
39223 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39224
39225         [BZ #6884]
39226         * manual/stdio.texi (fopen): Fix typos in description of
39227         ",ccs=STRING".
39228
39229 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
39230
39231         [BZ #4026]
39232         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
39233         get clock_id definition.
39234
39235 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
39236
39237         [BZ #4822]
39238         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
39239         (madvise): Cast every argument to void on its own.
39240
39241 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39242
39243         [BZ #9902]
39244         * manual/startup.texi (Exit Status): Fix typo.
39245
39246 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39247
39248         [BZ #10140]
39249         * manual/examples/argp-ex1.c: Include <stdlib.h>.
39250         * manual/examples/argp-ex2.c: Likewise.
39251         * manual/examples/argp-ex3.c: Likewise.
39252
39253 2012-02-16  Richard Henderson  <rth@redhat.com>
39254
39255         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
39256         * sysdeps/s390/s390-32/initfini.c: Remove.
39257         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
39258         * sysdeps/s390/s390-64/initfini.c: Remove.
39259
39260 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39261
39262         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
39263         compiler output for sysdeps/generic/initfini.c.
39264         * sysdeps/sh/elf/initfini.c: Remove file.
39265
39266 2012-02-16  David S. Miller  <davem@davemloft.net>
39267
39268         [BZ #11494]
39269         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
39270
39271         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
39272         * sysdeps/sparc/crti.S: New file.
39273         * sysdeps/sparc/crtn.S: New file.
39274         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
39275         * sysdeps/sparc/sparc64/Makefile: Likewise.
39276
39277 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
39278
39279         [BZ #3335]
39280         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
39281
39282 2012-02-15  Roland McGrath  <roland@hack.frob.com>
39283
39284         [BZ #4822]
39285         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
39286
39287         * mach/devstream.c (cookie_io_functions_t): Macro removed.
39288         (write, read, close): Likewise.
39289         Patch by Aurelien Jarno <aurelien@aurel32.net>.
39290
39291 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
39292
39293         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
39294         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
39295         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
39296         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
39297         <bits/signalfd.h>.
39298         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
39299         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39300         bits/signalfd.h.
39301
39302 2012-02-14  Marek Polacek  <polacek@redhat.com>
39303
39304         * sysdeps/x86_64/crti.S: New file.
39305         * sysdeps/x86_64/crtn.S: New file.
39306         * sysdeps/x86_64/elf/initfini.c: Remove file.
39307
39308 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39309
39310         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
39311         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
39312         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
39313         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
39314         <bits/inotify.h>.
39315         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
39316         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39317         bits/inotify.h.
39318
39319 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39320
39321         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
39322         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
39323         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
39324         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
39325         <bits/eventfd.h>.
39326         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
39327         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39328         bits/eventfd.h.
39329
39330 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
39331
39332         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
39333         __feraiseexcept instead of feraiseexcept.
39334
39335         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
39336         nanosleep invocations.
39337         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
39338         strings, and add error checking for a nanosleep invocations.
39339
39340 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39341
39342         Replace FSF snail mail address with URLs, as per GNU coding standards.
39343         Most of the snail mail addresses were wrong anyway, and omitting
39344         them makes the source code easier to maintain.  Almost all of the
39345         changes are to license notices and to locale LC_IDENTIFICATION
39346         addresses, except for this one:
39347         * manual/libc.texinfo: In "Published by", give the FSF's URL,
39348         not its snail mail address.
39349
39350 2012-02-09  Richard Henderson  <rth@twiddle.net>
39351
39352         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
39353         of kernel-features.h.
39354
39355         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
39356
39357 2012-02-08  Marek Polacek  <polacek@redhat.com>
39358
39359         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
39360         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
39361         * sysdeps/gnu/_G_config.h: Likewise.
39362         * sysdeps/generic/_G_config.h: Likewise.
39363
39364 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
39365
39366         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
39367         tests.
39368         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39369
39370         * sysdeps/powerpc/powerpc32/crti.S: New file.
39371         * sysdeps/powerpc/powerpc32/crtn.S: New file.
39372         * sysdeps/powerpc/powerpc64/crti.S: New file.
39373         * sysdeps/powerpc/powerpc64/crtn.S: New file.
39374
39375         * Makeconfig (have-initfini): Don't set.
39376         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
39377         * configure.in (nopic_initfini): Don't substitute.
39378         * config.h.in (HAVE_INITFINI): Don't #undef.
39379         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
39380         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
39381
39382 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
39383
39384         Support crti.S and crtn.S provided directly by architectures.
39385         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
39386         [crti.S in sysdirs] (omit-deps): Likewise.
39387         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
39388         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
39389         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
39390         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
39391         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
39392         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
39393         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
39394         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
39395         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
39396         compiler output for sysdeps/generic/initfini.c.
39397         * sysdeps/i386/elf/Makefile: Remove file.
39398         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
39399
39400 2012-02-07  Marek Polacek  <polacek@redhat.com>
39401
39402         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
39403         * sysdeps/gnu/_G_config.h: Likewise.
39404         * sysdeps/mach/hurd/_G_config.h: Likewise.
39405
39406 2012-02-07  Marek Polacek  <polacek@redhat.com>
39407
39408         * math/Makefile (tests): Add tst-CMPLX2.
39409         * math/tst-CMPLX2.c: New file.
39410
39411 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
39412
39413         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39414
39415         * math/libm-test.inc (jn_test): Add missing L suffix.
39416
39417 2012-02-06  Marek Polacek  <polacek@redhat.com>
39418
39419         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
39420         * sysdeps/i386/fpu/e_powf.S: Likewise.
39421         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
39422         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
39423         * sysdeps/i386/fpu/e_acosh.S: Likewise.
39424         * sysdeps/i386/fpu/e_pow.S: Likewise.
39425         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
39426         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
39427         * sysdeps/i386/fpu/s_expm1.S: Likewise.
39428         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
39429         * sysdeps/i386/fpu/e_log2.S: Likewise.
39430         * sysdeps/i386/fpu/e_log2l.S: Likewise.
39431         * sysdeps/i386/fpu/e_scalb.S: Likewise.
39432         * sysdeps/i386/fpu/e_powl.S: Likewise.
39433         * sysdeps/i386/fpu/s_log1p.S: Likewise.
39434         * sysdeps/i386/fpu/e_log10f.S: Likewise.
39435         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
39436         * sysdeps/i386/fpu/e_logl.S: Likewise.
39437         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
39438         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
39439         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
39440         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
39441         * sysdeps/i386/fpu/e_log2f.S: Likewise.
39442         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
39443         * sysdeps/i386/fpu/e_log.S: Likewise.
39444         * sysdeps/i386/fpu/s_cexp.S: Likewise.
39445         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
39446         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
39447         * sysdeps/i386/fpu/e_logf.S: Likewise.
39448         * sysdeps/i386/fpu/e_log10l.S: Likewise.
39449         * sysdeps/i386/fpu/e_atanh.S: Likewise.
39450         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
39451         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
39452         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
39453         * sysdeps/i386/fpu/e_log10.S: Likewise.
39454         * sysdeps/i386/fpu/s_frexp.S: Likewise.
39455         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
39456         * sysdeps/i386/fpu/s_asinh.S: Likewise.
39457         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
39458         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
39459         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
39460         * sysdeps/i386/asm-syntax.h: Likewise.
39461         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
39462         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
39463         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
39464         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
39465         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
39466         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
39467         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
39468         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
39469         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
39470         * sysdeps/powerpc/sysdep.h: Likewise.
39471         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
39472         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
39473
39474 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39475
39476         [BZ #411]
39477         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
39478
39479 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39480
39481         * sysdeps/i386/sysdep.h: Include <features.h>.
39482         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
39483         version.
39484
39485 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
39486
39487         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
39488         Define.
39489         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
39490         LOAD_PIC_REG_STR.
39491
39492 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39493
39494         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
39495         (SETUP_PIC_REG): Use GET_PC_THUNK.
39496         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
39497         macro.
39498
39499 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39500
39501         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
39502         for non-PIC compilation.
39503         (SETUP_PIC_REG): Add .p2align directive.
39504         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
39505         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
39506         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
39507         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
39508         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
39509         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
39510         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39511         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39512         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
39513         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
39514         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
39515         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
39516         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
39517         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
39518         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
39519         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39520         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39521         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
39522         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
39523         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
39524         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
39525         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39526         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
39527         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
39528         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
39529         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
39530         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
39531         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39532         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
39533         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
39534         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
39535         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
39536         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
39537         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
39538         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
39539         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
39540         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
39541         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
39542         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
39543         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
39544         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
39545
39546 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39547
39548         * math/tst-CMPLX.c: Include <stdio.h>.
39549
39550 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
39551
39552         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
39553         float.
39554         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39555         * sysdeps/sparc/bits/mathdef.h: Likewise.
39556
39557 2012-01-31  Marek Polacek  <polacek@redhat.com>
39558
39559         * libio/libio.h: Don't define _PARAMS.
39560         * locale/programs/config.h: Don't define PARAMS.
39561         * stdlib/strtol_l.c: Likewise.
39562         (__strtol_l): Remove PARAMS from the prototype.
39563
39564 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
39565
39566         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
39567         names.  Just use the correct names.  Remove unnecessary wrapper
39568         functions.
39569         * malloc/arena.c: Likewise.
39570         * malloc/hooks.c: Likewise.
39571
39572         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
39573         ARENA_TEST says not to.  Simplify test for creation of a new arena.
39574         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
39575
39576 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
39577
39578         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
39579         into tail calls.
39580         (update_get_addr): New function.
39581         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
39582         GET_ADDR_MODULE parameter.
39583
39584 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39585
39586         * crypt/cert.c: Remove __STDC__ conditionals.
39587         * crypt/crypt-entry.c: Likewise.
39588         * crypt/crypt_util.c: Likewise.
39589         * libio/filedoalloc.c: Likewise.
39590         * libio/fileops.c: Likewise.
39591         * libio/genops.c: Likewise.
39592         * libio/iofclose.c: Likewise.
39593         * libio/iofdopen.c: Likewise.
39594         * libio/iofopen.c: Likewise.
39595         * libio/iofopen64.c: Likewise.
39596         * libio/iogetdelim.c: Likewise.
39597         * libio/iopopen.c: Likewise.
39598         * libio/obprintf.c: Likewise.
39599         * libio/oldfileops.c: Likewise.
39600         * libio/oldiofclose.c: Likewise.
39601         * libio/oldiofdopen.c: Likewise.
39602         * libio/oldiofopen.c: Likewise.
39603         * libio/oldiopopen.c: Likewise.
39604         * libio/wfiledoalloc.c: Likewise.
39605         * libio/wgenops.c: Likewise.
39606         * locale/programs/xmalloc.c: Likewise.
39607         * misc/syslog.c: Likewise.
39608         * stdio-common/xbug.c: Likewise.
39609         * string/memchr.c: Likewise.
39610         * string/memcmp.c: Likewise.
39611         * string/memrchr.c: Likewise.
39612         * string/rawmemchr.c: Likewise.
39613         * sysdeps/posix/getcwd.c: Likewise.
39614         * time/strftime_l.c: Likewise.
39615
39616 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39617
39618         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
39619         * config.make.in (config-cflags-sse2avx): Define.
39620         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
39621         Fix typo.
39622
39623 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
39624
39625         * scripts/config.guess: Update from upstream config git repository.
39626         * scripts/config.sub: Likewise.
39627
39628 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
39629
39630         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
39631         (EM_NUM): Update.
39632         (R_TILEPRO_*, R_TILEGX_*): New macros.
39633
39634         * scripts/firstversions.awk: Fix bug in version range handling.
39635
39636         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
39637
39638         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
39639
39640         * include/sys/epoll.h: New file.
39641         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
39642         libc_hidden_def.
39643
39644 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
39645
39646         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
39647         Avoid unnecessary __WORDSIZE == 64 test.
39648         (fmaxf): Use VEX format if possible.
39649         (fmax): Likewise.
39650         (fminf): Likewise.
39651         (fmin): Likewise.
39652
39653         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
39654         * math/math_private.h: Remove libc_fegetround* and
39655         libc_fesetround*.
39656         * sysdeps/i386/configure.in: Check for -msse2avx.
39657         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
39658         also if SSE2AVX is defined.
39659         Remove libc_fegetround* and libc_fesetround*.
39660         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
39661         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
39662         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
39663         of HAS_YMM_USABLE.
39664         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39665         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39666         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39667         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39668         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39669
39670         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
39671
39672 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39673
39674         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
39675         size is not set.
39676         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
39677
39678 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
39679
39680         [BZ #13618]
39681         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
39682         relocation.
39683         * Makeconfig (libm): Define.
39684         * elf/Makefile: Add rules to build and run tst-relsort1.
39685         * elf/tst-relsort1.c: New file.
39686         * elf/tst-relsort1mod1.c: New file.
39687         * elf/tst-relsort1mod2.c: New file.
39688
39689 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
39690
39691         * math/s_ldexp.c: Remove __STDC__ conditionals.
39692         * math/s_ldexpf.c: Likewise.
39693         * math/s_ldexpl.c: Likewise.
39694         * math/s_nextafter.c: Likewise.
39695         * math/s_nexttowardf.c: Likewise.
39696         * math/s_significand.c: Likewise.
39697         * math/s_significandf.c: Likewise.
39698         * math/s_significandl.c: Likewise.
39699         * math/w_jnl.c: Likewise.
39700         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
39701         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
39702         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
39703         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
39704         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
39705         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
39706         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
39707         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
39708         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
39709         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
39710         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
39711         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39712         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
39713         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
39714         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
39715         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
39716         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
39717         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
39718         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
39719         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39720         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39721         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
39722         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
39723         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
39724         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
39725         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
39726         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
39727         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
39728         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
39729         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
39730         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
39731         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
39732         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
39733         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
39734         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
39735         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
39736         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
39737         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
39738         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
39739         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
39740         * sysdeps/ieee754/k_standard.c: Likewise.
39741         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39742         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
39743         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
39744         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
39745         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
39746         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
39747         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
39748         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
39749         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
39750         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
39751         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
39752         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
39753         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
39754         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
39755         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
39756         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
39757         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
39758         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
39759         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
39760         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
39761         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
39762         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
39763         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
39764         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
39765         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
39766         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
39767         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39768         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39769         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
39770         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
39771         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
39772         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
39773         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
39774         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39775         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
39776         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
39777         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
39778         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
39779         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
39780         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
39781         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
39782         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
39783         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
39784         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
39785         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
39786         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
39787         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
39788         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
39789         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
39790         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
39791         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
39792         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
39793         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
39794         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
39795         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
39796         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
39797         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
39798         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39799         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39800         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39801         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
39802         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
39803         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
39804         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39805         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
39806         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
39807         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39808         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39809         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39810         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39811         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39812         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39813         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39814         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39815         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39816         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39817         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39818         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39819         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39820         * sysdeps/ieee754/s_matherr.c: Likewise.
39821         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39822         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39823         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39824         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39825
39826 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39827
39828         * crypt/md5.h: Remove __STDC__ conditionals.
39829         * libio/libioP.h: Likewise.
39830         * locale/programs/config.h: Likewise.
39831         * sysdeps/generic/sysdep.h: Likewise.
39832         * sysdeps/i386/asm-syntax.h: Likewise.
39833         * sysdeps/s390/asm-syntax.h: Likewise.
39834         * sysdeps/unix/sysdep.h: Likewise.
39835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
39836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
39837
39838 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39839
39840         * libio/libio.h: Remove __STDC__ conditionals.
39841         * malloc/obstack.h: Likewise.
39842         * math/complex.h: Likewise.
39843         * math/math.h: Likewise.
39844         * sysdeps/generic/_G_config.h: Likewise.
39845         * sysdeps/gnu/_G_config.h: Likewise.
39846         * sysdeps/mach/hurd/_G_config.h: Likewise.
39847         * sysdeps/powerpc/bits/mathdef.h: Likewise.
39848         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39849         * sysdeps/sparc/bits/mathdef.h: Likewise.
39850
39851 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
39852
39853         [BZ #13583]
39854         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
39855         Clean up HAS_* macros.
39856         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
39857         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
39858         possible.
39859         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
39860         HAS_AVX.
39861         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39862         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39863         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39864         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39865         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39866
39867 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
39868
39869         * elf/tst-unique3.cc (gets): Remove declaration.
39870         * elf/tst-unique3lib.cc (gets): Likewise.
39871         * elf/tst-unique3lib2.cc (gets): Likewise.
39872         * elf/tst-unique4.cc (gets): Likewise.
39873
39874 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
39875
39876         * include/stdio.h: Add C++ protection.  Add gets declarations and
39877         definitions.
39878         * debug/tst-chk1.c: Don't declare gets here.
39879         * stdio-common/tst-gets.c: Likewise.
39880
39881 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39882
39883         * posix/glob: Remove directory.
39884
39885 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39886
39887         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
39888
39889 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
39890
39891         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
39892         of the non-standard EPFNOSUPPORT.
39893
39894 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39895
39896         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
39897         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
39898         ANYWHERE set to 1 only on KERN_NO_SPACE error.
39899
39900 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
39901
39902         * wcsmbs/uchar.h: Test __STDC_VERSION__.
39903
39904 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
39905
39906         * nscd/aicache.c (addhstaiX): Do not cache negative results of
39907         transient errors.
39908         * nscd/grpcache.c (cache_addgr): Likewise.
39909         * nscd/hstcache.c (cache_addhst): Likewise.
39910         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39911         * nscd/pwdcache.c (cache_addpw): Likewise.
39912         * nscd/servicescache.c (cache_addserv): Likewise.
39913
39914 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
39915
39916         * malloc/malloc.c: Various cleanups.
39917         * malloc/hooks.c: Likewise.
39918
39919         * stdlib/Makefile (tests): Add bug-fmtmsg1.
39920         * stdlib/bug-fmtmsg1.c: New file.
39921
39922         * stdlib/fmtmsg.c (init): Add missing unlock.
39923         Patch by Peng Haitao <penght@cn.fujitsu.com>.
39924
39925 2012-01-12  Marek Polacek  <polacek@redhat.com>
39926
39927         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
39928         and _GNU_SOURCE.
39929
39930 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
39931
39932         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
39933         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
39934         macro to ensure uniqueness of label name.
39935         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39936         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39937
39938 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
39939
39940         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
39941
39942         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
39943         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
39944         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
39945         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
39946
39947 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
39948
39949         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
39950
39951         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
39952         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
39953         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
39954
39955         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
39956
39957         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
39958         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
39959         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
39960         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
39961
39962         * math/bits/math-finite.h: Add ldexp support.
39963
39964 2012-01-10  Marek Polacek  <polacek@redhat.com>
39965
39966         * locale/programs/localedef.h (show_archive_content): Add noreturn
39967         attribute.
39968
39969 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
39970
39971         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
39972
39973 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39974
39975         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
39976
39977         * io/Makefile (headers): Add bits/poll2.h.
39978
39979 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
39980
39981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
39982         typo #include statement.
39983
39984 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39985
39986         * include/sys/cdefs.h: Define __attribute_alloc_size.
39987         * catgets/gencat.c: Add alloc_size attribute and apply consistently
39988         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
39989         * elf/pldd.c: Likewise.
39990         * iconv/iconv_charmap.c: Likewise.
39991         * iconv/iconvconfig.c: Likewise.
39992         * iconv/strtab.c: Likewise.
39993         * locale/programs/locale.c: Likewise.
39994         * locale/programs/localedef.h: Likewise.
39995         * locale/programs/simple-hash.c: Likewise.
39996         * nscd/nscd.h: Likewise.
39997         * nss/makedb.c: Likewise.
39998         * sysdeps/generic/ldconfig.h: Likewise.
39999         * locale/programs/localedef.c: Remove xmalloc prototype.
40000         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
40001
40002 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
40003
40004         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
40005         appropriate.
40006
40007 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40008
40009         * math/Makefile (tests): Add tst-CMPLX.
40010         * math/tst-CMPLX.c: New file.
40011
40012         * math/complex.h (CMPLXL): Fix typo.
40013
40014         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
40015         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
40016         GLIBC_2.16.
40017         * debug/tst-chk1.c: Add poll and ppoll tests.
40018         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
40019         * include/sys/poll.h: Add hidden proto for ppoll.
40020         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
40021         * sysdeps/mach/hurd/ppoll.c: Likewise.
40022         * io/ppoll.c: Likewise.
40023         * debug/poll_chk.c: New file.
40024         * debug/ppoll_chk.c: New file.
40025         * include/bits/poll2.h: New file.
40026         * io/bits/poll2.h: New file.
40027
40028         [BZ #1350]
40029         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
40030
40031         * configure.in: static is always set to yes.  Remove.
40032         * config.make.in: Don't set build-static.
40033         * Makeconfig: Remove use of build-static.
40034         * dlfcn/Makefile: Likewise.
40035         * elf/Makefile: Likewise.
40036         * math/Makefile: Likewise.
40037         * misc/Makefile: Likewise.
40038         * nptl/Makefile: Likewise.
40039         * sysdeps/mach/hurd/Makefile: Likewise.
40040
40041         * configure.in: PWD_P is not used anymore.
40042         * config.make.in: Remove PWD_P entry.
40043
40044         * configure.in: Remove last remnants of RANLIB.
40045         No need to check for signed size_t anymore.
40046         Don't set libc_commonpagesize and libc_relro_required here for Alpha
40047         and IA-64.
40048         Remove __builtin_expect test because we require at least gcc 3.4.
40049         * aclocal.m4: Likewise.
40050
40051         * wcsmbs/mbrtoc16.c: Implement using towc function.
40052         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
40053         * wcsmbs/wcsmbsload.c: Likewise.
40054         * iconv/gconv_simple.c: Likewise.
40055         * iconv/gconv_int.h: Likewise.
40056         * iconv/gconv_builtin.h: Likewise.
40057         * iconv/iconv_prog.c: Remove CHAR16 handling.
40058
40059         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
40060
40061         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
40062
40063         * configure.in: Remove --with-elf and --enable-bounded options.
40064         Dont set base_machine for ia64.  More non-ELF conditions removed.
40065         Remove testing and setting of leading underscore information.
40066         * config.make.in (build-bounded): Set to no.
40067         * config.h.in: Remove NO_UNDERSCORES entry.
40068         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
40069         them.
40070         * csu/start.c: Remove !NO_UNDERSCORE code.
40071         * locale/localeinfo.h: Likewise.
40072         * sysdeps/generic/machine-gmon.h: Likewise.
40073         * sysdeps/generic/sysdep.h: Likewise.
40074         * sysdeps/i386/sysdep.h: Likewise.
40075         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40076         * sysdeps/mach/sysdep.h: Likewise.
40077         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40078         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40079         * sysdeps/sh/sysdep.h: Likewise.
40080         * sysdeps/sparc/sparc32/alloca.S: Likewise.
40081         * sysdeps/unix/i386/sysdep.S: Likewise.
40082         * sysdeps/unix/sparc/start.c: Likewise.
40083         * sysdeps/unix/sparc/sysdep.S: Likewise.
40084         * sysdeps/unix/sparc/sysdep.h: Likewise.
40085         * sysdeps/unix/start.c: Likewise.
40086         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40087         * sysdeps/x86_64/sysdep.h: Likewise.
40088
40089 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
40090
40091         [BZ #13553]
40092         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
40093         for non-gcc.
40094         * argp/argp-fmtstream.h: Use const instead __const.
40095         * argp/argp.h: Likewise.
40096         * assert/assert.h: Likewise.
40097         * bits/fenv.h: Likewise.
40098         * bits/sched.h: Likewise.
40099         * bits/sigset.h: Likewise.
40100         * bits/sigthread.h: Likewise.
40101         * catgets/nl_types.h: Likewise.
40102         * conform/data/pthread.h-data: Likewise.
40103         * crypt/crypt-private.h: Likewise.
40104         * crypt/crypt.h: Likewise.
40105         * crypt/crypt_util.c: Likewise.
40106         * ctype/ctype.h: Likewise.
40107         * debug/execinfo.h: Likewise.
40108         * debug/mbsnrtowcs_chk.c: Likewise.
40109         * debug/mbsrtowcs_chk.c: Likewise.
40110         * debug/wcsnrtombs_chk.c: Likewise.
40111         * debug/wcsrtombs_chk.c: Likewise.
40112         * debug/wcstombs_chk.c: Likewise.
40113         * dirent/dirent.h: Likewise.
40114         * dlfcn/dlfcn.h: Likewise.
40115         * elf/neededtest4.c: Likewise.
40116         * grp/grp.h: Likewise.
40117         * gshadow/gshadow.h: Likewise.
40118         * iconv/gconv.h: Likewise.
40119         * iconv/gconv_int.h: Likewise.
40120         * iconv/gconv_simple.c: Likewise.
40121         * iconv/iconv.h: Likewise.
40122         * iconv/loop.c: Likewise.
40123         * iconv/skeleton.c: Likewise.
40124         * include/aio.h: Likewise.
40125         * include/aliases.h: Likewise.
40126         * include/argz.h: Likewise.
40127         * include/arpa/inet.h: Likewise.
40128         * include/assert.h: Likewise.
40129         * include/dirent.h: Likewise.
40130         * include/dlfcn.h: Likewise.
40131         * include/execinfo.h: Likewise.
40132         * include/fcntl.h: Likewise.
40133         * include/fenv.h: Likewise.
40134         * include/glob.h: Likewise.
40135         * include/grp.h: Likewise.
40136         * include/libintl.h: Likewise.
40137         * include/mntent.h: Likewise.
40138         * include/netdb.h: Likewise.
40139         * include/pwd.h: Likewise.
40140         * include/rpc/netdb.h: Likewise.
40141         * include/sched.h: Likewise.
40142         * include/search.h: Likewise.
40143         * include/shadow.h: Likewise.
40144         * include/signal.h: Likewise.
40145         * include/stdio.h: Likewise.
40146         * include/stdlib.h: Likewise.
40147         * include/string.h: Likewise.
40148         * include/sys/socket.h: Likewise.
40149         * include/sys/stat.h: Likewise.
40150         * include/sys/statfs.h: Likewise.
40151         * include/sys/statvfs.h: Likewise.
40152         * include/sys/syslog.h: Likewise.
40153         * include/sys/time.h: Likewise.
40154         * include/sys/uio.h: Likewise.
40155         * include/time.h: Likewise.
40156         * include/unistd.h: Likewise.
40157         * include/utmp.h: Likewise.
40158         * include/wchar.h: Likewise.
40159         * include/wctype.h: Likewise.
40160         * inet/aliases.h: Likewise.
40161         * inet/arpa/inet.h: Likewise.
40162         * inet/netinet/ether.h: Likewise.
40163         * inet/netinet/in.h: Likewise.
40164         * intl/libintl.h: Likewise.
40165         * io/bits/fcntl2.h: Likewise.
40166         * io/fcntl.h: Likewise.
40167         * io/ftw.h: Likewise.
40168         * io/sys/poll.h: Likewise.
40169         * io/sys/stat.h: Likewise.
40170         * io/sys/statfs.h: Likewise.
40171         * io/sys/statvfs.h: Likewise.
40172         * io/utime.h: Likewise.
40173         * libio/bits/stdio.h: Likewise.
40174         * libio/bits/stdio2.h: Likewise.
40175         * libio/libio.h: Likewise.
40176         * libio/libioP.h: Likewise.
40177         * libio/stdio.h: Likewise.
40178         * locale/lc-ctype.c: Likewise.
40179         * locale/locale.h: Likewise.
40180         * login/utmp.h: Likewise.
40181         * malloc/arena.c: Likewise.
40182         * malloc/malloc.c: Likewise.
40183         * malloc/malloc.h: Likewise.
40184         * malloc/mcheck.c: Likewise.
40185         * malloc/mtrace.c: Likewise.
40186         * math/bits/mathcalls.h: Likewise.
40187         * math/fenv.h: Likewise.
40188         * math/math_private.h: Likewise.
40189         * misc/bits/error.h: Likewise.
40190         * misc/bits/syslog.h: Likewise.
40191         * misc/err.h: Likewise.
40192         * misc/error.h: Likewise.
40193         * misc/fstab.h: Likewise.
40194         * misc/mntent.h: Likewise.
40195         * misc/regexp.h: Likewise.
40196         * misc/search.h: Likewise.
40197         * misc/sgtty.h: Likewise.
40198         * misc/sys/mman.h: Likewise.
40199         * misc/sys/syslog.h: Likewise.
40200         * misc/sys/uio.h: Likewise.
40201         * misc/sys/xattr.h: Likewise.
40202         * misc/ttyent.h: Likewise.
40203         * nis/rpcsvc/ypclnt.h: Likewise.
40204         * nss/nss.h: Likewise.
40205         * posix/bits/unistd.h: Likewise.
40206         * posix/fnmatch.h: Likewise.
40207         * posix/glob.h: Likewise.
40208         * posix/sched.h: Likewise.
40209         * posix/spawn.h: Likewise.
40210         * posix/sys/wait.h: Likewise.
40211         * posix/unistd.h: Likewise.
40212         * posix/wordexp.h: Likewise.
40213         * pwd/pwd.h: Likewise.
40214         * resolv/netdb.h: Likewise.
40215         * resource/sys/resource.h: Likewise.
40216         * rt/aio.h: Likewise.
40217         * rt/bits/mqueue2.h: Likewise.
40218         * rt/mqueue.h: Likewise.
40219         * shadow/shadow.h: Likewise.
40220         * signal/signal.h: Likewise.
40221         * socket/send.c: Likewise.
40222         * socket/sendto.c: Likewise.
40223         * socket/sys/socket.h: Likewise.
40224         * stdio-common/printf.h: Likewise.
40225         * stdlib/bits/stdlib.h: Likewise.
40226         * stdlib/fmtmsg.h: Likewise.
40227         * stdlib/monetary.h: Likewise.
40228         * stdlib/stdlib.h: Likewise.
40229         * stdlib/ucontext.h: Likewise.
40230         * streams/stropts.h: Likewise.
40231         * string/argz.h: Likewise.
40232         * string/bits/string2.h: Likewise.
40233         * string/string.h: Likewise.
40234         * string/strings.h: Likewise.
40235         * sunrpc/rpc/auth.h: Likewise.
40236         * sunrpc/rpc/auth_des.h: Likewise.
40237         * sunrpc/rpc/clnt.h: Likewise.
40238         * sunrpc/rpc/netdb.h: Likewise.
40239         * sunrpc/rpc/pmap_clnt.h: Likewise.
40240         * sunrpc/rpc/xdr.h: Likewise.
40241         * sysdeps/generic/inttypes.h: Likewise.
40242         * sysdeps/generic/net/if.h: Likewise.
40243         * sysdeps/generic/sys/swap.h: Likewise.
40244         * sysdeps/gnu/net/if.h: Likewise.
40245         * sysdeps/gnu/utmpx.h: Likewise.
40246         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
40247         * sysdeps/i386/i486/bits/string.h: Likewise.
40248         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
40249         * sysdeps/s390/bits/string.h: Likewise.
40250         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
40251         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
40252         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
40253         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
40254         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
40255         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
40256         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
40257         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
40258         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
40259         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
40260         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
40261         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
40262         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
40263         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
40264         * sysdeps/unix/sysv/linux/readv.c: Likewise.
40265         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
40266         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
40267         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40268         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
40269         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
40270         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40271         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
40272         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
40273         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
40274         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
40275         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
40276         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
40277         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40278         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
40279         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
40280         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
40281         * sysvipc/sys/ipc.h: Likewise.
40282         * sysvipc/sys/msg.h: Likewise.
40283         * sysvipc/sys/sem.h: Likewise.
40284         * sysvipc/sys/shm.h: Likewise.
40285         * termios/termios.h: Likewise.
40286         * time/sys/time.h: Likewise.
40287         * time/time.h: Likewise.
40288         * wcsmbs/bits/wchar2.h: Likewise.
40289         * wcsmbs/uchar.h: Likewise.
40290         * wcsmbs/wchar.h: Likewise.
40291         * wctype/wctype.h: Likewise.
40292
40293         [BZ #13551]
40294         * Makeconfig: Remove all but ELF support including AIX support.
40295         * Makerules: Likewise.
40296         * config.h.in: Likewise.
40297         * config.make.in: Likewise.
40298         * configure: Likewise.
40299         * configure.in: Likewise.
40300         * csu/Makefile: Likewise.
40301         * csu/version.c: Likewise.
40302         * debug/Makefile: Likewise.
40303         * dlfcn/Makefile: Likewise.
40304         * elf/Makefile: Likewise.
40305         * extra-lib.mk: Likewise.
40306         * iconv/Makefile: Likewise.
40307         * include/libc-symbols.h: Likewise.
40308         * include/shlib-compat.h: Likewise.
40309         * resolv/Makefile: Likewise.
40310         * resolv/res_libc.c: Likewise.
40311         * rt/Makefile: Likewise.
40312         * sysdeps/i386/asm-syntax.h: Likewise.
40313         * sysdeps/i386/sysdep.h: Likewise.
40314         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40315         * sysdeps/mach/sysdep.h: Likewise.
40316         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
40317         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
40318         * sysdeps/s390/asm-syntax.h: Likewise.
40319         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40320         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40321         * sysdeps/sh/sysdep.h: Likewise.
40322         * sysdeps/unix/sparc/sysdep.h: Likewise.
40323         * sysdeps/wordsize-32/divdi3.c: Likewise.
40324         * sysdeps/x86_64/sysdep.h: Likewise.
40325
40326         * argp/Versions: Remove _argp_unlock_xxx.
40327
40328         [BZ #13559]
40329         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
40330         * abilist/libBrokenLocale.abilist: Likewise.
40331         * abilist/libanl.abilist: Likewise.
40332         * abilist/libc.abilist: Likewise.
40333         * abilist/libcrypt.abilist: Likewise.
40334         * abilist/libdl.abilist: Likewise.
40335         * abilist/libm.abilist: Likewise.
40336         * abilist/libnsl.abilist: Likewise.
40337         * abilist/libpthread.abilist: Likewise.
40338         * abilist/libresolv.abilist: Likewise.
40339         * abilist/librt.abilist: Likewise.
40340         * abilist/libthread_db.abilist: Likewise.
40341         * abilist/libutil.abilist: Likewise.
40342         * abilist/libnss_db.abilist: New file.
40343
40344         * scripts/abilist.awk: Add support for indirect functions.
40345
40346         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
40347
40348         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
40349
40350         * shlib-versions: Remove entries for ports architectures.
40351
40352         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
40353         files in ports.
40354         * elf/stackguard-macros.h: Remove support for IA-64.
40355         * elf/tst-auditmod1.c: Likewise.
40356         * sysdeps/generic/ldsodefs.h: Likewise.
40357
40358         * sysdeps/unix/sysv/linux/configure.in: Ports should define
40359         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
40360         configure files.
40361
40362         [BZ #13552]
40363         * configure.in: Remove --enable-omitfp support.
40364         * FAQ.in: Adjust.
40365         * config.make.in: Likewise.
40366         * Makeconfig: Likewise.
40367         * manual/install.texi: Likewise.
40368
40369         In case anyone cares, the IA-64 architecture could move to ports.
40370         * sysdeps/ia64/*: Removed.
40371         * sysdeps/unix/sysv/linux/ia64/*: Removed.
40372         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
40373
40374         [BZ #13555]
40375         * configure.in: Remove entries for unsupported architectures.
40376
40377         [BZ #13533]
40378         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
40379         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
40380         routines.
40381         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
40382         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
40383         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
40384         fall back to using wcrtomb.
40385         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
40386         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
40387         renaming.
40388         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
40389         * wcsmbs/tst-c16c32-1.c: New file.
40390
40391         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
40392         local variable.
40393
40394         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
40395
40396         * elf/tst-unique3.cc: Add explicit declaration of gets.
40397         * elf/tst-unique3lib.cc: Likewise.
40398         * elf/tst-unique3lib2.cc: Likewise.
40399         * elf/tst-unique4.cc: Likewise.
40400
40401         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
40402
40403 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
40404
40405         [BZ #13566]
40406         * assert/assert.h (static_assert): Don't define for C++.
40407         * libio/stdio.h (gets): Do declare for C++ <= C++11.
40408         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
40409
40410 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
40411
40412         * iconv/loop.c (single loop): Fix assertion in storing of
40413         remaining bytes.
40414
40415         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
40416
40417 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
40418
40419         * posix/getconf.c: Update copyright year.
40420         * nss/getent.c: Likewise.
40421         * nss/makedb.c: Likewise.
40422         * iconv/iconvconfig.c: Likewise.
40423         * iconv/iconv_prog.c: Likewise.
40424         * elf/ldconfig.c: Likewise.
40425         * elf/pldd.c: Likewise.
40426         * elf/sotruss.ksh: Likewise.
40427         * catgets/gencat.c: Likewise.
40428         * csu/version.c: Likewise.
40429         * elf/ldd.bash.in: Likewise.
40430         * elf/sprof.c (print_version): Likewise.
40431         * locale/programs/locale.c: Likewise.
40432         * locale/programs/localedef.c: Likewise.
40433         * login/programs/pt_chown.c: Likewise.
40434         * nscd/nscd.c (print_version): Likewise.
40435         * debug/xtrace.sh: Likewise.
40436         * malloc/memusage.sh: Likewise.
40437         * malloc/mtrace.pl: Likewise.
40438         * debug/catchsegv.sh: Likewise.
40439
40440 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
40441
40442         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
40443         pure attribute.
40444
40445 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
40446
40447         [BZ #13533]
40448         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
40449         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
40450         transformations.
40451         * iconv/gconv_int.h: Likewise.
40452         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
40453         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
40454         from libc for GLIBC_2.16.
40455         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
40456         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
40457         * wcsmbs/uchar.h: Really define mbstate_t.
40458         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
40459         * wcsmbs/c16rtomb.c: New file.
40460         * wcsmbs/mbrtoc16.c: New file.
40461         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
40462         for C/POSIX locale.
40463         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
40464         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
40465
40466         * wcsmbs/wchar.h: Add missing __restrict.
40467
40468 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40469
40470         [BZ #13532]
40471         * time/Makefile (routines): Add timespec_get.
40472         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
40473         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
40474         timespec for ISO C11.
40475         * time/timespec_get.c: New file.
40476         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
40477         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
40478
40479         [BZ #13531]
40480         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
40481         * stdlib/stdlib.h: Declare aligned_alloc.
40482         * Versions.def: Add GLIBC_2.16 for libc.
40483         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
40484
40485         [BZ 13527]
40486         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
40487         ISO C11.
40488
40489         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
40490         code.
40491
40492         [BZ #13528]
40493         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
40494
40495         [BZ #13529]
40496         * assert/assert.h (static_assert): Define.
40497
40498         * version.h: Update for 2.16 development version.
40499
40500         [BZ #13526]
40501         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
40502         _ISOC11_SOURCE.
40503
40504         * version.h (RELEASE): Bump for 2.15 release.
40505         * include/features.h (__GLIBC_MINOR__): Bump to 15.
40506
40507         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
40508         Patch by Marek Polacek <mpolacek@redhat.com>.
40509
40510         * bits/byteswap.h: Protect long long constants with __extension__.
40511         * sysdeps/i386/bits/byteswap.h: Likewise.
40512         * sysdeps/ia64/bits/byteswap.h: Likewise.
40513         * sysdeps/s390/bits/byteswap.h: Likewise.
40514         * sysdeps/x86_64/bits/byteswap.h: Likewise.
40515
40516 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40517
40518         [BZ #13540]
40519         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
40520         destination buffer.
40521         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
40522
40523 2011-12-23  Marek Polacek  <polacek@redhat.com>
40524
40525         * elf/dl-addr.c (determine_info): Add inline keyword.
40526         * elf/tst-auditmod4b.c (check_avx): Likewise.
40527         * elf/tst-auditmod6b.c (check_avx): Likewise.
40528         * elf/tst-auditmod6c.c (check_avx): Likewise.
40529         * elf/tst-auditmod7b.c (check_avx): Likewise.
40530
40531 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40532
40533         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
40534         !__SSE_MATH__.
40535
40536 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40537
40538         [BZ #13540]
40539         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
40540         processing for last bytes.
40541
40542 2011-08-06  Bruno Haible  <bruno@clisp.org>
40543
40544         [BZ #13061]
40545         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
40546         U+0385, not to U+1FEE.
40547
40548         [BZ #13062]
40549         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
40550         entry for U+00A5 U+0301.
40551
40552 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40553
40554         [BZ #13166]
40555         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
40556         buffer for the output is too small.
40557
40558         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
40559         optimization.
40560
40561         [BZ #13185]
40562         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
40563         SSE flags if possible.
40564
40565 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40566
40567         [BZ #13540]
40568         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
40569         processing for last bytes.
40570
40571 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
40572
40573         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
40574         (syscall-list-default-options, syscall-list-default-condition)
40575         (syscall-list-includes): Define.
40576         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
40577         list of ABIs and options and #if conditions for each ABI.  Do not
40578         handle common syscalls between ABIs specially.
40579         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
40580         Remove.
40581         (syscall-list-variants, syscall-list-32bit-options)
40582         (syscall-list-32bit-condition, syscall-list-64bit-options)
40583         (syscall-list-64bit-condition): Define.
40584         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
40585         (syscall-list-variants, syscall-list-32bit-options)
40586         (syscall-list-32bit-condition, syscall-list-64bit-options)
40587         (syscall-list-64bit-condition): Define.
40588         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
40589         Remove.
40590         (syscall-list-variants, syscall-list-32bit-options)
40591         (syscall-list-32bit-condition, syscall-list-64bit-options)
40592         (syscall-list-64bit-condition): Define.
40593         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
40594         Remove.
40595         (syscall-list-variants, syscall-list-32bit-options)
40596         (syscall-list-32bit-condition, syscall-list-64bit-options)
40597         (syscall-list-64bit-condition): Define.
40598
40599 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40600
40601         * locale/iso-639.def: Add brx entry.
40602
40603         [BZ #13328]
40604         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
40605         Proposed by Mariusz_Cukr <marcukr@op.pl>.
40606
40607         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
40608         __feraiseexcept_renamed.
40609
40610 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40611
40612         [BZ #13538]
40613         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
40614         EPOLLET with unsigned values.
40615         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40616         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40617
40618         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
40619         to large cancellation.
40620         * math/s_cacoshf.c: Likewise.
40621         * math/s_cacoshl.c: Likewise.
40622
40623 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
40624
40625         [BZ #13305]
40626         [BZ #12786]
40627         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
40628         * math/s_cacoshf.c: Likewise.
40629         * math/s_cacoshl.c: Likewise.
40630
40631 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40632
40633         [BZ #13439]
40634         * iconv/gconv.h: Define __GCONV_SWAP.
40635         * iconvdata/unicode.c: The swap bit must be stored in __flags.
40636         * iconvdata/utf-16.c: Likewise.
40637         * iconvdata/utf-32.c: Likewise.
40638
40639 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
40640
40641         [BZ #13524]
40642         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
40643         numerator after shifting it by one limb.
40644
40645 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
40646
40647         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
40648         under [__USE_EXTERN_INLINES].
40649
40650 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40651
40652         [BZ #13446]
40653         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
40654
40655 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40656
40657         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
40658         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
40659         optimized code.
40660         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
40661         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
40662         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
40663         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
40664         for strncasecmp/strncasecmp_l compilation.
40665         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
40666         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
40667
40668 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
40669
40670         [BZ #13484]
40671         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
40672         of __asm__.
40673
40674 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40675
40676         [BZ #13506]
40677         * time/tzfile.c (__tzfile_read): Check values from file header.
40678
40679 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
40680
40681         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
40682         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
40683         * powerpc/powerpc32/dl-start.S: Likewise.
40684         * powerpc/powerpc32/elf/start.S: Likewise.
40685         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40686         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
40687         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
40688         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
40689         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
40690         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
40691         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
40692         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
40693         * powerpc/powerpc32/fpu/s_round.S: Likewise.
40694         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
40695         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
40696         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
40697         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
40698         * powerpc/powerpc32/memset.S: Likewise.
40699         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
40700         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
40701         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
40702         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
40703         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
40704         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
40705         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
40706         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
40707         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
40708         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
40709         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
40710         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40711         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40712
40713 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40714
40715         * math/libm-test.inc: Added more nearbyint tests.
40716         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
40717         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
40718         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
40719         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
40720
40721 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
40722
40723         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
40724         FD_CLOEXEC.
40725
40726 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40727
40728         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
40729         Add wcscpy-ssse3 wcscpy-c.
40730         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
40731         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
40732         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
40733         * sysdeps/x86_64/wcschr.S: New file.
40734         * sysdeps/x86_64/wcsrchr.S: New file.
40735         * string/test-strcmp.c: Remove checking of wcscmp function for
40736         wrong alignments.
40737         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
40738         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
40739         wcsrchr-sse2 wcsrchr-c.
40740         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
40741         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
40742         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
40743         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
40744         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
40745         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
40746         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
40747         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
40748         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
40749         * wcsmbc/wcschr.c (WCSCHR): New macro.
40750
40751 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40752
40753         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
40754         * wcsmbs/test-wcsrchr.c: New file.
40755         * string/test-strrchr.c: Add wcsrchr support.
40756         (WIDE): New macro.
40757         * wcsmbs/test-wcscpy.c: New file.
40758         * string/test-strcpy.c: Add wcscpy support.
40759         (WIDE): New macro.
40760
40761 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
40762
40763         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
40764         the inner loop.
40765
40766 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
40767
40768         [BZ #13472]
40769         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
40770
40771 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
40772
40773         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
40774         Minor optimizations.
40775
40776         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
40777         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
40778         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
40779
40780 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
40781
40782         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
40783         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
40784         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
40785         for gcc to avoid warnings.
40786         * inet/Makefile (tests): Add tst-checks.
40787         * inet/tst-checks.c: New file.
40788
40789         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
40790         warning.
40791
40792         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
40793         __wmemcmp_sse2.
40794
40795         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
40796         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
40797
40798         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
40799
40800 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
40801
40802         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
40803         problem.
40804
40805         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
40806
40807 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
40808
40809         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
40810         conditional on GCC version.
40811         (__arch_compare_and_exchange_val_8_acq)
40812         (__arch_compare_and_exchange_val_16_acq)
40813         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
40814         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
40815         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
40816
40817 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
40818
40819         * sysdeps/sh/backtrace.c: New file.
40820
40821 2011-12-02  Andreas Schwab  <schwab@redhat.com>
40822
40823         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
40824         parenthesis.
40825
40826 2011-12-01  Andreas Schwab  <schwab@redhat.com>
40827
40828         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
40829         falling back to utime.
40830
40831 2011-11-30  Andreas Schwab  <schwab@redhat.com>
40832
40833         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
40834         expectations for float.
40835
40836 2011-11-29  Andreas Schwab  <schwab@redhat.com>
40837
40838         * locale/weight.h (findidx): Add parameter len.
40839         * locale/weightwc.h (findidx): Likewise.
40840         * posix/fnmatch_loop.c (FCT): Adjust caller.
40841         * posix/regcomp.c (build_equiv_class): Likewise.
40842         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
40843         * posix/regexec.c (check_node_accept_bytes): Likewise.
40844         * string/strcoll_l.c (STRCOLL): Likewise.
40845         * string/strxfrm_l.c (STRXFRM): Likewise.
40846
40847 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
40848
40849         * Makefile.in: Remove CVSOPT handling.
40850         * configure.in: Remove use of AC_REVISION.
40851         * iconvdata/Makefile (distribute): No need to filter out CVS.
40852         * scripts/list-sources.sh: Remove CVS, subversion and monotone
40853         handling.
40854
40855 2011-11-16  Andreas Schwab  <schwab@redhat.com>
40856
40857         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
40858         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
40859         [USE_AS_STRNCASECMP_L]: Likewise.
40860         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
40861         NO_TLS_DIRECT_SEG_REFS.
40862         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
40863         Fix argument offsets for non-PIC.
40864         [USE_AS_STRNCASECMP_L]: Likewise.
40865         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
40866         NO_TLS_DIRECT_SEG_REFS.
40867
40868 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40869
40870         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
40871         O_CLOEXEC.
40872         * locale/loadlocale.c (_nl_load_locale): Likewise.
40873
40874 2011-11-15  Andreas Schwab  <schwab@redhat.com>
40875
40876         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
40877         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
40878         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
40879         (SYSCALL_GETTIME): Set errno on error.
40880
40881         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
40882         count references to noai6ai_cached.
40883
40884 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40885
40886         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
40887
40888         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
40889         FD_CLOEXEC for /proc/self/maps.
40890
40891         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
40892         FD_CLOEXEC for /proc/meminfo.
40893
40894         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
40895         gai.conf.
40896
40897         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
40898         FD_CLOEXEC for given file.
40899
40900         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
40901
40902         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
40903         FD_CLOEXEC for /etc/hosts.
40904         (_gethtent): Likewise.
40905
40906         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
40907
40908         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
40909         cancellation and set FD_CLOEXEC for /etc/netgroup.
40910
40911         * nss/nss_files/files-key.c (search): Don't allow cancellation when
40912         reading /etc/publickey.
40913
40914         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
40915         allow cancellation when reading /etc/group.
40916
40917         * nss/nss_files/files-alias.c (internal_setent): Don't allow
40918         cancellation.
40919         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
40920
40921         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
40922         when using data file.
40923
40924         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
40925
40926         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
40927         (write_nis_obj): Use "c" and "e" in fopen.
40928
40929         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
40930
40931         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
40932
40933         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
40934
40935         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
40936
40937         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
40938         locale.alias.
40939
40940         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
40941
40942         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
40943
40944         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
40945
40946         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
40947         file parsing and set FD_CLOEXEC.
40948
40949 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40950
40951         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
40952
40953 2011-11-14  Andreas Schwab  <schwab@redhat.com>
40954
40955         * malloc/arena.c (arena_get2): Don't call reused_arena when
40956         _int_new_arena failed.
40957
40958 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40959
40960         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
40961         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
40962         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
40963         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40964         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40965         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
40966         to compile strcasecmp and strncasecmp.
40967         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
40968         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
40969
40970         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
40971
40972 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
40973
40974         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
40975         locale-defines.sym to gen-as-const-headers.
40976         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
40977         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
40978         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
40979         to compile strcasecmp and strncasecmp.
40980         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
40981         strcasecmp_l and strncasecmp_l.
40982         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
40983         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
40984         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
40985         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
40986         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
40987         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
40988         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
40989         * sysdeps/i386/i686/multiarch/strncase.S: New file.
40990         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
40991         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
40992         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
40993
40994 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
40995
40996         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
40997         result of SYSDEP_GETTIME_CPU to retval.
40998         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
40999         parameter list to macro.  Remove trailing semicolon.  Adjust users.
41000
41001         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
41002         variable.
41003
41004         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
41005         mantissa words.
41006         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
41007
41008         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
41009         from unused variable.
41010
41011         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
41012         DWARF definitions.
41013         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
41014         for assembling.
41015
41016         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
41017         over namespaces.
41018
41019         * sunrpc/rpc_prot.c (rejected): Fix case value.
41020
41021         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
41022         unsigned long long int to avoid warnings in shift.
41023
41024         * posix/regex_internal.c (re_string_reconstruct): Actually use result
41025         of use of trans.
41026         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
41027         variable tmp.
41028
41029         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
41030         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
41031         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
41032
41033         * nis/nis_table.c (nis_list): Use variable of correct type for
41034         result of __follow_path call.
41035
41036 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41037
41038         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
41039         of math functions ceil, trunc, floor, round, and sqrt, when
41040         avaliable on the platform.
41041         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
41042         name clash.
41043         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41044         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41045         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41046
41047 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
41048
41049         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
41050         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
41051
41052 2011-11-11  Roland McGrath  <roland@hack.frob.com>
41053
41054         * include/unistd.h: Fix __readlink return type.
41055         Reported by Chris Metcalf <cmetcalf@tilera.com>.
41056
41057 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
41058
41059         * stdlib/ucontext.h: Undo last change for makecontext.
41060
41061 2011-11-11  Andreas Schwab  <schwab@redhat.com>
41062
41063         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
41064
41065         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
41066         * setjmp/setjmp.h: Mark functions as non-leaf.
41067         * setjmp/bits/setjmp2.h: Likewise.
41068         * stdlib/ucontext.h: Likewise.
41069
41070 2011-11-10  Andreas Schwab  <schwab@redhat.com>
41071
41072         * malloc/arena.c (_int_new_arena): Don't increment narenas.
41073         (reused_arena): Don't check arena limit.
41074         (arena_get2): Atomically check arena limit.
41075
41076 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
41077
41078         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
41079         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
41080
41081         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
41082         instructions.
41083
41084 2011-11-07  Andreas Schwab  <schwab@redhat.com>
41085
41086         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
41087         handler when locking.
41088
41089         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41090         Fix size of allocated buffer.
41091
41092 2011-11-04  Andreas Schwab  <schwab@redhat.com>
41093
41094         [BZ #10103]
41095         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
41096         declarations for long double functions.
41097         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
41098
41099         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
41100
41101 2011-11-03  Andreas Schwab  <schwab@redhat.com>
41102
41103         * nscd/nscd.c (main): Don't start AVC thread until credentials are
41104         installed.
41105
41106         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
41107         is disabled.
41108
41109 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41110
41111         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
41112
41113 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
41114
41115         * include/alloca.h (stackinfo_alloca_round): Define.
41116         (extend_alloca): Use it.
41117         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
41118         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
41119         here.
41120
41121         * scripts/check-local-headers.sh: Ignore libaudit.h.
41122
41123         * nscd/Makefile (extra-objs): Make recursively expanded.
41124
41125 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
41126
41127         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
41128         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
41129
41130         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
41131         * posix/tst-rfc3484-2.c: Likewise.
41132         * posix/tst-rfc3484-3.c: Likewise.
41133
41134         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
41135         process_vm_writev.
41136         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
41137         process_vm_writev.
41138         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
41139         process_vm_writev from libc using GLIBC_2.15 version.
41140
41141         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
41142
41143 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
41144
41145         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
41146         stack usage.
41147
41148 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
41149
41150         [BZ #13367]
41151         * nss/getent.c (initgroups_keys): Show error message in case no group
41152         names are given.
41153
41154         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
41155         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
41156         __bump_nl_timestamp.
41157         * nscd/connections (nscd_init): When host database is served open
41158         netlink socket and request notification about configuration changes.
41159         (main_loop_poll): Track netlink file descriptor and bump timestamp
41160         in case data becomes available.
41161         (main_loop_epoll): Likewise.
41162         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
41163         (database_pers_head): Add extra_data fileds.
41164         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
41165         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
41166         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
41167         Adjust caller.
41168         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
41169         in6ai data, call __free_in6ai.
41170         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
41171         Add -DHAVE_NETLINK.
41172         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
41173         interface information.  Reuse previous data if netlink timestamp
41174         is not changed.
41175         (__bump_nl_timestamp): New function.
41176         (__free_in6ai): New function.
41177
41178 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
41179
41180         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
41181         close_not_cancel_no_status here.
41182         (__check_pf): Reorganize code a bit to not call close twice if OOM.
41183
41184 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41185
41186         [BZ #13276]
41187         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
41188         return value.
41189
41190         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
41191         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
41192         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
41193
41194 2011-07-03  Andreas Jaeger  <aj@suse.de>
41195
41196         [BZ #10709]
41197         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
41198         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
41199         * math/libm-test.inc (sin_test): Add test case.
41200
41201 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41202
41203         [BZ #13337]
41204         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
41205         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41206
41207         * elf/chroot_canon.c (chroot_canon): Cleanups.
41208
41209         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
41210
41211         [BZ #13335]
41212         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
41213         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41214
41215         * string/test-strchr.c: Make usable for strchrnul testing.
41216         * string/test-strchrnul.c: New file.
41217         * string/Makefile (strop-tests): Add strchrnul.
41218
41219         * po/it.po: Update from translation team.
41220         * po/es.po: Likewise.
41221
41222 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
41223
41224         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
41225         the three constants needed as parameters.  Drop the others.
41226         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
41227         __m128i_strloadu_tolower.
41228         Create and initialize variable zero and use it in all the places
41229         where _mm_setzero_si128 was used.
41230
41231         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
41232         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
41233         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
41234         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
41235         anymore.
41236         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
41237         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
41238         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
41239         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
41240         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
41241         __mpranred, __mptan.
41242         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
41243         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
41244         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
41245         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
41246         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
41247         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
41248         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
41249         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
41250         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
41251
41252 2011-10-28  Andreas Schwab  <schwab@redhat.com>
41253
41254         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
41255         redefine if SHARED.
41256         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
41257
41258         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
41259         wide char related routines to wcsmbs subdir.
41260
41261 2011-10-27  Andreas Schwab  <schwab@redhat.com>
41262
41263         [BZ #13344]
41264         * misc/sys/cdefs.h (__THROWNL): Define.
41265         * posix/unistd.h: Use __THREADNL instead of __THREAD
41266         for memory synchronization functions.
41267
41268 2011-10-26  Roland McGrath  <roland@hack.frob.com>
41269
41270         [BZ #13349]
41271         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
41272         doesn't exist.
41273         * manual/stdio.texi (Obstack Streams): Node removed.
41274
41275 2011-10-26  Andreas Schwab  <schwab@redhat.com>
41276
41277         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
41278         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41279         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41280
41281         * math/math_private.h (math_force_eval): Allow non-addressable
41282         arguments.
41283         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
41284
41285 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41286
41287         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
41288         file is not needed.
41289
41290         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
41291         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
41292         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
41293         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41294         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41295         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41296         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41297         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
41298         Add AVX variants.
41299         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
41300         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
41301         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
41302         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
41303         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
41304         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
41305         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
41306         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
41307         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
41308         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
41309         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
41310         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
41311         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
41312         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
41313         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
41314         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
41315         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
41316         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
41317         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
41318
41319         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
41320         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
41321
41322         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
41323         place.  Use VEX encoding when compiling for AVX.
41324
41325 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41326
41327         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
41328         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
41329
41330         * string/test-strchr.c (do_test): Don't generate NUL bytes.
41331
41332 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41333
41334         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
41335         useless if() expression.
41336         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41337         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
41338         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
41339         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41340         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
41341         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41342         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41343         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41344         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
41345         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41346         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41347         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41348         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
41349         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41350         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
41351         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41352         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41353         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41354         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
41355
41356         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
41357
41358 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41359
41360         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
41361         condition.
41362         * elf/dl-fini.c (_dl_sort_fini): Likewise.
41363
41364 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41365
41366         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
41367         .text section.  Avoid duplicate constants.
41368         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
41369         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41370         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41371         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41372         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41373         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41374         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41375         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41376         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
41377         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
41378         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
41379         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
41380         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
41381         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
41382         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
41383         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
41384         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
41385         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
41386         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
41387         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41388         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
41389         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
41390         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
41391         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
41392         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
41393         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
41394         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
41395         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
41396         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
41397         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
41398         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
41399         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
41400         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
41401         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
41402         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
41403         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
41404         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
41405         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
41406         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
41407         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
41408         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
41409         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
41410         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
41411         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
41412         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
41413
41414 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
41415
41416         * sysdeps/x86_64/dla.h: Move to ...
41417         * sysdeps/x86_64/fpu/dla.h: ...here.
41418         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
41419         situations.  Use __builtin_fma only for gcc 4.6 and up.
41420
41421         * config.make.in: Add have-mfma4 entry.
41422         * configure.in: Substitute libc_cv_cc_fma4.
41423         * math/Makefile (dbl-only-routines): Add sincostab.
41424         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
41425         Use __sincostab not sincos.
41426         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
41427         name is a macro.
41428         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41429         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41430         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41431         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
41432         using __copysign.
41433         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
41434         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
41435         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
41436         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
41437         and __inv.
41438         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
41439         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
41440         __copysign.
41441         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
41442         define aliases when function name is a macro.
41443         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
41444         sysdeps/ieee754/dbl-64/sincos.tbl.
41445         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
41446         fma4-enabled routines.
41447         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
41448         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
41449         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
41450         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
41451         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
41452         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
41453         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
41454         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
41455         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
41456         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
41457         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
41458         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
41459         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
41460         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
41461         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
41462         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
41463         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
41464         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
41465         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
41466         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
41467         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
41468         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
41469         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
41470         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
41471         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
41472         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
41473         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
41474         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
41475         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
41476         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
41477
41478         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
41479         rename.
41480         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41481         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41482         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41483         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41484         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41485         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41486         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41487         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41488
41489 2011-10-24  Andreas Schwab  <schwab@redhat.com>
41490
41491         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
41492
41493 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41494
41495         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
41496
41497         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
41498         prediction.
41499         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
41500
41501         * string/strnlen.c: Don't define STRNLEN, reverse logic.
41502         Remove unused variable magic_bits.
41503         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
41504
41505         * string/strnlen.c: Define and use STRNLEN macro.
41506         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
41507         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
41508         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
41509         * wcsmbs/wcslen.c: Define and use WCSLEN.
41510         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
41511         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
41512         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
41513         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
41514         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
41515         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
41516         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41517
41518 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41519
41520         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41521         strnlen-sse2-no-bsf.
41522         Rename strlen-no-bsf to strlen-sse2-no-bsf.
41523         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
41524         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
41525         Add strnlen support.
41526         (USE_AS_STRNLEN): New macro.
41527         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
41528         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
41529         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
41530         * sysdeps/x86_64/wcslen.S: New file.
41531
41532 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
41533
41534         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
41535         XMM-moves are used for copying on small sizes.
41536
41537 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41538
41539         * wcsmbs/Makefile (strop-tests): Add wcschr.
41540         * wcsmbs/test-wcschr.c: New file.
41541         * string/test-strchr.c: Update.
41542         Add wcschr support.
41543         (WIDE): New macro.
41544
41545 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41546
41547         * wcsmbs/Makefile (strop-tests): Add wcslen.
41548         * wcsmbs/test-wcslen.c: New file.
41549         * string/test-strlen.c: Update.
41550         Add wcslen support.
41551         (WIDE): New macro.
41552
41553 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41554
41555         * po/it.po: Update from translation team.
41556
41557 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41558
41559         * sysdeps/x86_64/wcscmp.S: Update.
41560         Fix wrong comparison semantics.
41561         wcscmp shall use signed comparison not unsigned.
41562         Don't use substraction to avoid overflow bug.
41563         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
41564         * wcsmbc/wcscmp.c: Likewise.
41565         * string/test-strcmp.c: Likewise.
41566         Add new tests to check cases with negative values.
41567
41568 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41569
41570         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
41571         * sysdeps/x86_64/dla.h: ...here.  New file.
41572         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
41573         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41574         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41575         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41576         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41577         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41578         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41579         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41580         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41581
41582 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
41583
41584         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
41585         __ynl_finite aliases.
41586
41587 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41588
41589         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41590
41591         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
41592         define DLA_FMA.
41593         [DLA_FMA] (EMULV): Use DLA_FMA.
41594         [DLA_FMA] (MUL12): Use EMULV.
41595         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
41596         that are not needed.
41597         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41598         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41599         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41600         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41601         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41602         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41603         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41604
41605 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
41606
41607         * math/s_nan.c: Undef __nan.
41608         * math/s_nanf.c: Undef __nanf.
41609         * math/s_nanl.c: Undef __nanl.
41610         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
41611         "math_private.h".
41612
41613 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41614
41615         * math/s_catan.c: Add branch predictions.
41616         * math/s_catanf.c: Likewise.
41617         * math/s_catanh.c: Likewise.
41618         * math/s_catanhf.c: Likewise.
41619         * math/s_catanhl.c: Likewise.
41620         * math/s_catanl.c: Likewise.
41621         * math/s_cexp.c: Likewise.
41622         * math/s_cexpf.c: Likewise.
41623         * math/s_cexpl.c: Likewise.
41624         * math/s_clog.c: Likewise.
41625         * math/s_clog10.c: Likewise.
41626         * math/s_clog10f.c: Likewise.
41627         * math/s_clog10l.c: Likewise.
41628         * math/s_clogf.c: Likewise.
41629         * math/s_clogl.c: Likewise.
41630         * math/s_csqrt.c: Likewise.
41631         * math/s_csqrtf.c: Likewise.
41632         * math/s_csqrtl.c: Likewise.
41633         * math/s_ctanf.c: Likewise.
41634         * math/s_ctanh.c: Likewise.
41635         * math/s_ctanhf.c: Likewise.
41636         * math/s_ctanhl.c: Likewise.
41637         * math/s_ctanl.c: Likewise.
41638
41639         * math/math_private.h: Define __nan, __nanf, __nanl.
41640         * math/s_cacosh.c: Include <math_private.h>.
41641         * math/s_cacoshl.c: Likewise.
41642         * math/s_casinh.c: Likewise.
41643         * math/s_casinhf.c: Likewise.
41644         * math/s_casinhl.c: Likewise.
41645         * math/s_ccos.c: Rely entire on ccosh.
41646         * math/s_ccosf.c: Rely entire on ccoshf.
41647         * math/s_ccosl.c: Rely entirely on ccoshl.
41648         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
41649         Remove tests for FE_INVALID.
41650         * math/s_ccoshf.c: Likewise.
41651         * math/s_ccoshl.c: Likewise.
41652         * math/s_csin.c: Likewise.
41653         * math/s_csinf.c: Likewise.
41654         * math/s_csinh.c Likewise.
41655         * math/s_csinhf.c: Likewise.
41656         * math/s_csinhl.c: Likewise.
41657         * math/s_csinl.c: Likewise.
41658         * math/s_ctan.c: Likewise.
41659         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
41660         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
41661         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
41662
41663 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
41664
41665         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
41666         compilation problems.
41667
41668         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
41669         __builtin_expect.
41670
41671 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
41672
41673         * sysdeps/i386/configure.in: Test for -mfma4 option.
41674         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
41675         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
41676         COMMON_CPUID_INDEX_80000001.
41677         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
41678         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
41679         use it if FMA3 is not supported.
41680         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
41681
41682         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
41683         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
41684
41685 2011-10-20  Andreas Schwab  <schwab@redhat.com>
41686
41687         [BZ #12892]
41688         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
41689         it would create a cycle with a link time dependency.
41690
41691 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
41692
41693         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
41694         instruction.
41695         * string/Makefile (strop-tests): Add rawmemchr.
41696         * string/test-rawmemchr.c: New file.
41697
41698         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
41699         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
41700         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
41701         when compiling str{,n}casecmp and when AVX is available.  Hook up
41702         new optimized code in initializers.
41703
41704 2011-10-19  Andreas Schwab  <schwab@redhat.com>
41705
41706         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
41707         __feraiseexcept instead of feraiseexcept.
41708
41709 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
41710
41711         * math/math_private.h: Define defaults for libc_fetestexcept and
41712         libc_feupdateenv.
41713         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
41714         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
41715         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41716         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41717         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
41718         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41719         libc_fetestexcept and libc_feupdateenv.
41720
41721         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
41722         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
41723         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
41724         * sysdeps/x86_64/fpu/math_private.h: Define special version of
41725         libc_feholdexcept_setround.
41726
41727         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
41728         Add s_nearbyint-c and s_nearbyintf-c.
41729         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
41730         nearbyintf inlines.
41731         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
41732         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
41733         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
41734         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
41735
41736         * math/math_private.h: Define defaults for libc_fegetround,
41737         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
41738         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
41739         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
41740         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
41741         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
41742         standard functions.
41743         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41744         Remove comments and hacks for old compiler versions.
41745         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41746         libc_fegetround, libc_fesetround, libc_feholdexcept, and
41747         libc_feholdexceptl.
41748
41749 2011-10-18  Andreas Schwab  <schwab@redhat.com>
41750
41751         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
41752         (__feraiseexcept_renamed): Add __NTH.
41753         (feraiseexcept): Add __NTH.  Rename local variables to fix
41754         namespace violations.
41755
41756 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
41757
41758         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
41759
41760         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
41761
41762         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
41763         recently added interfaces.
41764         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
41765
41766         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
41767         about macro parameter expansion.
41768
41769         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
41770         __NO_MATH_INLINES is defined.  Cleanups.
41771
41772         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
41773         and __floorf is target has SSE4.1.
41774         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
41775         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
41776         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
41777         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
41778
41779         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
41780         name.
41781         (floorf): Likewise.
41782
41783         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
41784
41785 2011-10-17  Andreas Schwab  <schwab@redhat.com>
41786
41787         * misc/sys/cdefs.h: Fix last change.
41788
41789         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
41790         database lookup.
41791
41792 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
41793
41794         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
41795
41796         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
41797         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41798         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
41799         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41800         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41801         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
41802         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41803         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41804         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
41805         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
41806         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
41807         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
41808         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
41809         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
41810         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
41811         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
41812         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
41813         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
41814         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
41815         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
41816         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
41817         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
41818
41819         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
41820         ceil, ceilf, floor, floorf.
41821
41822         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
41823         Perform IRELATIVE relocations last.
41824
41825         * elf/do-rel.h: Add another parameter nrelative, replacing the
41826         local variable with the same name.  Change name of the function
41827         to end in Rel or Rela (uppercase).
41828         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
41829         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
41830         elf_dynamic_do_##reloc function.
41831
41832 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41833
41834         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
41835         is sufficient, at least on modern CPUs.
41836
41837         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
41838
41839         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
41840         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
41841
41842         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
41843         __expl_finite.
41844         * math/bits/math-finite.h: Add entries for exp.
41845         * math/e_expl.c: Add __*_finite alias.
41846         * sysdeps/i386/fpu/e_exp.S: Likewise.
41847         * sysdeps/i386/fpu/e_expf.S: Likewise.
41848         * sysdeps/i386/fpu/e_expl.c: Likewise.
41849         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41850         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41851         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
41852         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
41853         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
41854         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
41855         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
41856
41857         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
41858         is sufficient, at least on modern CPUs.
41859
41860         * ctype/ctype-info.c (__ctype_init): Define.
41861         * include/ctype.h (__ctype_init): Declare.
41862         (__ctype_b_loc): The variable is always initialized.
41863         (__ctype_toupper_loc): Likewise.
41864         (__ctype_tolower_loc): Likewise.
41865         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
41866         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
41867
41868 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
41869
41870         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
41871
41872         * configure.in: Also look in $cxxmachine/include for C++ system
41873         headers.
41874
41875 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41876
41877         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
41878         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
41879         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
41880         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
41881         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
41882         (USE_AS_WMEMCMP): New macro.
41883         Fixing indents.
41884         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
41885         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
41886         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
41887         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
41888         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41889         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
41890         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
41891         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
41892         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
41893         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
41894         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
41895         (USE_AS_WMEMCMP): New macro.
41896         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
41897         * sysdeps/string/test-memcmp.c: Update.
41898         Fix simple_wmemcmp.
41899         Add new tests.
41900         * wcsmbs/wmemcmp.c: Update.
41901         (WMEMCMP): New macro.
41902         Fix overflow bug.
41903
41904 2011-10-12  Andreas Jaeger  <aj@suse.de>
41905
41906         [BZ #13268]
41907         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
41908
41909 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41910
41911         * libio/iofwide.c (do_length): Avoid warning.
41912
41913         * ctype/ctype.h (__isctype_f): Add missing __THROW.
41914
41915 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
41916
41917         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
41918
41919         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
41920         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
41921         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
41922         * sysdeps/i386/i686/fpu/e_log.S: New file.
41923         * sysdeps/i386/i686/fpu/e_logf.S: New file.
41924         * sysdeps/i386/i686/fpu/e_logl.S: New file.
41925
41926         * ctype/ctype.h: Add support for inlined isXXX functions when
41927         compiling C++ code.
41928
41929 2011-10-14  Andreas Schwab  <schwab@redhat.com>
41930
41931         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41932
41933         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
41934
41935 2011-10-13  Roland McGrath  <roland@hack.frob.com>
41936
41937         [BZ #13291]
41938         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
41939
41940 2011-10-13  Andreas Schwab  <schwab@redhat.com>
41941
41942         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
41943         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
41944         feraiseexcept.
41945
41946         * sysdeps/x86_64/memrchr.S: Check for zero size.
41947
41948         * string/stratcliff.c: Add memrchr tests.
41949
41950 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41951
41952         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41953         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
41954         rawmemchr-sse2 rawmemchr-sse2-bsf.
41955         * sysdeps/i386/i686/multiarch/memchr.S: New file.
41956         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
41957         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
41958         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
41959         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
41960         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
41961         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
41962         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
41963         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
41964         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
41965         * string/memrchr.c (MEMRCHR): New macro.
41966
41967 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
41968
41969         Add integration with gcc's -ffinite-math-only and optimize wrapper
41970         functions in libm.
41971         * Versions.def: Define GLIBC_2.15 version for libm.
41972         * math/Makefile (headers): Add bits/math-finite.h.
41973         * math/bits/math-finite.h: New file.
41974         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
41975         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
41976         * math/e_acoshl.c: Add __*_finite alias.
41977         * math/e_acosl.c: Likewise.
41978         * math/e_asinl.c: Likewise.
41979         * math/e_atan2l.c: Likewise.
41980         * math/e_atanhl.c: Likewise.
41981         * math/e_coshl.c: Likewise.
41982         * math/e_exp10.c: Likewise.
41983         * math/e_exp10f.c: Likewise.
41984         * math/e_exp10l.c: Likewise.
41985         * math/e_exp2l.c: Likewise.
41986         * math/e_fmodl.c: Likewise.
41987         * math/e_gammal_r.c: Likewise.
41988         * math/e_hypotl.c: Likewise.
41989         * math/e_j0l.c: Likewise.
41990         * math/e_j1l.c: Likewise.
41991         * math/e_jnl.c: Likewise.
41992         * math/e_lgammal_r.c: Likewise.
41993         * math/e_log10l.c: Likewise.
41994         * math/e_log2l.c: Likewise.
41995         * math/e_logl.c: Likewise.
41996         * math/e_powl.c: Likewise.
41997         * math/e_sinhl.c: Likewise.
41998         * math/e_sqrtl.c: Likewise.
41999         * math/e_scalb.c: Completely rewritten and optimized.
42000         * math/e_scalbf.c: Likewise.
42001         * math/e_scalbl.c: Likewise.
42002         * math/w_acos.c: Likewise.
42003         * math/w_acosf.c: Likewise.
42004         * math/w_acosl.c: Likewise.
42005         * math/w_acosh.c: Likewise.
42006         * math/w_acoshf.c: Likewise.
42007         * math/w_acoshl.c: Likewise.
42008         * math/w_asin.c: Likewise.
42009         * math/w_asinf.c: Likewise.
42010         * math/w_asinl.c: Likewise.
42011         * math/w_atan2.c: Likewise.
42012         * math/w_atan2f.c: Likewise.
42013         * math/w_atan2l.c: Likewise.
42014         * math/w_atanh.c: Likewise.
42015         * math/w_atanhf.c: Likewise.
42016         * math/w_atanhl.c: Likewise.
42017         * math/w_exp10.c: Likewise.
42018         * math/w_exp10f.c: Likewise.
42019         * math/w_exp10l.c: Likewise.
42020         * math/w_fmod.c: Likewise.
42021         * math/w_fmodf.c: Likewise.
42022         * math/w_fmodl.c: Likewise.
42023         * math/w_j0.c: Likewise.
42024         * math/w_j0f.c: Likewise.
42025         * math/w_j0l.c: Likewise.
42026         * math/w_j1.c: Likewise.
42027         * math/w_j1f.c: Likewise.
42028         * math/w_j1l.c: Likewise.
42029         * math/w_jn.c: Likewise.
42030         * math/w_jnf.c: Likewise.
42031         * math/w_log.c: Likewise.
42032         * math/w_logf.c: Likewise.
42033         * math/w_logl.c: Likewise.
42034         * math/w_log10.c: Likewise.
42035         * math/w_log10f.c: Likewise.
42036         * math/w_log10l.c: Likewise.
42037         * math/w_log2.c: Likewise.
42038         * math/w_log2f.c: Likewise.
42039         * math/w_log2l.c: Likewise.
42040         * math/w_pow.c: Likewise.
42041         * math/w_powf.c: Likewise.
42042         * math/w_powl.c: Likewise.
42043         * math/w_remainder.c: Likewise.
42044         * math/w_remainderf.c: Likewise.
42045         * math/w_remainderl.c: Likewise.
42046         * math/w_scalb.c: Likewise.
42047         * math/w_scalbf.c: Likewise.
42048         * math/w_scalbl.c: Likewise.
42049         * math/w_sqrt.c: Likewise.
42050         * math/w_sqrtf.c: Likewise.
42051         * math/w_sqrtl.c: Likewise.
42052         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
42053         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
42054         used.
42055         * math/math_private.h: Declare __kernel_standard_f.
42056         * math/w_cosh.c: Remove cruft and optimize a bit.
42057         * math/w_coshf.c: Likewise.
42058         * math/w_coshl.c: Likewise.
42059         * math/w_exp2.c: Likewise.
42060         * math/w_exp2f.c: Likewise.
42061         * math/w_exp2l.c: Likewise.
42062         * math/w_hypot.c: Likewise.
42063         * math/w_hypotf.c: Likewise.
42064         * math/w_hypotl.c: Likewise.
42065         * math/w_lgamma.c: Likewise.
42066         * math/w_lgamma_r.c: Likewise.
42067         * math/w_lgammaf.c: Likewise.
42068         * math/w_lgammaf_r.c: Likewise.
42069         * math/w_lgammal.c: Likewise.
42070         * math/w_lgammal_r.c: Likewise.
42071         * math/w_sinh.c: Likewise.
42072         * math/w_sinhf.c: Likewise.
42073         * math/w_sinhl.c: Likewise.
42074         * math/w_tgamma.c: Likewise.
42075         * math/w_tgammaf.c: Likewise.
42076         * math/w_tgammal.c: Likewise.
42077         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
42078         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
42079         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
42080         Minor optimizations.  Pretty printing.  Remove cruft.
42081         * sysdeps/i386/fpu/e_acosf.S: Likewise.
42082         * sysdeps/i386/fpu/e_acosh.S: Likewise.
42083         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
42084         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
42085         * sysdeps/i386/fpu/e_acosl.c: Likewise.
42086         * sysdeps/i386/fpu/e_asin.S: Likewise.
42087         * sysdeps/i386/fpu/e_asinf.S: Likewise.
42088         * sysdeps/i386/fpu/e_atan2.S: Likewise.
42089         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
42090         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
42091         * sysdeps/i386/fpu/e_atanh.S: Likewise.
42092         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
42093         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
42094         * sysdeps/i386/fpu/e_exp10.S: Likewise.
42095         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
42096         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
42097         * sysdeps/i386/fpu/e_exp2.S: Likewise.
42098         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
42099         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
42100         * sysdeps/i386/fpu/e_fmod.S: Likewise.
42101         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
42102         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
42103         * sysdeps/i386/fpu/e_hypot.S: Likewise.
42104         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
42105         * sysdeps/i386/fpu/e_log.S: Likewise.
42106         * sysdeps/i386/fpu/e_log10.S: Likewise.
42107         * sysdeps/i386/fpu/e_log10f.S: Likewise.
42108         * sysdeps/i386/fpu/e_log10l.S: Likewise.
42109         * sysdeps/i386/fpu/e_log2.S: Likewise.
42110         * sysdeps/i386/fpu/e_log2f.S: Likewise.
42111         * sysdeps/i386/fpu/e_log2l.S: Likewise.
42112         * sysdeps/i386/fpu/e_logf.S: Likewise.
42113         * sysdeps/i386/fpu/e_logl.S: Likewise.
42114         * sysdeps/i386/fpu/e_pow.S: Likewise.
42115         * sysdeps/i386/fpu/e_powf.S: Likewise.
42116         * sysdeps/i386/fpu/e_powl.S: Likewise.
42117         * sysdeps/i386/fpu/e_remainder.S: Likewise.
42118         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
42119         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
42120         * sysdeps/i386/fpu/e_scalb.S: Likewise.
42121         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
42122         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
42123         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
42124         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
42125         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
42126         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42127         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
42128         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42129         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42130         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42131         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42132         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42133         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42134         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42135         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42136         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42137         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
42138         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42139         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42140         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42141         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42142         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42143         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42144         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42145         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42146         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42147         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
42148         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
42149         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
42150         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
42151         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
42152         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
42153         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
42154         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
42155         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
42156         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
42157         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
42158         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42159         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
42160         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
42161         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
42162         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
42163         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
42164         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
42165         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
42166         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
42167         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
42168         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
42169         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
42170         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
42171         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
42172         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
42173         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
42174         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
42175         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
42176         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
42177         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
42178         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
42179         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42180         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
42181         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
42182         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
42183         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
42184         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
42185         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
42186         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
42187         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
42188         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
42189         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
42190         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
42191         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
42192         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
42193         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
42194         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
42195         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
42196         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
42197         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
42198         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
42199         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
42200         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
42201         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
42202         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
42203         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
42204         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
42205         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
42206         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
42207         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
42208         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
42209         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
42210         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
42211         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
42212         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42213         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
42214         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
42215         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
42216         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
42217         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
42218         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
42219         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
42220         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
42221         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
42222         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
42223         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
42224         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
42225         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
42226         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
42227         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
42228         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
42229         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
42230         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
42231         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
42232         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
42233         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
42234         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
42235         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
42236         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
42237         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
42238         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
42239         (__isnanf): Likewise.
42240         (__isinf_ns): Likewise.
42241         (__isinf_nsf): Likewise.
42242         (__finite): Likewise.
42243         (__finitef): Likewise.
42244         (__ieee754_sqrt): Define as macro.
42245         (__ieee754_sqrtf): Define as macro.
42246         (__ieee754_sqrtl): Define as macro.
42247         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
42248         inlined copy.
42249         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
42250         __FINITE_MATH_ONLY__ consistent.
42251         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
42252
42253 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
42254
42255         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
42256         of rawmemchr.
42257
42258         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
42259
42260 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
42261
42262         * po/ja.po: Update from translation team.
42263
42264 2011-10-08  Roland McGrath  <roland@hack.frob.com>
42265
42266         * locale/programs/locarchive.c (prepare_address_space): New function.
42267         (create_archive, enlarge_archive, open_archive): Use it.
42268
42269         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
42270         inside [SHARED], where it is used.
42271
42272         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
42273
42274         * nss/getent.c (netgroup_keys): Remove unused variable.
42275         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
42276
42277 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
42278
42279         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
42280         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
42281         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
42282         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
42283         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
42284         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
42285         * math/Makefile (libm-calls): Add s_isinf_ns.
42286         * math/divtc3.c: Use __isinf_nsl instead of isinf.
42287         * math/multc3.c: Likewise.
42288         * math/s_casin.c: Likewise.
42289         * math/s_casinf.c: Likewise.
42290         * math/s_casinl.c: Likewise.
42291         * math/s_ccos.c: Likewise.
42292         * math/s_ccosf.c: Likewise.
42293         * math/s_ccosl.c: Likewise.
42294         * math/s_ctan.c: Likewise.
42295         * math/s_ctanf.c: Likewise.
42296         * math/s_ctanh.c: Likewise.
42297         * math/s_ctanhf.c: Likewise.
42298         * math/s_ctanhl.c: Likewise.
42299         * math/s_ctanl.c: Likewise.
42300         * math/w_fmod.c: Likewise.
42301         * math/w_fmodf.c: Likewise.
42302         * math/w_fmodl.c: Likewise.
42303         * math/w_remainder.c: Likewise.
42304         * math/w_remainderf.c: Likewise.
42305         * math/w_remainderl.c: Likewise.
42306         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
42307         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
42308         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
42309         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
42310         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
42311         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
42312         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
42313         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
42314
42315         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
42316         of the number.
42317         * stdio-common/printf_fphex.c: Likewise.
42318         * stdio-common/printf_size.c: Likewise.
42319
42320         * math/e_exp10.c: Include math_private.h using <...> not "...".
42321         * math/e_exp10f.c: Likewise.
42322         * math/e_exp10l.c: Likewise.
42323         * math/e_exp2l.c: Likewise.
42324         * math/e_j0l.c: Likewise.
42325         * math/e_j1l.c: Likewise.
42326         * math/e_jnl.c: Likewise.
42327         * math/e_lgammal_r.c: Likewise.
42328         * math/e_rem_pio2l.c: Likewise.
42329         * math/e_scalb.c: Likewise.
42330         * math/e_scalbf.c: Likewise.
42331         * math/e_scalbl.c: Likewise.
42332         * math/k_cosl.c: Likewise.
42333         * math/k_sinl.c: Likewise.
42334         * math/k_tanl.c: Likewise.
42335         * math/s_cacoshf.c: Likewise.
42336         * math/s_catan.c: Likewise.
42337         * math/s_catanf.c: Likewise.
42338         * math/s_catanh.c: Likewise.
42339         * math/s_catanhf.c: Likewise.
42340         * math/s_catanhl.c: Likewise.
42341         * math/s_catanl.c: Likewise.
42342         * math/s_ccosh.c: Likewise.
42343         * math/s_ccoshf.c: Likewise.
42344         * math/s_ccoshl.c: Likewise.
42345         * math/s_cexp.c: Likewise.
42346         * math/s_cexpf.c: Likewise.
42347         * math/s_cexpl.c: Likewise.
42348         * math/s_clog.c: Likewise.
42349         * math/s_clog10.c: Likewise.
42350         * math/s_clog10f.c: Likewise.
42351         * math/s_clog10l.c: Likewise.
42352         * math/s_clogf.c: Likewise.
42353         * math/s_clogl.c: Likewise.
42354         * math/s_csin.c: Likewise.
42355         * math/s_csinf.c: Likewise.
42356         * math/s_csinh.c: Likewise.
42357         * math/s_csinhf.c: Likewise.
42358         * math/s_csinhl.c: Likewise.
42359         * math/s_csinl.c: Likewise.
42360         * math/s_csqrt.c: Likewise.
42361         * math/s_csqrtf.c: Likewise.
42362         * math/s_csqrtl.c: Likewise.
42363         * math/s_ctan.c: Likewise.
42364         * math/s_ctanf.c: Likewise.
42365         * math/s_ctanh.c: Likewise.
42366         * math/s_ctanhf.c: Likewise.
42367         * math/s_ctanhl.c: Likewise.
42368         * math/s_ctanl.c: Likewise.
42369         * math/s_ldexp.c: Likewise.
42370         * math/s_ldexpf.c: Likewise.
42371         * math/s_ldexpl.c: Likewise.
42372         * math/s_significand.c: Likewise.
42373         * math/s_significandf.c: Likewise.
42374         * math/s_significandl.c: Likewise.
42375         * math/w_acos.c: Likewise.
42376         * math/w_acosf.c: Likewise.
42377         * math/w_acosh.c: Likewise.
42378         * math/w_acoshf.c: Likewise.
42379         * math/w_acoshl.c: Likewise.
42380         * math/w_acosl.c: Likewise.
42381         * math/w_asin.c: Likewise.
42382         * math/w_asinf.c: Likewise.
42383         * math/w_asinl.c: Likewise.
42384         * math/w_atan2.c: Likewise.
42385         * math/w_atan2f.c: Likewise.
42386         * math/w_atan2l.c: Likewise.
42387         * math/w_atanh.c: Likewise.
42388         * math/w_atanhf.c: Likewise.
42389         * math/w_atanhl.c: Likewise.
42390         * math/w_cosh.c: Likewise.
42391         * math/w_coshf.c: Likewise.
42392         * math/w_coshl.c: Likewise.
42393         * math/w_dremf.c: Likewise.
42394         * math/w_exp10.c: Likewise.
42395         * math/w_exp10f.c: Likewise.
42396         * math/w_exp10l.c: Likewise.
42397         * math/w_exp2.c: Likewise.
42398         * math/w_exp2f.c: Likewise.
42399         * math/w_fmod.c: Likewise.
42400         * math/w_fmodf.c: Likewise.
42401         * math/w_fmodl.c: Likewise.
42402         * math/w_hypot.c: Likewise.
42403         * math/w_hypotf.c: Likewise.
42404         * math/w_hypotl.c: Likewise.
42405         * math/w_j0.c: Likewise.
42406         * math/w_j0f.c: Likewise.
42407         * math/w_j0l.c: Likewise.
42408         * math/w_j1.c: Likewise.
42409         * math/w_j1f.c: Likewise.
42410         * math/w_j1l.c: Likewise.
42411         * math/w_jn.c: Likewise.
42412         * math/w_jnf.c: Likewise.
42413         * math/w_jnl.c: Likewise.
42414         * math/w_lgamma.c: Likewise.
42415         * math/w_lgamma_r.c: Likewise.
42416         * math/w_lgammaf.c: Likewise.
42417         * math/w_lgammaf_r.c: Likewise.
42418         * math/w_lgammal.c: Likewise.
42419         * math/w_lgammal_r.c: Likewise.
42420         * math/w_log.c: Likewise.
42421         * math/w_log10.c: Likewise.
42422         * math/w_log10f.c: Likewise.
42423         * math/w_log10l.c: Likewise.
42424         * math/w_log2.c: Likewise.
42425         * math/w_log2f.c: Likewise.
42426         * math/w_log2l.c: Likewise.
42427         * math/w_logf.c: Likewise.
42428         * math/w_logl.c: Likewise.
42429         * math/w_pow.c: Likewise.
42430         * math/w_powf.c: Likewise.
42431         * math/w_powl.c: Likewise.
42432         * math/w_remainder.c: Likewise.
42433         * math/w_remainderf.c: Likewise.
42434         * math/w_remainderl.c: Likewise.
42435         * math/w_scalb.c: Likewise.
42436         * math/w_scalbf.c: Likewise.
42437         * math/w_scalbl.c: Likewise.
42438         * math/w_sinh.c: Likewise.
42439         * math/w_sinhf.c: Likewise.
42440         * math/w_sinhl.c: Likewise.
42441         * math/w_sqrt.c: Likewise.
42442         * math/w_sqrtf.c: Likewise.
42443         * math/w_sqrtl.c: Likewise.
42444         * math/w_tgamma.c: Likewise.
42445         * math/w_tgammaf.c: Likewise.
42446         * math/w_tgammal.c: Likewise.
42447
42448         * po/ja.po: Update from translation team.
42449
42450 2011-09-29  Andreas Jaeger  <aj@suse.de>
42451
42452         [BZ #13179]
42453         * sunrpc/netname.c (netname2host): Fix logic.
42454
42455         [BZ #6779]
42456         [BZ #6783]
42457         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
42458         correctly.
42459         * math/w_remainder.c (__remainder): Likewise.
42460         * math/w_remainderf.c (__remainderf): Likewise.
42461         * math/libm-test.inc (remainder_test): Add test cases.
42462
42463 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42464
42465         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
42466         sdiv_qrnnd.
42467
42468 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42469
42470         * string/test-memcmp.c: Avoid unncessary #defines.
42471         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42472
42473 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42474
42475         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
42476         Use new sse2 version for core i3 - i7 as it's faster
42477         than sse42 version.
42478         (bit_Prefer_PMINUB_for_stringop): New.
42479         * sysdeps/x86_64/rawmemchr.S: Update.
42480         Replace with faster SSE2 version.
42481         * sysdeps/x86_64/memrchr.S: New file.
42482         * sysdeps/x86_64/memchr.S: Update.
42483         Replace with faster SSE2 version.
42484
42485 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
42486
42487         * elf/dl-load.c (lose): Add cast to avoid warning.
42488
42489 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42490
42491         * po/ca.po: Update from translation team.
42492
42493         * inet/getnetgrent_r.c: Hook up nscd.
42494         * nscd/Makefile (routines): Add nscd_netgroup.
42495         (nscd-modules): Add netgroupcache.
42496         (CFLAGS-netgroupcache.c): Define.
42497         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
42498         (cache_search): Add const to second parameter.
42499         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
42500         INNETGR.
42501         (dbs): Add netgrdb entry.
42502         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
42503         (verify_persistent_db): Handle netgrdb.
42504         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
42505         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
42506         GETFDNETGR.
42507         (netgroup_response_header): Define.
42508         (innetgroup_response_header): Define.
42509         (datahead): Add netgroup_response_header and innetgroup_response_header
42510         elements.
42511         * nscd/nscd.conf: Add entries for netgroup cache.
42512         * nscd/nscd.h (dbtype): Add netgrdb.
42513         (_PATH_NSCD_NETGROUP_DB): Define.
42514         (netgroup_iov_disabled): Declare.
42515         (xmalloc, xcalloc, xrealloc): Move declarations here.
42516         (cache_search): Adjust prototype.
42517         Add netgroup-related prototypes.
42518         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
42519         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
42520         (__nscd_innetgr): Declare.
42521         * nscd/selinux.c (perms): Use access_vector_t as element type and
42522         add netgroup-related initializers.
42523         * nscd/netgroupcache.c: New file.
42524         * nscd/nscd_netgroup.c: New file.
42525         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
42526         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
42527         For four parameters use innetgr.
42528         * nss/nss_files/files-init.c: Add definition and callback for netgr.
42529         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
42530         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
42531         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
42532
42533         * nscd/connections.c (register_traced_file): Don't register file
42534         for disabled databases.
42535
42536 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
42537
42538         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
42539
42540         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
42541         from tree and freeing node.
42542
42543 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
42544
42545         * nss/nsswitch.c (__nss_database_lookup): Handle
42546         nss_parse_service_list out of memory case.
42547
42548 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
42549
42550         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
42551         out of memory case.
42552
42553 2011-10-04  Andreas Schwab  <schwab@redhat.com>
42554
42555         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
42556         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
42557         pass it down.
42558         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
42559         elf_machine_rela, elf_machine_lazy_rel.
42560         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
42561         (ELF_DYNAMIC_DO_REL): Likewise.
42562         (ELF_DYNAMIC_DO_RELA): Likewise.
42563         (ELF_DYNAMIC_RELOCATE): Likewise.
42564         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
42565         to ELF_DYNAMIC_DO_REL.
42566         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
42567         (dl_main): In trace mode always set __RTLD_NOIFUNC.
42568         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
42569         elf_machine_rela.
42570         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
42571         skip_ifunc, don't call ifunc function if non-zero.
42572         (elf_machine_rela): Likewise.
42573         (elf_machine_lazy_rel): Likewise.
42574         (elf_machine_lazy_rela): Likewise.
42575         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
42576         (elf_machine_lazy_rel): Likewise.
42577         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
42578         Likewise.
42579         (elf_machine_lazy_rel): Likewise.
42580         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42581         Likewise.
42582         (elf_machine_lazy_rel): Likewise.
42583         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
42584         (elf_machine_lazy_rel): Likewise.
42585         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
42586         (elf_machine_lazy_rel): Likewise.
42587         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
42588         (elf_machine_lazy_rel): Likewise.
42589         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
42590         (elf_machine_lazy_rel): Likewise.
42591         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
42592         (elf_machine_lazy_rel): Likewise.
42593         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
42594         (elf_machine_lazy_rel): Likewise.
42595
42596 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
42597
42598         * nss/nss_files/files-init.c (_nss_files_init): Use static
42599         initialization for all the *_traced_file variables.
42600
42601 2011-09-28  Andreas Schwab  <schwab@redhat.com>
42602
42603         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42604
42605 2011-09-27  Roland McGrath  <roland@hack.frob.com>
42606
42607         [BZ #13226]
42608         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
42609
42610 2011-09-27  Andreas Schwab  <schwab@redhat.com>
42611
42612         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
42613         Reread the line before reparsing it.
42614
42615 2011-09-26  Andreas Schwab  <schwab@redhat.com>
42616
42617         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
42618
42619 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
42620             Maxim Kuvyrkov  <maxim@codesourcery.com>
42621             Joseph Myers  <joseph@codesourcery.com>
42622
42623         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
42624         if needed for __stack_chk_guard.
42625
42626 2011-09-19  Roland McGrath  <roland@hack.frob.com>
42627
42628         * sysdeps/posix/spawni.c (script_execute): Always define it.
42629         It will be optimized away if unused.
42630         (maybe_script_execute): New function.
42631         (__spawni): Call it.
42632
42633         * Makerules: Don't include tls.make.
42634         (config-tls): Always set to thread.
42635         * tls.make.c: File removed.
42636
42637 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
42638
42639         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
42640         * config.make.in (CPPFLAGS-config): New substituted variable.
42641
42642 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42643
42644         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
42645
42646         [BZ #13192]
42647         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
42648         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
42649
42650 2011-09-15  Roland McGrath  <roland@hack.frob.com>
42651
42652         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
42653         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
42654         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
42655         (CALL_FAIL): Likewise.
42656         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
42657         (CALL_FAIL): Macro removed.
42658         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
42659
42660 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42661
42662         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
42663         for __FINITE_MATH_ONLY__ == 1.
42664
42665 2011-09-15  Andreas Schwab  <schwab@redhat.com>
42666
42667         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
42668         __ieee754_sqrt instead of sqrt.
42669         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
42670         __ieee754_sqrtf instead of sqrtf.
42671         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
42672         __floorf instead of floorf.
42673         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
42674         __floorf, __truncf instead of floorf, truncf.
42675
42676 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
42677
42678         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
42679
42680         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
42681         __extern_always_inline.
42682         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
42683         32-bit.
42684
42685 2011-09-14  Andreas Schwab  <schwab@redhat.com>
42686
42687         * elf/rtld.c (dl_main): Also relocate in dependency order when
42688         doing symbol dependency testing.
42689
42690 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
42691
42692         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42693         Always define `refsym'.
42694
42695 2011-09-13  Andreas Schwab  <schwab@redhat.com>
42696
42697         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
42698         (__FD_ELT): Renamed from __FDELT.
42699         * misc/bits/select2.h (__FD_ELT): Likewise.
42700         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
42701         __FD_MASK instead of __FDELT, __FDMASK.
42702         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42703         Likewise.
42704         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42705         Likewise.
42706
42707         * elf/Makefile (gen-ldd): Fix pattern.
42708
42709         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
42710         (init_tls): Likewise.
42711
42712 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
42713
42714         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
42715
42716 2011-09-12  Andreas Schwab  <schwab@redhat.com>
42717
42718         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
42719         `struct cmsghdr *' instead of `void *'.
42720         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
42721         Likewise.
42722
42723 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
42724
42725         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
42726         if non-absolute.
42727         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
42728         ldd_rewrite_script.
42729
42730 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
42731
42732         * configure.in: Remove --with-tls option.
42733         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
42734         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
42735         out in case it is missing.
42736         * sysdeps/ia64/elf/configure.in: Likewise.
42737         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
42738         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
42739         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
42740         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
42741         * sysdeps/sh/elf/configure.in: Likewise.
42742         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
42743         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
42744         * sysdeps/x86_64/elf/configure.in: Likewise.
42745         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
42746         * sysdeps/mach/hurd/tls.h: Likewise.
42747
42748         [BZ #13067]
42749         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
42750
42751         [BZ #13090]
42752         * configure.in: Fix use of AC_INIT.
42753
42754         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
42755
42756 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
42757
42758         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
42759         __set_errno.
42760         * malloc/hooks.c: Likewise.
42761
42762         [BZ #11929]
42763         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
42764         variables statically.
42765         (narenas): Initialize.
42766         (list_lock): Initialize.
42767         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
42768         initializtion of main_arena and list_lock.  Small cleanups.
42769         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
42770         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
42771         Add initializers to main_arena and mp_.
42772         (malloc_state): Remove pagesize member.  Change all users to use
42773         GLRO(dl_pagesize).
42774
42775         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
42776         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
42777         is always initialized.
42778
42779         * malloc/malloc.c: Removed unused configurations and dead code.
42780         * malloc/arena.c: Likewise.
42781         * malloc/hooks.c: Likewise.
42782         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
42783
42784         * include/tls.h: Removed.  USE___THREAD must always be defined.
42785         * bits/libc-tsd.h: Don't handle !USE___THREAD.
42786         * elf/dl-libc.c: Likewise.
42787         * elf/dl-tsd.c: Likewise.
42788         * include/errno.h: Likewise.
42789         * include/netdb.h: Likewise.
42790         * include/resolv.h: Likewise.
42791         * inet/herrno-loc.c: Likewise.
42792         * inet/herrno.c: Likewise.
42793         * malloc/arena.c: Likewise.
42794         * malloc/hooks.c: Likewise.
42795         * malloc/malloc.c: Likewise.
42796         * resolv/res-state.c: Likewise.
42797         * resolv/res_libc.c: Likewise.
42798         * sysdeps/i386/dl-machine.h: Likewise.
42799         * sysdeps/ia64/dl-machine.h: Likewise.
42800         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42801         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42802         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42803         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42804         * sysdeps/sh/dl-machine.h: Likewise.
42805         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42806         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42807         * sysdeps/unix/i386/sysdep.S: Likewise.
42808         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
42809         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
42810         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
42811         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
42812         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
42813         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
42814         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
42815         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
42816         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42817         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
42818         * sysdeps/unix/x86_64/sysdep.S: Likewise.
42819         * sysdeps/x86_64/dl-machine.h: Likewise.
42820         * tls.make.c: Likewise.
42821
42822         * configure.in: Remove --with-__thread option.  Make tests for
42823         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
42824         tls_model attribute fail if no support is available.  Remove
42825         USE_IN_LIBIO.
42826         * Makeconfig: Adjust for dropped configure option.  All features are
42827         now mandatory.
42828         * Makerules: Likewise.
42829         * Versions.def: Likewise.
42830         * argp/argp-fmtstream.c: Likewise.
42831         * argp/argp-fmtstream.h: Likewise.
42832         * argp/argp-help.c: Likewise.
42833         * assert/assert.c: Likewise.
42834         * config.h.in: Likewise.
42835         * config.make.in: Likewise.
42836         * configure: Likewise.
42837         * configure.in: Likewise.
42838         * csu/Versions: Likewise.
42839         * csu/init.c: Likewise.
42840         * elf/tst-audit2.c: Likewise.
42841         * elf/tst-tls10.c: Likewise.
42842         * elf/tst-tls10.h: Likewise.
42843         * elf/tst-tls11.c: Likewise.
42844         * elf/tst-tls12.c: Likewise.
42845         * elf/tst-tls14.c: Likewise.
42846         * elf/tst-tlsmod11.c: Likewise.
42847         * elf/tst-tlsmod12.c: Likewise.
42848         * elf/tst-tlsmod13.c: Likewise.
42849         * elf/tst-tlsmod13a.c: Likewise.
42850         * elf/tst-tlsmod14a.c: Likewise.
42851         * elf/tst-tlsmod15b.c: Likewise.
42852         * elf/tst-tlsmod16a.c: Likewise.
42853         * elf/tst-tlsmod16b.c: Likewise.
42854         * elf/tst-tlsmod7.c: Likewise.
42855         * elf/tst-tlsmod8.c: Likewise.
42856         * elf/tst-tlsmod9.c: Likewise.
42857         * gmon/gmon.c: Likewise.
42858         * grp/fgetgrent_r.c: Likewise.
42859         * grp/putgrent.c: Likewise.
42860         * hurd/fopenport.c: Likewise.
42861         * include/libc-symbols.h: Likewise.
42862         * include/tls.h: Likewise.
42863         * intl/gettextP.h: Likewise.
42864         * intl/loadinfo.h: Likewise.
42865         * locale/global-locale.c: Likewise.
42866         * locale/localeinfo.h: Likewise.
42867         * mach/devstream.c: Likewise.
42868         * malloc/arena.c: Likewise.
42869         * malloc/set-freeres.c: Likewise.
42870         * misc/err.c: Likewise.
42871         * misc/getttyent.c: Likewise.
42872         * misc/mntent_r.c: Likewise.
42873         * posix/getopt.c: Likewise.
42874         * posix/wordexp.c: Likewise.
42875         * pwd/fgetpwent_r.c: Likewise.
42876         * resolv/Versions: Likewise.
42877         * resolv/res_hconf.c: Likewise.
42878         * shadow/fgetspent_r.c: Likewise.
42879         * shadow/putspent.c: Likewise.
42880         * stdio-common/printf_fphex.c: Likewise.
42881         * stdio-common/tmpfile.c: Likewise.
42882         * stdlib/abort.c: Likewise.
42883         * stdlib/fmtmsg.c: Likewise.
42884         * sunrpc/auth_unix.c: Likewise.
42885         * sunrpc/clnt_perr.c: Likewise.
42886         * sunrpc/clnt_tcp.c: Likewise.
42887         * sunrpc/clnt_udp.c: Likewise.
42888         * sunrpc/clnt_unix.c: Likewise.
42889         * sunrpc/openchild.c: Likewise.
42890         * sunrpc/svc_simple.c: Likewise.
42891         * sunrpc/svc_tcp.c: Likewise.
42892         * sunrpc/svc_udp.c: Likewise.
42893         * sunrpc/svc_unix.c: Likewise.
42894         * sunrpc/xdr.c: Likewise.
42895         * sunrpc/xdr_array.c: Likewise.
42896         * sunrpc/xdr_rec.c: Likewise.
42897         * sunrpc/xdr_ref.c: Likewise.
42898         * sunrpc/xdr_stdio.c: Likewise.
42899
42900 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42901
42902         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42903
42904 2011-07-03  Andreas Jaeger  <aj@suse.de>
42905
42906         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
42907         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
42908         regenerate with gen-libm-tests.pl.
42909
42910 2010-05-12  Petr Baudis  <pasky@suse.cz>
42911
42912         [BZ #11589]
42913         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
42914         around j0() zero points by switching to j1().
42915         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42916         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42917         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
42918         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42919
42920 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42921
42922         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
42923         instead of 0.
42924         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
42925         instead of 0.
42926         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
42927         Patch in part by Pavel Roskin <proski@gnu.org>.
42928
42929         [BZ #13138]
42930         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
42931         realloc.
42932         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
42933         Free memory block if necessary.
42934
42935         [BZ #12847]
42936         * libio/genops.c (INTDEF): For string streams the _lock pointer can
42937         be NULL.  Don't lock in this case.
42938
42939 2011-09-09  Roland McGrath  <roland@hack.frob.com>
42940
42941         * elf/elf.h (ELFOSABI_GNU): New macro.
42942         (ELFOSABI_LINUX): Define to that.
42943
42944 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
42945
42946         * string/strncat.c (strncat): Undef the symbol in case it has been
42947         defined in bits/string.h.
42948
42949 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42950
42951         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
42952
42953         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
42954         link map.
42955
42956 2011-08-17  Andreas Jaeger  <aj@suse.de>
42957
42958         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
42959
42960 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42961             Ian Lance Taylor  <iant@google.com>
42962
42963         * math/libm-test.inc (lround_test): New testcase.
42964         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
42965
42966 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
42967
42968         * Makefile: Remove support for automatic cvs check-ins.
42969         * Makerules: Likewise.
42970         * config.make.in: Likewise.
42971         * configure.in: Likewise.
42972         * intl/Makefile: Likewise.
42973         * locale/Makefile: Likewise.
42974         * po/Makefile: Likewise.
42975         * posix/Makefile: Likewise.
42976         * sysdeps/gnu/Makefile: Likewise.
42977         * sysdeps/mach/hurd/Makefile: Likewise.
42978         * sysdeps/sparc/sparc32/Makefile: Likewise.
42979
42980         [BZ #13118]
42981         * posix/Makefile (bug-regex32-ENV): Define.
42982         Patch by John Stanley <jpsinthemix@verizon.net>.
42983
42984         * misc/Makefile (headers): Add bits/select2.h.
42985         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
42986         * misc/bits/select2.h: New file.
42987         * include/bits/select2.h: New file.
42988         * debug/Makefile (routines): Add fdelt_chk.
42989         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
42990         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
42991         FD_ISSET.
42992         * debug/fdelt_chk.c: New file.
42993
42994         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
42995         * wcsmbs/test-wmemcmp.c: Likewise.
42996         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
42997         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
42998
42999 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43000
43001         * string/Makefile (strop-tests): Add memcmp.
43002         * string/test-wmemcmp.c: New file.
43003         * string/test-memcmp.c: Add wmemcmp support.
43004
43005 2011-09-08  Roland McGrath  <roland@hack.frob.com>
43006
43007         [BZ #13153]
43008         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
43009         2011-07-19 change.
43010
43011         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
43012         garbage value in a __mach_port_mod_refs call in the cases of the
43013         task-self and thread-self ports.
43014
43015 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43016
43017         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
43018
43019 2011-09-08  Andreas Schwab  <schwab@redhat.com>
43020
43021         * elf/dl-load.c (lose): Check for non-null L.
43022
43023 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43024
43025         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
43026
43027         * elf/dl-libc.c (dlerror_run): Pass back error code from
43028         dl_catch_error.
43029
43030         [BZ #13123]
43031         * elf/dl-load.c (lose): Free l_origin if it is valid.
43032
43033         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
43034         names.
43035         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
43036         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43037         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43038         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43039         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
43040         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
43041
43042 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43043
43044         * sysdeps/powerpc/fpu/e_hypot.c: New file.
43045         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
43046         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
43047         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
43048         * sysdeps/powerpc/fpu/k_cosf.c: New file.
43049         * sysdeps/powerpc/fpu/k_sinf.c: New file.
43050         * sysdeps/powerpc/fpu/s_cosf.c: New file.
43051         * sysdeps/powerpc/fpu/s_sinf.c: New file.
43052         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
43053         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
43054
43055 2011-08-15  Alan Modra  <amodra@gmail.com>
43056
43057         [BZ #13092]
43058         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
43059         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
43060         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
43061         ppc_mcount to static-only-routines.
43062         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
43063         __mcount_internal.
43064         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
43065         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
43066
43067 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
43068
43069         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
43070         for finite and infinity parameters.
43071
43072 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
43073
43074         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
43075         and add nop instructions for throughput optimization.
43076         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43077
43078 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
43079
43080         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
43081         aligned copy for power7 with vector-scalar instructions.
43082         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43083
43084 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
43085
43086         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
43087         AVX check.
43088
43089 2011-09-07  Andreas Schwab  <schwab@redhat.com>
43090
43091         [BZ #13144]
43092         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
43093         last change.
43094
43095 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43096
43097         * sysdeps/unix/sysv/linux/x86_64/init-first.c
43098         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
43099         syscall wrapper around clock_gettime in __vdso_clock_gettime.
43100         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
43101         clock_gettime.
43102
43103 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43104
43105         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
43106         Forgot to demangle the pointer.
43107
43108         * sysdeps/i386/sysdep.h: Define atom_text_section.
43109         * sysdeps/x86_64/sysdep.h: Likewise.
43110         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
43111         section with atom_text_section.
43112         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43113         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43114         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
43115         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43116         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
43117
43118         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
43119         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
43120         already be defined.  Change to take two parameters and don't assign
43121         result to variable.  Adjust all users.
43122         Define INTERNAL_GETTIME if not already defined.
43123         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
43124         call.
43125         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
43126         HAVE_CLOCK_GETTIME_VSYSCALL.
43127         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
43128
43129         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
43130         gettimeofday vsyscall, just use time.
43131
43132 2011-09-06  Andreas Schwab  <schwab@redhat.com>
43133
43134         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
43135         <errno.h>.
43136
43137 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43138
43139         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
43140         syscall on x86-64.
43141         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
43142         syscall.
43143         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
43144         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
43145         syscall if possible.
43146
43147 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43148
43149         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
43150         e_ident.  Don't pass to find_mapsXX.
43151         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
43152
43153 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43154
43155         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43156         strchr-sse2-no-bsf strrchr-sse2-no-bsf
43157         * sysdeps/x86_64/multiarch/strchr.S: Update.
43158         Check bit_slow_BSF bit.
43159         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43160         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
43161         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
43162
43163 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43164
43165         [BZ #13134]
43166         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
43167         before glibc 2.15.
43168         (tryshell): Define.
43169         (__spawni): Change last parameter to be flag.  Test
43170         SPAWN_XFLAGS_USE_PATH flag to use path or not.
43171         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
43172         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
43173         * posix/spawni.c: Likewise.
43174         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
43175         * posix/spawnp.c: Likewise.  Change normal version to use
43176         SPAWN_XFLAGS_USE_PATH.
43177         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
43178         SPAWN_XFLAGS_TRY_SHELL.
43179
43180         [BZ #13150]
43181         * posix/glob.h: Remove gcc 1.x support.
43182
43183         [BZ #13068]
43184         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
43185
43186 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43187
43188         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43189         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
43190         strrchr-sse2-bsf
43191         * sysdeps/i386/i686/multiarch/strchr.S: New file.
43192         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
43193         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
43194         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
43195         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
43196         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
43197
43198 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43199
43200         * sysdeps/x86_64/wcscmp.S: New file.
43201
43202         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
43203         wcscmp-c wcscmp-sse2
43204         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
43205         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
43206         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
43207         * wcsmbs/wcscmp.c: Allow renaming.
43208
43209 2011-09-05  David S. Miller  <davem@davemloft.net>
43210
43211         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
43212         stack slot, rather than the struct return pointer slot.
43213         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
43214         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
43215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
43216         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
43217
43218 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43219
43220         * po/ja.po: Update from translation team.
43221
43222         [BZ #13144]
43223         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
43224         kernel in 64-bit binaries.
43225
43226 2011-09-01  David S. Miller  <davem@davemloft.net>
43227
43228         * elf/elf.h (HWCAP_SPARC_*): Move to..
43229         * sysdeps/sparc/sysdep.h: this new file and add new values.
43230         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
43231         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
43232         _DL_HWCAP_COUNT to 24.
43233         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
43234         entries.
43235         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
43236         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
43237         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
43238         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
43239         instead of magic constants.
43240         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
43241
43242 2011-08-31  David S. Miller  <davem@davemloft.net>
43243
43244         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
43245         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
43246         Reimplement to do errno handling inline.
43247         (SYSCALL_ERROR_HANDLER): New macro.
43248         (__SYSCALL_STRING): Do not do errno handling in asm.
43249         (__CLONE_SYSCALL_STRING): Delete.
43250         (__INTERNAL_SYSCALL_STRING): Delete.
43251         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
43252         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
43253         (PSEUDO): Reimplement to do errno handling inline.
43254         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
43255         (SYSCALL_ERROR_HANDLER): New macro.
43256         (__SYSCALL_STRING): Do not do errno handling in asm.
43257         (__CLONE_SYSCALL_STRING): Delete.
43258         (__INTERNAL_SYSCALL_STRING): Delete.
43259         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
43260         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
43261         i386.
43262         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
43263         (inline_syscall*): Add 'err' argument.
43264         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
43265         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
43266         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
43267         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
43268
43269         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
43270         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
43271
43272 2011-08-30  Andreas Schwab  <schwab@redhat.com>
43273
43274         * elf/rtld.c (dl_main): Relocate objects in dependency order.
43275
43276 2011-08-29  Jiri Olsa <jolsa@redhat.com>
43277
43278         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
43279         directive.
43280
43281 2011-08-24  David S. Miller  <davem@davemloft.net>
43282
43283         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
43284
43285 2011-08-24  Andreas Schwab  <schwab@redhat.com>
43286
43287         * elf/Makefile: Add rules to build and run unload8 test.
43288         * elf/unload8.c: New file.
43289         * elf/unload8mod1.c: New file.
43290         * elf/unload8mod1x.c: New file.
43291         * elf/unload8mod2.c: New file.
43292         * elf/unload8mod3.c: New file.
43293
43294         * elf/dl-close.c (_dl_close_worker): Reset private search list if
43295         it wasn't used.
43296
43297 2011-08-23  David S. Miller  <davem@davemloft.net>
43298
43299         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
43300         subtract stack bias.
43301         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
43302         %sp not %fp in calculations.
43303         (_JMPBUF_UNWINDS_ADJ): Likewise.
43304
43305         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
43306         (aio_suspend): Call it to force an exception region around the
43307         AIO_MISC_WAIT() invocation.
43308
43309 2011-08-23  Andreas Schwab  <schwab@redhat.com>
43310
43311         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
43312         backslash.
43313
43314 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
43315
43316         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
43317         protection macro.
43318         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
43319         and <dl-machine.h>.
43320         (Elf64_FuncDesc): Remove.
43321
43322 2011-08-22  David S. Miller  <davem@davemloft.net>
43323
43324         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
43325         sigaltstack check, add missing cfi directives.
43326         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
43327         missing cfi directives, and sigaltstack handling.
43328
43329 2011-08-16  Andreas Schwab  <schwab@redhat.com>
43330
43331         [BZ #11724]
43332         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
43333         object is seen twice.
43334         * elf/dl-fini.c (_dl_sort_fini): Likewise.
43335
43336         * elf/Makefile (distribute): Add tst-initorder2.c.
43337         (tests): Add tst-initorder2.
43338         (modules-names): Add tst-initorder2a tst-initorder2b
43339         tst-initorder2c tst-initorder2d.  Add rules to build them.
43340         ($(objpfx)tst-initorder2.out): New rule.
43341         * elf/tst-initorder2.c: New file.
43342         * elf/tst-initorder2.exp: New file.
43343
43344 2011-08-22  Andreas Schwab  <schwab@redhat.com>
43345
43346         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
43347
43348         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
43349         dependencies back to end of function.
43350
43351         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
43352         $(elfobjdir)/ld.so.
43353
43354 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
43355
43356         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
43357         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
43358         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
43359         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
43360         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
43361         of __vdso_gettimeofday.
43362         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
43363         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
43364         attribute_hidden.
43365         (_libc_vdso_platform_setup): Remove initialization of
43366         __vdso_gettimeofday and __vdso_time.
43367
43368 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43369
43370         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
43371         and fgetc_unlocked.
43372         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
43373         getc_unlocked.
43374
43375         * elf/dl-open.c (add_to_global): Report additions to the global scope
43376         for LD_DEBUG=scopes.
43377         (dl_open_worker): Also print scope of newly loaded dependencies.
43378         (_dl_show_scope): Indicate if there is no scope.
43379
43380         [BZ #13114]
43381         * stdio-common/Makefile (tests): Add bug24.
43382         * stdio-common/bug24.c: New file.
43383
43384 2011-08-19  Andreas Jaeger  <aj@suse.de>
43385
43386         [BZ #13114]
43387         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
43388         non-existant file when using close-on-exec mode.
43389
43390 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43391
43392         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
43393         the very first instruction.
43394
43395         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
43396         the CFI state in the end.
43397         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
43398         inclusion of dl-trampoline.h.
43399         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
43400
43401 2011-08-19  Andreas Schwab  <schwab@redhat.com>
43402
43403         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
43404         expectations for long double.
43405
43406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
43407         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
43408
43409 2011-08-14  David S. Miller  <davem@davemloft.net>
43410
43411         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
43412         artificual limit depends upon the system page size.
43413
43414 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43415
43416         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
43417         * resolv/Makefile: Define CFLAGS-libresolv.
43418
43419 2011-08-17  Andreas Schwab  <schwab@redhat.com>
43420
43421         * nss/makedb.c (compute_tables): Make variables used in nested
43422         function static.
43423
43424 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43425
43426         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
43427         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
43428         if buffer was too small.
43429
43430         * elf/pldd.c (main): Attach to all threads in the process.
43431         Rewrite /proc handling to use *at functions.
43432
43433 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
43434
43435         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
43436         specifies first scope to show.
43437         (dl_open_worker): Update callers.  Move printing scope of new
43438         object to before the relocation.
43439         * elf/rtld.c (dl_main): Update _dl_show_scope call.
43440         * sysdeps/generic/ldsodefs.h: Update declaration.
43441
43442         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
43443         string for the scope number.
43444
43445 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
43446
43447         * nscd/servicescache.c (cache_addserv): Make sure written is always
43448         initialized.
43449
43450 2011-08-14  Roland McGrath  <roland@hack.frob.com>
43451
43452         * sysdeps/i386/i486/bits/atomic.h
43453         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
43454         statement expression, so as to suppress "set but not used" warning.
43455         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
43456
43457         * string/strncat.c (STRNCAT): Use prototype definition.
43458
43459         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
43460         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
43461         -Iprograms here.
43462         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
43463         (localedef-modules): Add localedef.
43464         (locale-modules): Add locale.
43465
43466         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
43467         * elf/rtld.c (dl_main): Invert order of assignment in last change,
43468         to avoid a warning.
43469
43470 2011-08-14  David S. Miller  <davem@davemloft.net>
43471
43472         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
43473         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
43474
43475 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
43476
43477         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
43478         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
43479         * elf/rtld.c (dl_main): Set l_name of vDSO.
43480         Call _dl_show_scope when DL_DEBUG_SCOPES.
43481         (process_dl_debug): Recognize scopes flag and also set it for all.
43482         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
43483         Declare _dl_show_scope.
43484
43485         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
43486         (do_dlopen): Pass caller_dlopen to dl_open.
43487         (__libc_dlopen_mode): Initialize caller_dlopen.
43488
43489         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
43490         of libc.  Make tolower call locale-independent.  Optimize a bit by
43491         using isdigit instead of isalnum.
43492         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
43493
43494 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
43495
43496         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
43497         was a dependency or dynamically loaded.
43498
43499 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
43500
43501         * intl/l10nflist.c: Allow architecture-specific pop function.
43502         * sysdeps/x86_64/l10nflist.c: New file.
43503
43504         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
43505         classification.
43506
43507 2011-08-10  Andreas Schwab  <schwab@redhat.com>
43508
43509         * include/dirent.h: Add libc_hidden_proto for scandirat and
43510         scandirat64.  Don't declare __scandirat64.
43511         * dirent/scandirat.c: Add libc_hidden_def.
43512         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
43513         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
43514
43515 2011-08-10  David S. Miller  <davem@davemloft.net>
43516
43517         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
43518         enum.
43519         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43520         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43521         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43522
43523 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
43524
43525         * Versions.def [libc]: Add GLIBC_2.15.
43526         * dirent/Makefile (routines): Add scandirat and scandirat64.
43527         * dirent/Versions [libc]: Export scandirat and scandirat64 for
43528         GLIBC_2.15.
43529         * dirent/dirent.h: Declare scandirat and scandirat64.
43530         * dirent/scandirat.c: New file.
43531         * dirent/scandirat64.c: New file.
43532         * sysdeps/wordsize-64/scandirat.c: New file.
43533         * sysdeps/wordsize-64/scandirat64.c: New file.
43534         * dirent/opendir.c: Define opendirat.
43535         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
43536         using scandirat.
43537         * dirent/scandir64.c: Adjust for scandir.c change.
43538         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
43539         __scandirat64, and __scandir_cancel_handler.
43540         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
43541         additional parameter and use openat instead of open (outside of ld.so).
43542         Add new __opendir as wrapper around __opendirat.
43543         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
43544         here without requiring old scandirat implementation.
43545
43546 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
43547
43548         * dirent/scandir.c (cancel_handler): Renamed to
43549         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
43550         defined.  Adjust users.
43551         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
43552         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
43553
43554 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
43555
43556         * string/test-string.h (IMPL): Use __STRING to expand name and then
43557         stringify it.
43558
43559         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
43560         of cleanups.
43561
43562 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43563
43564         * string/Makefile: Update.
43565         (strop-tests): Append strncat.
43566         * string/test-wcscmp.c: New file.
43567         New comprehensive test for wcscmp.
43568         * string/test-strcmp.c: Update.
43569         (WIDE): New define.
43570
43571 2011-07-22  Andreas Schwab  <schwab@redhat.com>
43572
43573         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
43574         line.
43575
43576 2011-07-26  Andreas Schwab  <schwab@redhat.com>
43577
43578         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43579         encoding to ACE if AI_IDN.
43580
43581 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
43582
43583         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
43584         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
43585
43586 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43587
43588         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
43589         Fix overflow bug in strncat.
43590         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
43591
43592         * string/test-strncat.c: Update.
43593         Add new tests for checking overflow bugs.
43594
43595 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43596
43597         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43598         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
43599         * sysdeps/i386/i686/multiarch/strcat.S: New file.
43600         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
43601         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
43602         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
43603         * sysdeps/i386/i686/multiarch/strncat.S: New file.
43604         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
43605         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
43606
43607         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
43608         (USE_AS_STRCAT): Define.
43609         Add strcat and strncat support.
43610         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43611
43612 2011-07-25  Andreas Schwab  <schwab@redhat.com>
43613
43614         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
43615         __n bigger than INT_MAX+1.
43616         (__strncmp_g): Likewise.
43617
43618 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
43619
43620         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
43621         * libio/stido.h: Likewise.
43622
43623         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
43624         (AF_NFC): Define.
43625         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
43626         (AF_NFC): Define.
43627
43628         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
43629         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43630         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43631         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
43632         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43633
43634         [BZ #13021]
43635         * scripts/test-installation.pl: Don't expect libnss_test1 to be
43636         installed.
43637
43638         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
43639         typo.
43640         (_dl_x86_64_save_sse): Likewise.
43641
43642 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
43643
43644         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
43645         OSXSAVE.
43646         (_dl_x86_64_save_sse): Likewise.
43647
43648         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
43649
43650         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
43651
43652 2011-07-21  Andreas Schwab  <schwab@redhat.com>
43653
43654         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
43655         change.
43656         (_dl_x86_64_save_sse): Use correct AVX check.
43657
43658 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43659
43660         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
43661         bug in strncpy/strncat.
43662         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
43663
43664 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
43665
43666         * string/tester.c (test_strcat): Add tests for different alignments
43667         of source and destination.
43668         (test_strncat): Likewise.
43669
43670 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43671
43672         [BZ #12852]
43673         * posix/glob.c (glob): Check passed in values before using them in
43674         expressions to avoid some overflows.
43675         (glob_in_dir): Likewise.
43676
43677         [BZ #13007]
43678         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
43679         check for AVX enablement so that we don't crash with old kernels and
43680         new hardware.
43681         * elf/tst-audit4.c: Add same checks here.
43682         * elf/tst-audit6.c: Likewise.
43683
43684         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
43685
43686 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
43687
43688         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
43689
43690 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43691
43692         * po/cs.po: Update from translation team.
43693         * po/bg.po: Likewise.
43694
43695 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
43696
43697         * misc/sys/cdefs.h: Add support for const attribute.
43698         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
43699         to gnu_dev_{major,minor,makedev} functions.
43700
43701 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
43702
43703         * intl/dcigettext.c (get_output_charset): Add missing bracket.
43704
43705 2011-07-20  Andreas Schwab  <schwab@redhat.com>
43706
43707         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
43708         strlen results.
43709
43710 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43711
43712         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
43713         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
43714         register in order to avoid conflicts with the soft frame pointer
43715         being held in r11 when necessary.
43716         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
43717         (INTERNAL_VSYSCALL_NCS): Likewise.
43718
43719 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
43720
43721         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
43722         * elf/dl-fini.c (_dl_fini): Adjust caller.
43723         * elf/dl-close.c (_dl_close_worker): Likewise.
43724         * sysdeps/generic/ldsodefs.h: Adjust declaration.
43725
43726 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43727
43728         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
43729         "aux_cache->nlibs < 0".
43730
43731         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
43732         in the reload-count case.
43733
43734 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43735
43736         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43737         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
43738         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
43739         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
43740         * sysdeps/x86_64/multiarch/strcat.S: New file.
43741         * sysdeps/x86_64/multiarch/strncat.S: New file.
43742         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
43743         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
43744         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
43745         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
43746         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
43747         (USE_AS_STRCAT): Define.
43748         Add strcat and strncat support.
43749         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43750         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
43751         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
43752         * string/strncat.c: Update.
43753         (USE_AS_STRNCAT): Define.
43754         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43755         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
43756         and i7.
43757         * sysdeps/x86_64/multiarch/init-arch.h
43758         (bit_Prefer_PMINUB_for_stringop): New.
43759         (index_Prefer_PMINUB_for_stringop): Likewise.
43760         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
43761         bit_Prefer_PMINUB_for_stringop.
43762
43763 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43764
43765         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
43766         buffer64.
43767         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
43768         of casting of buffer.
43769         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
43770         buffer32 and buffer64.
43771         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
43772         writes instead of casting of buffer.
43773         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
43774         buffer32.
43775         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
43776         casting of buffer.
43777
43778 2011-07-19  Andreas Schwab  <schwab@redhat.com>
43779
43780         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
43781
43782 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43783
43784         * nscd/nscd.c (termination_handler): Don't do anything for a database
43785         if it has not yet been initialized.
43786
43787 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43788
43789         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43790
43791 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43792
43793         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43794
43795 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43796
43797         * po/nl.po: Update from translation team.
43798         * po/sv.po: Likewise.
43799
43800 2011-07-16  Roland McGrath  <roland@hack.frob.com>
43801
43802         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
43803         now disallowed by GCC.
43804
43805         * configure.in (use-default-link): Default to yes if a test -shared
43806         link meets our qualifications.
43807         * configure: Regenerated.
43808
43809         * config.make.in (output-format): New variable.
43810         * configure.in: Check for ld --print-output-format support.
43811         * configure: Regenerated.
43812         * Makerules ($(common-objpfx)format.lds)
43813         [$(output-format) != unknown]: Just use $(output-format),
43814         instead of the linker-script munging.
43815
43816 2011-07-14  Roland McGrath  <roland@hack.frob.com>
43817
43818         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
43819         of $(common-objpfx)shlib.lds.
43820         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
43821
43822         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
43823         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
43824
43825         * configure.in (-z relro check): Adjust test code to add a large
43826         writable data section after it.
43827         * configure: Regenerated.
43828
43829 2011-07-11  Roland McGrath  <roland@hack.frob.com>
43830
43831         * configure.in (-z relro check): Fix test code to make the variable
43832         truly const.
43833         * configure: Regenerated.
43834
43835 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
43836
43837         * nscd/nscd.h (struct traced_file): Define.
43838         (struct database_dyn): Remove inotify_descr, reset_res, and filename
43839         elements.  Add traced_files.
43840         (inotify_fd): Declare.
43841         (register_traced_file): Declare.
43842         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
43843         (inotify_fd): Export.
43844         (resolv_conf_descr): Remove.
43845         (nscd_init): Move inotify descriptor creation to main.
43846         Don't register files for notification here.
43847         (register_traced_file): New function.
43848         (invalidate_cache): Don't use reset_res to determine whether to call
43849         res_init, go through the list of registered files.
43850         (main_loop_poll): The inotify descriptors are now stored in the
43851         structures for the traced files.
43852         (main_loop_epoll): Likewise
43853         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
43854         to __nss_disable_nscd.
43855         * nscd/cache.c (prune_cache): There is no single inotify descriptor
43856         for a database anymore.  Check the records for all the registered
43857         files instead.
43858         * nss/Makefile (libnss_files-routines): Add files-init.
43859         (libnss_db-routines): Add db-init.
43860         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
43861         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
43862         * nss/nss_db/db-init.c: New file.
43863         * nss/nss_files/files-init.c: New file.
43864         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
43865         __nss_lookup_function.
43866         (__nss_lookup_function): Call nss_load_library.
43867         (nss_load_all_libraries): New function.
43868         (__nss_disable_nscd): Take parameter with callback function for files
43869         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
43870         used for the cached services.
43871         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
43872         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
43873         options for features to all the files in nscd.
43874
43875         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
43876
43877 2011-07-10  Roland McGrath  <roland@hack.frob.com>
43878
43879         * csu/elf-init.c (__libc_csu_init): Comment typo.
43880
43881 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
43882
43883         * po/pl.po: Update from translation team.
43884         * po/ja.po: Likewise.
43885         * po/ru.po: Likewise.
43886         * po/ko.po: Likewise.
43887         * po/fr.po: Likewise.
43888
43889 2011-07-09  Roland McGrath  <roland@hack.frob.com>
43890
43891         * configure.in (.ctors/.dtors header and trailer check):
43892         Use an empirical test on a built program.
43893         * configure: Regenerated.
43894
43895         * configure.in (-z relro check): Use an empirical test on a built DSO.
43896         Detect, but do not require, on ia64.
43897         * configure: Regenerated.
43898
43899         * configure.in (READELF): Find it with AC_CHECK_TOOL.
43900         Update tests that use readelf to use $READELF instead.
43901         * configure: Regenerated.
43902
43903 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
43904
43905         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
43906         if the result is not used.
43907
43908 2011-07-05  Andreas Jaeger  <aj@suse.de>
43909
43910         [BZ#9696]
43911         * stdlib/tst-strtod.c: Add testcase.
43912
43913 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
43914
43915         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
43916         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
43917         The latter has a higher limit.  Take additional parameter to pass to
43918         the new function.
43919         (__pathconf): Pass file to __statfs_link_max.
43920         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
43921         __statfs_link_max.
43922         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
43923         __statfs_link_max.
43924
43925         [BZ #12868]
43926         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
43927         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
43928         Handle Lustre.
43929         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
43930         (__statfs_filesize_max): Likewise.
43931         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
43932
43933 2011-07-05  Andreas Jaeger  <aj@suse.de>
43934
43935         * resolv/res_comp.c (dn_skipname): Remove unused variable.
43936
43937 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
43938
43939         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
43940         `status' variable.
43941         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
43942         Likewise.
43943
43944 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
43945
43946         * Makefile (strop-tests): Add strncat.
43947         * string/test-strncat.c: New file.
43948
43949 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
43950
43951         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
43952
43953 2011-06-21  Andreas Jaeger  <aj@suse.de>
43954
43955         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
43956         Copy rule from iconvdata/Makefile.
43957
43958 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43959
43960         [BZ #12922]
43961         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
43962         but no long options are defined, just return 'W'.
43963
43964 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
43965
43966         [BZ #9696]
43967         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
43968
43969 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43970
43971         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
43972         netgroups to read.
43973         (innetgr): Likewise.
43974
43975 2011-07-05  Roland McGrath  <roland@hack.frob.com>
43976
43977         * config.make.in (install_root): Default to $(DESTDIR).
43978
43979 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
43980
43981         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
43982
43983 2011-07-02  Roland McGrath  <roland@hack.frob.com>
43984
43985         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
43986
43987         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
43988         containing directory rather than embedding absolute directory names.
43989
43990         * scripts/check-local-headers.sh: Rewritten using awk.
43991         Match by word, not by line.  Print error messages for matches.
43992         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
43993
43994         * Makerules [shlib-lds-flags empty]:
43995         ($(common-objpfx)libc_pic.opts): New target.
43996         ($(common-objpfx)libc_pic.os.clean): New target.
43997         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
43998
43999         * config.make.in (OBJCOPY): New variable.
44000         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
44001         * configure: Regenerated.
44002
44003         * config.make.in (use-default-link): New variable.
44004         * configure.in (use_default_link): Grok --with-default-link to set it.
44005         * configure: Regenerated.
44006         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
44007         (shlib-lds, shlib-lds-flags): Define to empty.
44008
44009         * Makerules (shlib-lds): New variable.
44010         (shlib-lds-flags): New variable.
44011         (build-shlib, build-moduile, build-module-asneeded): Use it.
44012         ($(common-objpfx)libc.so): Use $(shlib-lds).
44013         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
44014         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
44015
44016         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
44017         DT_FLAGS/DT_FLAGS_1 with zero flags.
44018
44019         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
44020         linker script munging.
44021
44022 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
44023
44024         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
44025         as 128-bit value.
44026         * crypt/sha512.c (sha512_process_block): Perform total addition using
44027         128-bit if possible.
44028         (__sha512_finish_ctx): Likewise.
44029         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
44030         as 64-bit value.
44031         * crypt/sha256.c (SWAP64): Define.
44032         (sha256_process_block): Perform total addition using 64-bit if
44033         possible.
44034         (__sha256_finish_ctx): Likewise.
44035
44036 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
44037
44038         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
44039         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44040         * nscd/hstcache.c (cache_addhst): Likewise.
44041         * nscd/grpcache.c (cache_addgr): Likewise.
44042         * nscd/aicache.c (addhstaiX): Likewise
44043         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
44044
44045 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
44046
44047         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
44048         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44049         * nscd/hstcache.c (cache_addhst): Likewise.
44050         * nscd/grpcache.c (cache_addgr): Likewise.
44051         * nscd/aicache.c (addhstaiX): Likewise
44052
44053 2011-07-01  Andreas Schwab  <schwab@redhat.com>
44054
44055         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
44056         domain only when needed.
44057
44058 2011-06-30  Andreas Schwab  <schwab@redhat.com>
44059
44060         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
44061         is always restored.
44062
44063 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
44064
44065         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
44066         are re-adding the entry.
44067         * nscd/servicescache.c (cache_addserv): Likewise.
44068
44069 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
44070
44071         * sysdeps/generic/dl-irel.h: fix protection against multiple
44072         inclusions.
44073         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
44074
44075 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
44076
44077         [BZ #12935]
44078         * malloc/memusage.sh: Fix quoting in message.
44079         * debug/xtrace.sh: Likewise.
44080
44081         * configure.in: Remove support for --experimental-malloc option, make
44082         it the default.
44083         * config.make.in: Likewise.
44084         * malloc/Makefile: Likewise.
44085
44086 2011-06-27  Andreas Schwab  <schwab@redhat.com>
44087
44088         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
44089         two-byte characters.
44090
44091 2011-06-27  Roland McGrath  <roland@hack.frob.com>
44092
44093         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
44094         AC_CACHE_CHECK invocation.
44095         * configure: Regenerated.
44096
44097         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
44098
44099 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
44100
44101         [BZ #12350]
44102         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
44103         bit from old_res_options.
44104
44105         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
44106
44107         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
44108         value type for setfct.
44109
44110 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
44111
44112         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44113         __gettimeofday instead of gettimeofday.
44114
44115 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
44116
44117         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
44118
44119 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
44120
44121         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
44122
44123         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
44124         info.
44125
44126 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44127
44128         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44129         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44130         strcpy-sse2-unaligned strncpy-sse2-unaligned
44131         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
44132         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
44133         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
44134         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
44135         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
44136         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
44137         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
44138         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
44139         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
44140         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
44141         (STRCPY): Support SSE2 and SSSE3 versions.
44142
44143 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
44144
44145         [BZ #12874]
44146         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
44147         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
44148         kernels which artificially limit size of requests.
44149
44150 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44151
44152         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44153         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44154         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
44155         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
44156         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
44157         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
44158         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
44159         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
44160         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
44161         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
44162         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
44163         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
44164         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
44165         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
44166         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
44167         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44168         Enable unaligned load optimization for Intel Core i3, i5 and i7
44169         processors.
44170         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
44171         Define.
44172         (index_Fast_Unaligned_Load): Define.
44173         (HAS_FAST_UNALIGNED_LOAD): Define.
44174
44175 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
44176
44177         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
44178
44179 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44180
44181         [BZ #12907]
44182         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
44183         until it is clear that the information is realy needed.
44184         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
44185
44186 2011-06-22  Andreas Schwab  <schwab@redhat.com>
44187
44188         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
44189
44190 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44191
44192         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44193         /sys/devices/system/cpu/online if it is usable.
44194
44195         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
44196         reading the information from the /proc filesystem to once a second.
44197
44198 2011-06-21  Andreas Jaeger  <aj@suse.de>
44199
44200         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
44201         NULL after inclusion of kernel headers.
44202
44203 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
44204
44205         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
44206         calls to internal_setent.
44207
44208         [BZ #12885]
44209         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
44210         addresses using gethostbyname4_r ignore IPv4 addresses.
44211
44212         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
44213         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
44214
44215         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
44216
44217 2011-06-20  David S. Miller  <davem@davemloft.net>
44218
44219         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
44220         inclusions.
44221         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
44222
44223         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
44224         (elf_irel): Use it.
44225         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
44226         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
44227         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
44228         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
44229         * sysdeps/x86_64/dl-irel.h: Likewise.
44230
44231         * elf/dl-runtime.c: Use elf_ifunc_invoke.
44232         * elf/dl-sym.c: Likewise.
44233
44234 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44235
44236         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
44237         need to dereference resplen2.
44238
44239 2011-06-14  Andreas Schwab  <schwab@redhat.com>
44240
44241         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
44242
44243 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44244
44245         * Makeconfig: Define vardbdir and inst_vardbdir.
44246         * nss/Makefile: Add rules to install db-Makefile.
44247
44248         * nss/nss_db/db-XXX.c: Cleanup.
44249
44250         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
44251         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
44252         GLIBC_PRIVATE.
44253         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
44254         * nss/makedb.c: Implement -g option to specify that value strings
44255         are generated and should not be added to table iterated over for
44256         get*ent calls.
44257         * nss/nss_db/db-initgroups.c: New file.
44258
44259         * nss/getent.c: Add support for initgroups lookups through getgrouplist
44260         interface.
44261
44262         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
44263         (internal_getgrouplist): Adjust to name change.
44264         Update use_initgroups_entry if this is not the first call.
44265         * nss/databases.def: Add initgroups entry.
44266
44267         * nss/makedb.c (compute_tables): Check result of multiple hash table
44268         sizes to minimize maximum chain length.
44269
44270 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
44271
44272         * Versions.def: Add entry for libnss_db.
44273         * shlib-versions: Likewise.
44274         * nss/Makefile: Add rules to build libnss_db.
44275         * nss/Versions: Add libnss_db information.  Organize libnss_files
44276         entries better.
44277         * nss/db-Makefile: Add gshadow support.  Change rules for the new
44278         makedb progra.  Some minor improvements to generate smaller files.
44279         * nss/nss_db/nss_db.h: Move NSS database header data structures to
44280         here from...
44281         * nss/makedb.c: ...here.
44282         Improve database format to be smaller and require less memory at
44283         runtime.
44284         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
44285         db anymore.
44286         * nss/nss_db/db-netgrp.c: Likewise.
44287         * nss/nss_db/db-open.c: Likewise.
44288         * nss/nss_files/flies-XXX.x: Adjust comments.
44289         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
44290         * nss/nss_files/files-grp.c: Likewise.
44291         * nss/nss_files/files-hosts.c: Likewise.
44292         * nss/nss_files/files-network.c: Likewise.
44293         * nss/nss_files/files-proto.c: Likewise.
44294         * nss/nss_files/files-pwd.c: Likewise.
44295         * nss/nss_files/files-rpc.c: Likewise.
44296         * nss/nss_files/files-service.c: Likewise.
44297         * nss/nss_files/files-sgrp.c: Likewise.
44298         * nss/nss_files/files-spwd.c: Likewise.
44299         * nss/nss_db/db-alias.c: Removed.
44300         * nss/nss_db/dummy-db.h: Removed.
44301
44302 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
44303
44304         * nss/makedb.c: Rewritten to not use database library.
44305         * nss/Makefile: Update to build new makedb program.
44306
44307 2011-06-14  Andreas Jaeger  <aj@suse.de>
44308
44309         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
44310         memset declaration.
44311
44312 2011-06-10  Andreas Schwab  <schwab@redhat.com>
44313
44314         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
44315         tmpbuf.
44316
44317 2011-06-10  Roland McGrath  <roland@hack.frob.com>
44318
44319         * Makerules (shlib.lds): Fail if the linker script comes out empty.
44320         * elf/Makefile ($(objpfx)ld.so): Likewise.
44321
44322         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
44323         Don't list ld.so twice in dependencies.
44324
44325         * posix/bug-regex31.c: Include <stdlib.h>.
44326
44327         * nscd/hstcache.c (cache_addhst): Remove unused variable.
44328
44329         * nis/nss_compat/compat-spwd.c
44330         (getspent_next_nss_netgr): Remove unused variable.
44331         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
44332
44333         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
44334         nonmembers" output to use the right array.
44335
44336         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
44337
44338         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
44339
44340         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
44341         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
44342         * catgets/gencat.c (read_input_file): Likewise.
44343         * locale/programs/locarchive.c (enlarge_archive): Likewise.
44344
44345         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
44346         variable definition inside #if's controlling its use.
44347
44348         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
44349
44350         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
44351
44352         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
44353
44354         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
44355         unreachable code.
44356
44357         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
44358
44359         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
44360         * configure: Regenerated.
44361
44362         * Makerules: Revert last change.
44363         * elf/Makefile: Likewise.
44364
44365 2011-06-09  Roland McGrath  <roland@hack.frob.com>
44366
44367         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
44368         * elf/Makefile ($(objpfx)librtld.os): Likewise.
44369         (reloc-link): Likewise.
44370
44371 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
44372
44373         * elf/Makefile: Add rules to build pldd.
44374         * elf/pldd.c: New file.
44375         * elf/pldd-xx.c: New file.
44376
44377 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
44378
44379         * version.h: Update for 2.15 development version.
44380
44381 2011-06-07  David S. Miller  <davem@davemloft.net>
44382
44383         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
44384         ifuncs.
44385         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
44386         elf_machine_lazy_rel): Likewise.
44387         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44388         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
44389         elf_machine_lazy_rel): Likewise.
44390         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
44391         dl_hwcap via passed in argument.
44392         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
44393         Likewise.
44394
44395 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44396
44397         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
44398
44399 2011-06-06  Roland McGrath  <roland@hack.frob.com>
44400
44401         [BZ #12849]
44402         * manual/fdl-1.1.texi: New file, verbatim from:
44403         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
44404         * manual/lgpl-2.1.texi: New file, verbatim from:
44405         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
44406         * manual/Makefile (licenses): New variable, list those new file names.
44407         (texis): Use it.
44408         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
44409
44410         * manual/fdl.texi: File removed.
44411         * manual/lesser.texi: File removed.
44412         * manual/libc.texinfo (Copying, Documentation License):
44413         Use new @include file names, put @appendix directive before @include.
44414
44415 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
44416
44417         [BZ #12841]
44418         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
44419         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
44420         (mq_open): Add __NTH.
44421
44422 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
44423
44424         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44425         Assume Intel Core i3/i5/i7 processor if AVX is available.
44426
44427 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44428
44429         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
44430         typo.
44431
44432 2011-05-31  Andreas Schwab  <schwab@redhat.com>
44433
44434         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
44435         memory.  Use alloca_account.  Fix memory leak when retrying.
44436
44437 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44438
44439         * version.h (RELEASE): Bump for 2.14 release.
44440         * include/features.h (__GLIBC_MINOR__): Bump to 14.
44441
44442         * config.make.in (RANLIB): Remove entry.
44443
44444 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
44445
44446         * po/Makefile (po-sed-cmd): Add ksh to extensions.
44447         (libc.pot): Work around missing support for .ksh extension in xgettext.
44448
44449         [BZ #12684]
44450         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
44451         if both request failed.
44452         (send_dg): In case of server errors clear resplen or *resplen2.
44453
44454         [BZ #12454]
44455         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
44456         when there are multiple maps.
44457         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
44458         (_dl_fini): Remove test here.
44459
44460         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
44461
44462 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
44463
44464         [BZ #12350]
44465         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
44466         bit from old_res_options.
44467         (gaih_inet): Likewise.
44468
44469         [BZ #11099]
44470         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
44471         as signed.
44472
44473         * resolv/res_init.c (res_setoptions): Make the code more compact.
44474
44475         [BZ #11558]
44476         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
44477         set RES_USEVC.
44478
44479         [BZ #11634]
44480         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
44481
44482         * malloc/malloc.h: Mark malloc hook variables as deprecated.
44483
44484         [BZ #11781]
44485         * malloc/malloc.h: Declare malloc hook variables as volatile.
44486
44487         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
44488         in last patch.
44489
44490         [BZ #11799]
44491         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
44492         raise in the comment.
44493         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
44494         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
44495         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
44496
44497 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
44498
44499         [BZ #12811]
44500         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
44501         grow the buffers more if it already has to be sufficient.
44502         (build_wcs_upper_buffer): Likewise.
44503         * posix/regexec.c (check_matching): Likewise.
44504         (clean_state_log_if_needed): Likewise.
44505         (extend_buffers): Don't enlarge buffers beyond size of the input
44506         buffer.
44507         Patches mostly by Emil Wojak <emil@wojak.eu>.
44508         * posix/bug-regex32.c: New file.
44509         * posix/Makefile (tests): Add bug-regex32.
44510
44511         * locale/findlocale.c (_nl_find_locale): Return right away if
44512         _nl_explode_name failed.
44513         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
44514
44515         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
44516
44517         * debug/xtrace.sh: Unify messages.
44518         * malloc/memusage.sh: Likewise.
44519
44520         [BZ #12813]
44521         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
44522         time symbol from vDSO.  Substitute with vsyscall if not available.
44523         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
44524         __vdso_time.
44525
44526         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
44527         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
44528         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
44529         Add sendmmsg and internal_sendmmsg.
44530         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
44531         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
44532         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
44533
44534         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
44535         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
44536         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
44537
44538 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
44539
44540         [BZ #12813]
44541         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
44542         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
44543         available.
44544         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
44545         __vdso_getcpu.
44546
44547         [BZ #12814]
44548         * iconvdata/Makefile (tests): Add bug-iconv9.
44549         * iconvdata/bug-iconv9.c: New file.
44550
44551 2011-05-27  Andreas Schwab  <schwab@redhat.com>
44552
44553         [BZ #12814]
44554         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
44555
44556 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
44557
44558         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44559         (struct user_regs_struct): Change intcs field back to cs.
44560
44561 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
44562
44563         * po/ja.po: Update from translation team.
44564
44565 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
44566
44567         [BZ #12795]
44568         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
44569         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
44570
44571 2011-05-20  Andreas Schwab  <schwab@redhat.com>
44572
44573         * stdlib/longlong.h: Update from GCC.
44574
44575 2011-05-23  Andreas Schwab  <schwab@redhat.com>
44576
44577         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
44578         parameter name.
44579         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
44580         Add parameter name.
44581         (__sysconf): Pass it down.
44582
44583 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
44584
44585         [BZ #12671]
44586         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
44587         some situations.
44588         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44589         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
44590         add in in __libc_use_alloca calls.  Adjust callers.
44591         (glob): Use malloc in some situations.
44592
44593         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
44594         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
44595         pltexit.
44596
44597 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
44598
44599         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
44600         and CLOCK_BOOTTIME_ALARM.
44601
44602         [BZ #12782]
44603         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
44604         is returned.
44605
44606         * string/_strerror.c (__strerror_r): Print negative errors as signed
44607         numbers.
44608
44609         [BZ #12777]
44610         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
44611         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
44612         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
44613
44614         * configure.in: Fix typo in redirection and correct removal of test
44615         files in two cases.
44616
44617         [BZ #12788]
44618         * locale/setlocale.c (new_composite_name): Fix test to check for
44619         identical name of all categories.
44620
44621         [BZ #12792]
44622         * libio/filedoalloc.c (local_isatty): New function.
44623         (_IO_file_doallocate): Use local_isatty.
44624         * stdio-common/perror.c (perror): In case a new stream is used
44625         forward the stream error.
44626         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
44627         error flag.
44628
44629 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
44630
44631         [BZ #11869]
44632         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
44633         alloca.
44634         * include/alloca.h (extend_alloca_account): Define.
44635
44636         [BZ #11857]
44637         * posix/regex.h: Fix comments with documentation of user-accessible
44638         fields after compilation and describe correct free'ing of pattern
44639         after re_compile_pattern.
44640         Patch by Reuben Thomas <rrt@sc3d.org>.
44641
44642 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
44643
44644         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
44645         and -mno-altivec to prevent the compiler from using Altivec and/or
44646         VSX instructions when the corresponding registers are not available.
44647
44648 2011-05-19  Andreas Schwab  <schwab@redhat.com>
44649
44650         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
44651
44652 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
44653
44654         * libio/freopen.c (freopen): Use __dup2, not dup2.
44655         * libio/freopen64.c (freopen64): Likewise.
44656
44657 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
44658
44659         [BZ #12775]
44660         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
44661         * math/Makefile (tests): Add test-powl.
44662         (CFLAGS-test-powl.c): Define.
44663         * math/test-powl.c: New file.
44664
44665 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
44666
44667         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
44668
44669 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
44670
44671         [BZ #11837]
44672         * iconvdata/gb18030.c: Update to GB18020-2005.
44673
44674 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
44675
44676         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
44677         RE_SYNTAX_POSIX_AWK): Update to match recent development.
44678         Patch by Aharon Robbins <arnold@skeeve.com>.
44679
44680         [BZ #11892]
44681         * stdlib/putenv.c (putenv): Don't always create copy of the variable
44682         on the stack.
44683
44684         [BZ #11895]
44685         * misc/pselect.c (__pselect): Handle timeout value errors hidden
44686         through underflows.
44687
44688         [BZ #12766]
44689         * misc/error.c (error_at_line): Ensure file_name and old_file_name
44690         point to strings before performing equality test for error_one_per_line
44691         mode.
44692
44693         [BZ #11697]
44694         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
44695
44696         [BZ #11820]
44697         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44698         (struct user_fpregs_struct): Avoid __uint*_t types.
44699
44700         [BZ #6420]
44701         * malloc/mtrace.c (tr_where): Add additional parameter to point to
44702         symbol info.  Use it instead of calling _dl_addr locally.
44703         (lock_and_info): New function.
44704         (tr_freehook): Call lock_and_info and pass symbol info as additional
44705         parameter to tr_where.
44706         (tr_mallochook): Likewise.
44707         (tr_reallochook): Likewise.
44708         (tr_memalignhook): Likewise.
44709
44710         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
44711         used and couldn't be at all thread-safe.
44712
44713 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
44714
44715         * libio/freopen.c (freopen): Don't close old file descriptor
44716         before the new one is opened.  Instead dup the new file descriptor
44717         to the old one after the new stream is created.
44718         * libio/freopen64.c (freopen64): Likewise.
44719         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
44720         * libio/fileops.c (_IO_new_file_close_it): Handle new
44721         _IO_FLAGS2_NOCLOSE flag.
44722         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
44723         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
44724         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
44725         _IO_FLAGS2_NOCLOSE flag.
44726         * include/unistd.h: Add hidden_proto for dup3.
44727         Define __have_dup3.
44728         * io/dup3.c: Define hidden symbol.
44729         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
44730
44731         [BZ #7101]
44732         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
44733         when an incomplete long option is used.
44734         * posix/tst-getopt_long1.c: New file.
44735         * posix/Makefile (tests): Add tst-getopt_long1.
44736
44737         [BZ #10138]
44738         * scripts/config.guess: Update from autoconf-2.68.
44739         * scripts/config.sub: Likewise.
44740
44741         [BZ #10157]
44742         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
44743         tests into ...
44744         (has_cpuclock): ...this.  New function.
44745         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
44746         macro here based on has_cpuclock code.
44747
44748         [BZ #10149]
44749         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44750         First byte (not low byte) is now always NUL.
44751         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
44752
44753         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44754         Use non-cancelable interfaces.
44755
44756         [BZ #9809]
44757         * locale/iso-639.def: Add entry for Sorani.
44758
44759         [BZ #11901]
44760         * include/stdlib.h: Move include protection to the right place.
44761         Define abort_msg_s.  Declare __abort_msg with it.
44762         * stdlib/abort.c (__abort_msg): Adjust type.
44763         * assert/assert.c (__assert_fail_base): New function.  Majority
44764         of code from __assert_fail.  Allocate memory for __abort_msg with
44765         mmap.
44766         (__assert_fail): Now call __assert_fail_base.
44767         * assert/assert-perr.c: Remove bulk of implementation.  Use
44768         __assert_fail_base.
44769         * include/assert.hL Declare __assert_fail_base.
44770         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
44771         mmap.
44772         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
44773
44774 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
44775
44776         [BZ #11952]
44777         [BZ #12453]
44778         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
44779         until all modules are registered in the DTV.
44780         * elf/Makefile: Add rules to build and run tst-tls19.
44781         * elf/tst-tls19.c: New file.
44782         * elf/tst-tls19mod1.c: New file.
44783         * elf/tst-tls19mod2.c: New file.
44784         * elf/tst-tls19mod3.c: New file.
44785         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
44786
44787         [BZ #12083]
44788         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
44789         correctly.
44790
44791         [BZ #12601]
44792         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
44793         two-byte sequence errors.
44794         * iconvdata/Makefile (tests): Add bug-iconv8.
44795         * iconvdata/bug-iconv8.c: New file.
44796
44797         [BZ #12626]
44798         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
44799         buf2 definition.
44800
44801         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
44802
44803         [BZ #12432]
44804         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
44805         (dummy_getcfa): New function.
44806         (init): Get _Unwind_GetCFA address, use dummy if not found.
44807         (backtrace_helper): In recursion check, also check whether CFA changes.
44808         (__backtrace): Completely initialize arg.
44809
44810         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
44811         storing incomplete byte sequence in state object.  Avoid testing for
44812         guaranteed too small input if we know there is enough data available.
44813
44814 2011-05-11  Andreas Schwab  <schwab@redhat.com>
44815
44816         * Makeconfig (+link-pie): Indent.
44817         * Rules (binaries-pie): Define if $(have-fpie) and
44818         $(build-shared).
44819         (binaries-shared): Also filter out $(binaries-pie).
44820         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
44821         * nscd/Makefile (others-pie): Add nscd.
44822         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
44823         ($(objpfx)nscd): Remove command override.
44824         * login/Makefile (others-pie): Add pt_chown.
44825         ($(objpfx)pt_chown): Remove command override.
44826         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
44827         remove command overrides.
44828
44829 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
44830
44831         * libio/tst_putwc.c: Fix error messages.
44832
44833         [BZ #12724]
44834         * libio/fileops.c (_IO_new_file_close_it): Always flush when
44835         currently writing and seek to current position when not.
44836         * libio/Makefile (tests): Add bug-fclose1.
44837         * libio/bug-fclose1.c: New file.
44838
44839 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
44840
44841         [BZ #12511]
44842         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
44843         don't set DF_1_NODELETE here.
44844         (do_lookup_x): When entering new entry test for copy relocation
44845         and if necessary set DF_1_NODELETE flag.
44846         * elf/tst-unique4.cc: New file.
44847         * elf/tst-unique4.h: New file.
44848         * elf/tst-unique4lib.cc: New file.
44849         * elf/Makefile: Add rules to build and run tst-unique4.
44850         Patch by Piotr Bury <pbury@goahead.com>.
44851
44852 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44853
44854         [BZ #12052]
44855         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
44856
44857         [BZ #12625]
44858         * misc/mntent_r.c (addmntent): Flush the stream after the output
44859
44860         [BZ #12393]
44861         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
44862         (is_trusted_path_normalize): Skip initial colon.  Append slash
44863         to empty buffer.  Duplicate is_trusted_path code but allow
44864         constructed patch to be prefix.
44865         (is_dst): Allow $ORIGIN followed by /.
44866         (_dl_dst_substitute): Correct clearing of check_for_trusted.
44867         Correct testing of result of is_trusted_path_normalize
44868         (decompose_rpath): Fix warning.
44869
44870 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
44871
44872         [BZ #11257]
44873         * grp/initgroups.c (internal_getgrouplist): When we found the service
44874         list through the initgroups entry in nsswitch.conf do not always
44875         continue on a successful lookup.  Don't always use the
44876         __nss_group_database value if it is set.
44877         * nss/nsswitch.conf (initgroups): Change action for successful db
44878         lookup to continue for compatibility.
44879
44880 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
44881
44882         [BZ #11532]
44883         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
44884         and CP774 modules.
44885         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
44886         and CP774 modules.
44887         * iconvdata/tst-tables.sh: Likewise.
44888         * iconvdata/cp770.c: New file.
44889         * iconvdata/cp771.c: New file.
44890         * iconvdata/cp772.c: New file.
44891         * iconvdata/cp773.c: New file.
44892         * iconvdata/cp774.c: New file.
44893         * iconvdata/testdata/CP770: New file.
44894         * iconvdata/testdata/CP770..UTF8: New file.
44895         * iconvdata/testdata/CP771: New file.
44896         * iconvdata/testdata/CP771..UTF8: New file.
44897         * iconvdata/testdata/CP772: New file.
44898         * iconvdata/testdata/CP772..UTF8: New file.
44899         * iconvdata/testdata/CP773: New file.
44900         * iconvdata/testdata/CP773..UTF8: New file.
44901         * iconvdata/testdata/CP774: New file.
44902         * iconvdata/testdata/CP774..UTF8: New file.
44903
44904         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
44905         END CHARMAP line.
44906         * iconvdata/gen-8bit-gap.sh: Likewise.
44907         * iconvdata/gen-8bit.sh: Likewise.
44908
44909         * locale/iso-639.def: Add ary entry.
44910
44911         [BZ #11258]
44912         * locale/C-translit.h.in: Add U20A1 transliteration.
44913
44914         [BZ #12178]
44915         * locale/iso-639.def: Add wae entry.
44916         Patch by Kevin Bortis <bortis@translate-wae.ch>.
44917
44918         [BZ #12545]
44919         * locale/programs/localedef.c (construct_output_path): Use ssize_t
44920         for n.
44921
44922         [BZ #12711]
44923         * locale/C-translit.h.in: Add entry for U20B9.
44924         Patch by pravin.d.s@gmail.com.
44925
44926 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
44927
44928         [BZ #12713]
44929         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
44930         ENAMETOOLONG use generic getcwd.
44931         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
44932         in rtld.  Use *stat64.
44933         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
44934         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
44935         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
44936         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
44937         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
44938         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
44939         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
44940         __fstatat64 macros.
44941         * include/dirent.h: Add libc_hidden_proto for rewinddir.
44942         * dirent/rewinddir.c: Add libc_hidden_def.
44943         * sysdeps/mach/hurd/rewinddir.c: Likewise.
44944         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
44945
44946         * include/dirent.h (__alloc_dir): Add flags parameter.
44947         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
44948         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
44949         __alloc_dir.
44950         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
44951         from fdopendir if O_CLOEXEC is already set.
44952
44953 2011-03-15  Alan Modra  <amodra@gmail.com>
44954
44955         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
44956         l_tls_firstbyte_offset non-zero.  Save padding offset in
44957         l_tls_firstbyte_offset for later use.
44958         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
44959         freeing static tls block.
44960
44961 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
44962
44963         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
44964         where #ifdef was intended.  The intent is to prevent ARG_MAX from
44965         being defined by the kernel headers.
44966
44967 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
44968
44969         [BZ #12734]
44970         * resolv/resolv.h: Define RES_NOTLDQUERY.
44971         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
44972         no-tld-query and set RES_NOTLDQUERY.
44973         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
44974         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
44975         modern BIND to search name as TLD unless forbidden.
44976
44977 2011-05-07  Petr Baudis  <pasky@suse.cz>
44978             Ulrich Drepper  <drepper@gmail.com>
44979
44980         [BZ #12393]
44981         * elf/dl-load.c (fillin_rpath): Move trusted path check...
44982         (is_trusted_path): ...to here.
44983         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
44984         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
44985         using is_trusted_path_normalize() in setuid scripts.
44986
44987 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
44988
44989         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
44990         __BEGIN/__END_DECLS.
44991
44992 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
44993
44994         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
44995         NSS_STATUS_NOTFOUND if no record was found.
44996
44997 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44998
44999         * sunrpc/Makefile (headers): Add rpc/netdb.h.
45000         (headers-not-in-tirpc): Remove rpc/netdb.h
45001         * resolv/netdb.h: Revert last change.
45002
45003 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
45004
45005         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
45006         circular dependency between libgcc.a and libc.a.
45007
45008 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45009
45010         * resolv/netdb.h: Don't include <rpc/netdb.h>.
45011         * nis/Makefile: Don't install rpcsvc/*.
45012         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
45013         instead of <rpc/types.h>.
45014         (MAXHOSTNAMELEN): Define.
45015
45016 2011-05-03  Andreas Schwab  <schwab@redhat.com>
45017
45018         * elf/ldconfig.c (add_dir): Don't crash on empty path.
45019
45020 2011-04-28  Maciej Babinski  <mbabinski@google.com>
45021
45022         [BZ #12714]
45023         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
45024         gethostbyname4_r when IPv6 results are possible.
45025
45026 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
45027
45028         [BZ #12723]
45029         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
45030         _PC_PIPE_BUF handling.
45031
45032 2011-04-30  Bruno Haible  <bruno@clisp.org>
45033
45034         [BZ #12717]
45035         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
45036         * resolv/netdb.h (getnameinfo): Change type of flags parameter
45037         to 'int'.
45038         * inet/getnameinfo.c (getnameinfo): Likewise.
45039
45040 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
45041
45042         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
45043         to groups setting in database lookup.
45044         * nss/nsswitch.conf: Add initgroups entry.
45045
45046 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
45047
45048         [BZ #12685]
45049         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
45050         mode string.
45051         Patch by Eric Blake <eblake@redhat.com>.
45052
45053 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
45054
45055         * sunrpc/Makefile (need-export-routines): Add svc_run.
45056         (routines): Remove svc_run.
45057         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
45058         * sunrpc/clnt_perr.c (clnt_perrno): Export.
45059         * sunrpc/svc_run.c (svc_run): Likewise.
45060         * sunrpc/svc_udp.c (svcudp_create): Likewise.
45061
45062 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
45063
45064         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
45065         problem in reallocation in last patch.
45066
45067 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
45068
45069         * sunrpc/Makefile: Move inclusion of Rules.
45070
45071 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45072
45073         * nss/nss_files/files-initgroups.c: New file.
45074         * nss/Makefile (libnss_files-routines): Add files-initgroups.
45075         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
45076         _nss_files_initgroups_dyn.
45077
45078 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
45079
45080         * elf/elf.h (R_ARM_IRELATIVE): Define.
45081
45082 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45083
45084         * po/ru.po: Update from translation team.
45085
45086 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45087
45088         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
45089         dependencies.
45090
45091 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
45092
45093         [BZ #12653]
45094         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
45095         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
45096         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
45097         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
45098         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
45099
45100 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
45101
45102         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
45103         differing bytes.
45104         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
45105         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
45106         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
45107
45108 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45109
45110         [BZ #12420]
45111         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
45112         storing it.
45113         * stdlib/bug-getcontext.c: New file.
45114         * stdlib/Makefile: Add rules to build and run bug-getcontext.
45115
45116 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45117
45118         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
45119         instructions into .machine "z9-109".
45120         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
45121         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
45122
45123 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45124
45125         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
45126         between environment variables and auxiliary vector.
45127
45128 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
45129
45130         * Makefile: Add rules to build linkobj/libc.so.
45131         * include/libc-symbols.h: Define libc_hidden_nolink.
45132         * include/rpc/auth.h: Mark functions which are to be hidden.
45133         * include/rpc/auth_des.h: Likewise.
45134         * include/rpc/auth_unix.h: Likewise.
45135         * include/rpc/clnt.h: Likewise.
45136         * include/rpc/des_crypt.h: Likewise.
45137         * include/rpc/key_prot.h: Likewise.
45138         * include/rpc/pmap_clnt.h: Likewise.
45139         * include/rpc/pmap_prot.h: Likewise.
45140         * include/rpc/pmap_rmt.h: Likewise.
45141         * include/rpc/rpc_msg.h: Likewise.
45142         * include/rpc/svc.h: Likewise.
45143         * include/rpc/svc_auth.h: Likewise.
45144         * include/rpc/xdr.h: Likewise.
45145         * nis/Makefile: Link all DSOs against linkobj/libc.so.
45146         * nss/Makefile: Likewise.
45147         * sunrpc/Makefile: Don't install headers.  Build library with normal
45148         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
45149         * sunrpc/auth_des.c: Hide exported symbols by default, export some
45150         for the compat linking library.  Remove use of INTDEF/INTUSE.
45151         * sunrpc/auth_none.c: Likewise.
45152         * sunrpc/auth_unix.c: Likewise.
45153         * sunrpc/authdes_prot.c: Likewise.
45154         * sunrpc/authuxprot.c: Likewise.
45155         * sunrpc/clnt_gen.c: Likewise.
45156         * sunrpc/clnt_perr.c: Likewise.
45157         * sunrpc/clnt_raw.c: Likewise.
45158         * sunrpc/clnt_simp.c: Likewise.
45159         * sunrpc/clnt_tcp.c: Likewise.
45160         * sunrpc/clnt_udp.c: Likewise.
45161         * sunrpc/clnt_unix.c: Likewise.
45162         * sunrpc/des_crypt.c: Likewise.
45163         * sunrpc/des_soft.c: Likewise.
45164         * sunrpc/get_myaddr.c: Likewise.
45165         * sunrpc/key_call.c: Likewise.
45166         * sunrpc/key_prot.c: Likewise.
45167         * sunrpc/netname.c: Likewise.
45168         * sunrpc/pm_getmaps.c: Likewise.
45169         * sunrpc/pm_getport.c: Likewise.
45170         * sunrpc/pmap_clnt.c: Likewise.
45171         * sunrpc/pmap_prot.c: Likewise.
45172         * sunrpc/pmap_prot2.c: Likewise.
45173         * sunrpc/pmap_rmt.c: Likewise.
45174         * sunrpc/publickey.c: Likewise.
45175         * sunrpc/rpc_cmsg.c: Likewise.
45176         * sunrpc/rpc_common.c: Likewise.
45177         * sunrpc/rpc_dtable.c: Likewise.
45178         * sunrpc/rpc_prot.c: Likewise.
45179         * sunrpc/rpc_thread.c: Likewise.
45180         * sunrpc/rtime.c: Likewise.
45181         * sunrpc/svc.c: Likewise.
45182         * sunrpc/svc_auth.c: Likewise.
45183         * sunrpc/svc_authux.c: Likewise.
45184         * sunrpc/svc_raw.c: Likewise.
45185         * sunrpc/svc_run.c: Likewise.
45186         * sunrpc/svc_simple.c: Likewise.
45187         * sunrpc/svc_tcp.c: Likewise.
45188         * sunrpc/svc_udp.c: Likewise.
45189         * sunrpc/svc_unix.c: Likewise.
45190         * sunrpc/svcauth_des.c: Likewise.
45191         * sunrpc/xcrypt.c: Likewise.
45192         * sunrpc/xdr.c: Likewise.
45193         * sunrpc/xdr_array.c: Likewise.
45194         * sunrpc/xdr_float.c: Likewise.
45195         * sunrpc/xdr_intXX_t.c: Likewise.
45196         * sunrpc/xdr_mem.c: Likewise.
45197         * sunrpc/xdr_rec.c: Likewise.
45198         * sunrpc/xdr_ref.c: Likewise.
45199         * sunrpc/xdr_sizeof.c: Likewise.
45200         * sunrpc/xdr_stdio.c: Likewise.
45201
45202 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
45203
45204         [BZ #12650]
45205         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
45206         * sysdeps/ia64/dl-tls.h: Likewise.
45207         * sysdeps/powerpc/dl-tls.h: Likewise.
45208         * sysdeps/s390/dl-tls.h: Likewise.
45209         * sysdeps/sh/dl-tls.h: Likewise.
45210         * sysdeps/sparc/dl-tls.h: Likewise.
45211         * sysdeps/x86_64/dl-tls.h: Likewise.
45212         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
45213
45214 2011-03-14  Andreas Schwab  <schwab@redhat.com>
45215
45216         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
45217         rpath element also skip the following colon.
45218         (expand_dynamic_string_token): Add is_path parameter and pass
45219         down to DL_DST_REQUIRED and _dl_dst_substitute.
45220         (decompose_rpath): Call expand_dynamic_string_token with
45221         non-zero is_path.  Ignore empty rpaths.
45222         (_dl_map_object_from_fd): Call expand_dynamic_string_token
45223         with zero is_path.
45224
45225 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
45226
45227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
45228         Make cancelable.
45229
45230 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
45231
45232         [BZ #12655]
45233         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
45234         Patch by Filipe David Manana <fdmanana@apache.org>.
45235
45236 2011-04-07  Andreas Schwab  <schwab@redhat.com>
45237
45238         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
45239         Maintain aligned stack.
45240         (CHECK_RSP): Remove unused macro.
45241
45242 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
45243
45244         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
45245         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
45246
45247 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
45248
45249         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
45250
45251         * include/features.h: Mention __USE_XOPEN2K8 in comment.
45252
45253 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
45254
45255         [BZ #12518]
45256         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
45257         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
45258         * sysdeps/x86_64/memmove.c: New file.
45259         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
45260         (memcpy): Renamed to ...
45261         (__new_memcpy): This.
45262         (memcpy): Provide GLIBC_2_14 memcpy.
45263         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
45264         (memcpy): Provide GLIBC_2_2_5 memcpy.
45265
45266 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45267
45268         [BZ #12631]
45269         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
45270
45271 2011-03-30  Andreas Schwab  <schwab@redhat.com>
45272
45273         * misc/syncfs.c: New file.
45274         * misc/Makefile (routines): Add syncfs.
45275         * posix/unistd.h: Declare syncfs.
45276         * sysdeps/unix/syscalls.list: Add syncfs.
45277
45278 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45279
45280         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
45281         open_by_handle_at.
45282         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
45283         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45284         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45285         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45286         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45287         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
45288         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45289
45290 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45291
45292         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
45293         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45294         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
45295         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45296         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45297         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45298         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45299
45300         * io/Makefile: Compile fallocate.c, fallocate64.c, and
45301         sync_file_range.c with -fexceptions.
45302         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
45303         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
45304         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
45305         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
45306         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
45307         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
45308         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
45309         sync_file_range as cancellation point
45310         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
45311         now a wrapper around __call_sync_file_range with cancellation handling.
45312         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
45313         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
45314         function name to __call_sync_file_range.
45315         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
45316         Add call_sync_file_range.
45317
45318 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45319
45320         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
45321         bits/timex.h.
45322
45323 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45324
45325         * iconv/iconv.h: Fix typo in comment.
45326         * io/fcntl.h: Likewise.
45327         * libio/stdio.h: Likewise.
45328         * posix/spawn.h: Likewise.
45329         * posix/unistd.h: Likewise.
45330         * stdlib/stdlib.h: Likewise.
45331         * time/time.h: Likewise.
45332         * wcsmbs/wchar.h: Likewise.
45333
45334         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
45335         open_by_handle): Add.
45336         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
45337         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
45338         Augment a few comments.
45339         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45340         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45341         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45342         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45343         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45344         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
45345         open_by_handle.
45346
45347         * io/fcntl.h (AT_EMPTY_PATH): Define.
45348
45349 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
45350
45351         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
45352         * sysdeps/unix/sysv/linux/bits/time.h: New file.
45353         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
45354         to...
45355         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
45356         * Versions.def: Add GLIBC_2.14.
45357         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
45358         Export.
45359
45360 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
45361
45362         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
45363         round counter.
45364         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45365
45366 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
45367
45368         [BZ #12597]
45369         * string/test-strncmp.c (do_page_test): New function.
45370         (check2): Likewise.
45371         (test_main): Call check2.
45372         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
45373
45374 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
45375
45376         [BZ #12587]
45377         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
45378         Handle cache information in CPU leaf 4.
45379         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45380
45381 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
45382
45383         [BZ #12583]
45384         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
45385         character representation.
45386         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
45387
45388 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
45389
45390         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
45391         END(__isnan) to END(__isnanf) to match function entry point/label
45392         EALIGN(__isnanf,...).
45393
45394 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
45395
45396         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
45397
45398 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
45399
45400         [BZ #12510]
45401         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
45402         copy from the symbol referenced in the relocation to initialize the
45403         used variable.
45404         Patch by Piotr Bury <pbury@goahead.com>.
45405         * elf/Makefile: Add rules to build and tst-unique3.
45406         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
45407         * elf/tst-unique3.cc: New file.
45408         * elf/tst-unique3.h: New file.
45409         * elf/tst-unique3lib.cc: New file.
45410         * elf/tst-unique3lib2.cc: New file.
45411
45412         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
45413
45414 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
45415
45416         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
45417         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
45418         to _start.
45419
45420 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
45421
45422         * elf/dl-load.c (_dl_map_object): If we are looking for the first
45423         to-be-loaded object along a path to loader is ld.so.
45424
45425 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45426             Ulrich Drepper  <drepper@gmail.com>
45427
45428         * sysdeps/x86_64/memset.S: After aligning destination, code
45429         branches to different locations depending on the value of
45430         misalignment, when multiarch is enabled. Fix this.
45431
45432 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45433
45434         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
45435         Set _x86_64_preferred_memory_instruction for AMD processsors.
45436         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45437         Set bit_Prefer_SSE_for_memop for AMD processors.
45438
45439 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
45440
45441         * libio/fmemopen.c (fmemopen): Optimize a bit.
45442
45443 2011-03-03  Andreas Schwab  <schwab@redhat.com>
45444
45445         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
45446
45447 2011-03-03  Roland McGrath  <roland@redhat.com>
45448
45449         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
45450
45451 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
45452
45453         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
45454         __bzero_ultra1 instead of __memset_ultra1.
45455
45456 2011-02-23  Andreas Schwab  <schwab@redhat.com>
45457             Ulrich Drepper  <drepper@gmail.com>
45458
45459         [BZ #12509]
45460         * include/link.h (struct link_map): Add l_orig_initfini.
45461         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
45462         returning unsuccessfully.
45463         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
45464         close of a file loaded at startup, restore the original l_initfini
45465         list.
45466         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
45467         list, store the pointer.
45468         * elf/Makefile ($(objpfx)noload-mem): New rule.
45469         (noload-ENV): Define.
45470         (tests): Add $(objpfx)noload-mem.
45471         * elf/noload.c: Include <memcheck.h>.
45472         (main): Call mtrace.  Close all opened handles.
45473
45474 2011-02-17  Andreas Schwab  <schwab@redhat.com>
45475
45476         [BZ #12454]
45477         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
45478         dependencies are missing.
45479
45480 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45481
45482         Fix __if_freereq crash: Unlike the generic version which uses free,
45483         Hurd needs munmap.
45484         * sysdeps/mach/hurd/ifreq.h: New file.
45485
45486 2011-01-27  Petr Baudis  <pasky@suse.cz>
45487             Ulrich Drepper  <drepper@gmail.com>
45488
45489         [BZ 12445]#
45490         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
45491         to extend_alloca().
45492         * stdio-common/bug23.c: New file.
45493         * stdio-common/Makefile (tests): Add bug23.
45494
45495 2010-09-28  Andreas Schwab  <schwab@redhat.com>
45496             Ulrich Drepper  <drepper@gmail.com>
45497
45498         [BZ #12489]
45499         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
45500         before performing relro protection.  At old place add assertion
45501         to make sure nothing changed.
45502
45503 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
45504             Glauber de Oliveira Costa  <glommer@gmail.com>
45505
45506         * elf/elf.h: Add new ARM TLS relocs.
45507
45508 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
45509
45510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
45511         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
45512         cast from r3.
45513         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
45514         'tests' variable.
45515         * sysdeps/wordsize-64/tst-writev.c: New file.
45516
45517 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
45518
45519         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
45520         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
45521         insns in _dl_start to prevent a TOC reference before relocs are
45522         resolved.
45523
45524 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
45525
45526         [BZ #12469]
45527         * Makeconfig: Remove RANLIB definition.
45528         * Makerules: Don't use RANLIB.
45529         * aclocal.m4: Remove ranlib test.
45530         * configure.in: No need to check for ranlib.
45531         * elf/rtld-Rules: Don't use RANLIB.
45532
45533 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45534
45535         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
45536         protection macro.
45537         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
45538         inclusion protection macro.
45539
45540         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
45541         SIGRTMIN and SIGRTMAX and print information in that case only when
45542         SIGRTMIN is defined.
45543
45544 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
45545
45546         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
45547         arginfo fn returning -1.
45548
45549         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
45550         and thousands string is zero terminated.
45551
45552 2011-02-03  Andreas Schwab  <schwab@redhat.com>
45553
45554         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
45555         sysdeps/unix/sysv/linux/bits/socket.h.
45556
45557 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45558
45559         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
45560         (__CPU_COUNT): Remove old macros.
45561         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
45562         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
45563         (__CPU_ALLOC, __CPU_FREE): Add macros.
45564         (__sched_cpualloc, __sched_cpufree): Add declarations.
45565
45566 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
45567
45568         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
45569         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
45570         * nscd/aicache.c (addhstaiX): Return timeout of added value.
45571         (readdhstai): Return value of addhstaiX call.
45572         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
45573         (addgrbyX): Return value returned by cache_addgr.
45574         (readdgrbyname): Return value returned by addgrbyX.
45575         (readdgrbygid): Likewise.
45576         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
45577         (addpwbyX): Return value returned by cache_addpw.
45578         (readdpwbyname): Return value returned by addhstbyX.
45579         (readdpwbyuid): Likewise.
45580         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
45581         (addservbyX): Return value returned by cache_addserv.
45582         (readdservbyname): Return value returned by addservbyX:
45583         (readdservbyport): Likewise.
45584         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
45585         (addhstbyX): Return value returned by cache_addhst.
45586         (readdhstbyname): Return value returned by addhstbyX.
45587         (readdhstbyaddr): Likewise.
45588         (readdhstbynamev6): Likewise.
45589         (readdhstbyaddrv6): Likewise.
45590         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
45591         (readdinitgroups): Return value returned by addinitgroupsX.
45592         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
45593         (prune_cache): Keep track of timeout value of re-added entries.
45594         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
45595         * nscd/nscd.h: Adjust prototypes of readd* functions.
45596
45597 2011-02-04  Roland McGrath  <roland@redhat.com>
45598
45599         * nis/nis_server.c (nis_servstate): Use the right name for 0.
45600         (nis_stats): Likewise.
45601         * nis/nis_modify.c (nis_modify): Likewise.
45602         * nis/nis_remove.c (nis_remove): Likewise.
45603         * nis/nis_add.c (nis_add): Likewise.
45604
45605         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
45606
45607         * posix/fnmatch_loop.c: Add some consts.
45608
45609         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
45610
45611 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
45612
45613         [BZ #12460]
45614         * config.make.in (config-cflags-novzeroupper): Define.
45615         * configure.in: Substitute libc_cv_cc_novzeroupper.
45616         * elf/Makefile (AVX-CFLAGS): Define.
45617         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
45618         (CFLAGS-tst-auditmod4a.c): Likewise.
45619         (CFLAGS-tst-auditmod4b.c): Likewise.
45620         (CFLAGS-tst-auditmod6b.c): Likewise.
45621         (CFLAGS-tst-auditmod6c.c): Likewise.
45622         (CFLAGS-tst-auditmod7b.c): Likewise.
45623         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
45624
45625 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
45626
45627         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
45628         function to the callback.
45629         Patch partly by Jiri Olsa <jolsa@redhat.com>.
45630
45631 2011-02-02  Andreas Schwab  <schwab@redhat.com>
45632
45633         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
45634         of errno.
45635
45636 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
45637
45638         [BZ #11724]
45639         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
45640         of constructors.
45641         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
45642         of destructors.
45643         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
45644
45645         [BZ #11724]
45646         * elf/Makefile: Add rules to build and run new test.
45647         * elf/tst-initorder.c: New file.
45648         * elf/tst-initorder.exp: New file.
45649         * elf/tst-initordera1.c: New file.
45650         * elf/tst-initordera2.c: New file.
45651         * elf/tst-initordera3.c: New file.
45652         * elf/tst-initordera4.c: New file.
45653         * elf/tst-initorderb1.c: New file.
45654         * elf/tst-initorderb2.c: New file.
45655         * elf/tst-order-a1.c: New file.
45656         * elf/tst-order-a2.c: New file.
45657         * elf/tst-order-a3.c: New file.
45658         * elf/tst-order-a4.c: New file.
45659         * elf/tst-order-b1.c: New file.
45660         * elf/tst-order-b2.c: New file.
45661         * elf/tst-order-main.c: New file.
45662         New test case by George Gensure <werkt0@gmail.com>.
45663
45664 2010-10-01  Andreas Schwab  <schwab@redhat.com>
45665
45666         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
45667         decoding ACE if AI_CANONIDN.
45668
45669 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
45670
45671         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
45672
45673 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
45674
45675         * version.h (RELEASE): Bump for 2.13 release.
45676         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
45677
45678         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
45679
45680         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
45681         MADV_NOHUGEPAGE.
45682         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
45683         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
45684         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
45685         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
45686         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
45687         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45688
45689         * posix/getconf.c: Update copyright year.
45690         * catgets/gencat.c: Likewise.
45691         * csu/version.c: Likewise.
45692         * debug/catchsegv.sh: Likewise.
45693         * debug/xtrace.sh: Likewise.
45694         * elf/ldconfig.c: Likewise.
45695         * elf/ldd.bash.in: Likewise.
45696         * elf/sprof.c (print_version): Likewise.
45697         * iconv/iconv_prog.c: Likewise.
45698         * iconv/iconvconfig.c: Likewise.
45699         * locale/programs/locale.c: Likewise.
45700         * locale/programs/localedef.c: Likewise.
45701         * malloc/memusage.sh: Likewise.
45702         * malloc/mtrace.pl: Likewise.
45703         * nscd/nscd.c (print_version): Likewise.
45704         * nss/getent.c: Likewise.
45705
45706         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
45707         PF_CAIF, and PF_ALG.
45708         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
45709
45710 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
45711
45712         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
45713         (modules-names): Use them.
45714         (ifunc-test-modules, ifunc-pie-tests): Define.
45715         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
45716         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
45717         (test-extras): Likewise.
45718         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
45719         $(compile-command.c).
45720         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
45721         (all-built-dso): Define.
45722         (check-textrel.out, check-execstack.out): Depend on it.
45723
45724         * configure.in: Don't override --enable-multi-arch.
45725
45726 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
45727
45728         [BZ #6812]
45729         * nscd/hstcache.c (tryagain): Define.
45730         (cache_addhst): Return tryagain not notfound for temporary errors.
45731         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
45732         failed.
45733
45734 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
45735
45736         [BZ #10563]
45737         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
45738         to make the syscall.
45739         * sysdeps/unix/sysv/linux/setgroups.c: New file.
45740
45741         [BZ #12378]
45742         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
45743         and fall back to matching as normal character if the string ends before
45744         the matching ']' is found.  This is what POSIX requires.
45745         * posix/testfnm.c: Adjust test result.
45746         * posix/globtest.sh: Adjust test result.  Add new test.
45747         * posix/tst-fnmatch.input: Likewise.
45748         * posix/tst-fnmatch2.c: Add new test.
45749
45750 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
45751
45752         * elf/Makefile (check-execstack): Revert last change.  Depend on
45753         check-execstack.h.
45754         (check-execstack.h): New target.
45755         (generated): Add check-execstack.h.
45756         * elf/check-execstack.c: Include "check-execstack.h".
45757         (main): Revert last change.
45758         (handle_file): Return zero if GNU_STACK is absent and
45759         DEFAULT_STACK_PERMS doesn't include PF_X.
45760
45761 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
45762
45763         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
45764         in child fails because the descriptor is already closed.
45765         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
45766         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
45767         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
45768
45769         [BZ #12397]
45770         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
45771         syscall.
45772
45773         [BZ #10484]
45774         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
45775         temporary buffer used to handle multi lookups locally.
45776         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
45777
45778 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45779
45780         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
45781         loader is ld.so.
45782
45783 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
45784
45785         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
45786         alignment for SSE2.
45787
45788 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45789
45790         [BZ #12394]
45791         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
45792         characters.  When rounding increased number of integer digits recompute
45793         number of groups.
45794         * stdio-common/tst-grouping.c: New file.
45795         * stdio-common/Makefile: Add rules to build and run tst-grouping.
45796
45797 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
45798
45799         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
45800         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
45801
45802         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
45803         void.
45804         * bits/select.h: Likewise.
45805
45806 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
45807
45808         * po/ja.po: Update from translation team.
45809
45810 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
45811
45812         [BZ #11155]
45813         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
45814         implementation just like for lxstat, fxstatat, et al.
45815
45816 2010-12-27  Jim Meyering  <meyering@redhat.com>
45817
45818         [BZ #12348]
45819         * posix/regexec.c (build_trtable): Return failure indication upon
45820         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45821
45822 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
45823
45824         [BZ #12201]
45825         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
45826         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
45827         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
45828         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
45829
45830         [BZ #12207]
45831         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
45832
45833         [BZ #12204]
45834         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
45835         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
45836
45837 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
45838
45839         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
45840         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
45841         script has SORT_BY_INIT_PRIORITY.
45842         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
45843         NO_CTORS_DTORS_SECTIONS is defined.
45844         * elf/soinit.c: Likewise.
45845         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
45846         NO_CTORS_DTORS_SECTIONS is defined.
45847         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
45848         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
45849         * sysdeps/sh/init-first.c: Likewise.
45850         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
45851
45852 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
45853
45854         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
45855         always use the slow path.
45856
45857 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
45858
45859         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
45860         similar rule which adds the sysdep directories to the header search in
45861         order to pick up the correct platform stackinfo.h.
45862         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
45863         perform test if it is, otherwise return successfully without testing.
45864         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
45865         DEFAULT_STACK_PERMS define in stackinfo.h.
45866         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
45867         defined in stackinfo.h.
45868         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
45869         DEFAULT_STACK_PERMS defined in stackinfo.h.
45870         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
45871         * sysdeps/ia64/stackinfo.h: Likewise.
45872         * sysdeps/s390/stackinfo.h: Likewise.
45873         * sysdeps/sh/stackinfo.h: Likewise.
45874         * sysdeps/sparc/stackinfo.h: Likewise.
45875         * sysdeps/x86_64/stackinfo.h: Likewise.
45876         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
45877         PF_X for powerpc64.  Retain PF_X for powerpc32.
45878
45879 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
45880
45881         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
45882         accurately.
45883         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
45884         GETDENTS_64BIT_ALIGNED.
45885
45886 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
45887
45888         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
45889
45890 2010-12-10  Andreas Schwab  <schwab@redhat.com>
45891
45892         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
45893         _GNU_SOURCE.
45894
45895         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
45896         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
45897         Remove __restrict.
45898         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
45899         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
45900
45901 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
45902
45903         [BZ #11655]
45904         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
45905         are initialized.
45906
45907 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
45908
45909         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
45910
45911 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
45912
45913         * po/it.po: Update from translation team.
45914
45915 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
45916
45917         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
45918         unused codes.
45919
45920 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
45921
45922         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
45923
45924 2010-11-24  Andreas Schwab  <schwab@redhat.com>
45925
45926         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
45927         specially.
45928         (gaih_getanswer_slice): Likewise.
45929
45930 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
45931
45932         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
45933
45934 2010-05-31  Petr Baudis  <pasky@suse.cz>
45935
45936         [BZ #11149]
45937         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
45938         silently even in the chroot mode.
45939
45940 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
45941
45942         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
45943         last patch a bit.  Pretty printing
45944
45945 2010-05-31  Petr Baudis <pasky@suse.cz>
45946
45947         [BZ #10085]
45948         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
45949         initialization of skip_initgroups_dyn.
45950
45951 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
45952
45953         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
45954         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45955
45956 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
45957
45958         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
45959
45960 2010-11-11  Andreas Schwab  <schwab@redhat.com>
45961
45962         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
45963         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
45964         (tst-fnmatch-ENV): Set MALLOC_TRACE.
45965         ($(objpfx)tst-fnmatch-mem): New rule.
45966         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
45967         * posix/tst-fnmatch.c (main): Call mtrace.
45968
45969 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
45970
45971         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45972         Support Intel processor model 6 and model 0x2c.
45973
45974 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
45975
45976         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
45977           signed comparison.
45978
45979 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
45980
45981         [BZ #12205]
45982         * string/test-strncasecmp.c (check_result): New function.
45983         (do_one_test): Use it.
45984         (check1): New function.
45985         (test_main): Use it.
45986         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
45987         Support strcasecmp and strncasecmp.
45988
45989 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
45990
45991         [BZ #12194]
45992         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
45993         * sysdeps/x86_64/bits/byteswap.h: Likewise.
45994
45995 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
45996
45997         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
45998         IFUNC support.
45999         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46000         memset-x86-64.
46001         * sysdeps/x86_64/multiarch/bzero.S: New file.
46002         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
46003         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
46004         * sysdeps/x86_64/multiarch/memset.S: New file.
46005         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
46006         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46007         Set bit_Prefer_SSE_for_memop for Intel processors.
46008         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
46009         Define.
46010         (index_Prefer_SSE_for_memop): Define.
46011         (HAS_PREFER_SSE_FOR_MEMOP): Define.
46012
46013 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
46014
46015         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
46016         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
46017
46018 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
46019
46020         [BZ #12191]
46021         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46022         (__x86_64_raw_data_cache_size_half): Likewise.
46023         (__x86_64_raw_shared_cache_size): Likewise.
46024         (__x86_64_raw_shared_cache_size_half): Likewise.
46025
46026         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46027         (__x86_64_raw_data_cache_size_half): Likewise.
46028         (__x86_64_raw_shared_cache_size): Likewise.
46029         (__x86_64_raw_shared_cache_size_half): Likewise.
46030         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
46031         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
46032         and __x86_64_raw_shared_cache_size_half.  Round
46033         __x86_64_data_cache_size_half, __x86_64_data_cache_size
46034         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
46035         to multiple of 256 bytes.
46036
46037 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
46038
46039         [BZ #12167]
46040         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
46041         of inacessible symlinks.  Verify result of symlink before returning it.
46042         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
46043         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
46044
46045 2010-10-28  Erich Ritz  <erichritz@gmail.com>
46046
46047         * math/math.h (isinf): Fix typo in comment.
46048
46049 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
46050
46051         * po/da.po: Update from translation team.
46052
46053 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
46054
46055         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
46056         is added to the list.
46057
46058 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46059             Ulrich Drepper  <drepper@gmail.com>
46060
46061         * elf/dl-object.c (_dl_new_object): Don't append the new object to
46062         the global list here.  Move code to...
46063         (_dl_add_to_namespace_list): ...here.  New function.
46064         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
46065         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
46066         * elf/dl-load.c (lose): Don't remove the element from the list.
46067         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
46068         (_dl_map_object): Likewise.
46069
46070 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
46071
46072         [BZ #12159]
46073         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
46074         into all bytes of SSE register.
46075         Patch by Richard Li <richardpku@gmail.com>.
46076
46077 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
46078
46079         [BZ #12140]
46080         * malloc/malloc.c (_int_free): Fill correct number of bytes when
46081         perturbing.
46082
46083 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
46084
46085         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
46086         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
46087         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
46088         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
46089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
46090         submachine.
46091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
46092
46093 2010-10-22  Andreas Schwab  <schwab@redhat.com>
46094
46095         * include/dlfcn.h (__RTLD_SECURE): Define.
46096         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
46097         mode & __RTLD_SECURE instead.
46098         (open_path): Rename preloaded parameter to secure.
46099         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
46100         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
46101         * elf/dl-deps.c (openaux): Likewise.
46102         * elf/rtld.c (struct map_args): Remove is_preloaded.
46103         (map_doit): Don't use it.
46104         (dl_main): Likewise.
46105         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
46106         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
46107
46108 2010-09-09  Andreas Schwab  <schwab@redhat.com>
46109
46110         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
46111         (sysd-rules-targets): Remove duplicates.
46112         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
46113         rtld-%.$o dependency.
46114
46115 2010-10-18  Andreas Schwab  <schwab@redhat.com>
46116
46117         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
46118         _dl_map_object do it.
46119
46120 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
46121
46122         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
46123         fast fma builtins, define the macros in the C99 standard.
46124         (FP_FAST_FMAF): Likewise.
46125         (FP_FAST_FMAL): Likewise.
46126         * sysdeps/x86_64/bits/mathdef.h: Likewise.
46127
46128         * bits/mathdef.h: Update copyright year.
46129         * sysdeps/powerpc/bits/mathdef.h: Likewise.
46130
46131 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
46132
46133         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
46134         builtins, define the macros in the C99 standard.
46135         (FP_FAST_FMAF): Likewise.
46136         (FP_FAST_FMAL): Likewise.
46137         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
46138         multiply/add.
46139         (FP_FAST_FMAF): Likewise.
46140
46141 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
46142
46143         [BZ #3268]
46144         * math/libm-test.inc (fma_test): Some new testcases.
46145         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
46146         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
46147         y and infinite z.  Do multiplication by C already in long double.
46148         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
46149         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
46150         y and infinite z.  Do bitwise or of inexact bit into u.d.
46151         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
46152         * sysdeps/i386/fpu/s_fmaf.S: Removed.
46153         * sysdeps/i386/fpu/s_fma.S: Removed.
46154         * sysdeps/i386/fpu/s_fmal.S: Removed.
46155
46156 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
46157
46158         [BZ #3268]
46159         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
46160         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
46161         computation is not scheduled after fetestexcept.  Fix value
46162         of minimum denormal long double.
46163
46164 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
46165
46166         [BZ #3268]
46167         * math/libm-test.inc (fma_test): Add some more tests.
46168         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
46169         correctly.
46170
46171 2010-10-15  Andreas Schwab  <schwab@redhat.com>
46172
46173         * scripts/data/localplt-s390-linux-gnu.data: New file.
46174         * scripts/data/localplt-s390x-linux-gnu.data: New file.
46175
46176 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
46177
46178         [BZ #3268]
46179         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
46180         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
46181         instead of dbl-64.
46182         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
46183         inlines.
46184         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
46185         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
46186         if one of x and y is very large and the other is subnormal.
46187         * sysdeps/s390/fpu/s_fmaf.c: New file.
46188         * sysdeps/s390/fpu/s_fma.c: New file.
46189         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
46190         * sysdeps/powerpc/fpu/s_fma.S: New file.
46191         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
46192         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
46193         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
46194
46195 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
46196
46197         [BZ #3268]
46198         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
46199         fma tests.
46200         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
46201         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
46202         * sysdeps/i386/i686/multiarch/s_fma.c: Include
46203         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
46204         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
46205         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
46206         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
46207
46208 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
46209
46210         [BZ #12078]
46211         * posix/regcomp.c (parse_branch): One more memory leak plugged.
46212         * posix/bug-regex31.input: Add test case.
46213
46214 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46215
46216         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
46217         * posix/bug-regex31.input: New file.
46218
46219         [BZ #12078]
46220         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
46221         (parse_sub_exp): Fix last change, use postorder.
46222
46223         * posix/bug-regex31.c: New file.
46224         * posix/Makefile: Add rules to build and run bug-regex31.
46225
46226         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
46227
46228         [BZ #12078]
46229         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
46230
46231         [BZ #12108]
46232         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
46233         to have entries in sys_siglist.
46234
46235         [BZ #12093]
46236         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
46237         be NULL.
46238
46239 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
46240
46241         [BZ #3268]
46242         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
46243         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
46244         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
46245         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
46246         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
46247         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
46248         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
46249         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
46250         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
46251         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
46252         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
46253         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
46254         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
46255         * math/ftestexcept.c (fetestexcept): Likewise.
46256         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
46257         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
46258         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
46259         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
46260         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
46261         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
46262         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
46263
46264 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46265
46266         [BZ #12107]
46267         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
46268         newline.
46269
46270 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
46271
46272         * string/bug-strstr1.c: New file.
46273         * string/Makefile: Add rules to build and run bug-strstr1.
46274
46275 2010-10-05  Eric Blake  <eblake@redhat.com>
46276
46277         [BZ #12092]
46278         * string/str-two-way.h (two_way_long_needle): Always clear memory
46279         when skipping input due to the shift table.
46280
46281 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
46282
46283         [BZ #12005]
46284         * malloc/mcheck.c: Handle large requests.
46285
46286         [BZ #12077]
46287         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
46288         for strncmp and strncasecmp.
46289         * string/stratcliff.c: Add tests for strcmp and strncmp.
46290         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
46291
46292 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
46293
46294         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
46295         __set_fpscr.
46296
46297 2010-09-30  Andreas Jaeger  <aj@suse.de>
46298
46299         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
46300         (CGROUP_SUPER_MAGIC): Define.
46301         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46302         Handle btrfs and cgroup file systems.
46303         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
46304         Likewise.
46305
46306 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
46307
46308         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
46309         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
46310
46311 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46312
46313         [BZ #12067]
46314         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
46315         trying to locate the ELF header.
46316
46317 2010-09-27  Andreas Schwab  <schwab@redhat.com>
46318
46319         [BZ #11611]
46320         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
46321         Mask out sign-bit copies when constructing f_fsid.
46322
46323 2010-09-24  Petr Baudis <pasky@suse.cz>
46324
46325         * debug/stack_chk_fail_local.c: Add missing licence exception.
46326         * debug/warning-nop.c: Likewise.
46327
46328 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
46329
46330         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
46331         implementing getdents64 using getdents syscall, set d_type if
46332         __ASSUME_GETDENTS32_D_TYPE.
46333
46334 2010-09-16  Andreas Schwab  <schwab@redhat.com>
46335
46336         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
46337         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
46338
46339 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
46340
46341         [BZ #12037]
46342         * posix/unistd.h: Undo change of feature selection for ftruncate from
46343         2010-01-11.
46344
46345 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
46346
46347         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
46348         detection.
46349
46350 2010-09-20  Andreas Schwab  <schwab@redhat.com>
46351
46352         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
46353         fanotify_mark.
46354         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46355
46356 2010-09-14  Andreas Schwab  <schwab@redhat.com>
46357
46358         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
46359         variables after CHECK_SP call.
46360         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
46361
46362 2010-09-13  Andreas Schwab  <schwab@redhat.com>
46363             Ulrich Drepper  <drepper@redhat.com>
46364
46365         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
46366         re-relocationg ld.so.
46367         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
46368         _dl_init_paths call.
46369         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
46370         here anymore.
46371
46372 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
46373
46374         * resolv/res_init.c (__res_vinit): Count the default server we added.
46375
46376 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
46377             Ulrich Drepper  <drepper@redhat.com>
46378
46379         [BZ #11968]
46380         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
46381         (____longjmp_chk): Use %ebx for saving value across system call.
46382         Add unwind info.
46383
46384 2010-09-06  Andreas Schwab  <schwab@redhat.com>
46385
46386         * manual/Makefile: Don't mix pattern rules with normal rules.
46387
46388 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
46389
46390         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
46391         operation.
46392         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
46393         * libio/iofopncook.c (_IO_cookie_init): Likewise.
46394         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
46395         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
46396         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46397         Likewise.
46398
46399 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
46400
46401         [BZ #11979]
46402         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
46403         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
46404
46405 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
46406
46407         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
46408         * sysdeps/x86_64/addmul_1.S: Likewise.
46409         * sysdeps/x86_64/lshift.S: Likewise.
46410         * sysdeps/x86_64/mul_1.S: Likewise.
46411         * sysdeps/x86_64/rshift.S: Likewise.
46412         * sysdeps/x86_64/sub_n.S: Likewise.
46413         * sysdeps/x86_64/submul_1.S: Likewise.
46414
46415 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46416
46417         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
46418         Define __sched_param instead of SCHED_* and sched_param when
46419         <bits/sched.h> is included with __need_schedparam defined.
46420         * bits/sched.h [__need_schedparam]
46421         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
46422         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
46423         (__defined_schedparam): Define to 1.
46424         (__sched_param): New structure, identical to sched_param.
46425         (__need_schedparam): Undefine.
46426
46427 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
46428
46429         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
46430         (epoll_create1): Declare.
46431
46432         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
46433
46434 2010-08-31  Andreas Schwab  <schwab@redhat.com>
46435
46436         [BZ #7066]
46437         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
46438         shifting retval into place.
46439
46440 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
46441
46442         * nis/rpcsvc/nis.h: Update copyright notice.
46443         * nis/rpcsvc/nis.x: Likewise.
46444         * nis/rpcsvc/nis_callback.h: Likewise.
46445         * nis/rpcsvc/nis_callback.x: Likewise.
46446         * nis/rpcsvc/nis_object.x: Likewise.
46447         * nis/rpcsvc/nis_tags.h: Likewise.
46448         * nis/rpcsvc/yp.h: Likewise.
46449         * nis/rpcsvc/yp.x: Likewise.
46450         * nis/rpcsvc/ypupd.h: Likewise.
46451         * nis/yp_xdr.c: Likewise.
46452         * nis/ypupdate_xdr.c: Likewise.
46453
46454         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
46455         mainly the body of pmap_getport.  Add parameters to specify timeouts.
46456         (pmap_getport): Use __libc_rpc_getport.
46457         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
46458         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
46459         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
46460
46461 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
46462
46463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
46464         fanotify_mark.
46465
46466 2010-08-27  Roland McGrath  <roland@redhat.com>
46467
46468         * sysdeps/i386/i686/multiarch/Makefile
46469         (CFLAGS-varshift.c): New variable.
46470
46471 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
46472
46473         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
46474         * sysdeps/i386/i686/multiarch/varshift.c: New file.
46475
46476         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
46477
46478         * sysdeps/x86_64/strlen.S: Minimal code improvement.
46479
46480 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
46481
46482         * sysdeps/x86_64/strlen.S: Unroll the loop.
46483         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46484         strlen-sse2 strlen-sse2-bsf.
46485         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
46486         __strlen_no_bsf if bit_Slow_BSF is set.
46487         (__strlen_sse42): Removed.
46488         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
46489         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
46490
46491 2010-08-25  Roland McGrath  <roland@redhat.com>
46492
46493         * sysdeps/x86_64/multiarch/varshift.S: File removed.
46494         * sysdeps/x86_64/multiarch/varshift.c: New file.
46495         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
46496         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
46497         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
46498         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
46499
46500 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
46501
46502         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46503         strlen-sse2 strlen-sse2-bsf.
46504         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
46505         __strlen_sse2_bsf if bit_Slow_BSF is unset.
46506         (__strlen_sse2): Removed.
46507         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
46508         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
46509         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
46510         bit_Slow_BSF for Atom.
46511         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
46512         (index_Slow_BSF): Define.
46513         (HAS_SLOW_BSF): Define.
46514
46515 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
46516
46517         [BZ #10851]
46518         * resolv/res_init.c (__res_vinit): When no server address at all
46519         is given default to loopback.
46520
46521 2010-08-24  Roland McGrath  <roland@redhat.com>
46522
46523         * configure.in: Remove config-name.h generation.
46524         * configure: Regenerated.
46525         * config-name.in: File removed.
46526         * scripts/config-uname.sh: New file.
46527         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
46528         ($(objdir)config-name.h): New target.
46529
46530         * sunrpc/rpc_parse.h: Avoid nested comment.
46531
46532 2010-08-24  Richard Henderson  <rth@redhat.com>
46533             Ulrich Drepper  <drepper@redhat.com>
46534             H.J. Lu  <hongjiu.lu@intel.com>
46535
46536         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
46537         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
46538         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
46539         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
46540         _mm_alignr_epi8 with _mm_loadu_si128.
46541         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
46542         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
46543         (__m128i_shift_right): Removed.
46544         * sysdeps/i386/i686/multiarch/varshift.h: New file.
46545         * sysdeps/i386/i686/multiarch/varshift.S: New file.
46546         * sysdeps/x86_64/multiarch/varshift.h: New file.
46547         * sysdeps/x86_64/multiarch/varshift.S: New file.
46548
46549 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
46550
46551         * configure.in: Move assembler checks to before sysdep dir checking.
46552
46553 2010-08-20  Petr Baudis  <pasky@suse.cz>
46554
46555         * LICENSES: Sync the sunrpc license.
46556
46557 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
46558
46559         * sunrpc/auth_des.c: Update copyright notice once again.
46560         * sunrpc/auth_none.c: Likewise.
46561         * sunrpc/auth_unix.c: Likewise.
46562         * sunrpc/authdes_prot.c: Likewise.
46563         * sunrpc/authuxprot.c: Likewise.
46564         * sunrpc/bindrsvprt.c: Likewise.
46565         * sunrpc/clnt_gen.c: Likewise.
46566         * sunrpc/clnt_perr.c: Likewise.
46567         * sunrpc/clnt_raw.c: Likewise.
46568         * sunrpc/clnt_simp.c: Likewise.
46569         * sunrpc/clnt_tcp.c: Likewise.
46570         * sunrpc/clnt_udp.c: Likewise.
46571         * sunrpc/clnt_unix.c: Likewise.
46572         * sunrpc/des_crypt.c: Likewise.
46573         * sunrpc/des_soft.c: Likewise.
46574         * sunrpc/get_myaddr.c: Likewise.
46575         * sunrpc/getrpcport.c: Likewise.
46576         * sunrpc/key_call.c: Likewise.
46577         * sunrpc/key_prot.c: Likewise.
46578         * sunrpc/openchild.c: Likewise.
46579         * sunrpc/pm_getmaps.c: Likewise.
46580         * sunrpc/pm_getport.c: Likewise.
46581         * sunrpc/pmap_clnt.c: Likewise.
46582         * sunrpc/pmap_prot.c: Likewise.
46583         * sunrpc/pmap_prot2.c: Likewise.
46584         * sunrpc/pmap_rmt.c: Likewise.
46585         * sunrpc/rpc/auth.h: Likewise.
46586         * sunrpc/rpc/auth_unix.h: Likewise.
46587         * sunrpc/rpc/clnt.h: Likewise.
46588         * sunrpc/rpc/des_crypt.h: Likewise.
46589         * sunrpc/rpc/key_prot.h: Likewise.
46590         * sunrpc/rpc/netdb.h: Likewise.
46591         * sunrpc/rpc/pmap_clnt.h: Likewise.
46592         * sunrpc/rpc/pmap_prot.h: Likewise.
46593         * sunrpc/rpc/pmap_rmt.h: Likewise.
46594         * sunrpc/rpc/rpc.h: Likewise.
46595         * sunrpc/rpc/rpc_des.h: Likewise.
46596         * sunrpc/rpc/rpc_msg.h: Likewise.
46597         * sunrpc/rpc/svc.h: Likewise.
46598         * sunrpc/rpc/svc_auth.h: Likewise.
46599         * sunrpc/rpc/types.h: Likewise.
46600         * sunrpc/rpc/xdr.h: Likewise.
46601         * sunrpc/rpc_clntout.c: Likewise.
46602         * sunrpc/rpc_cmsg.c: Likewise.
46603         * sunrpc/rpc_common.c: Likewise.
46604         * sunrpc/rpc_cout.c: Likewise.
46605         * sunrpc/rpc_dtable.c: Likewise.
46606         * sunrpc/rpc_hout.c: Likewise.
46607         * sunrpc/rpc_main.c: Likewise.
46608         * sunrpc/rpc_parse.c: Likewise.
46609         * sunrpc/rpc_parse.h: Likewise.
46610         * sunrpc/rpc_prot.c: Likewise.
46611         * sunrpc/rpc_sample.c: Likewise.
46612         * sunrpc/rpc_scan.c: Likewise.
46613         * sunrpc/rpc_scan.h: Likewise.
46614         * sunrpc/rpc_svcout.c: Likewise.
46615         * sunrpc/rpc_tblout.c: Likewise.
46616         * sunrpc/rpc_util.c: Likewise.
46617         * sunrpc/rpc_util.h: Likewise.
46618         * sunrpc/rpcinfo.c: Likewise.
46619         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
46620         * sunrpc/rpcsvc/key_prot.x: Likewise.
46621         * sunrpc/rpcsvc/klm_prot.x: Likewise.
46622         * sunrpc/rpcsvc/mount.x: Likewise.
46623         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
46624         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
46625         * sunrpc/rpcsvc/rex.x: Likewise.
46626         * sunrpc/rpcsvc/rstat.x: Likewise.
46627         * sunrpc/rpcsvc/rusers.x: Likewise.
46628         * sunrpc/rpcsvc/sm_inter.x: Likewise.
46629         * sunrpc/rpcsvc/spray.x: Likewise.
46630         * sunrpc/rpcsvc/yppasswd.x: Likewise.
46631         * sunrpc/rtime.c: Likewise.
46632         * sunrpc/svc.c: Likewise.
46633         * sunrpc/svc_auth.c: Likewise.
46634         * sunrpc/svc_authux.c: Likewise.
46635         * sunrpc/svc_raw.c: Likewise.
46636         * sunrpc/svc_run.c: Likewise.
46637         * sunrpc/svc_simple.c: Likewise.
46638         * sunrpc/svc_tcp.c: Likewise.
46639         * sunrpc/svc_udp.c: Likewise.
46640         * sunrpc/svc_unix.c: Likewise.
46641         * sunrpc/svcauth_des.c: Likewise.
46642         * sunrpc/xcrypt.c: Likewise.
46643         * sunrpc/xdr.c: Likewise.
46644         * sunrpc/xdr_array.c: Likewise.
46645         * sunrpc/xdr_float.c: Likewise.
46646         * sunrpc/xdr_mem.c: Likewise.
46647         * sunrpc/xdr_rec.c: Likewise.
46648         * sunrpc/xdr_ref.c: Likewise.
46649         * sunrpc/xdr_sizeof.c: Likewise.
46650         * sunrpc/xdr_stdio.c: Likewise.
46651
46652         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
46653         handling.
46654
46655 2010-08-19  Andreas Schwab  <schwab@redhat.com>
46656
46657         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
46658
46659 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
46660
46661         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
46662         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
46663         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
46664         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
46665         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
46666         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
46667         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
46668         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
46669         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
46670         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
46671         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
46672         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
46673         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
46674         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
46675
46676 2010-07-26  Anton Blanchard  <anton@samba.org>
46677
46678         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
46679         * malloc/arena.c (heap_trim): Likewise.
46680
46681 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
46682
46683         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
46684         here.  Not...
46685         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
46686         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
46687
46688 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
46689
46690         * sysdeps/i386/elf/Makefile: New file.
46691
46692 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46693
46694         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
46695         from fanotify_init.
46696         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
46697         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46698
46699 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
46700
46701         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
46702         of strncasecmp_l.
46703         * sysdeps/multiarch/strcmp.S: Likewise.
46704
46705 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
46706
46707         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46708         strncase_l-nonascii.
46709         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46710         Add strncase_l-ssse3.
46711         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
46712         * sysdeps/x86_64/strcmp.S: Likewise.
46713         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
46714         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
46715         * sysdeps/x86_64/strncase.S: New file.
46716         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
46717         * sysdeps/x86_64/strncase_l.S: New file.
46718         * string/Makefile (strop-tests): Add strncasecmp.
46719         * string/test-strncasecmp.c: New file.
46720
46721         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
46722         warning.
46723
46724         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
46725         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
46726
46727 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46728
46729         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
46730
46731 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
46732
46733         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
46734         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
46735         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
46736
46737 2010-05-01  Alan Modra  <amodra@gmail.com>
46738
46739         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
46740         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
46741         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
46742         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
46743         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
46744         tidying.  Don't tail-call __sigjmp_save for static lib.
46745         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
46746         save location.
46747         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
46748         (CALL_MCOUNT): Add eh info, and nop after bl.
46749         (TAIL_CALL_SYSCALL_ERROR): New macro.
46750         (PSEUDO_RET): Use it.
46751         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
46752         Correct save location of integer regs and cr.
46753         (_dl_profile_resolve): Correct cr save location.  Delete nops
46754         after bl when SHARED.  Reduce cfi size a little by better
46755         placement of cfi directives.
46756         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
46757         make a stack frame.  Instead use parm save area as a temp.
46758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
46759         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
46760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
46761         Don't make a stack frame for parent, use parm save area.
46762         Increase child stack frame to 112 bytes.  Don't save unused reg,
46763         and adjust reg usage.  Set up cfi on error recovery and
46764         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
46765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
46766         (__makecontext): Add dummy nop after jump to exit.
46767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
46768         Use correct parm save area and cr save, reduce stack frame.
46769         Correct cfi for possible PSEUDO_RET frame setup.
46770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
46771         Branch to local label emitted by PSEUDO_RET rather than
46772         __syscall_error.
46773
46774 2010-08-12  Andreas Schwab  <schwab@redhat.com>
46775
46776         [BZ #11904]
46777         * locale/programs/locale.c (print_assignment): New function.
46778         (show_locale_vars): Use it.
46779
46780 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
46781
46782         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
46783         field.
46784         (struct statfs64): Likewise.
46785         (_STATFS_F_FLAGS): Define.
46786         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
46787         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46788         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
46789         (ST_VALID): Define locally.
46790         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
46791         __statvfs_getflags, use the provided value.
46792         * sysdeps/unix/sysv/linux/kernel-features.h: Define
46793         __ASSUME_STATFS_F_FLAGS.
46794
46795         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
46796
46797         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
46798         Add sys/fanotify.h.
46799         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
46800         fanotify_mask for GLIBC_2.13.
46801         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
46802         fanotify_init and fanotify_mark.
46803         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46804         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
46805
46806         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
46807         Add prlimit.
46808         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
46809         prlimit64 for GLIBC_2.13.
46810         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
46811         prlimit64.
46812         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
46813         syscall.
46814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
46815         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46816         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
46817         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
46818         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
46819         add prlimit alias.
46820         * sysdeps/unix/sysv/linux/prlimit.c: New file.
46821
46822         [BZ #11903]
46823         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
46824         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
46825
46826         * nss/Makefile: Add rules to build and run tst-nss-test1.
46827         * shlib-versions: Add entry for libnss_test1.
46828         * nss/nss_test1.c: New file.
46829         * nss/tst-nss-test1.c: New file.
46830
46831         * nss/nsswitch.c (__nss_database_custom): Define new variable.
46832         (__nss_configure_lookup): Set appropriate entry in
46833         __nss_configure_lookup to true.
46834         * nss/nsswitch.h: Define enum with indeces of databases in
46835         databases and __nss_database_custom arrays.  Declare
46836         __nss_database_custom.
46837         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
46838         to avoid using nscd when custom rules are installed.
46839         * nss/getXXbyYY_r.c: Likewise.
46840         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
46841
46842         * nss/nss_files/files-parse.c: Whitespace fixes.
46843
46844 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
46845
46846         [BZ #11883]
46847         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
46848         * posix/fnmatch_loop.c: Likewise.
46849
46850 2010-07-17  Andi Kleen  <ak@linux.intel.com>
46851
46852         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
46853         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
46854         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
46855         * Versions.def [GLIBC_2.13]: Add.
46856
46857 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
46858
46859         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46860         Also fail if tpwd after pwuid call is NULL.
46861
46862 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46863
46864         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
46865         when converting to ms.
46866
46867 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46868
46869         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
46870         EOPNOTSUPP errors with ENOTTY.
46871         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
46872         EOPNOTSUPP errors with ENOTTY.
46873
46874 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
46875
46876         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46877         Add strcasecmp_l-ssse3.
46878         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
46879         strcasecmp.
46880         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
46881         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
46882         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
46883
46884 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
46885
46886         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
46887
46888         * string/Makefile (strop-tests): Add strcasecmp.
46889         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46890         strcasecmp_l-nonascii.
46891         (gen-as-const-headers): Add locale-defines.sym.
46892         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
46893         * sysdeps/x86_64/strcasecmp.S: New file.
46894         * sysdeps/x86_64/strcasecmp_l.S: New file.
46895         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
46896         * sysdeps/x86_64/locale-defines.sym: New file.
46897         * string/test-strcasecmp.c: New file.
46898
46899         * string/test-strcasestr.c: Test both ends of the range of characters.
46900         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
46901
46902 2010-07-29  Roland McGrath  <roland@redhat.com>
46903
46904         [BZ #11856]
46905         * manual/locale.texi (Yes-or-No Questions): Fix example code.
46906
46907 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
46908
46909         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
46910         for ld.so.
46911
46912 2010-07-27  Andreas Schwab  <schwab@redhat.com>
46913
46914         * manual/memory.texi (Malloc Tunable Parameters): Document
46915         M_PERTURB.
46916
46917 2010-07-26  Roland McGrath  <roland@redhat.com>
46918
46919         [BZ #11840]
46920         * configure.in (-fgnu89-inline check): Set and substitute
46921         gnu89_inline, not libc_cv_gnu89_inline.
46922         * configure: Regenerated.
46923         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
46924
46925 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
46926
46927         * string/test-strnlen.c: New file.
46928         * string/Makefile (strop-tests): Add strnlen.
46929         * string/tester.c (test_strnlen): Add a few more test cases.
46930         * string/tst-strlen.c: Better error reporting.
46931
46932         * sysdeps/x86_64/strnlen.S: New file.
46933
46934 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
46935
46936         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
46937         lower-latency instructions.
46938
46939 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
46940
46941         * string/test-strcasestr.c: New file.
46942         * string/test-strstr.c: New file.
46943         * string/Makefile (strop-tests): Add strstr and strcasestr.
46944         * string/str-two-way.h: Don't undefine MAX.
46945         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
46946
46947 2010-07-21  Andreas Schwab  <schwab@redhat.com>
46948
46949         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46950         strcasestr-nonascii.
46951         (CFLAGS-strcasestr-nonascii.c): Define.
46952         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
46953         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
46954         Remove unused attribute.
46955
46956 2010-07-20  Roland McGrath  <roland@redhat.com>
46957
46958         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
46959         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
46960         ld.so.cache was broken.  With it, there is no way to disable dsocaps
46961         like LD_HWCAP_MASK can disable hwcaps.
46962
46963 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46964
46965         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
46966
46967 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
46968
46969         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
46970         call in strcasestr.
46971         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
46972         __strcasestr_sse42_nonascii.
46973         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
46974         strcasestr-nonascii.c.
46975         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
46976
46977 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
46978
46979         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
46980         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
46981         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
46982         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
46983
46984 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
46985
46986         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
46987         fcntl.
46988
46989 2010-07-06  Andreas Schwab  <schwab@redhat.com>
46990
46991         [BZ #11577]
46992         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
46993         dl_signal_cerror.
46994
46995 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
46996
46997         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
46998         _PC_PIPE_BUF using F_GETPIPE_SZ.
46999
47000 2010-07-05  Roland McGrath  <roland@redhat.com>
47001
47002         * manual/arith.texi (Rounding Functions): Fix rint description
47003         implicit in round description.
47004
47005 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
47006
47007         * elf/Makefile: Fix linking for a few tests to make recent linker
47008         happy.
47009
47010 2010-06-30  Andreas Schwab  <schwab@redhat.com>
47011
47012         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
47013         $(common-objpfx)libc_nonshared.a.
47014
47015 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
47016
47017         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
47018         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
47019         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47020         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47021         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
47022         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
47023         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47024         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
47026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
47027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
47028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
47030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
47032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
47033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
47034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
47035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
47037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
47039         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
47040         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
47041         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
47042         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
47043         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
47044         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
47045         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
47046         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
47047         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
47048         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
47049         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
47050         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
47051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
47052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
47053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
47054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
47055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
47056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
47057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
47058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
47059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
47060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
47061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
47062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
47063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
47064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
47065
47066 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
47067
47068         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
47069         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
47070         * string/memmove.c (memmove): Renamed to ...
47071         (MEMMOVE): ...this.  Default to memmove.
47072         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
47073         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
47074         (END_CHK): Define.
47075         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47076         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
47077         mempcpy-ssse3-back memmove-ssse3-back.
47078         * sysdeps/x86_64/multiarch/bcopy.S: New file .
47079         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
47080         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
47081         * sysdeps/x86_64/multiarch/memcpy.S: New file.
47082         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
47083         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
47084         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
47085         * sysdeps/x86_64/multiarch/memmove.c: New file.
47086         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
47087         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
47088         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
47089         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
47090         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
47091         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
47092         Define.
47093         (index_Fast_Copy_Backward): Define.
47094         (HAS_ARCH_FEATURE): Define.
47095         (HAS_FAST_REP_STRING): Define.
47096         (HAS_FAST_COPY_BACKWARD): Define.
47097
47098 2010-06-21  Andreas Schwab  <schwab@redhat.com>
47099
47100         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47101         Restore proper fallback handling.
47102
47103 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
47104
47105         [BZ #11701]
47106         * posix/group_member.c (__group_member): Correct checking loop.
47107
47108         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
47109         OOM in getpwuid_r correctly.  Return error number when the caller
47110         should return, otherwise -1.
47111         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
47112         call returning > 0 value.
47113         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
47114
47115 2010-06-07  Andreas Schwab  <schwab@redhat.com>
47116
47117         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
47118         libc_nonshared.a from targets in modules-names.
47119
47120 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
47121
47122         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
47123         requires it.
47124
47125 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
47126
47127         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
47128         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
47129         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
47130         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
47131
47132 2010-06-02  Andreas Schwab  <schwab@redhat.com>
47133
47134         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
47135
47136 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
47137
47138         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
47139         and F_GETPIPE_SZ.
47140         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
47141         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
47142         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
47143         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
47144         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
47145         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
47146
47147 2010-06-14  Roland McGrath  <roland@redhat.com>
47148
47149         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
47150
47151 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
47152
47153         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
47154         __REDIRECT followed by __THROW.
47155         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
47156         * posix/getopt.h (getopt): Likewise.
47157
47158 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47159
47160         * hurd/lookup-at.c (__file_name_lookup_at): Accept
47161         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
47162         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
47163         in AT_FLAGS.
47164         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
47165         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
47166
47167 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
47168
47169         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
47170
47171 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
47172
47173         [BZ #11640]
47174         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47175         Properly check family and model.
47176
47177 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
47178
47179         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
47180
47181 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
47182
47183         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
47184
47185 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
47186
47187         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
47188         symbol reference.
47189
47190 2010-05-19  Andreas Schwab  <schwab@redhat.com>
47191
47192         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
47193         symbol reference.
47194
47195 2010-05-21  Andreas Schwab  <schwab@redhat.com>
47196
47197         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
47198         and internal_recvmmsg.
47199         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
47200         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
47201         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
47202         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
47203
47204         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
47205         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
47206         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
47207
47208 2010-05-20  Andreas Schwab  <schwab@redhat.com>
47209
47210         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
47211
47212 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
47213
47214         POWER7 optimizations.
47215         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
47216         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
47217
47218 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
47219
47220         * version.h: Update for 2.13 development version.
47221
47222 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
47223
47224         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
47225         exceptions.  Return 0.
47226
47227 2010-05-07  Roland McGrath  <roland@redhat.com>
47228
47229         * elf/ldconfig.c (main): Add a const.
47230
47231 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
47232
47233         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
47234         (args_options): Add no-idn option.
47235         (ahosts_keys_int): Add idn_flags to ai_flags.
47236         (parse_option): Handle 'i' option to clear idn_flags.
47237
47238         * malloc/malloc.c (_int_free): Possible race in the most recently
47239         added check.  Only act on the data if no current modification
47240         happened.
47241
47242 See ChangeLog.17 for earlier changes.